/* Nept Track website — shared styles (index + privacy policy).
   Colours mirror the app tokens in src/utils/colors.ts. */

:root {
  /* Light only, on purpose: the site reads bright and white, with amber as the accent. */
  --bg: #FFFFFF;
  --bg-tint: #FFFBF3;
  --surface: #FFFFFF;
  --surface-alt: #FFF8EC;
  --primary: #E88A00;
  --primary-soft: #FFF3DC;
  --accent: #F0780F;
  --ink: #2A1D06;
  --muted: #7A6A4F;
  --line: #F1E8D8;
  --success: #12A85F;
  --violet: #7C5CFF;
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 44px -22px rgba(120, 80, 20, 0.22);
  --grad: linear-gradient(135deg, #FFC24A 0%, #FFA41F 55%, #FF8A2A 100%);
  --grad-soft: linear-gradient(135deg, #FFF6E3 0%, #FFEBC7 55%, #FFE0C2 100%);
  --on-grad: #2A1D06;
  --aurora-1: rgba(255, 196, 70, 0.16);
  --aurora-2: rgba(255, 150, 60, 0.10);
  --aurora-3: rgba(255, 120, 150, 0.07);
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 35%, var(--bg-tint) 100%);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; font-weight: 800; }

/* ---------- Ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--aurora-1); top: -160px; left: -120px; }
.aurora span:nth-child(2) { width: 460px; height: 460px; background: var(--aurora-2); top: 30%; right: -160px; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 400px; height: 400px; background: var(--aurora-3); bottom: -140px; left: 30%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none;
  background: var(--grad); color: var(--on-grad); border: 0; cursor: pointer;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
  box-shadow: 0 10px 22px -12px rgba(230, 130, 0, .55);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 14px; text-decoration: none;
  background: var(--ink); color: var(--bg);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1);
}
.store-btn:hover { transform: translateY(-2px) scale(1.03); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 18px; }
.store-btn small { font-size: 11px; font-weight: 500; opacity: .75; text-transform: uppercase; letter-spacing: .05em; }
.store-btn.dark { background: #1a1204; color: #FFF0CE; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 14px 20px;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line); max-width: none;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 48px 0 80px;
}
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 6vw, 66px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 20px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 36px; }
.hero-stats strong { display: block; font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stats span { font-size: 14px; color: var(--muted); }

.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(330px, 80vw); border-radius: 34px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  background: var(--surface);
  transition: transform .15s ease-out;
  will-change: transform;
}
.phone.small { width: min(300px, 76vw); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.fc-1 { top: 18%; left: -2%; }
.fc-2 { bottom: 16%; right: -2%; animation-delay: -2.5s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-green { background: var(--success); }
.dot-amber { background: var(--primary); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2, .split-copy h2, .privacy-copy h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.feature {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--c) 60%, transparent);
  overflow: hidden; transition: transform .3s cubic-bezier(.3,1.5,.5,1);
}
.feature::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c);
}
.feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 60%);
  pointer-events: none;
}
.feature:hover { transform: translateY(-6px); }
.f-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  background: color-mix(in srgb, var(--c) 18%, transparent); margin-bottom: 16px;
}
.feature h3 { font-size: 20px; margin-bottom: 12px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.feature li::before { content: "•"; position: absolute; left: 4px; color: var(--c); font-weight: 900; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-copy p { color: var(--muted); font-size: 17px; margin: 16px 0 26px; }
.split-media { display: flex; justify-content: center; }
.flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.flow-chip {
  padding: 9px 14px; border-radius: 12px; background: var(--surface-alt);
  font-weight: 600; font-size: 15px; border: 1px solid var(--line);
}
.flow-arrow { color: var(--primary); font-weight: 800; font-size: 20px; }
.flow-green { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.flow-amber { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.flow-violet { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 24px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 240px; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.gallery img {
  /* One frame for every shot, so older 9:16 images line up with full-height ones. */
  width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; object-position: top;
  border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.3,1.5,.5,1);
}
.gallery figure:hover img { transform: translateY(-6px) scale(1.02); }
.gallery figcaption { text-align: center; margin-top: 12px; font-weight: 700; color: var(--muted); font-size: 14px; }
.g-arrow {
  position: absolute; top: 42%; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
  color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.g-prev { left: -10px; }
.g-next { right: -10px; }

/* Privacy card */
.privacy-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.privacy-copy p { color: var(--muted); font-size: 17px; margin: 14px 0 20px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border-radius: 16px; background: var(--surface-alt);
}
.privacy-list li > span { font-size: 24px; }
.privacy-list strong { display: block; }
.privacy-list div { color: var(--muted); font-size: 15px; }
.privacy-list div strong { color: var(--ink); }

/* Extras */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extra {
  padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.extra strong { display: block; font-size: 17px; margin-bottom: 4px; }
.extra span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA */
.cta-card {
  text-align: center; padding: 56px 24px; border-radius: 30px;
  background: var(--grad-soft); color: var(--on-grad); position: relative; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-card::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta-card img { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.cta-card h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-card p { margin: 10px 0 26px; font-size: 18px; opacity: .85; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 30px 20px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--primary); }
.footer p { width: 100%; margin: 0; color: var(--muted); font-size: 14px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 7, 2, .88); backdrop-filter: blur(8px); padding: 20px;
  animation: fade .2s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 26px; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; margin: 0; }
@keyframes fade { from { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Privacy policy page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 30px 0 60px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 30px; }
.doc section {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; margin: 0 0 14px;
}
.doc h2 { font-size: 19px; margin: 0 0 8px; color: var(--primary); }
.doc p { margin: 0 0 8px; }
.doc p:last-child { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .extras { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 10px 12px; }
  .hero, .split, .privacy-card { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .hero-stats { justify-content: center; }
  .split-copy { text-align: center; }
  .flow { justify-content: center; }
  .privacy-card { padding: 28px 20px; }
  .g-arrow { display: none; }
}
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .features, .extras { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 50px 0; }
  .gallery figure { flex-basis: 200px; }
  .flow { flex-wrap: nowrap; gap: 8px; }
  .flow-chip { padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .lb-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero promo video ---------- */
.hero-video { position: relative; aspect-ratio: 1080 / 1920; background: #FFF8EC; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound-btn {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(42, 29, 6, 0.55); color: #fff;
  font-size: 20px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sound-btn:hover { background: rgba(42, 29, 6, 0.75); }

/* ---------- Scroll tour ---------- */
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .35; transition: opacity .35s ease;
}
.tour-step.active { opacity: 1; }
.tour-step h3 { font-size: clamp(26px, 3.2vw, 38px); margin: 10px 0 12px; }
.tour-step p { color: var(--muted); font-size: 18px; max-width: 30ch; margin: 0; }
.tour-tag { color: var(--primary); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.tour-inline { display: none; }
.tour-stage {
  position: sticky; top: calc(50vh - min(330px, 40vh)); display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.tour-phone { position: relative; width: min(300px, 36vh); aspect-ratio: 1080 / 2340; }
.tour-shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.tour-shot.active { opacity: 1; transform: none; }
.tour-dots { display: flex; gap: 8px; }
.tour-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .3s ease, background .3s ease; }
.tour-dots span.active { width: 24px; background: var(--primary); }

@media (max-width: 860px) {
  /* Phones: no sticky stage; each step carries its own screenshot. */
  .tour-grid { grid-template-columns: 1fr; gap: 0; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; opacity: 1; padding: 28px 0; align-items: center; text-align: center; }
  .tour-step p { margin: 0 auto; }
  .tour-inline {
    display: block; width: min(280px, 72vw); height: auto; margin-top: 22px;
    border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-shot, .tour-step { transition: none; }
}
