/* ---------------------------------------------------------------------------
   PharmacyIQ — coming soon (scroll story)
   Brand: aubergine base, violet accent, purple action
--------------------------------------------------------------------------- */

/* Self-hosted fonts — the site makes no third-party requests */

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #16111b;
  --aubergine-900: #201a26;
  --aubergine-800: #2e2636;
  --aubergine-700: #3b3043;
  --purple: #6e0bd4;
  --purple-light: #a35ce6;
  --violet: #ad4fc1;
  --ink: #f4f1f7;
  --ink-dim: #b6acc2;
  --ink-faint: #80758d;
  --line: rgba(173, 79, 193, 0.16);
  --screen-bg: #17121d;
  --ok: #22c55e;
  --warn: #f99600;
  --font-display: "Satoshi", "Public Sans", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

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

html { height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(163, 92, 230, 0.35); }

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font: 700 0.85rem var(--font-display);
  transition: top 0.2s;
}

.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Ambient background
-------------------------------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(110, 11, 212, 0.2), transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(173, 79, 193, 0.1), transparent 60%),
    var(--bg);
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(173, 79, 193, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 79, 193, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb-a {
  width: 560px; height: 560px;
  left: -160px; top: -180px;
  background: radial-gradient(circle, rgba(110, 11, 212, 0.5), transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.orb-b {
  width: 460px; height: 460px;
  right: -140px; top: 22%;
  background: radial-gradient(circle, rgba(173, 79, 193, 0.38), transparent 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.orb-c {
  width: 520px; height: 520px;
  left: 28%; bottom: -260px;
  background: radial-gradient(circle, rgba(163, 92, 230, 0.28), transparent 70%);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(120px, 90px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-100px, -70px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-80px, -110px) scale(1.08); } }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Header
-------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 100% - 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  z-index: 10;
}

.logo { text-decoration: none; color: var(--ink); }

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-iq {
  font-weight: 900;
  font-size: 0.82em;
  line-height: 1;
  padding: 3px 6px 4px;
  border: 1.5px solid var(--violet);
  border-radius: 6px;
  color: #fff;
  background: rgba(173, 79, 193, 0.12);
}

.header-link {
  font: 600 0.85rem var(--font-body);
  color: var(--ink-dim);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(46, 38, 54, 0.45);
  backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s;
}

.header-link:hover { color: var(--ink); border-color: rgba(173, 79, 193, 0.45); }

/* --------------------------------------------------------------------------
   Hero
-------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  width: min(1140px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 64px;
}

.badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid rgba(163, 92, 230, 0.35);
  background: linear-gradient(180deg, rgba(110, 11, 212, 0.18), rgba(110, 11, 212, 0.06));
  padding: 9px 16px 8px 20px;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(110, 11, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-title {
  margin-top: 30px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10.5vw, 7.2rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.hero-title span { display: block; }

.grad {
  background: linear-gradient(92deg, #c89bf0 0%, var(--purple-light) 35%, var(--violet) 70%, #d77ef0 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-txt 7s ease-in-out infinite alternate;
}

@keyframes shimmer-txt { to { background-position: 100% 0; } }

.hero-sub {
  margin-top: 30px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink-dim);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  width: max-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 600 0.72rem var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--violet), transparent);
  transform-origin: top;
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Marquee
-------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 36px 0;
  border-top: 1px solid rgba(173, 79, 193, 0.08);
  border-bottom: 1px solid rgba(173, 79, 193, 0.08);
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 79, 193, 0.3);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Story — pinned phone + scrolling beats
-------------------------------------------------------------------------- */

.story {
  width: min(1140px, 100% - 48px);
  margin: 0 auto;
  scroll-margin-top: 40px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
}

.story-stage { grid-column: 2; grid-row: 1; }
.story-steps { grid-column: 1; grid-row: 1; }

.phone-wrap {
  position: sticky;
  top: calc(50vh - 320px);
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.step {
  min-height: 94vh;
  display: flex;
  align-items: center;
}

.step-inner {
  max-width: 480px;
  opacity: 0.22;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.on .step-inner { opacity: 1; transform: none; }

.step-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 18px;
}

.step h2,
.hq-head h2,
.faq-head h2,
.cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.step-sub {
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Phone
-------------------------------------------------------------------------- */

.phone {
  position: relative;
  width: 300px;
  height: 640px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #241b2e, #0d0a11 40%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(110, 11, 212, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 14px;
  background: #060409;
  z-index: 6;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--screen-bg);
}

.screen {
  position: absolute;
  inset: 0;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.screen.active { opacity: 1; transform: none; }

/* phone chrome */
.sbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 0.7rem var(--font-display);
  color: var(--ink-dim);
  padding: 2px 8px 0;
}

.sbar-r { display: flex; gap: 4px; }

.sbar-r i {
  width: 14px;
  height: 8px;
  border-radius: 2.5px;
  background: rgba(255, 255, 255, 0.28);
}

.sbar-r i:last-child { width: 18px; }

.appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 2px 16px;
}

.appbar span:first-child {
  font: 700 1.05rem var(--font-display);
  letter-spacing: -0.01em;
}

.appbar-pip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(163, 92, 230, 0.5), rgba(110, 11, 212, 0.3));
  border: 1px solid rgba(173, 79, 193, 0.4);
}

/* shimmer */
.sh {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: sh 2.4s linear infinite;
  border-radius: 6px;
}

@keyframes sh { to { background-position: -200% 0; } }

.ln { display: block; height: 8px; width: 100%; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; }
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; }
.w80 { width: 80%; } .w85 { width: 85%; }

.mrows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 0 2px; }

/* screen 01 — scan */
.scanbox {
  position: relative;
  margin: 8px 6px 0;
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.c { position: absolute; width: 24px; height: 24px; color: var(--violet); }
.c.tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 8px; }
.c.tr { top: 10px; right: 10px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 8px; }
.c.bl { bottom: 10px; left: 10px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 8px; }
.c.br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 8px; }

.barcode {
  width: 64%;
  height: 56px;
  border-radius: 3px;
  opacity: 0.85;
  background: repeating-linear-gradient(90deg,
    #cbb8dd 0 3px, transparent 3px 6px,
    #cbb8dd 6px 8px, transparent 8px 13px,
    #cbb8dd 13px 17px, transparent 17px 20px);
}

.scanline {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  box-shadow: 0 0 14px var(--purple-light);
  animation: scan 2.6s ease-in-out infinite alternate;
}

@keyframes scan { to { top: 78%; } }

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 2px 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tick {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #0c2916;
  background: var(--ok);
}

.tick svg { width: 13px; height: 13px; }

.toast-tx { flex: 1; display: flex; flex-direction: column; gap: 7px; }

.toast-tx strong, .row-tx strong, .branch strong, .audit-tx strong {
  font: 600 0.82rem var(--font-body);
  letter-spacing: 0.01em;
}

/* screen 02 — stock */
.search { height: 34px; border-radius: 17px; margin: 0 2px 14px; }

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
  margin: 0 2px 9px;
}

.row-ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(163, 92, 230, 0.16);
  border: 1px solid rgba(173, 79, 193, 0.3);
}

.row-tx { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.chip {
  flex: none;
  font: 700 0.66rem var(--font-display);
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
}

.chip.ok { color: #7ee2a0; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.chip.warn { color: #ffc06b; background: rgba(249, 150, 0, 0.12); border: 1px solid rgba(249, 150, 0, 0.32); }
.chip.sh-chip { width: 44px; height: 20px; padding: 0; }

/* screen 03 — network */
.branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
  margin: 0 2px 9px;
}

.branch.dim .sh { flex: 1; max-width: 42%; }

.meter {
  flex: none;
  width: 86px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple-light), var(--violet));
}

.meter.low i { background: linear-gradient(90deg, #ff8a73, var(--warn)); }

.transfer {
  margin: 14px 2px 0;
  padding: 15px 14px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(110, 11, 212, 0.2), rgba(110, 11, 212, 0.05));
  border: 1px solid rgba(163, 92, 230, 0.45);
  box-shadow: 0 0 26px rgba(110, 11, 212, 0.22);
}

.transfer-route {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-light);
}

.transfer-route strong { font: 700 0.84rem var(--font-display); color: var(--ink); }

.transfer-route svg { width: 22px; height: 11px; }

.transfer-sub {
  display: block;
  margin-top: 7px;
  font: 500 0.74rem var(--font-body);
  color: var(--ink-dim);
}

/* screen 04 — audit */
.audit { position: relative; margin: 6px 4px 0; padding-left: 22px; }

.audit::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 14px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(173, 79, 193, 0.4), rgba(173, 79, 193, 0.08));
}

.audit-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 13px 0;
}

.audit-dot {
  position: absolute;
  left: -22px;
  top: 16px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--aubergine-800);
  border: 1.5px solid rgba(173, 79, 193, 0.5);
}

.audit-dot.ok-dot { background: rgba(34, 197, 94, 0.25); border-color: var(--ok); }

.audit-dot.lock-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  left: -25px;
  top: 12px;
  color: var(--purple-light);
  background: rgba(110, 11, 212, 0.25);
  border-color: var(--purple-light);
}

.audit-dot.lock-dot svg { width: 11px; height: 11px; }

.audit-tx { flex: 1; display: flex; flex-direction: column; gap: 7px; }

.mono {
  font: 600 0.72rem ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   HQ — desktop mockup
-------------------------------------------------------------------------- */

.hq {
  width: min(1000px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) 0 40px;
  text-align: center;
}

.hq-head { max-width: 640px; margin: 0 auto 54px; }
.hq-head .step-label { margin-bottom: 16px; }
.hq-head .step-sub { margin-top: 14px; }

.browser {
  border-radius: 18px;
  overflow: hidden;
  background: #1a141f;
  border: 1px solid rgba(173, 79, 193, 0.22);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.55), 0 0 80px rgba(110, 11, 212, 0.16);
  text-align: left;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }

.burl {
  height: 22px;
  border-radius: 11px;
  flex: 0 1 320px;
  margin-left: 14px;
}

.browser-body { display: flex; min-height: 360px; }

.bside {
  flex: 0 0 168px;
  padding: 20px 18px;
  background: var(--aubergine-900);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bs-logo {
  font: 900 0.8rem var(--font-display);
  color: #fff;
  border: 1.5px solid var(--violet);
  border-radius: 6px;
  padding: 3px 6px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.bs-ln { height: 9px; }

.bmain { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 18px; }

.bkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.bkpi {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bkpi-ic { width: 26px; height: 26px; border-radius: 8px; margin-bottom: 3px; }
.bkpi-ic.v { background: rgba(163, 92, 230, 0.22); border: 1px solid rgba(173, 79, 193, 0.4); }
.bkpi-ic.g { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.32); }
.bkpi-ic.a { background: rgba(249, 150, 0, 0.13); border: 1px solid rgba(249, 150, 0, 0.32); }

.bchart {
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0 0;
}

.bchart svg { display: block; width: 100%; height: 150px; }

.btable { display: flex; flex-direction: column; gap: 11px; padding: 2px 4px 4px; }
.btable .ln { height: 10px; }

/* tilt reveal */
.rio-tilt {
  opacity: 0;
  transform: perspective(1200px) rotateX(10deg) translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.65, 0.25, 1);
  will-change: transform;
}

.rio-tilt.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   FAQ
-------------------------------------------------------------------------- */

.faq {
  width: min(720px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(80px, 13vh, 140px) 0 0;
}

.faq-head {
  text-align: center;
  margin-bottom: 42px;
}

.faq-head .step-label { margin-bottom: 14px; }

.faq-list details {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 38, 54, 0.45), rgba(32, 26, 38, 0.45));
  backdrop-filter: blur(8px);
  transition: border-color 0.25s;
}

.faq-list details[open] { border-color: rgba(173, 79, 193, 0.4); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font: 700 1.02rem var(--font-display);
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-x {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
}

.faq-x::before,
.faq-x::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--purple-light);
  border-radius: 2px;
}

.faq-x::before { width: 14px; height: 2px; }
.faq-x::after { width: 2px; height: 14px; }

.faq-list details[open] .faq-x { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 22px 20px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Early access
-------------------------------------------------------------------------- */

.cta {
  width: min(720px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(90px, 16vh, 170px) 0;
  text-align: center;
  scroll-margin-top: 40px;
}

.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .badge { align-self: center; }
.cta h2 { margin-top: 24px; }
.cta .step-sub { max-width: 460px; }

.notify { margin-top: 36px; width: min(520px, 100%); }

.notify-field {
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 16px;
  background: rgba(32, 26, 38, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.notify-field:focus-within {
  border-color: rgba(163, 92, 230, 0.6);
  box-shadow: 0 0 0 4px rgba(110, 11, 212, 0.15), 0 8px 32px rgba(110, 11, 212, 0.2);
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem var(--font-body);
  padding: 12px 14px;
}

.notify input::placeholder { color: var(--ink-faint); }

.notify button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: 700 0.92rem var(--font-display);
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, #8a2be0 60%, var(--violet) 130%);
  padding: 12px 20px;
  border-radius: 11px;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(110, 11, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s, box-shadow 0.25s, filter 0.2s;
}

.notify button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(110, 11, 212, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.notify button:active { transform: translateY(0); }

.btn-arrow { width: 15px; height: 15px; transition: transform 0.2s; }
.notify button:hover .btn-arrow { transform: translateX(3px); }

.notify-msg {
  min-height: 1.3em;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.notify-msg.ok { color: #7ee2a0; }
.notify-msg.err { color: #ff8a73; }

.notify.done .notify-field { display: none; }
.notify.done .notify-msg { font-size: 1rem; }

/* --------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(173, 79, 193, 0.12);
  background: linear-gradient(180deg, rgba(32, 26, 38, 0.35), rgba(22, 17, 27, 0.9));
  backdrop-filter: blur(8px);
}

.foot-grid {
  width: min(1140px, 100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 54px 0 44px;
}

.foot-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.foot-h {
  font: 700 0.74rem var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }

.foot-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.foot-nav a:hover { color: var(--ink); }

.foot-status { display: flex; flex-direction: column; align-items: flex-start; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(46, 38, 54, 0.5);
  padding: 8px 14px;
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-light);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 92, 230, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(163, 92, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 92, 230, 0); }
}

.foot-dim { margin-top: 14px; font-size: 0.82rem; color: var(--ink-faint); }

.foot-bottom {
  width: min(1140px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.foot-bottom .foot-dim { margin: 0; }

/* --------------------------------------------------------------------------
   Reveal animations
-------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.8s cubic-bezier(0.2, 0.65, 0.25, 1) forwards;
  animation-delay: calc(var(--d, 0) * 130ms);
}

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.rio {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.rio.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */

@media (max-width: 880px) {
  .story-grid { display: block; }

  .story-stage {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 58vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
  }

  .phone-wrap { position: static; padding: 0; }

  .phone {
    width: 226px;
    height: 482px;
    border-radius: 36px;
    padding: 8px;
  }

  .phone-screen { border-radius: 29px; }
  .phone-island { top: 17px; width: 66px; height: 19px; }
  .screen { padding: 10px 12px 14px; }
  .appbar { margin-top: 20px; }

  .step {
    position: relative;
    z-index: 1;
    min-height: 96vh;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 9vh;
  }

  .step-inner {
    text-align: center;
    padding: 24px 22px;
    border-radius: 20px;
    background: rgba(22, 17, 27, 0.74);
    border: 1px solid rgba(173, 79, 193, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  }

  .browser-body { min-height: 0; }
  .bside { flex-basis: 116px; padding: 14px 12px; }
  .bmain { padding: 14px; gap: 12px; }
  .bkpis { gap: 9px; }
  .bchart svg { height: 100px; }

  .foot-grid { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 36px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .header-link { display: none; }
  .hero { padding-top: 110px; }

  .notify-field { flex-direction: column; padding: 10px; }
  .notify button { justify-content: center; padding: 14px 20px; }
  .notify input { padding: 10px 8px 6px; }
}

/* --------------------------------------------------------------------------
   Subpages — contact + legal
-------------------------------------------------------------------------- */

.page {
  width: min(760px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(130px, 20vh, 180px) 0 90px;
}

.page h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-top: 18px;
  text-wrap: balance;
}

.page-meta {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.prose { margin-top: 48px; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
}

.prose h2 .sec-no {
  color: var(--purple-light);
  font-size: 0.82em;
  margin-right: 10px;
}

.prose p,
.prose li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-dim);
}

.prose p { margin-bottom: 14px; }

.prose ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose li { margin-bottom: 6px; }

.prose a { color: var(--purple-light); text-decoration-color: rgba(163, 92, 230, 0.4); }
.prose a:hover { color: #c89bf0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.contact-card {
  display: block;
  text-decoration: none;
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(46, 38, 54, 0.55), rgba(32, 26, 38, 0.55));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

a.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(173, 79, 193, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(110, 11, 212, 0.12);
}

.contact-card .foot-h { margin-bottom: 10px; }

.contact-card strong {
  font: 700 1.06rem var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.contact-card p {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

.page-cta {
  margin-top: 56px;
  padding: 30px 28px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(150deg, rgba(110, 11, 212, 0.18), rgba(110, 11, 212, 0.05));
  border: 1px solid rgba(163, 92, 230, 0.35);
}

.page-cta p {
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font: 700 0.92rem var(--font-display);
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, #8a2be0 60%, var(--violet) 130%);
  padding: 13px 22px;
  border-radius: 11px;
  box-shadow: 0 6px 22px rgba(110, 11, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s, filter 0.2s;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reduced motion
-------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .grad, .pulse-dot, .scroll-cue i, .marquee-track, .scanline, .sh { animation: none; }
  .reveal { animation-duration: 0.01ms; animation-delay: 0ms; }
  #particles { display: none; }
  .step-inner, .screen, .rio, .rio-tilt, .notify button, .btn-arrow { transition: none; }
  .rio, .rio-tilt { opacity: 1; transform: none; }
}
