/* VibraLens — precision-instrument design system */
:root {
  color-scheme: dark;
  --ink: #07090d;
  --bg: #0a0d12;
  --surface: #10141c;
  --surface-2: #151b26;
  --line: #232b3a;
  --line-soft: #1a2130;
  --text: #eef2f7;
  --muted: #97a3b4;
  --faint: #5f6b7d;
  --cyan: #2bd9ef;
  --green: #55e388;
  --yellow: #ffd94a;
  --amber: #ffb02e;
  --red: #e5484d;
  --spectrum: linear-gradient(90deg,
    #0b2ea8 0%, #0e6fd4 8%, #19b7e8 20%, #2be3d4 33%,
    #43e88f 46%, #7ded52 58%, #d3ef3a 70%, #ffd94a 80%,
    #ff9b2e 90%, #f4552a 97%, #b31217 100%);
  --font-display: "Chakra Petch", "Avenir Next Condensed", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* fine grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(151,163,180,.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(151,163,180,.025) 0 1px, transparent 1px 96px);
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--green); }
::selection { background: rgba(43,217,239,.28); }

.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }
.wrap-narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,18,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--text); font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: .04em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 14px; color: var(--text) !important;
  font-family: var(--font-display); font-size: 13.5px !important;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav-cta:hover { border-color: var(--cyan); color: var(--cyan) !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- spectrum ruler motif ---------- */
.spectrum-bar { height: 4px; background: var(--spectrum); }
.ruler {
  position: relative;
  height: 46px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24));
  overflow: hidden;
}
.ruler .spectrum-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; transform: translateY(-50%);
  background: var(--spectrum);
  border-radius: 3px;
  opacity: .9;
}
.ruler .tick {
  position: absolute; top: 4px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--faint); letter-spacing: .04em;
  transform: translateX(-50%);
}
.ruler .tick-b { top: auto; bottom: 4px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; right: -180px; top: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(43,217,239,.13), rgba(85,227,136,.05) 55%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 56px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--cyan); letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--spectrum); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 700; line-height: 1.04;
  letter-spacing: .005em; margin: 0 0 20px;
}
h1 .hz { color: var(--yellow); }
.lede { font-size: 18.5px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.lede strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.appstore-badge { display: inline-block; transition: transform .15s ease; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge svg { display: block; height: 52px; width: auto; }
.price-note {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  line-height: 1.5;
}
.price-note b { color: var(--text); font-weight: 600; }

.hero-facts {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.fact { border-left: 2px solid var(--line); padding-left: 14px; }
.fact b {
  display: block; font-family: var(--font-mono); font-size: 19px;
  font-weight: 600; color: var(--text); letter-spacing: .01em;
}
.fact span { font-size: 12.5px; color: var(--faint); letter-spacing: .03em; }

/* phone mockup */
.phone-col { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 42px;
  border: 1px solid #2c3547;
  background: #05070b;
  padding: 11px;
  box-shadow:
    0 24px 70px rgba(0,0,0,.55),
    0 0 0 6px rgba(21,27,38,.55),
    0 0 90px rgba(43,217,239,.07);
}
.phone::before {
  content: "";
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px;
  background: #05070b; z-index: 3;
  border: 1px solid #10141c;
}
.phone img { display: block; width: 100%; border-radius: 32px; }
.readout {
  position: absolute; left: -46px; bottom: 88px; z-index: 4;
  background: rgba(7,9,13,.92);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
}
.readout .val { font-size: 24px; font-weight: 600; color: var(--yellow); line-height: 1.1; }
.readout .lbl { font-size: 10.5px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 400px) { .readout { left: -8px; } }

/* ---------- sections ---------- */
section { padding: 78px 0; }
.section-line { border-top: 1px solid var(--line-soft); }
.kicker {
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700; line-height: 1.12; letter-spacing: .005em;
  margin: 0 0 14px;
}
.section-intro { color: var(--muted); max-width: 42em; margin: 0 0 44px; font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 26px 24px 24px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--spectrum);
  opacity: .85;
}
.step-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
  letter-spacing: .16em;
}
.step h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin: 8px 0 8px; letter-spacing: .01em;
}
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.step p b { color: var(--text); font-weight: 600; }

/* features */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden;
}
@media (max-width: 860px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--bg);
  padding: 26px 24px;
}
.feat:hover { background: var(--surface); }
.feat .f-val {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  color: var(--cyan); letter-spacing: .02em; display: block; margin-bottom: 6px;
}
.feat h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 600; margin: 0 0 6px; }
.feat p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* honest section */
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .honest-grid { grid-template-columns: 1fr; } }
.honest-card {
  border-radius: 14px; padding: 28px 26px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.honest-card.reads { border-top: 3px solid var(--green); }
.honest-card.limits { border-top: 3px solid var(--amber); }
.honest-card h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  margin: 0 0 14px; letter-spacing: .01em;
}
.honest-card ul { margin: 0; padding: 0; list-style: none; }
.honest-card li {
  padding: 9px 0 9px 26px; position: relative;
  color: var(--muted); font-size: 15.5px;
  border-top: 1px solid var(--line-soft);
}
.honest-card li b { color: var(--text); font-weight: 600; }
.honest-card li::before {
  position: absolute; left: 0; top: 9px;
  font-family: var(--font-mono); font-weight: 600;
}
.reads li::before { content: "+"; color: var(--green); }
.limits li::before { content: "−"; color: var(--amber); }
.safety-note {
  margin-top: 22px;
  border: 1px solid rgba(255,176,46,.35);
  background: rgba(255,176,46,.06);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--muted); font-size: 15px;
}
.safety-note b { color: var(--amber); }

/* shop image split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-img {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.split-img img { display: block; width: 100%; }

/* converter */
.conv {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 30px 28px;
}
.conv-io {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px;
  align-items: center; margin: 20px 0 8px;
}
@media (max-width: 560px) { .conv-io { grid-template-columns: 1fr; } .conv-eq { transform: rotate(90deg); } }
.conv-field label {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--faint); letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 8px;
}
.conv-field input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-mono); font-size: 26px; font-weight: 500;
  padding: 12px 16px;
  outline: none;
}
.conv-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(43,217,239,.15); }
.conv-eq {
  font-family: var(--font-mono); font-size: 20px; color: var(--faint);
  text-align: center;
}
.conv-note { font-size: 14px; color: var(--faint); margin: 14px 0 0; }
.conv-note b { color: var(--muted); }
.conv-band { margin-top: 18px; }
.conv-band .band-track {
  position: relative; height: 10px; border-radius: 5px;
  background: var(--spectrum); opacity: .9;
}
.conv-band .band-marker {
  position: absolute; top: -5px; width: 2.5px; height: 20px;
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,255,255,.7);
  transition: left .18s ease;
}
.conv-band .band-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
  margin-top: 7px;
}
.band-status {
  margin-top: 12px; font-family: var(--font-mono); font-size: 13px;
}
.band-status.ok { color: var(--green); }
.band-status.out { color: var(--amber); }

/* privacy strip */
.privacy-strip {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  padding: 40px 36px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
}
@media (max-width: 820px) { .privacy-strip { grid-template-columns: 1fr; } }
.privacy-strip h2 { margin-bottom: 10px; }
.privacy-strip p { color: var(--muted); margin: 0; }
.privacy-badges { display: grid; gap: 10px; }
.p-badge {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--bg);
  padding: 11px 16px;
}
.p-badge::before { content: "✓"; color: var(--green); font-weight: 700; }

/* support / doc pages */
.doc-header { padding: 64px 0 8px; }
.doc-header h1 { font-size: clamp(32px, 4.5vw, 44px); }
.doc-header .effective-date { color: var(--faint); font-family: var(--font-mono); font-size: 13px; }
.doc main section, .doc-body section { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.doc-body h2 { font-size: 21px; margin-bottom: 10px; }
.doc-body p, .doc-body li { color: var(--muted); font-size: 16px; }
.doc-body p strong, .doc-body li strong, .doc-body p b { color: var(--text); }
.doc-body ul { padding-left: 22px; margin: 12px 0; }
.callout {
  border-left: 4px solid var(--amber);
  padding: 6px 0 6px 18px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }

/* footer */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 56px;
  margin-top: 20px;
}
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; }
.foot-brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-meta { width: 100%; margin-top: 18px; color: var(--faint); font-size: 12.5px; font-family: var(--font-mono); }

/* reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
