/* GiSplay site: night drive. Colours match the app (purple accent, sodium gold for the road lights). */
:root {
  --night: #0b0613;
  --night-2: #140b22;
  --panel: #1b1030;
  --panel-2: #241640;
  --hair: rgba(214, 196, 255, 0.14);
  --ink: #f6f1fc;
  --ink-soft: #c4b5d9;
  --ink-dim: #8f7fa8;
  --accent: #b07cff;
  --accent-deep: #7b3fe0;
  --gold: #f2b544;
  --display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: #12081f; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 6, 19, 0.85), rgba(11, 6, 19, 0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span { font: 700 24px/1 var(--display); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.lang {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair); color: var(--ink-dim);
  font: 600 13px/1 var(--text); cursor: pointer;
}
.lang span { padding: 6px 9px; border-radius: 999px; }
.lang span.active { background: var(--accent); color: #150a24; }
@media (max-width: 560px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* ---------- The drive (pinned hero) ---------- */
.drive { position: relative; height: 460vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  isolation: isolate;
}
.road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(5, 2, 10, 0.75) 100%);
}

.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  max-width: 720px; transform: translateY(-58%);
  will-change: transform, opacity;
}
/* A soft shade behind the words, so passing headlights never cover them. */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -20% -14% -30%;
  background: radial-gradient(ellipse at 35% 50%, rgba(8, 4, 14, 0.72), transparent 70%);
  pointer-events: none;
}
.kicker { margin: 0 0 14px; color: var(--gold); font: 600 15px/1.2 var(--text); letter-spacing: 0.02em; }
h1 {
  margin: 0; font: 800 clamp(58px, 11vw, 148px)/0.86 var(--display);
  letter-spacing: -0.015em; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #d9c4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 560px; margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px;
  border-radius: 14px; background: #f6f1fc; color: #0b0613;
}
.store-badge svg { width: 24px; height: 24px; fill: currentColor; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: 11px; }
.store-badge b { font: 700 21px/1 var(--text); letter-spacing: -0.01em; }
.ghost {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}
.ghost:hover { border-color: var(--accent); }

/* Phone */
.phone {
  --rise: 1; --tiltX: 0deg; --tiltY: 0deg;
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(300px, 64vw); aspect-ratio: 9 / 19.2;
  transform-style: preserve-3d; will-change: transform, opacity;
  transform: translate(-50%, -50%);
}
.phone-glow {
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 124, 255, 0.45), transparent 70%);
  filter: blur(18px); opacity: var(--glow, 0.6);
}
.phone-body {
  position: absolute; inset: 0; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #3a2c52, #120a1e 40%, #2a1d3e);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12) inset, 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px #05020a;
}
.island {
  position: absolute; top: 20px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%);
  border-radius: 20px; background: #000; z-index: 3;
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #170d27, #0e0818);
}
.scene {
  position: absolute; inset: 0; padding: 54px 16px 18px;
  opacity: 0; transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
  font-size: 12px;
}
.scene.active { opacity: 1; transform: none; }
.app-title { font: 700 30px/1 var(--display); margin-bottom: 12px; }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.presets span {
  display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--hair); font-size: 9.5px; color: var(--ink-soft);
}
.presets b { font: 700 18px/1 var(--display); color: var(--ink); }
.presets .on { border-color: var(--accent); }
.presets .on b { color: var(--accent); }
.rows { display: grid; gap: 4px; }
.row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--hair); }
.row i { font: 700 19px/1 var(--display); font-style: normal; color: var(--ink-dim); width: 16px; }
.row div { flex: 1; display: grid; gap: 2px; }
.row b { font-size: 12px; }
.row em { font-style: normal; color: var(--ink-dim); font-size: 10.5px; }
.row u, .scrub u {
  display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); position: relative;
  text-decoration: none;
}
.row u::after, .scrub u::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--accent);
}

.times { display: flex; justify-content: space-between; padding-left: 58px; color: var(--ink-dim); font-size: 9px; margin-bottom: 6px; }
.grid { display: grid; gap: 5px; }
.g { position: relative; height: 34px; padding-left: 58px; }
.g i { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 9.5px; color: var(--ink-soft); width: 54px; }
.g .track { position: absolute; left: 58px; right: 0; top: 0; bottom: 0; }
.g span {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w);
  display: flex; align-items: center; padding: 0 6px; border-radius: 7px; font-size: 9px; white-space: nowrap; overflow: hidden;
  background: var(--panel); border: 1px solid var(--hair);
}
.g span.now { background: rgba(176, 124, 255, 0.22); border-color: var(--accent); }
.g span.past { opacity: 0.75; }
.g span.bell { border-color: var(--gold); }
.nowline { position: absolute; top: 78px; bottom: 30px; left: calc(16px + 58px + (100% - 32px - 58px) * 0.46); width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.poster {
  height: 46%; border-radius: 16px; display: flex; align-items: flex-end; padding: 14px; margin-top: -8px;
  background:
    radial-gradient(circle at 70% 30%, rgba(242, 181, 68, 0.55), transparent 40%),
    linear-gradient(160deg, #3b1f6b, #120a1e 70%);
  font: 800 28px/0.95 var(--display);
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.chips span { padding: 4px 8px; border-radius: 99px; border: 1px solid var(--hair); font-size: 9.5px; color: var(--ink-soft); }
.sub {
  display: grid; gap: 4px; justify-items: center; text-align: center; margin: 16px 0 14px;
  font: 600 13px/1.3 var(--text);
}
.sub small { color: var(--gold); font-size: 9px; font-weight: 600; }
.scrub { display: grid; grid-template-columns: 1fr; gap: 4px; }
.scrub span { font-size: 9px; color: var(--ink-dim); }
.scrub span:last-child { justify-self: end; margin-top: -16px; }

.dl { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.dl div:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.dl b { font-size: 11.5px; }
.dl em { font-style: normal; font-size: 10px; color: var(--ink-dim); }
.thumb { width: 38px; height: 54px; border-radius: 7px; background: linear-gradient(160deg, #3b1f6b, #150b24); flex: none; }
.thumb.b { background: linear-gradient(160deg, #1e4b7a, #0f1530); }
.thumb.c { background: linear-gradient(160deg, #6b2e1f, #1e0b14); }
.check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #150a24; font-weight: 700; }
.ring {
  width: 24px; height: 24px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px);
}
.plane { margin-top: 18px; text-align: center; color: var(--gold); font-size: 11px; font-weight: 600; }

/* Chapters beside the phone */
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li {
  position: absolute; top: 50%; width: min(380px, 34vw);
  opacity: 0; transform: translateY(-40%); will-change: transform, opacity;
  pointer-events: none;
}
.chapters li:nth-child(odd) { left: var(--gutter); }
.chapters li:nth-child(even) { right: var(--gutter); }
.chapters h2 { margin: 0 0 10px; font: 800 clamp(40px, 5vw, 72px)/0.9 var(--display); }
.chapters p { margin: 0; color: var(--ink-soft); font-size: 18px; }

.ticks { position: absolute; right: var(--gutter); bottom: 34px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.3s; }
.ticks i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.ticks i.on { background: var(--accent); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: var(--ink-dim); font-size: 13px; letter-spacing: 0.02em;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0;
  background: linear-gradient(var(--ink-dim), transparent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

@media (max-width: 860px) {
  .phone { width: min(250px, 58vw); }
  .chapters li { left: var(--gutter) !important; right: var(--gutter) !important; width: auto; top: auto; bottom: 7vh; text-align: center; }
  .chapters h2 { font-size: clamp(34px, 9vw, 52px); }
  .chapters p { font-size: 15.5px; max-width: 440px; margin: 0 auto; }
  .chapters li { background: linear-gradient(to top, rgba(11, 6, 19, 0.92) 60%, transparent); padding-top: 26px; }
  .ticks { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; }
}

/* ---------- Sections ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section-title { margin: 0 0 30px; font: 800 clamp(40px, 6vw, 76px)/0.92 var(--display); text-wrap: balance; }
.features { padding: 120px 0 90px; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tiles article {
  padding: 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--hair);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tiles article:hover { transform: translateY(-3px); border-color: rgba(176, 124, 255, 0.5); }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tiles h3 { margin: 14px 0 6px; font: 700 26px/1 var(--display); }
.tiles p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.pro { padding: 100px 0; background: radial-gradient(ellipse at 80% 20%, rgba(123, 63, 224, 0.28), transparent 55%), var(--night-2); }
.pro-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.pro-lead { color: var(--ink-soft); font-size: 19px; max-width: 460px; margin: 0; }
.price-card {
  padding: 30px; border-radius: 28px; border: 1px solid rgba(176, 124, 255, 0.45);
  background: linear-gradient(160deg, rgba(176, 124, 255, 0.18), rgba(27, 16, 48, 0.9));
}
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font: 800 76px/1 var(--display); }
.price span { color: var(--ink-soft); }
.price-card ul { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.fine { margin: 0; color: var(--ink-dim); font-size: 14px; }
@media (max-width: 760px) { .pro-wrap { grid-template-columns: 1fr; } }

.learn { padding: 90px 0 110px; }
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 26px; }
.defs h3 { margin: 0 0 6px; font: 700 28px/1 var(--display); color: var(--accent); }
.defs p { margin: 0; color: var(--ink-soft); }
.note { color: var(--ink-dim); margin: 0 0 22px; }

.foot { border-top: 1px solid var(--hair); padding: 30px 0 40px; }
.foot-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.foot small { color: var(--ink-dim); width: 100%; }

/* Reveal for sections below the drive */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.seen { opacity: 1; transform: none; }

/* ---------- Reduced motion: a calm, static page ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drive { height: auto; }
  .stage { position: relative; height: auto; min-height: 100vh; padding: 120px var(--gutter) 60px; display: grid; gap: 40px; }
  .hero-copy, .phone, .chapters li { position: relative; inset: auto; transform: none !important; opacity: 1 !important; width: auto; }
  .hero-copy { left: 0; }
  .phone { left: auto; top: auto; margin: 0 auto; }
  .chapters { display: grid; gap: 28px; }
  .chapters li { text-align: left; background: none; padding: 0; }
  .scene { transition: none; }
  .scroll-hint, .ticks { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
