:root {
  --background: #1c2837;
  --surface: #243142;
  --field: #2a3748;
  --outline: #465567;
  --control: #6a819c;
  --gold: #d3a65b;
  --gold-bright: #e4b966;
  --ivory: #f1ede6;
  --muted: #94a2b6;
  --success: #79c58b;
  --error: #e88b8b;
  --display: "Rozha One", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --utility: "Martian Mono", ui-monospace, monospace;
  --enter: cubic-bezier(.22, 1, .36, 1);
  --move: cubic-bezier(.25, 1, .5, 1);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ivory);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; }
img, svg { display: block; }
img { height: auto; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--enter);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

.ambient-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  z-index: -1;
  width: min(1200px, 100vw);
  aspect-ratio: 1.6;
  pointer-events: none;
  background: radial-gradient(circle, rgba(211,166,91,.15), transparent 65%);
  transform: translateX(-50%);
}

.invite-banner {
  position: relative;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(211,166,91,.3);
  background: #202d3d;
  color: var(--muted);
}
.invite-banner.is-visible { display: flex; }
.invite-banner img { border-radius: 10px; }
.invite-banner p { margin: 0; }
.invite-banner strong { color: var(--ivory); }
.invite-banner a { color: var(--gold); font-weight: 700; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid transparent;
  background: rgba(28,40,55,.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(70,85,103,.7); background: rgba(28,40,55,.95); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { border-radius: 12px; }
.brand span { font-family: var(--display); font-size: 24px; line-height: 1; }
.brand em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a, .site-footer nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 140ms var(--enter), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.button:active { transform: scale(.975); }
.button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.button-primary { background: var(--gold); color: var(--background); }
.button-primary svg { fill: currentColor; }
.button-primary .google-play-icon { fill: none; }
.button-secondary, .button-outline { border-color: var(--control); background: rgba(42,55,72,.66); color: var(--ivory); }
.button-secondary svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.button-small { min-height: 42px; padding: 9px 15px; border-radius: 14px; font-size: 14px; }

.hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding-block: 62px 90px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(121,197,139,.11); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7.8vw, 108px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .87;
}
h1 span { color: var(--gold); }
.hero-lede { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-actions .button-primary span { display: grid; text-align: left; font-size: 17px; }
.hero-actions .button-primary small { font-size: 9px; font-weight: 500; letter-spacing: .03em; }
.platform-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.platform-note span { margin-inline: 6px; color: var(--outline); }
.platform-note a { color: var(--gold); text-underline-offset: 3px; }

.hero-visual { position: relative; min-height: 610px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 3%;
  z-index: -3;
  border: 1px solid rgba(106,129,156,.25);
  border-radius: 50% 50% 46% 54% / 44% 55% 45% 56%;
  background: radial-gradient(circle at 48% 40%, rgba(211,166,91,.1), rgba(36,49,66,.55) 45%, rgba(36,49,66,.08) 72%);
  transform: rotate(-7deg);
}
.phone {
  position: relative;
  overflow: hidden;
  border: 7px solid #101923;
  border-radius: 36px;
  background: var(--background);
  box-shadow: 0 36px 74px rgba(6,12,19,.45), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone img { width: 100%; height: auto; }
.phone-speaker {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 29%;
  aspect-ratio: 3.45;
  border-radius: 999px;
  background: #05090e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  pointer-events: none;
  transform: translateX(-50%);
}
.hero-phone { width: min(300px, 64vw); z-index: 2; transform: rotate(2deg); }
.steam-lines { position: absolute; top: -3%; left: 18%; z-index: 4; width: 62%; height: 44%; overflow: visible; pointer-events: none; }
.steam-lines path {
  fill: none;
  stroke: rgba(241,237,230,.36);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 32 24;
  opacity: 0;
  animation: steam-rise 4.8s linear infinite paused;
}
.steam-lines path:nth-child(2) { animation-delay: -1.6s; }
.steam-lines path:nth-child(3) { animation-delay: -3.2s; }
.motion-active .steam-lines path { animation-play-state: running; }
.summon-rings { position: absolute; right: 6%; top: 22%; z-index: -1; width: 130px; aspect-ratio: 1; }
.summon-rings i { position: absolute; inset: 45%; border: 1px solid rgba(211,166,91,.6); border-radius: 50%; opacity: 0; animation: signal 3.2s var(--move) infinite paused; }
.summon-rings i:nth-child(2) { animation-delay: 1s; }
.summon-rings i:nth-child(3) { animation-delay: 2s; }
.motion-active .summon-rings i { animation-play-state: running; }
.hero-mark { position: absolute; right: 1%; top: 12%; z-index: 3; width: 88px; border-radius: 26px; box-shadow: 0 16px 36px rgba(5,11,17,.34); }
.floating-note {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(106,129,156,.58);
  border-radius: 16px;
  background: rgba(42,55,72,.88);
  box-shadow: 0 18px 36px rgba(7,13,20,.25);
  backdrop-filter: blur(12px);
}
.floating-note b, .floating-note small { display: block; }
.floating-note b { font-size: 13px; }
.floating-note small { color: var(--muted); font-size: 10px; }
.note-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(211,166,91,.13); }
.note-top { left: 0; top: 25%; transform: rotate(-3deg); }
.note-bottom { right: -5%; bottom: 17%; transform: rotate(2deg); }
.avatar-stack { display: flex; width: 62px; }
.avatar-stack i { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -9px; border: 2px solid var(--field); border-radius: 50%; background: var(--outline); color: var(--ivory); font-size: 10px; font-style: normal; }
.avatar-stack i:nth-child(2) { background: #5d6d82; }
.avatar-stack i:nth-child(3) { background: var(--gold); color: var(--background); }

.section { padding-block: clamp(78px, 10vw, 132px); }
.section-heading { max-width: 700px; }
.section-heading h2, .android-card h2, .closing-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: .98;
}
.section-heading > p:last-child { max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 54px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step-grid li {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(42,55,72,.96), rgba(36,49,66,.78));
}
.step-number { position: absolute; top: 24px; right: 24px; color: var(--control); font-family: var(--utility); font-size: 11px; }
.icon-tile { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(211,166,91,.27); border-radius: 15px; background: rgba(211,166,91,.1); color: var(--gold); }
.icon-tile svg, .feature-grid svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-grid h3 { margin: 46px 0 10px; font-size: 22px; }
.step-grid p { margin: 0; color: var(--muted); }

.showcase { overflow: hidden; border-block: 1px solid rgba(70,85,103,.55); background: #192432; }
.showcase-heading { text-align: center; margin-inline: auto; }
.showcase-heading .eyebrow { justify-content: center; }
.showcase-heading > p:last-child { margin-inline: auto; }
.phone-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 20px; margin-top: 66px; }
.gallery-card {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  padding: 26px 26px 0;
  border: 1px solid var(--outline);
  border-radius: 28px;
  background: var(--surface);
}
.gallery-card:nth-child(2) { transform: translateY(-28px); background: linear-gradient(180deg, #2e3b4c, var(--surface)); }
.gallery-copy { position: relative; z-index: 2; min-height: 126px; }
.gallery-copy span { color: var(--gold); font-family: var(--utility); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.gallery-copy h3 { margin: 9px 0 0; font-size: 22px; line-height: 1.25; }
.gallery-card .phone { width: min(260px, 90%); margin-inline: auto; border-radius: 32px 32px 0 0; border-bottom: 0; transition: transform 240ms var(--move); }

.features .section-heading { max-width: 780px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.feature-grid article { min-height: 205px; padding: 26px; border-top: 1px solid var(--outline); background: rgba(36,49,66,.45); }
.feature-grid svg { color: var(--gold); }
.feature-grid h3 { margin: 26px 0 8px; font-size: 19px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 15px; }

.android-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--outline);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--surface), #2a394c);
}
.android-card::after { content: ""; position: absolute; right: -180px; bottom: -260px; width: 520px; aspect-ratio: 1; border: 1px solid rgba(211,166,91,.22); border-radius: 50%; box-shadow: 0 0 0 45px rgba(211,166,91,.025), 0 0 0 90px rgba(211,166,91,.02); }
.android-copy, .android-form-wrap { position: relative; z-index: 1; }
.android-copy > p:last-child { color: var(--muted); }
.notify-form { padding: 24px; border: 1px solid rgba(106,129,156,.55); border-radius: 22px; background: rgba(28,40,55,.62); }
.notify-form label { display: block; margin-bottom: 9px; color: var(--ivory); font-size: 13px; font-weight: 700; }
.form-row { display: flex; gap: 10px; }
.form-row input { min-width: 0; flex: 1; min-height: 50px; padding: 12px 15px; border: 1px solid var(--control); border-radius: 14px; outline: none; background: var(--field); color: var(--ivory); }
.form-row input::placeholder { color: var(--muted); }
.form-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211,166,91,.12); }
.form-note { min-height: 20px; margin: 10px 2px 0; color: var(--muted); font-size: 12px; }
.form-note.is-error { color: var(--error); }
.form-success { display: flex; align-items: center; gap: 14px; min-height: 128px; padding: 24px; border: 1px solid rgba(121,197,139,.35); border-radius: 22px; background: rgba(121,197,139,.08); }
.form-success[hidden] { display: none; }
.form-success svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--success); fill: none; stroke: var(--background); stroke-width: 2.4; }
.form-success strong, .form-success span { display: block; }
.form-success span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 8vw, 110px); }
.faq-list { border-top: 1px solid var(--outline); }
.faq details { border-bottom: 1px solid var(--outline); }
.faq summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--utility); font-size: 24px; font-weight: 400; transition: transform 200ms var(--move); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 670px; margin: -2px 0 25px; color: var(--muted); }

.closing { padding-block: 50px 120px; }
.closing-card { position: relative; overflow: hidden; padding: clamp(45px, 9vw, 94px) 24px; border: 1px solid var(--outline); border-radius: 34px; background: radial-gradient(circle at 50% 0, rgba(211,166,91,.16), transparent 44%), var(--surface); text-align: center; }
.closing-card > img { width: 82px; margin: 0 auto 20px; border-radius: 22px; }
.closing-card .eyebrow { justify-content: center; }
.closing-card > p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.closing-card .hero-actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--outline); background: #192432; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 38px; }
.footer-grid > p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-grid small { grid-column: 1 / -1; color: var(--muted); font-family: var(--utility); font-size: 9px; letter-spacing: .04em; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms var(--enter); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js .gallery-card:nth-child(2)[data-reveal] { transform: translateY(0); }
.js .gallery-card:nth-child(2)[data-reveal].is-revealed { transform: translateY(-28px); }

@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(18px) scale(.94); }
  18% { opacity: .7; }
  75% { opacity: .18; }
  100% { opacity: 0; transform: translateY(-24px) scale(1.05); }
}
@keyframes signal {
  0% { opacity: .7; transform: scale(.25); }
  100% { opacity: 0; transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
  .button-secondary:hover, .button-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
  .nav-links a:hover, .site-footer nav a:hover { color: var(--ivory); }
  .step-grid li, .feature-grid article { transition: transform 220ms var(--enter), border-color 180ms ease, background-color 180ms ease; }
  .step-grid li:hover, .feature-grid article:hover { transform: translateY(-5px); border-color: rgba(211,166,91,.5); background-color: var(--field); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 390px; gap: 24px; }
  h1 { font-size: clamp(56px, 8.2vw, 82px); }
  .floating-note { display: none; }
  .step-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid li:last-child { grid-column: 1 / -1; min-height: 240px; }
  .phone-gallery { gap: 14px; }
  .gallery-card { min-height: 590px; padding-inline: 18px; }
  .android-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 620px); }
  .nav { min-height: 68px; }
  .nav-links { display: none; }
  .brand span { font-size: 21px; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 54px 76px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-lede { max-width: 540px; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 565px; margin-top: 15px; }
  .hero-visual::before { inset-inline: 5%; }
  .hero-mark { right: 7%; }
  .steam-lines { left: 19%; }
  .section-heading { margin-inline: auto; text-align: center; }
  .section-heading .eyebrow { justify-content: center; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li, .step-grid li:last-child { grid-column: auto; min-height: 230px; text-align: left; }
  .step-grid h3 { margin-top: 32px; }
  .phone-gallery { display: flex; width: calc(100vw - 16px); margin-left: calc((100vw - min(100vw - 32px, 620px)) / -2 + 8px); padding: 0 16px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .phone-gallery::-webkit-scrollbar { display: none; }
  .gallery-card, .gallery-card:nth-child(2), .js .gallery-card:nth-child(2)[data-reveal], .js .gallery-card:nth-child(2)[data-reveal].is-revealed { flex: 0 0 min(82vw, 350px); min-height: 610px; transform: none; scroll-snap-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 170px; }
  .faq { grid-template-columns: 1fr; }
  .faq .section-heading { margin: 0; text-align: left; }
  .faq .eyebrow { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .brand, .site-footer nav { justify-content: center; }
  .footer-grid small { grid-column: auto; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .site-header .button-small { padding-inline: 12px; font-size: 12px; }
  .brand span { font-size: 19px; }
  .hero { padding-top: 42px; }
  h1 { font-size: clamp(50px, 16vw, 68px); }
  .hero-lede { margin-top: 22px; font-size: 17px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 520px; }
  .hero-phone { width: 250px; }
  .hero-mark { width: 68px; }
  .steam-lines { top: 0; }
  .summon-rings { right: -8%; }
  .section { padding-block: 76px; }
  .section-heading h2, .android-card h2, .closing-card h2 { font-size: 43px; }
  .section-heading > p:last-child { font-size: 16px; }
  .step-grid { margin-top: 36px; }
  .step-grid li { padding: 23px; }
  .gallery-card { min-height: 570px; }
  .gallery-copy h3 { font-size: 20px; }
  .android-card { padding: 26px 20px; border-radius: 24px; }
  .notify-form { padding: 18px; }
  .form-row { flex-direction: column; }
  .faq summary { font-size: 16px; }
  .invite-banner { justify-content: flex-start; padding-inline: 14px; font-size: 13px; }
  .invite-banner a { margin-left: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .gallery-card:nth-child(2)[data-reveal] { opacity: 1; transform: none; }
  .steam-lines, .summon-rings { display: none; }
}
