/* ============ TOKENS ============ */
:root{
  --void:#0A0D12;
  --panel:#12161D;
  --panel-2:#171C25;
  --line: rgba(237,239,242,0.09);
  --line-strong: rgba(237,239,242,0.16);
  --ink:#EDEFF2;
  --muted:#8B93A3;
  --muted-2:#5C6270;
  --amber:#F5A623;
  --amber-dim: rgba(245,166,35,0.14);
  --teal:#4FE0C8;
  --teal-dim: rgba(79,224,200,0.12);

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 18px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--void);
  color:var(--ink);
  font-family:var(--body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

a{ color:inherit; text-decoration:none; }
ul,ol{ list-style:none; }
img{ max-width:100%; display:block; }

::selection{ background:var(--amber); color:var(--void); }

/* subtle grain overlay */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:999;
  opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--amber);
  margin-bottom:14px;
}

h1,h2,h3{ font-family:var(--display); font-weight:600; letter-spacing:-0.02em; }

/* ============ NAV ============ */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(10,13,18,0.72);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:1240px; margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:22px; height:22px; border-radius:50%;
}
.logo-text{
  font-family:var(--mono); font-weight:600; letter-spacing:0.12em; font-size:15px;
}
.nav-links{ display:flex; gap:34px; }
.nav-links a{
  font-size:14px; color:var(--muted); transition:color .25s var(--ease);
}
.nav-links a:hover{ color:var(--ink); }

/* burger + drawer (hidden on desktop) */
.nav-burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:none; border:1px solid var(--line-strong);
  border-radius:10px; cursor:pointer; padding:0;
}
.nav-burger span{
  display:block; width:16px; height:2px; background:var(--ink); margin:0 auto;
  transition:transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-drawer{
  display:none;
  flex-direction:column;
  gap:4px;
  max-height:0;
  overflow:hidden;
  border-top:1px solid transparent;
  background:var(--void);
  transition:max-height .38s var(--ease), border-color .38s var(--ease);
}
.nav-drawer.open{
  max-height:400px;
  border-top:1px solid var(--line);
}
.nav-drawer a{
  padding:16px 32px; font-size:15px; color:var(--muted);
  border-bottom:1px solid var(--line);
}
.nav-drawer a:hover{ color:var(--ink); }
.nav-drawer .btn{ margin:16px 32px; align-self:flex-start; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 22px; border-radius:999px; font-size:14px; font-weight:600;
  font-family:var(--body); cursor:pointer; border:1px solid transparent;
  transition:transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover{ transform:translateY(-1px); }
.btn-ghost{ border-color:var(--line-strong); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--amber); }
.btn-primary{ background:var(--amber); color:#1A1204; }
.btn-primary:hover{ background:#ffb84a; }
.btn-secondary{ background:var(--panel-2); color:var(--ink); border-color:var(--line-strong); }
.btn-secondary:hover{ border-color:var(--teal); }
.btn-text{ color:var(--muted); font-size:14px; }
.btn-text:hover{ color:var(--ink); }
.btn-lg{ padding:15px 30px; font-size:15px; }

/* ============ HERO ============ */
.hero{
  max-width:1240px; margin:0 auto; padding:clamp(56px,10vw,96px) clamp(20px,5vw,32px) clamp(48px,8vw,80px);
}
.hero-inner{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:clamp(32px,5vw,60px); align-items:center;
}
.hero-copy h1{
  font-size:clamp(40px, 7.5vw, 76px);
  line-height:0.98;
  margin-bottom:24px;
}
.hero-copy .ital{ font-style:italic; color:var(--amber); font-weight:500; }
.hero-lede{
  color:var(--muted); font-size:clamp(15px,2vw,18px); max-width:460px; margin-bottom:34px;
}
.hero-actions{ display:flex; align-items:center; gap:22px; margin-bottom:40px; flex-wrap:wrap; }
.trust{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted-2); font-family:var(--mono); }
.trust b{ color:var(--muted); }
.trust-stars{ color:var(--amber); letter-spacing:1px; font-size:14px; }
.trust-rating{ color:var(--ink); font-weight:600; }
.trust-sep{ color:var(--muted-2); }

/* ---- device / timer widget ---- */
.hero-device{ display:flex; flex-direction:column; align-items:center; gap:18px; width:100%; }
.device-frame{
  position:relative;
  width:340px; max-width:100%;
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line-strong);
  border-radius:28px;
  padding:clamp(22px,4vw,28px) clamp(18px,4vw,26px) 24px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
}
.device-glow{
  position:absolute; inset:-40%;
  background:radial-gradient(circle at 50% 30%, var(--amber-dim), transparent 60%);
  filter:blur(10px); pointer-events:none; z-index:0;
  transition:opacity .6s var(--ease);
}
.device-top{
  display:flex; align-items:center; gap:9px; justify-content:center;
  position:relative; z-index:1; margin-bottom:22px;
}
.device-dot{
  width:7px; height:7px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 10px var(--amber);
  animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.device-label{
  font-family:var(--mono); font-size:11px; letter-spacing:0.16em; color:var(--muted);
}

.timer-ring-wrap{ position:relative; width:min(230px,60vw); height:min(230px,60vw); margin:0 auto; z-index:1; }
.timer-ring{ width:100%; height:100%; transform:rotate(-90deg); }
.ring-track{ fill:none; stroke:var(--line); stroke-width:6; }
.ring-progress{
  fill:none; stroke:var(--amber); stroke-width:6; stroke-linecap:round;
  stroke-dasharray:722.6; stroke-dashoffset:0;
  transition:stroke-dashoffset 1s linear;
  filter:drop-shadow(0 0 8px var(--amber-dim));
}
.timer-center{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.timer-digits{
  font-family:var(--mono); font-size:clamp(32px,8vw,44px); font-weight:600; letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;
}
.timer-sub{ font-size:12px; color:var(--muted); margin-top:6px; letter-spacing:0.04em; }

.device-controls{
  display:flex; align-items:center; justify-content:center; gap:16px;
  margin:24px 0 20px; position:relative; z-index:1;
}
.ctrl-btn{
  width:44px; height:44px; border-radius:50%;
  background:var(--panel-2); border:1px solid var(--line-strong); color:var(--ink);
  font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:all .2s var(--ease);
}
.ctrl-btn:hover{ border-color:var(--amber); color:var(--amber); }
.ctrl-primary{
  width:58px; height:58px; background:var(--amber); color:#1A1204; border:none; font-size:17px;
}
.ctrl-primary:hover{ background:#ffb84a; color:#1A1204; transform:scale(1.04); }

.device-footer{ position:relative; z-index:1; }
.dnd-row{
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; color:var(--muted); padding-top:16px; border-top:1px solid var(--line);
  margin-bottom:16px;
}
.switch input{ display:none; }
.switch-track{
  width:38px; height:22px; border-radius:99px; background:var(--panel-2);
  border:1px solid var(--line-strong); display:inline-block; position:relative; cursor:pointer;
  transition:background .25s var(--ease);
}
.switch-thumb{
  position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%;
  background:var(--muted); transition:all .25s var(--ease);
}
.switch input:checked + .switch-track{ background:var(--amber-dim); border-color:var(--amber); }
.switch input:checked + .switch-track .switch-thumb{ transform:translateX(16px); background:var(--amber); }

.cycle-dots{ display:flex; gap:7px; justify-content:center; }
.cycle-dots span{
  width:6px; height:6px; border-radius:50%; background:var(--line-strong);
  transition:background .3s var(--ease);
}
.cycle-dots span.done{ background:var(--amber); }
.cycle-dots span.active{ background:var(--teal); }

.device-caption{ font-size:12.5px; color:var(--muted-2); font-family:var(--mono); }

/* ============ MARQUEE ============ */
.marquee{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  overflow:hidden; padding:16px 0; background:var(--panel);
}
.marquee-track{
  display:flex; gap:22px; white-space:nowrap; width:max-content;
  font-family:var(--mono); font-size:12.5px; letter-spacing:0.1em; color:var(--muted-2);
  animation:scroll 32s linear infinite;
}
.marquee-track span:nth-child(odd){ color:var(--muted); }
@keyframes scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ============ SECTION SHARED ============ */
section{ padding:clamp(64px,10vw,120px) clamp(20px,5vw,32px); max-width:1240px; margin:0 auto; }
.section-head{ margin-bottom:clamp(36px,6vw,64px); max-width:640px; }
.section-head h2{ font-size:clamp(26px,4.4vw,44px); line-height:1.15; }

/* ============ FEATURES ============ */
.feature-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
}
.feature-card{
  background:var(--panel); padding:clamp(24px,4vw,34px) clamp(20px,4vw,28px); min-height:200px;
  display:flex; flex-direction:column; gap:14px;
  transition:background .3s var(--ease);
}
.feature-card:hover{ background:var(--panel-2); }
.card-large{ grid-column:span 2; }
.card-icon{
  font-size:22px; color:var(--amber); width:42px; height:42px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); border-radius:10px;
}
.feature-card h3{ font-size:19px; }
.feature-card p{ color:var(--muted); font-size:14.5px; }

@media (max-width:900px){
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .card-large{ grid-column:span 2; }
}
@media (max-width:560px){
  .feature-grid{ grid-template-columns:1fr; border-radius:14px; }
  .card-large{ grid-column:span 1; }
  .feature-card{ min-height:0; }
}

/* ============ FLOW ============ */
.flow-steps{ display:flex; flex-direction:column; }
.flow-step{
  display:grid; grid-template-columns:60px 1fr; gap:20px;
  padding:clamp(22px,4vw,32px) 0; border-top:1px solid var(--line);
  position:relative;
}
.flow-step:last-child{ border-bottom:1px solid var(--line); }
.flow-marker span{
  font-family:var(--mono); font-size:14px; color:var(--muted-2);
  display:inline-flex; align-items:center; gap:8px;
}
.flow-body h3{ font-size:clamp(18px,2.6vw,21px); margin-bottom:8px; }
.flow-body p{ color:var(--muted); max-width:520px; font-size:clamp(14px,2vw,16px); }
.flow-step:hover .flow-marker span{ color:var(--amber); }

@media (max-width:520px){
  .flow-step{ grid-template-columns:1fr; gap:8px; }
}

/* ============ TRACKING ============ */
.tracking{
  background:var(--panel); border-radius:24px; border:1px solid var(--line);
}
.tracking-inner{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,60px); align-items:center;
  padding:clamp(36px,6vw,64px) clamp(24px,6vw,56px);
}
.tracking h2{ font-size:clamp(26px,3.6vw,38px); margin-bottom:18px; }
.tracking-lede{ color:var(--muted); margin-bottom:26px; max-width:440px; font-size:clamp(14px,2vw,16px); }
.tracking-list{ display:flex; flex-direction:column; gap:12px; }
.tracking-list li{
  font-size:14.5px; color:var(--ink); padding-left:20px; position:relative;
}
.tracking-list li::before{
  content:''; position:absolute; left:0; top:8px; width:8px; height:2px; background:var(--teal);
}

.stat-panel{ background:var(--panel-2); border:1px solid var(--line-strong); border-radius:16px; padding:clamp(20px,4vw,28px); }
.stat-row{ display:flex; gap:clamp(24px,5vw,40px); margin-bottom:28px; flex-wrap:wrap; }
.stat-num{
  display:block; font-family:var(--mono); font-size:clamp(30px,5vw,38px); font-weight:600; color:var(--ink);
}
.stat-label{ font-size:12.5px; color:var(--muted); }
.stat-chart{
  display:flex; align-items:flex-end; gap:6px; height:100px; margin-bottom:10px;
}
.bar{
  flex:1; height:var(--h); background:linear-gradient(180deg, var(--amber), var(--teal));
  border-radius:4px 4px 0 0; opacity:0.85;
  transform:scaleY(0); transform-origin:bottom; transition:transform .8s var(--ease);
}
.stat-chart.in .bar{ transform:scaleY(1); }
.stat-caption{ font-family:var(--mono); font-size:11px; color:var(--muted-2); letter-spacing:0.06em; }

@media (max-width:820px){
  .tracking-inner{ grid-template-columns:1fr; padding:36px 24px; }
}

/* ============ CTA ============ */
.cta{ text-align:center; padding-top:clamp(72px,12vw,140px); padding-bottom:clamp(72px,12vw,140px); }
.cta .eyebrow{ display:flex; justify-content:center; }
.cta h2{ font-size:clamp(28px,5.5vw,54px); margin-bottom:20px; }
.cta-lede{ color:var(--muted); max-width:560px; margin:0 auto 40px; font-size:clamp(14px,2vw,16px); }
.cta-rating{
  display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap;
  font-family:var(--mono); font-size:13px; color:var(--muted); margin-bottom:32px;
}
.cta-rating-num{ color:var(--ink); font-weight:600; }
.cta-actions{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.cta-actions .btn-lg{ display:inline-flex; align-items:center; gap:10px; }
.play-icon{ font-size:11px; transform:translateY(-1px); }
.cta-note{ margin-top:18px; color:var(--muted-2); font-size:13px; font-family:var(--mono); letter-spacing:0.02em; }

/* ============ FOOTER ============ */
.footer{ border-top:1px solid var(--line); padding:32px clamp(20px,5vw,32px); }
.footer-inner{
  max-width:1240px; margin:0 auto; display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px;
}
.footer p{ color:var(--muted-2); font-size:13px; }
.footer p a{ color:var(--muted); text-decoration:underline; text-underline-offset:2px; }
.footer p a:hover{ color:var(--amber); }
.footer-play{
  font-family:var(--mono); font-size:12px; letter-spacing:0.04em; color:var(--ink);
  border:1px solid var(--line-strong); border-radius:100px; padding:8px 16px;
  transition:border-color .2s var(--ease), color .2s var(--ease);
}
.footer-play:hover{ border-color:var(--teal); color:var(--teal); }

/* ============ RESPONSIVE BREAKPOINTS ============ */

/* Tablet */
@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-copy{ order:1; text-align:center; }
  .hero-copy .hero-lede{ margin-left:auto; margin-right:auto; }
  .hero-actions{ justify-content:center; }
  .hero-device{ order:0; }
  .trust{ justify-content:center; }

  .nav-links, .nav-cta{ display:none; }
  .nav-burger{ display:flex; }
  .nav-drawer{ display:flex; }
}

@media (max-width:720px){
  .card-large{ grid-column:span 2; }
  .cta-actions .btn{ width:100%; max-width:320px; }
}

/* Mobile */
@media (max-width:600px){
  .nav-inner{ padding:14px 18px; }
  .logo-text{ font-size:13px; }

  .hero-actions{ flex-direction:column; align-items:stretch; gap:14px; }
  .hero-actions .btn{ width:100%; }
  .hero-actions .btn-text{ text-align:center; }

  .device-frame{ width:100%; padding:22px 18px 20px; }
  .device-controls{ gap:12px; }
  .ctrl-btn{ width:40px; height:40px; }
  .ctrl-primary{ width:52px; height:52px; }

  .marquee-track{ font-size:11px; gap:16px; }

  .feature-grid{ border-radius:14px; }

  .stat-row{ gap:24px; }

  .footer-inner{ flex-direction:column; text-align:center; }
}

@media (max-width:400px){
  .hero-copy h1{ font-size:38px; }
  .timer-digits{ font-size:30px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--amber); outline-offset:3px;
}
