/* trackEx website — Midnight Gold brand palette (lib/core/theme/app_palette.dart). */
:root {
  --bg: #0b1220;
  --bg-2: #111a2e;
  --surface: #151f35;
  --line: #24304a;
  --text: #e8edf6;
  --muted: #9aa6bc;
  --gold: #fbbf24;
  --gold-deep: #b45309;
  --ember: #c2410c;
  --grad: linear-gradient(90deg, #b45309, #f59e0b 45%, #fde68a);
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); max-width: 22ch; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; line-height: 1.1;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-play { background: var(--gold); color: #1a1205; }
.btn-play span { display: flex; flex-direction: column; text-align: left; }
.btn-play small { font-size: 11px; font-weight: 600; opacity: .75; letter-spacing: .02em; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: #3a4a6b; }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--gold); color: #1a1205; border-radius: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(36, 48, 74, .6);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(245, 158, 11, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(194, 65, 12, .16), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 19px; color: #c5cedd; max-width: 34em; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.pills li {
  font-size: 13px; font-weight: 700; color: #f8d98a;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .22);
}
.hero-shot { justify-self: center; position: relative; max-width: 380px; }
.hero-shot::before {
  content: ""; position: absolute; inset: 10% -8% -4%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .35), transparent);
  filter: blur(30px); z-index: -1;
}
.hero-shot img { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding-bottom: 40px; }
.section h2 { margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(194, 65, 12, .35), rgba(251, 191, 36, .25));
  color: var(--gold);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Gallery */
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 24px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery img {
  flex: 0 0 auto; width: 240px; scroll-snap-align: center;
  border-radius: 22px; border: 1px solid var(--line);
}

/* Sync */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split .muted { font-size: 18px; margin: -16px 0 24px; max-width: 34em; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 14px 16px 14px 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold); color: #1a1205; font-weight: 800;
}
.flow { display: grid; gap: 12px; justify-items: center; }
.node {
  width: 100%; max-width: 320px; text-align: center; padding: 18px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
}
.node span { display: block; font-weight: 800; font-size: 18px; }
.node small { color: var(--muted); font-size: 14px; }
.node:first-child { border-color: rgba(251, 191, 36, .5); }
.link {
  height: 56px; width: 2px; position: relative;
  background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px);
}
.link span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--gold);
}
.node-off { margin-top: 18px; border-style: dashed; opacity: .6; }
.node-off span { text-decoration: line-through; text-decoration-thickness: 2px; }

/* Privacy */
.privacy-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: center;
  padding: 44px; border-radius: 28px; border: 1px solid rgba(251, 191, 36, .25);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(194, 65, 12, .22), transparent 70%),
    linear-gradient(180deg, #17203a, #101830);
}
.privacy-card h2 { margin: 0; }
.privacy-card .btn { grid-column: 1; justify-self: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-row: span 2; }
.checks li { position: relative; padding-left: 34px; color: #c5cedd; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a1205' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }

/* Final CTA */
.cta-final { text-align: center; padding-top: 40px; }
.cta-final .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-final h2 { margin: 0; max-width: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.footer p { width: 100%; margin: 4px 0 0; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split, .privacy-card { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-shot { max-width: 300px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-card { padding: 32px 24px; }
  .checks { grid-row: auto; }
  .privacy-card .btn { grid-column: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .btn-small { margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .lead { font-size: 17px; }
  .gallery { padding-left: 16px; padding-right: 16px; }
  .gallery img { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}

/* Document pages (privacy policy) */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; max-width: none; }
.doc p, .doc li { color: #c5cedd; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc code {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: .88em; word-break: break-all;
}
.doc .summary {
  background: var(--surface); border: 1px solid rgba(251, 191, 36, .3);
  border-radius: 16px; padding: 18px 22px; margin: 24px 0 8px;
}
.doc .summary p { margin: 0; }
