/* ============================================================
   ANGLER: Seek the Surface
   Ocean-themed landing page styles
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand */
  --teal:        #00C8A2;
  --teal-deep:   #009879;
  --biolum:      #5EF3E0;
  --purple:      #6446CC;
  --pink:        #FF3366;

  /* Ocean depth palette */
  --surface:     #1BA3C4;
  --twilight:    #0B5E7A;
  --midnight:    #072C46;
  --abyss:       #04121F;
  --trench:      #02080E;

  /* Ink */
  --ink:         #F4FBFF;
  --muted:       #9FB6C4;
  --dim:         rgba(244, 251, 255, 0.42);
  --hairline:    rgba(255, 255, 255, 0.10);
  --hairline-2:  rgba(255, 255, 255, 0.16);

  /* Card glass */
  --glass:       rgba(255, 255, 255, 0.045);
  --glass-brd:   rgba(255, 255, 255, 0.10);

  /* Focus / glow / button tokens */
  --focus:       #5EF3E0;
  --biolum-glow: rgba(94, 243, 224, 0.28);
  --biolum-glow-soft: rgba(94, 243, 224, 0.18);
  --btn-grad-start: #7FF7E6;
  --btn-ink:     #04121F;
  --btn-shadow:  rgba(0, 200, 162, 0.55);
  --veil-top:    rgba(0, 0, 0, 0.28);
  --veil-bottom: rgba(0, 0, 0, 0.45);
  --head-scrolled: rgba(2, 8, 14, 0.72);

  /* Rank colors */
  --rc-radiant:  #7FE9FF;
  --rc-twilight: #3FB7D6;
  --rc-midnight: #2E7FA8;
  --rc-abyss:    #3A5C86;
  --rc-trench:   #FFC24B;

  --maxw:        1120px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

html, body {
  background: var(--trench);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

body { position: relative; }

::selection { background: var(--biolum-glow); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ── Ocean canvas (fixed background) ─────────────────────── */
#ocean {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* A depth vignette that lives above the canvas but below content */
.depth-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 12%, transparent 40%, var(--veil-top) 100%),
    radial-gradient(ellipse at 50% 100%, var(--veil-bottom), transparent 55%);
}

/* All page content sits above the ocean */
.page { position: relative; z-index: 2; }

/* ── Typography helpers ──────────────────────────────────── */
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }

.accent {
  color: var(--biolum);
  text-shadow: 0 0 28px var(--biolum-glow-soft);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--biolum);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--biolum);
  box-shadow: 0 0 10px var(--biolum);
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.02; font-weight: 800; }

.display {
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.96;
}
.h2 { font-size: clamp(30px, 5vw, 56px); }
.h3 { font-size: clamp(20px, 2.4vw, 28px); }

.lede {
  font-size: clamp(16px, 2vw, 21px);
  color: var(--muted);
  max-width: 44ch;
}

/* ── Layout ──────────────────────────────────────────────── */
.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }

section.beat {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 88px 0;
  position: relative;
}
section.beat.beat-tight { padding: 64px 0; }
#problem.beat { padding: 100px 0 72px; }
#ranks.beat {
  min-height: min(100vh, 920px);
  padding: 110px 0;
}

/* ── Header ──────────────────────────────────────────────── */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 40px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-head.scrolled {
  background: linear-gradient(180deg, var(--head-scrolled), transparent);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 11px; border-radius: 8px; }
.brand img {
  width: 30px; height: 30px; border-radius: 8px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 20px rgba(0,0,0,0.5);
}
.brand b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.pill {
  font-size: 11px; font-weight: 600; color: var(--dim);
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--hairline-2);
  padding: 7px 13px; border-radius: 999px;
  white-space: nowrap;
}
.pill-link {
  color: var(--biolum);
  border-color: rgba(94,243,224,0.34);
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.pill-link:hover {
  color: var(--ink);
  border-color: rgba(94,243,224,0.6);
  background: rgba(94,243,224,0.08);
}

/* ── Focus rings (instant, no transition) ────────────────── */
.btn:focus-visible,
.pill-link:focus-visible,
.brand:focus-visible,
.site-foot a:focus-visible,
.legal .back:focus-visible,
.legal a.inline:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 24px; border-radius: 14px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  position: relative;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  color: var(--btn-ink);
  background: linear-gradient(135deg, var(--btn-grad-start), var(--teal));
  box-shadow: 0 10px 34px -8px var(--btn-shadow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9BFAED, var(--teal));
  box-shadow: 0 14px 40px -8px rgba(0,200,162,0.7);
}
.btn .badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(4,18,31,0.28); color: var(--btn-ink);
  padding: 3px 9px; border-radius: 999px;
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--hairline-2);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

/* ── Reveal animation (hero + odometer only) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-hint .rail::after { animation: none; }
}

/* ── HERO (left-bias, content-height) ────────────────────── */
#hero {
  position: relative;
  min-height: auto;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  text-align: left;
  padding: 132px clamp(22px, 5vw, 48px) 72px;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}
.hero-inner {
  max-width: 640px;
  padding-bottom: 48px;
}
#hero .display { margin: 0 0 18px; }
#hero .lede { margin: 0 0 28px; text-align: left; }
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: flex-start;
}

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .rail {
  width: 1px; height: 40px;
  background: linear-gradient(var(--biolum), transparent);
  position: relative; overflow: hidden;
}
.scroll-hint .rail::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--biolum);
  animation: dip 2.2s var(--ease) infinite;
}
@keyframes dip { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(260%); } }

/* ── PROBLEM / LIFETIME SCROLL ───────────────────────────── */
#problem .wrap { display: grid; gap: 8px; }
.stat-hero { text-align: left; }
.stat-cap { font-size: clamp(16px, 2.2vw, 22px); color: var(--muted); max-width: 46ch; margin-top: 24px; }
.stat-method {
  font-size: 13.5px;
  color: var(--dim);
  max-width: 52ch;
  margin-top: 14px;
  line-height: 1.5;
}
.stat-sub {
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink);
  font-weight: 600;
  margin-top: 22px;
}
.stat-sub::after {
  content: '';
  display: block;
  width: 66px; height: 3px; border-radius: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--biolum), transparent);
}

/* Odometer */
.odo-wrap { display: flex; align-items: flex-end; gap: 16px; margin-top: 8px; }
.odo {
  display: inline-flex;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(84px, 17vw, 210px);
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px var(--biolum-glow-soft);
}
.odo .sep { display: inline-block; }
.odo .reel {
  display: inline-block;
  height: 0.9em;
  overflow: hidden;
  vertical-align: top;
}
.odo .reel .col {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 2.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.odo .reel .col span { height: 0.9em; display: block; text-align: center; }
.odo-unit {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  color: var(--biolum);
  padding-bottom: 0.22em;
  letter-spacing: -0.01em;
}

/* ── PRODUCT PANEL ───────────────────────────────────────── */
#product .wrap { max-width: 560px; }
.product-lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 28px;
  line-height: 1.45;
}
.product-panel {
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 28px 28px 24px;
  display: grid;
  gap: 16px;
}
.pp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pp-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.pp-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pp-value small {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 0.38em;
  font-weight: 600;
  color: var(--biolum);
  margin-left: 4px;
  letter-spacing: 0;
}
.pp-value.pp-muted { color: var(--muted); font-size: clamp(24px, 4vw, 32px); }
.pp-divider {
  height: 1px;
  background: var(--hairline);
  margin: 4px 0;
}
.pp-zone {
  font-size: 18px;
  font-weight: 700;
  color: var(--rc-midnight);
}
.pp-status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rc-trench);
  padding-top: 4px;
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
#how .head { max-width: 640px; margin-bottom: 40px; }
.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 26px;
  align-items: start;
  padding: 30px 30px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.step .n {
  font-family: 'Instrument Serif', serif;
  font-size: 60px; line-height: 1;
  color: var(--biolum);
  text-shadow: 0 0 20px var(--biolum-glow-soft);
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; max-width: 60ch; }

/* ── RANK LADDER ─────────────────────────────────────────── */
#ranks .head { max-width: 640px; margin-bottom: 40px; }
.ladder { display: grid; gap: 12px; }
.rung {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.rung:hover { transform: translateX(6px); }
.rung .zone { display: flex; align-items: center; gap: 12px; }
.rung .dot {
  width: 13px; height: 13px; border-radius: 50%;
  box-shadow: 0 0 12px var(--rc);
  background: var(--rc);
  flex-shrink: 0;
}
.rung .zname { font-size: 19px; font-weight: 700; }
.rung .desc { color: var(--muted); font-size: 15px; }
.rung .tier { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.rung.radiant  { --rc: var(--rc-radiant);  background: linear-gradient(90deg, rgba(127,233,255,0.12), transparent); }
.rung.twilight { --rc: var(--rc-twilight); background: linear-gradient(90deg, rgba(63,183,214,0.11), transparent); }
.rung.midnight { --rc: var(--rc-midnight); background: linear-gradient(90deg, rgba(46,127,168,0.11), transparent); }
.rung.abyss    { --rc: var(--rc-abyss);    background: linear-gradient(90deg, rgba(58,92,134,0.12), transparent); }
.rung.trench   { --rc: var(--rc-trench);   background: linear-gradient(90deg, rgba(255,194,75,0.12), transparent); }
.rung.trench .zname { display: flex; align-items: center; gap: 8px; }

/* ── FINALE ──────────────────────────────────────────────── */
#finale {
  text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: auto;
  padding: 96px clamp(22px, 5vw, 48px);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}
.finale-inner { max-width: 560px; }
#finale .h2 { margin-bottom: 16px; }
#finale .lede { margin: 0 0 22px; text-align: left; }
.finale-cta { margin-bottom: 20px; }
.finale-status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  padding: 64px clamp(18px, 4vw, 40px) 40px;
}
.foot-grid {
  width: min(100% - 8px, var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.foot-col h4 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 16px; font-weight: 700;
}
.foot-col ul { list-style: none; display: grid; gap: 12px; }
.foot-col a {
  color: var(--muted); font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 4px;
  transition: color .3s var(--ease);
}
.foot-col a:hover { color: var(--biolum); }
.foot-bottom {
  width: min(100% - 8px, var(--maxw));
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  color: var(--dim); font-size: 13px;
}
.foot-bottom .made { display: inline-flex; align-items: center; gap: 8px; }

/* ── DEPTH METER (fixed side rail) ───────────────────────── */
.depth-meter {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  top: 50%; transform: translateY(-50%);
  z-index: 30;
  display: flex; flex-direction: column; gap: 0;
  pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
}
.depth-meter.show { opacity: 1; }
.dm-zone {
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--dim);
  transition: color .4s var(--ease);
}
.dm-zone .tick {
  width: 22px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.18);
  transition: all .4s var(--ease);
}
.dm-zone.active { color: var(--biolum); }
.dm-zone.active .tick { width: 40px; height: 3px; background: var(--biolum); box-shadow: 0 0 12px var(--biolum); }
.dm-label { opacity: 0; transform: translateX(6px); transition: all .4s var(--ease); }
.dm-zone.active .dm-label { opacity: 1; transform: none; }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.legal {
  position: relative; z-index: 2;
  width: min(100% - 44px, 760px);
  margin: 0 auto;
  padding: 150px 0 100px;
}
.legal .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--biolum); font-size: 14px; font-weight: 600; margin-bottom: 34px;
  border-radius: 4px;
}
.legal h1 { font-size: clamp(38px, 7vw, 66px); margin-bottom: 14px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 44px; }
.legal .placeholder-note {
  padding: 18px 22px; border-radius: 14px;
  background: rgba(255, 194, 75, 0.08);
  border: 1px solid rgba(255, 194, 75, 0.25);
  color: #FFD98A; font-size: 14.5px; margin-bottom: 40px;
}
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; color: var(--ink); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-bottom: 14px; line-height: 1.65; }
.legal ul { padding-left: 22px; margin-bottom: 20px; }
.legal li { margin-bottom: 10px; }
.legal li::marker { color: var(--biolum); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a.inline { color: var(--biolum); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; border-radius: 2px; }
.legal a.inline:hover { color: #fff; }
.legal .callout {
  padding: 24px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(94,243,224,0.10), rgba(100,70,204,0.08));
  border: 1px solid rgba(94,243,224,0.22);
  margin: 6px 0 44px;
}
.legal .callout h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--biolum); }
.legal .callout p { color: var(--ink); margin-bottom: 0; }
.legal .contact-line { color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.legal .fineprint {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--dim); font-size: 14px; font-style: italic;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .depth-meter { display: none; }
}
@media (max-width: 620px) {
  section.beat { padding: 72px 0; }
  section.beat.beat-tight { padding: 52px 0; }
  #hero { padding: 110px 22px 56px; }
  .pill {
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 0.1em;
  }
  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 22px; }
  .step .n { font-size: 44px; }
  .rung { grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px; }
  .rung .tier { display: none; }
  .rung .zone { flex-direction: row; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-panel { padding: 22px 20px; }
  .hero-cta .btn { white-space: nowrap; }
}
