/* ============================================================
   Steady — Marketing Site
   "Nocturnal biometric instrument" · emerald-on-black
   Real product screenshots in device frames.
   ============================================================ */

:root {
  --bg:        #030806;
  --bg-2:      #06110d;
  --fg:        #f4fff8;
  --muted:     #93a69b;
  --soft:      #c4d4ca;
  --line:      rgba(181, 255, 210, 0.16);
  --line-2:    rgba(181, 255, 210, 0.30);
  --glass:     rgba(7, 24, 18, 0.72);
  --emerald:   #34c759;
  --emerald-d: #1f9b41;
  --mint:      #b8ffcf;
  --cyan:      #5fe7ff;
  --amber:     #ffd166;
  --violet:    #9f8cff;
  --panel:     #07120e;
  --radius:    10px;
  --maxw:      1240px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Bricolage Grotesque", "Aptos", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(52, 199, 89, 0.28); color: #fff; }

.shell { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }

/* ---- Ambient field ---- */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(52, 199, 89, 0.20), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(95, 231, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 50% 120%, rgba(159, 140, 255, 0.10), transparent 38rem),
    linear-gradient(180deg, #030806 0%, #06110d 46%, #020403 100%);
}
.field::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184, 255, 207, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 207, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 22%, rgba(0,0,0,0.9), transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, rgba(0,0,0,0.9), transparent 72%);
}

/* ---- Type ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--mint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 12px var(--emerald);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(3.1rem, 6.2vw, 6.2rem); line-height: 0.96; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 0.95; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.08; }
.grad { background: linear-gradient(120deg, var(--mint) 0%, var(--emerald) 52%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { color: var(--soft); font-size: clamp(1.05rem, 1.35vw, 1.28rem); line-height: 1.65; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius); padding: 13px 20px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--fg); white-space: nowrap;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--mint));
  color: #001f0a; border-color: transparent;
  box-shadow: 0 18px 50px rgba(52, 199, 89, 0.26);
}
.btn-primary:hover { box-shadow: 0 22px 64px rgba(52, 199, 89, 0.42); }
.btn-ghost { color: var(--mint); }

/* ---- Nav ---- */
.nav-wrap { position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 8, 6, 0.6); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.05rem; color: var(--fg); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 16px rgba(255,120,120,0.3); }
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-right .login { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-right .login:hover { color: var(--fg); }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   DEVICE FRAMES (real screenshots)
   ============================================================ */
.device { position: relative; border-radius: 44px; padding: 9px;
  background: linear-gradient(150deg, #1b2723, #05080699 55%, #1c2b26);
  border: 1px solid rgba(215, 255, 229, 0.18);
  box-shadow: 0 44px 100px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05); }
.device img { width: 100%; height: auto; border-radius: 36px; }
.device .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 19px; background: #05080a; border-radius: 99px; z-index: 3; }

.watch-frame { position: relative; border-radius: 52px; padding: 10px;
  background: linear-gradient(150deg, #222826, #050606 58%, #20302a);
  border: 1px solid rgba(215, 255, 229, 0.22);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06); }
.watch-frame img { width: 100%; height: auto; border-radius: 42px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(48px, 7vw, 88px) 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.signal-rail { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-rail span { border: 1px solid var(--line); border-radius: 8px; color: #adc4b6; white-space: nowrap;
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; padding: 7px 11px; background: rgba(255,255,255,0.025); }

.stage { position: relative; min-height: 660px; display: flex; align-items: center; justify-content: center; perspective: 1500px; }
.stage-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,199,89,0.22), transparent 65%); filter: blur(20px); }
.hero-phone { position: relative; width: min(310px, 44vw); z-index: 1;
  transform: rotateY(-17deg) rotateZ(5deg) translateX(34px); transition: transform .3s var(--ease); }
.hero-watch { position: absolute; left: -4%; bottom: 7%; width: min(150px, 21vw); z-index: 2;
  transform: rotateZ(-8deg); }

/* ---- Trust band ---- */
.trust { padding: 26px 0 8px; }
.trust-inner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0;
  display: flex; align-items: center; gap: clamp(18px, 4vw, 46px); flex-wrap: wrap; justify-content: center; }
.trust-label { font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); }
.trust-logo { font-size: 0.96rem; font-weight: 600; color: #cfe3d7; opacity: 0.78; }

/* ---- Metric strip ---- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: rgba(184,255,207,0.1); margin-top: 30px; }
.metric { min-height: 132px; padding: 26px; background: rgba(2, 8, 5, 0.85);
  display: flex; flex-direction: column; justify-content: center; }
.metric strong { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 600; line-height: 0.9; color: var(--mint); }
.metric span { color: var(--muted); margin-top: 12px; font-size: 0.96rem; }

/* ---- Section common ---- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 880px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lede { max-width: 680px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Energy states ---- */
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.state { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.022); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.state:hover { border-color: var(--line-2); transform: translateY(-4px); }
.state .dot { width: 11px; height: 11px; border-radius: 50%; margin-bottom: 16px; }
.state h3 { font-size: 1.25rem; margin-bottom: 8px; }
.state p { margin: 0; color: #acc3b6; font-size: 0.92rem; line-height: 1.55; }
.state .mono { font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 14px; display: block; }

/* ---- Feature grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 28px; min-height: 320px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 28px 60px rgba(0,0,0,0.4); }
.feature .ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; }
.feature .kicker { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); margin-bottom: 14px; }
.feature h3 { margin-bottom: 14px; }
.feature p { color: #bad1c3; line-height: 1.65; margin: 0; font-size: 0.98rem; }

/* ---- Product tour (real screenshots) ---- */
.tour-rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; margin: 0 calc(-1 * clamp(20px, 4vw, 64px));
  padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 64px);
  scrollbar-width: none; }
.tour-rail::-webkit-scrollbar { display: none; }
.tour-item { scroll-snap-align: center; flex: 0 0 auto; width: min(264px, 70vw);
  display: flex; flex-direction: column; gap: 18px; }
.tour-item .device { transition: transform .35s var(--ease); }
.tour-item:hover .device { transform: translateY(-8px); }
.tour-cap .n { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--emerald);
  text-transform: uppercase; letter-spacing: 0.06em; }
.tour-cap h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.tour-cap p { margin: 0; color: #9fb6a9; font-size: 0.9rem; line-height: 1.55; }
.tour-hint { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* ---- Radar split (real Health screenshot) ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 80px); align-items: center; }
.split-device { justify-self: center; position: relative; width: min(320px, 78vw); }
.split-device .glow { position: absolute; inset: -8% -8% -8% -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,199,89,0.22), transparent 65%); filter: blur(24px); z-index: 0; }
.split-device .device { position: relative; z-index: 1; }
.radar-list { display: grid; gap: 8px; margin-top: 26px; }
.radar-list span { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px;
  color: #d7ffe5; padding: 14px 16px; background: rgba(0,0,0,0.24); font-size: 0.95rem; }
.radar-list span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald); flex-shrink: 0; }
.radar-list span.amber::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ---- Science band ---- */
.science { display: grid; grid-template-columns: 0.84fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.matrix div { min-height: 138px; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px;
  background: linear-gradient(135deg, rgba(52,199,89,0.10), transparent), rgba(255,255,255,0.03);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .25s var(--ease); }
.matrix div:hover { border-color: var(--line-2); }
.matrix .sig { font-size: 1.3rem; }
.matrix .lab { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }

/* ---- Quote band ---- */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 1000px; font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.quote .by { display: block; margin-top: 28px; font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* ---- Privacy ---- */
.privacy { max-width: 1020px; margin: 0 auto; }
.privacy-panel { border-radius: var(--radius); border: 1px solid var(--line);
  padding: clamp(34px, 6vw, 72px);
  background: linear-gradient(135deg, rgba(52,199,89,0.16), rgba(95,231,255,0.06)), rgba(255,255,255,0.03); }
.privacy-panel .lede { max-width: 720px; }

/* ---- Final CTA ---- */
.final { text-align: center; padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.final h2 { max-width: 980px; margin: 0 auto 28px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--fg); }
.footer .copy { color: var(--muted); font-size: 0.82rem; font-family: "IBM Plex Mono", monospace; }

/* ---- App Store badge ---- */
.btn-appstore { display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 17px; border-radius: 13px;
  background: #000; border: 1px solid rgba(255,255,255,0.28); color: #fff; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.btn-appstore:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.55); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.btn-appstore svg { width: 23px; height: 23px; flex-shrink: 0; }
.btn-appstore .as-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-appstore .as-sm { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.02em; opacity: 0.92; }
.btn-appstore .as-lg { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 3px; }
.btn-appstore.sm { padding: 8px 15px 8px 13px; border-radius: 11px; }
.btn-appstore.sm svg { width: 19px; height: 19px; }
.btn-appstore.sm .as-sm { font-size: 0.55rem; }
.btn-appstore.sm .as-lg { font-size: 0.92rem; margin-top: 2px; }

/* ---- Apple Watch band ---- */
.watch-band { position: relative; }
.watch-band-glow { position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 520px; height: 360px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(52,199,89,0.14), transparent 68%); filter: blur(26px); }
.watch-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 52px); align-items: start; margin-top: 8px; }
.watch-card { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.watch-card .watch-frame { width: min(208px, 58vw); transition: transform .35s var(--ease); }
.watch-card:hover .watch-frame { transform: translateY(-7px); }
.watch-card .wc-n { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--emerald);
  text-transform: uppercase; letter-spacing: 0.06em; }
.watch-card h3 { font-size: 1.15rem; margin: 4px 0 0; text-wrap: balance; }
.watch-card p { margin: 0; color: #9fb6a9; font-size: 0.9rem; line-height: 1.55; max-width: 250px; }
.watch-feats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: clamp(36px, 5vw, 56px); }
.watch-feat { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 99px; padding: 10px 18px; background: rgba(255,255,255,0.025); font-size: 0.9rem; color: #d7ffe5;
  transition: border-color .25s var(--ease); }
.watch-feat:hover { border-color: var(--line-2); }
.watch-feat svg { width: 16px; height: 16px; color: var(--emerald); flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-grid, .split, .science { grid-template-columns: 1fr; }
  .split-device { order: -1; }
  .features, .metrics, .states { grid-template-columns: 1fr 1fr; }
  .watch-row { grid-template-columns: 1fr; gap: 44px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .stage { min-height: 560px; margin-top: 8px; }
}
@media (max-width: 600px) {
  .nav-right .login { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .signal-rail { display: none; }
  .features, .metrics, .states { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr 1fr; }
  .stage { min-height: 480px; }
  .hero-phone { width: 250px; transform: rotateY(-12deg) rotateZ(4deg) translateX(20px); }
  .hero-watch { width: 116px; left: 0; bottom: 10%; }
}
