/* ===========================================================================
   Forza Copilot — marketing site
   "Night City neon framed by tactical gold." Palette mirrors the app's
   DesignSystem/Palette.swift so the site and the app read as one product.
   =========================================================================== */

:root {
  /* Background layers */
  --bg-void:    #05060A;
  --bg-deep:    #0A0E1A;
  --bg-panel:   #0F1626;
  --bg-panel-hi:#16203A;
  --bg-trench:  #070A12;

  /* Neon accents */
  --cyan:    #00E5FF;
  --cyan-dim:#0A7E8C;
  --magenta: #FF2EC4;
  --violet:  #7A5CFF;

  /* Tactical chrome */
  --gold:  #E8A33D;
  --amber: #FFB000;

  /* Status */
  --success:#39FF88;
  --danger: #FF1F4B;

  /* Text tiers — low/ghost lightened from the app palette so body-size text
     on the dark panels clears WCAG AA 4.5:1 (the app can run dimmer than a webpage). */
  --text-hi:   #EAF6FF;
  --text-mid:  #9DB4CC;
  --text-low:  #7E94AD;
  --text-ghost:#6E8198;

  /* Lines */
  --line:     #1E3450;
  --line-soft:rgba(0, 229, 255, 0.14);

  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --glow-cyan: 0 0 0 1px rgba(0,229,255,.18), 0 16px 50px -10px rgba(0,229,255,.22);
}

/* ----------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg-void);
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--text-hi); line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.18rem; }

::selection { background: rgba(0,229,255,.28); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #001; padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ----------------------------------- layout -------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.wrap-narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }

.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub { color: var(--text-mid); font-size: 1.08rem; margin-top: 1rem; }
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------------- buttons ------------------------------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--bh); padding: 0 1.5rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-sm { --bh: 42px; font-size: .92rem; padding: 0 1.1rem; }
.btn-lg { --bh: 60px; font-size: 1.06rem; padding: 0 2rem; }

.btn-store {
  background: var(--text-hi); color: #06121b;
  box-shadow: 0 10px 30px -12px rgba(234, 246, 255, .5);
}
.btn-store:hover { background: #fff; box-shadow: 0 16px 40px -12px rgba(0, 229, 255, .45); }
.btn-store .apple-glyph { margin-top: -2px; }
.store-label {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  line-height: 1; text-align: left; font-size: 1.18em; font-weight: 700;
}
.store-label small { font-size: .62em; font-weight: 500; opacity: .8; letter-spacing: .02em; }

.btn-ghost {
  background: rgba(255,255,255,.02); color: var(--text-hi);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* ----------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 10, 18, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-hi); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { letter-spacing: -0.01em; font-size: 1.05rem; }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { color: var(--text-mid); font-size: .95rem; font-weight: 550; }
.site-nav a:hover { color: var(--text-hi); text-decoration: none; }
.site-header .btn-store { color: #06121b; }
@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner .btn-store { margin-left: auto; }
}

/* ----------------------------------- hero ---------------------------------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(122, 92, 255, .20), transparent 60%),
    radial-gradient(55% 50% at 18% 12%, rgba(0, 229, 255, .16), transparent 62%),
    radial-gradient(45% 45% at 60% 80%, rgba(255, 46, 196, .10), transparent 65%);
  filter: blur(8px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: 1.2rem; }
.lede { font-size: 1.2rem; color: var(--text-mid); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero-free { font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; color: var(--text-low); text-transform: uppercase; }
.hero-free strong { color: var(--gold); }

/* phone */
.hero-art { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 360 / 782;
  border-radius: 42px; padding: 11px;
  background: linear-gradient(155deg, #20283a, #070a12 60%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.05),
              0 0 80px -20px rgba(0, 229, 255, .35);
}
.phone::after { /* speaker notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 14px; background: #05070d; z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--bg-void); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-sm { width: 100%; max-width: 260px; border-radius: 34px; padding: 9px; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04); }
.phone-sm::after { width: 74px; height: 20px; top: 16px; }
.phone-sm .phone-screen { border-radius: 26px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-cta, .eyebrow { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 1rem; }
}

/* ----------------------------------- strip --------------------------------- */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-deep), var(--bg-void)); }
.strip-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.strip-item {
  padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .25rem; align-items: center; text-align: center;
  position: relative;
}
.strip-item:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 22%; height: 56%; width: 1px; background: var(--line);
}
.strip-k { color: var(--text-hi); font-weight: 700; font-size: 1.02rem; }
.strip-v { color: var(--text-low); font-size: .85rem; }
@media (max-width: 760px) {
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(odd)::after { display: none; }
  .strip-item { border-bottom: 1px solid var(--line); }
  .strip-item:last-child { grid-column: 1 / -1; }
}

/* ----------------------------------- features ------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  position: relative; overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity .25s ease;
}
.feature-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }
.feature-card:hover::before { opacity: .8; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; color: var(--cyan); margin-bottom: 1rem;
  background: rgba(0, 229, 255, .08); border: 1px solid var(--line-soft);
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { font-size: .96rem; color: var(--text-mid); }

/* ----------------------------------- screens ------------------------------- */
.section-screens { background: linear-gradient(180deg, var(--bg-void), var(--bg-trench)); }
.screens-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 1.5rem; overflow-x: auto; padding-block: .5rem 1.5rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.screens-rail::-webkit-scrollbar { height: 8px; }
.screens-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot { scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.shot figcaption {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid);
}
@media (min-width: 980px) {
  /* Centered wrap so any number of screens stays balanced (4 now, 7 once the
     map/replay shots are re-captured on the neon basemap). */
  .screens-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.5rem; overflow: visible; }
  .shot { flex: 0 1 190px; }
}

/* ----------------------------------- connect ------------------------------- */
.section-connect { background: var(--bg-deep); border-block: 1px solid var(--line); }
.connect-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.connect-copy { position: sticky; top: 90px; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.steps li { display: flex; gap: 1.1rem; padding: 1.3rem 1.4rem; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: var(--bg-void); background: var(--gold);
  box-shadow: 0 0 18px -4px var(--gold);
}
.steps h3 { margin-bottom: .25rem; }
.steps p { font-size: .95rem; }
@media (max-width: 820px) {
  .connect-grid { grid-template-columns: 1fr; }
  .connect-copy { position: static; }
}

/* ----------------------------------- privacy ------------------------------- */
.privacy-card {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(57,255,136,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
}
.privacy-card > div { max-width: 720px; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text-mid); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg);
}

/* ----------------------------------- faq ----------------------------------- */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--text-hi); font-weight: 600; font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 16px; height: 16px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--cyan); border-radius: 2px; transition: transform .2s ease; }
.faq-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-mark::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-item[open] summary { color: var(--cyan); }
.faq-a { padding: 0 1.3rem 1.25rem; }
.faq-a p { color: var(--text-mid); font-size: .98rem; }

/* ----------------------------------- final CTA ----------------------------- */
.section-cta { text-align: center; }
.cta-card {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(0,229,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-panel-hi), var(--bg-deep));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  box-shadow: var(--glow-cyan);
}
.cta-card h2 { margin-bottom: .8rem; }
.cta-card p { color: var(--text-mid); max-width: 38ch; margin: 0 auto 2rem; }

/* ----------------------------------- footer -------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-trench); padding-block: 3rem; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.footer-name { color: var(--text-hi); font-weight: 700; }
.footer-meta { font-size: .85rem; color: var(--text-low); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a { color: var(--text-mid); font-size: .92rem; padding-block: .35rem; display: inline-flex; align-items: center; min-height: 24px; }
.footer-nav a:hover { color: var(--cyan); text-decoration: none; }
.footer-disclaimer { font-size: .82rem; color: var(--text-low); max-width: 70ch; line-height: 1.6; }
.footer-copy { font-size: .82rem; color: var(--text-ghost); }

/* ----------------------------------- prose (legal) ------------------------- */
.page { padding-block: clamp(48px, 7vw, 90px); }
.page-head { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .6rem; }
.page-sub { color: var(--text-mid); font-size: 1.1rem; }
.page-meta { font-family: var(--mono); font-size: .82rem; color: var(--text-low); margin-top: 1rem; }
.page-back { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page-back a { display: inline-flex; align-items: center; min-height: 32px; padding-block: .25rem; }

.prose { color: var(--text-mid); font-size: 1.02rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { color: var(--text-hi); font-size: 1.5rem; margin-top: 2.6rem; padding-top: .4rem; }
.prose h3 { color: var(--text-hi); font-size: 1.15rem; margin-top: 1.8rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: .5rem; }
.prose li::marker { color: var(--cyan-dim); }
.prose strong { color: var(--text-hi); }
.prose code {
  font-family: var(--mono); font-size: .88em; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; color: var(--cyan);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin-block: 2.4rem; }
.prose blockquote {
  border-left: 3px solid var(--cyan-dim); padding-left: 1.1rem; color: var(--text-low); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-hi); font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

.section-404 { display: grid; place-items: center; min-height: 60vh; }
