/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0B1F2E;
  --bg-alt:#0A1A28;
  --surface:#0F2538;
  --surface-2:#143047;
  --accent:#FF6B4A;
  --accent-dim:#E55A3A;
  --accent-glow:rgba(255,107,74,0.15);
  --text:#F0EAE2;
  --text-muted:#8FA8BF;
  --text-dim:#5A7A94;
  --success:#3ECF8E;
  --warning:#F6C90E;
  --border:rgba(255,255,255,0.07);
  --serif:'DM Serif Display',Georgia,serif;
  --sans:'DM Sans',system-ui,sans-serif
}
html{font-size:16px;scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-height:100vh
}

/* === NAV === */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.25rem 2.5rem;
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(11,31,46,0.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border)
}
.nav__logo{
  font-family:var(--serif);
  font-size:1.5rem;
  color:var(--accent);
  letter-spacing:-0.01em
}
.nav__tagline{
  font-size:0.75rem;
  color:var(--text-dim);
  letter-spacing:0.12em;
  text-transform:uppercase
}
.nav__actions{display:flex;gap:0.75rem;align-items:center}
.nav__link{
  color:var(--text-muted);
  text-decoration:none;
  font-size:0.9rem;
  transition:color 0.2s
}
.nav__link:hover{color:var(--text)}
.nav__link--active{color:var(--accent)}

/* === BUTTONS === */
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.6rem 1.25rem;
  border-radius:8px;
  font-family:var(--sans);
  font-size:0.9rem;
  font-weight:600;
  text-decoration:none;
  transition:all 0.2s;
  border:none;
  cursor:pointer
}
.btn--primary{
  background:var(--accent);
  color:#fff
}
.btn--primary:hover{background:var(--accent-dim);transform:translateY(-1px)}
.btn--secondary{
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border)
}
.btn--secondary:hover{background:var(--surface-2)}
.btn--ghost{
  background:transparent;
  color:var(--text-muted);
  border:1px solid var(--border)
}
.btn--ghost:hover{background:var(--surface);color:var(--text)}
.btn--sm{padding:0.4rem 0.85rem;font-size:0.8rem}

/* === CARDS === */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:1.5rem;
  transition:border-color 0.2s,box-shadow 0.2s
}
.card:hover{border-color:rgba(255,255,255,0.12)}
.card--glow{box-shadow:0 0 40px rgba(255,107,74,0.08)}
.card__label{
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--text-dim);
  margin-bottom:0.5rem
}
.card__value{
  font-family:var(--serif);
  font-size:2rem;
  color:var(--text);
  line-height:1.2
}
.card__sub{font-size:0.85rem;color:var(--text-muted);margin-top:0.25rem}
.card__trend{
  display:inline-flex;
  align-items:center;
  gap:0.25rem;
  font-size:0.8rem;
  font-weight:600;
  padding:0.2rem 0.5rem;
  border-radius:20px
}
.card__trend--up{background:rgba(62,207,142,0.12);color:var(--success)}
.card__trend--down{background:rgba(246,201,14,0.12);color:var(--warning)}

/* === GRID === */
.grid{display:grid;gap:1.25rem}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}

/* === HERO === */
.hero{
  position:relative;
  min-height:92vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:6rem 2.5rem 4rem
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255,107,74,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(0,80,140,0.3) 0%, transparent 50%),
    linear-gradient(160deg, #0B1F2E 0%, #061525 100%);
}
.hero__bg::after{
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:200px;
  background:linear-gradient(to top, var(--bg), transparent);
  pointer-events:none
}
.hero__content{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:5rem;
  max-width:1400px;
  margin:0 auto;
  width:100%;
  align-items:center
}
.hero__text{max-width:580px}
.hero__eyebrow{
  font-size:0.7rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:1.25rem;
  display:flex;
  align-items:center;
  gap:0.5rem
}
.hero__eyebrow::before{
  content:'';
  display:inline-block;
  width:24px;
  height:2px;
  background:var(--accent)
}
.hero__title{
  font-family:var(--serif);
  font-size:clamp(2.5rem,5vw,4rem);
  color:var(--text);
  line-height:1.1;
  margin-bottom:1.5rem;
  letter-spacing:-0.02em
}
.hero__subtitle{
  font-size:1.15rem;
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:2.5rem;
  max-width:480px
}
.hero__actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero__social-proof{
  display:flex;
  align-items:center;
  gap:0.75rem;
  margin-top:2rem;
  padding-top:2rem;
  border-top:1px solid var(--border)
}
.hero__avatars{display:flex}
.hero__avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid var(--bg);
  background:var(--surface-2);
  margin-left:-8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.7rem;
  color:var(--text-muted)
}
.hero__avatar:first-child{margin-left:0}
.hero__social-text{font-size:0.85rem;color:var(--text-muted)}
.hero__social-text strong{color:var(--text)}

/* === HERO VISUAL === */
.hero__visual{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:1rem
}
.hero__stat-card{
  background:rgba(15,37,56,0.8);
  backdrop-filter:blur(16px);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.5rem;
  display:flex;
  align-items:flex-start;
  gap:1rem
}
.hero__stat-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  background:var(--accent-glow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  flex-shrink:0
}
.hero__stat-body{flex:1}
.hero__stat-label{font-size:0.75rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:0.1em;margin-bottom:0.25rem}
.hero__stat-value{font-family:var(--serif);font-size:1.75rem;color:var(--text);line-height:1.2}
.hero__stat-sub{font-size:0.8rem;color:var(--text-muted);margin-top:0.2rem}

/* === STAT BAR === */
.stat-bar{
  background:rgba(15,37,56,0.8);
  backdrop-filter:blur(16px);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.25rem 1.5rem;
  display:flex;
  align-items:center;
  gap:1.5rem
}
.stat-bar__track{
  flex:1;
  height:6px;
  background:var(--surface-2);
  border-radius:3px;
  overflow:hidden
}
.stat-bar__fill{
  height:100%;
  background:linear-gradient(90deg,var(--accent),#FF9B7A);
  border-radius:3px;
  transition:width 1s ease
}
.stat-bar__label{font-size:0.85rem;color:var(--text-muted);white-space:nowrap}

/* === SECTION === */
.section{padding:5rem 2.5rem}
.section__header{text-align:center;max-width:600px;margin:0 auto 3rem}
.section__eyebrow{
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.18em;
  color:var(--accent);
  margin-bottom:0.75rem
}
.section__title{
  font-family:var(--serif);
  font-size:2.5rem;
  color:var(--text);
  line-height:1.2;
  margin-bottom:1rem
}
.section__subtitle{font-size:1.1rem;color:var(--text-muted);line-height:1.7}

/* === FEATURES GRID === */
.features-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
  max-width:1200px;
  margin:0 auto
}
.feature-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:2rem;
  transition:all 0.3s;
  position:relative;
  overflow:hidden
}
.feature-card::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
  opacity:0;
  transition:opacity 0.3s
}
.feature-card:hover{border-color:rgba(255,255,255,0.12);transform:translateY(-2px)}
.feature-card:hover::before{opacity:1}
.feature-card__icon{
  width:52px;
  height:52px;
  border-radius:14px;
  background:var(--accent-glow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  margin-bottom:1.25rem
}
.feature-card__title{
  font-family:var(--serif);
  font-size:1.25rem;
  color:var(--text);
  margin-bottom:0.75rem
}
.feature-card__desc{font-size:0.9rem;color:var(--text-muted);line-height:1.6}

/* === FOOTER === */
.footer{
  border-top:1px solid var(--border);
  padding:2.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1rem
}
.footer__copy{font-size:0.85rem;color:var(--text-dim)}
.footer__links{display:flex;gap:1.5rem}
.footer__link{font-size:0.85rem;color:var(--text-muted);text-decoration:none;transition:color 0.2s}
.footer__link:hover{color:var(--text)}

/* === DASHBOARD SPECIFIC === */
.dashboard{
  min-height:100vh;
  display:flex;
  flex-direction:column
}
.dashboard__header{
  padding:1.5rem 2.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--border)
}
.dashboard__greeting{font-size:1.1rem;color:var(--text)}
.dashboard__greeting strong{color:var(--accent)}
.dashboard__meta{font-size:0.8rem;color:var(--text-dim)}

.dashboard__body{
  flex:1;
  padding:2rem 2.5rem;
  display:flex;
  flex-direction:column;
  gap:2rem
}

/* Ocean Clock Hero Widget */
.ocean-clock{
  background:linear-gradient(135deg,var(--surface),var(--bg-alt));
  border:1px solid rgba(255,107,74,0.2);
  border-radius:20px;
  padding:2.5rem;
  display:grid;
  grid-template-columns:1fr auto;
  gap:3rem;
  align-items:center;
  position:relative;
  overflow:hidden
}
.ocean-clock::before{
  content:'';
  position:absolute;
  top:-50%;
  right:-20%;
  width:400px;
  height:400px;
  background:radial-gradient(circle,rgba(255,107,74,0.1) 0%,transparent 70%);
  pointer-events:none
}
.ocean-clock__main{}
.ocean-clock__label{
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.15em;
  color:var(--accent);
  margin-bottom:0.75rem
}
.ocean-clock__value{
  font-family:var(--serif);
  font-size:4rem;
  color:var(--text);
  line-height:1;
  margin-bottom:0.25rem
}
.ocean-clock__unit{font-size:1.2rem;color:var(--text-muted);font-weight:400}
.ocean-clock__sub{font-size:0.9rem;color:var(--text-dim);margin-top:0.75rem}
.ocean-clock__live{
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin-top:1rem
}
.ocean-clock__live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--success);
  animation:pulse 2s infinite
}
@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:0.5;transform:scale(0.85)}
}
.ocean-clock__live-text{font-size:0.8rem;color:var(--success);font-weight:600}
.ocean-clock__viz{
  position:relative;
  width:200px;
  height:200px;
  flex-shrink:0
}
.ocean-clock__ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:3px solid rgba(255,107,74,0.15)
}
.ocean-clock__ring:nth-child(2){inset:15px;border-color:rgba(255,107,74,0.25)}
.ocean-clock__ring:nth-child(3){inset:30px;border-color:rgba(255,107,74,0.35)}
.ocean-clock__ring:nth-child(4){inset:45px;border-color:rgba(255,107,74,0.5)}
.ocean-clock__ring:nth-child(5){inset:60px;border-color:var(--accent)}
.ocean-clock__center{
  position:absolute;
  inset:75px;
  background:radial-gradient(circle,var(--accent) 0%,transparent 70%);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center
}

/* Metric Cards Row */
.metrics-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.25rem
}

/* Dashboard Grid */
.dashboard-grid{
  display:grid;
  grid-template-columns:1fr 380px;
  gap:1.5rem
}

/* Widget Panels */
.widget{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden
}
.widget__header{
  padding:1.25rem 1.5rem;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between
}
.widget__title{
  font-family:var(--serif);
  font-size:1.1rem;
  color:var(--text)
}
.widget__action{font-size:0.8rem;color:var(--accent);text-decoration:none;transition:opacity 0.2s}
.widget__action:hover{opacity:0.7}
.widget__body{padding:1.5rem}

/* Traffic Source List */
.source-list{list-style:none;display:flex;flex-direction:column;gap:0.75rem}
.source-item{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:0.75rem;
  background:var(--bg-alt);
  border-radius:10px;
  transition:background 0.2s
}
.source-item:hover{background:var(--surface-2)}
.source-item__icon{
  width:36px;
  height:36px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  flex-shrink:0
}
.source-item__info{flex:1}
.source-item__name{font-size:0.9rem;font-weight:600;color:var(--text)}
.source-item__value{font-size:0.8rem;color:var(--text-muted)}
.source-item__bar{
  width:60px;
  height:4px;
  background:var(--surface-2);
  border-radius:2px;
  overflow:hidden
}
.source-item__bar-fill{height:100%;background:var(--accent);border-radius:2px}

/* Top Pages List */
.pages-list{list-style:none;display:flex;flex-direction:column;gap:0.5rem}
.pages-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0.6rem 0.75rem;
  border-radius:8px;
  transition:background 0.2s;
  cursor:pointer
}
.pages-item:hover{background:var(--bg-alt)}
.pages-item__rank{font-size:0.8rem;color:var(--text-dim);width:20px}
.pages-item__path{font-size:0.85rem;color:var(--text);flex:1}
.pages-item__views{font-size:0.8rem;color:var(--text-muted)}

/* Social Stats */
.social-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}
.social-stat{text-align:center;padding:1rem;background:var(--bg-alt);border-radius:12px}
.social-stat__value{font-family:var(--serif);font-size:1.75rem;color:var(--text)}
.social-stat__label{font-size:0.75rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:0.08em;margin-top:0.2rem}

/* News Feed */
.news-feed{list-style:none;display:flex;flex-direction:column;gap:0.75rem}
.news-item{
  padding:1rem;
  background:var(--bg-alt);
  border-radius:10px;
  border-left:3px solid var(--accent);
  transition:background 0.2s
}
.news-item:hover{background:var(--surface-2)}
.news-item__source{font-size:0.7rem;color:var(--accent);text-transform:uppercase;letter-spacing:0.1em;margin-bottom:0.3rem}
.news-item__title{font-size:0.9rem;color:var(--text);line-height:1.4;margin-bottom:0.4rem}
.news-item__meta{font-size:0.75rem;color:var(--text-dim)}

/* Quick Actions */
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:0.75rem}
.quick-action{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.5rem;
  padding:1.25rem;
  background:var(--bg-alt);
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  transition:all 0.2s;
  border:1px solid transparent;
  text-align:center
}
.quick-action:hover{
  background:var(--surface-2);
  border-color:var(--border);
  transform:translateY(-1px)
}
.quick-action__icon{
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--accent-glow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem
}
.quick-action__label{font-size:0.8rem;font-weight:600}
.quick-action__sub{font-size:0.7rem;color:var(--text-dim)}

/* Responsive */
@media(max-width:1200px){
  .hero__content{grid-template-columns:1fr}
  .hero__visual{margin-top:3rem}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .dashboard-grid{grid-template-columns:1fr}
  .metrics-row{grid-template-columns:repeat(2,1fr)}
  .ocean-clock{grid-template-columns:1fr;text-align:center}
  .ocean-clock__viz{display:none}
}
@media(max-width:768px){
  .section{padding:3rem 1.5rem}
  .nav{padding:1rem 1.5rem}
  .hero{padding:4rem 1.5rem 3rem}
  .features-grid{grid-template-columns:1fr}
  .metrics-row{grid-template-columns:1fr}
  .footer{flex-direction:column;text-align:center}
  .social-stats{grid-template-columns:1fr}
  .quick-actions{grid-template-columns:repeat(2,1fr)}
}