/* Spin Vault landing page. Dark arena look built from the app icon's
   chrome-on-navy and the app's burnt-orange accent. */

:root {
  --bg: #070b18;
  --bg-2: #0c1328;
  --panel: #111a33;
  --panel-2: #16213f;
  --line: rgba(160, 180, 230, 0.14);
  --text: #eef2ff;
  --muted: #9aa6c7;
  --accent: #ff5a1f;
  --accent-2: #e64a19;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --steel: linear-gradient(180deg, #ffffff 0%, #c9d4ee 45%, #7f8db3 100%);
  --radius: 22px;
  --display: "Chakra Petch", "Rajdhani", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 24, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px var(--display); letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font: 600 16px var(--body); text-decoration: none;
  border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 31, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(255, 90, 31, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; margin-bottom: 3px; letter-spacing: .04em; text-transform: uppercase; }
.btn span.lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] { cursor: default; opacity: .8; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 900px; z-index: -2;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(255, 90, 31, 0.18), transparent 70%),
    radial-gradient(700px 500px at 15% 10%, rgba(70, 110, 255, 0.16), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: #ffb08f;
  font: 600 13px var(--body); letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.2vw, 76px); margin: 20px 0 18px; }
.chrome {
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hot { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Phones + spinning stadium ring */
.stage { position: relative; height: 580px; }
.ring {
  position: absolute; inset: 50% auto auto 50%; width: 520px; aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 8%, rgba(255,90,31,.55) 10%, transparent 14% 38%, rgba(140,170,255,.45) 40%, transparent 44% 68%, rgba(255,90,31,.45) 70%, transparent 74%);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 79% 82%, transparent 83%, transparent 88%, #000 89% 90%, transparent 91%);
          mask: radial-gradient(closest-side, transparent 78%, #000 79% 82%, transparent 83%, transparent 88%, #000 89% 90%, transparent 91%);
  animation: spin 9s linear infinite;
}
.ring.slow { width: 640px; opacity: .5; animation-duration: 18s; animation-direction: reverse; }
.stage-icon {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 170px; z-index: -1;
  border-radius: 40px; opacity: .25; filter: blur(1px);
}
@keyframes spin { to { rotate: 360deg; } }

.phone {
  position: absolute; width: 224px; border-radius: 38px; padding: 8px;
  background: linear-gradient(160deg, #3a4467, #141b33 40%, #0b1022);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone img { border-radius: 30px; }
.phone.p1 { left: 2%; top: 60px; rotate: -8deg; }
.phone.p2 { left: 50%; top: 0; translate: -50% 0; z-index: 2; width: 250px; }
.phone.p3 { right: 2%; top: 70px; rotate: 8deg; }

/* ---------- Stat strip ---------- */
.stats { padding: 28px 0 8px; }
.stats ul {
  list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.stats li { text-align: center; padding: 10px 6px; }
.stats b { display: block; font: 700 24px var(--display); }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.kicker { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 90, 31, .45); }
.card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  border: 2px dashed rgba(255, 90, 31, .18);
}
.card:hover::after { animation: spin 6s linear infinite; }
.card .ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Gallery */
.gallery-section { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 22px;
  overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: #2a3560 transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .phone { position: static; width: 100%; rotate: none; translate: none; }
.gallery figcaption { margin-top: 14px; font: 600 17px var(--display); }
.gallery figcaption span { display: block; font: 400 14px var(--body); color: var(--muted); margin-top: 2px; }

/* iPhone Duo */
.duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.duo-frame {
  border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #3a4467, #141b33 40%, #0b1022);
  box-shadow: 0 40px 90px -40px rgba(255, 90, 31, .45), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.duo-frame img { border-radius: 26px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Premium */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { text-align: center; padding: 30px 22px; }
.plan .price { font: 700 40px var(--display); margin: 10px 0 2px; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan.best { border-color: rgba(255, 90, 31, .6); box-shadow: 0 0 0 1px rgba(255,90,31,.35) inset, 0 30px 60px -30px rgba(255,90,31,.5); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.plan .badge { position: absolute; top: 14px; right: 14px; }
.free-note { text-align: center; color: var(--muted); margin-top: 22px; }

/* Final CTA */
.final {
  text-align: center; padding: 70px 24px; border-radius: 32px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(500px 260px at 50% 0%, rgba(255,90,31,.28), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.final img.logo { width: 96px; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 20px 50px -20px rgba(120,150,255,.6); }
.final h2 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 12px; }
.final p { color: var(--muted); margin: 0 auto 28px; max-width: 32em; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 88px; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .duo { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .stage { height: 500px; margin-top: 10px; }
  .features, .plans { grid-template-columns: 1fr 1fr; }
  .stats ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .stage { height: 420px; }
  .phone { width: 180px; border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 24px; }
  .phone.p2 { width: 196px; }
  .phone.p1 { left: -6%; }
  .phone.p3 { right: -6%; }
  .ring { width: 380px; }
  .ring.slow { width: 460px; }
  .features, .plans { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .gallery { grid-auto-columns: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .card:hover::after { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
