/* ── Velocita Design System ───────────────────────────────────────────────
   Dark instrument-panel aesthetic. Sibling of Psyton (navy + gold),
   but committed to night-dashboard darkness with gauge/tick motifs.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand (shared with Psyton) */
  --navy-deep:    #0B1222;
  --navy:         #141F37;
  --navy-mid:     #1B2F52;
  --navy-line:    #243757;
  --gold:         #B8933A;
  --gold-light:   #E0C06C;
  --gold-hot:     #F2C85B;
  --soft-white:   #F7F4F0;
  --light-blue:   #ADC3DB;

  /* Velocita additions — the gauge gradient */
  --velo-green:   #4FD67D;
  --velo-yellow:  #F5D547;
  --velo-orange:  #F29F3C;
  --velo-red:     #E8503F;

  /* Text */
  --text-primary:   #F4F1EA;
  --text-secondary: #B8C3D4;
  --text-muted:     #6F7E96;

  /* Radii & shadows */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --glow-gold:  0 0 40px rgba(240, 200, 91, 0.18);
  --glow-panel: 0 20px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(184, 147, 58, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Subtle radial field — like the glow off a gauge cluster */
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(184,147,58,0.12), transparent 60%),
    radial-gradient(ellipse 900px 500px at 80% 120%, rgba(27,47,82,0.6), transparent 60%),
    var(--navy-deep);
  background-attachment: fixed;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-hot); }

::selection { background: rgba(242, 200, 91, 0.25); color: var(--text-primary); }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 18, 34, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 147, 58, 0.12);
}

.site-nav .logo {
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft-white);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.site-nav .logo .mark {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
  flex-shrink: 0;
}
.site-nav .logo:hover { color: var(--soft-white); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: rgba(244, 241, 234, 0.6);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a.active,
.nav-links a:hover { color: var(--gold-light); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
}

.hero::before {
  /* tick-mark ring motif behind the gauge */
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 860px;
  height: 860px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(184, 147, 58, 0.12);
  pointer-events: none;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Jura', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.hero h1 {
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--soft-white);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: 'Jura', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-hot);
  transition: transform 0.15s, background 0.2s, box-shadow 0.25s;
  box-shadow: var(--glow-gold);
}
.btn-primary:hover {
  background: var(--gold-hot);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: 'Jura', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-blue);
  padding: 0.85rem 0.5rem;
}
.btn-ghost:hover { color: var(--gold-light); }

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s, filter 0.25s;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
.app-store-badge:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 28px rgba(240, 200, 91, 0.25));
}
.app-store-badge img {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .app-store-badge img { height: 46px; }
}

/* Hero gauge graphic */
.hero-gauge {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  animation: fade-up 1s ease-out;
}
.hero-gauge svg { width: 100%; height: 100%; display: block; }
.hero-gauge .readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.hero-gauge .readout .speed {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: var(--soft-white);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(240, 200, 91, 0.35);
}
.hero-gauge .readout .unit {
  font-family: 'Jura', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section scaffolding ─────────────────────────────────────────────── */

.section {
  padding: 5rem 2rem;
  position: relative;
}
.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Jura', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  line-height: 1.05;
  color: var(--soft-white);
  margin-bottom: 1rem;
  max-width: 680px;
}

.section .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ── Feature grid (instrument panel) ─────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(184, 147, 58, 0.12);
  border: 1px solid rgba(184, 147, 58, 0.12);
  border-radius: var(--r-md);
  overflow: hidden;
}

.feature {
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, rgba(27, 47, 82, 0.35), rgba(11, 18, 34, 0.6));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 200px;
  transition: background 0.3s;
}
.feature:hover {
  background: linear-gradient(180deg, rgba(27, 47, 82, 0.55), rgba(11, 18, 34, 0.75));
}

.feature .icon {
  width: 28px;
  height: 28px;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.feature h3 {
  font-family: 'Jura', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-white);
}

.feature p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Split: screenshot + copy ────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .split-media { order: 2; }

.split-copy h2 { margin-bottom: 1.25rem; }
.split-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 520px;
}

/* Phone-frame placeholder */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(180deg, #141F37, #0B1222);
  border: 1px solid rgba(184, 147, 58, 0.25);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    inset 0 0 0 6px rgba(11, 18, 34, 0.9),
    var(--glow-gold);
  padding: 14px;
  overflow: hidden;
}
.phone-frame::before {
  /* notch */
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(184,147,58,0.18), transparent 60%),
    linear-gradient(180deg, #0B1222, #000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 2rem;
  position: relative;
}

.phone-screen .screen-label {
  font-family: 'Jura', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.phone-screen .screen-speed {
  font-family: 'JetBrains Mono', monospace;
  font-size: 4.2rem;
  font-weight: 300;
  color: var(--soft-white);
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(240,200,91,0.3);
}
.phone-screen .screen-unit {
  font-family: 'Jura', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.4rem;
}
.phone-screen .screen-pill {
  margin-top: 1.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,147,58,0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--light-blue);
  letter-spacing: 0.1em;
}

/* ── Privacy section ─────────────────────────────────────────────────── */

.privacy-section {
  background:
    linear-gradient(180deg, transparent, rgba(20, 31, 55, 0.5)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23B8933A' stroke-opacity='0.05'><path d='M0 30h60M30 0v60'/></g></svg>");
}

.pledges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.pledge {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(184, 147, 58, 0.2);
  border-radius: var(--r-md);
  background: rgba(11, 18, 34, 0.5);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.pledge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--velo-green);
  box-shadow: 0 0 12px var(--velo-green);
  flex-shrink: 0;
}
.pledge .dot.off {
  background: var(--velo-red);
  box-shadow: 0 0 12px var(--velo-red);
}
.pledge span {
  font-family: 'Jura', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--soft-white);
}

/* ── CTA ─────────────────────────────────────────────────────────────── */

.cta {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 260px at 50% 50%, rgba(184,147,58,0.12), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--soft-white);
  margin-bottom: 0.75rem;
  position: relative;
}
.cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  position: relative;
}
.cta .btn-primary { position: relative; }

/* ── Page header (non-home) ──────────────────────────────────────────── */

.page-header {
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(184, 147, 58, 0.1);
}
.page-header .label {
  font-family: 'Jura', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}
.page-header h1 {
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--soft-white);
  margin-bottom: 0.75rem;
}
.page-header .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Content pages (privacy, support, contact) ───────────────────────── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--soft-white);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 147, 58, 0.12);
}
.prose h2:first-child { border-top: none; padding-top: 0; }

.prose h3 {
  font-family: 'Jura', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin-bottom: 0.85rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.25rem;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.prose strong { color: var(--soft-white); }
.prose em { color: var(--gold-light); font-style: normal; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq details {
  border: 1px solid rgba(184, 147, 58, 0.15);
  border-radius: var(--r-md);
  background: rgba(11, 18, 34, 0.5);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-family: 'Jura', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--soft-white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details[open] summary {
  border-bottom: 1px solid rgba(184, 147, 58, 0.12);
}
.faq .faq-body {
  padding: 1rem 1.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.faq .faq-body p { margin-bottom: 0.75rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ── Contact grid ────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.contact-card {
  padding: 2rem 1.75rem;
  border: 1px solid rgba(184, 147, 58, 0.2);
  border-radius: var(--r-md);
  background: rgba(11, 18, 34, 0.5);
  text-align: center;
}
.contact-card .icon {
  width: 36px;
  height: 36px;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.contact-card h3 {
  font-family: 'Jura', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft-white);
  margin-bottom: 0.75rem;
}
.contact-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.contact-card a {
  color: var(--gold-light);
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  padding: 3rem 2rem 2.5rem;
  border-top: 1px solid rgba(184, 147, 58, 0.12);
  background: rgba(11, 18, 34, 0.6);
  text-align: center;
}
.site-footer .footer-logo {
  font-family: 'Jura', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft-white);
  margin-bottom: 0.5rem;
}
.site-footer .footer-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer .footer-links a:hover { color: var(--gold-light); }
.site-footer .copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.site-footer .copyright a { color: var(--gold); }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .hero { padding: 3rem 1.25rem 4.5rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-gauge { max-width: 320px; order: -1; }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split.reverse .split-media { order: 0; }

  .section { padding: 3.5rem 1.25rem; }

  .site-nav { padding: 0.9rem 1.25rem; }
  .site-nav .logo { font-size: 1.1rem; letter-spacing: 0.22em; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.1em; }
}

@media (max-width: 480px) {
  .nav-links { gap: 0.85rem; }
  .page-header { padding: 3.5rem 1.25rem 2.5rem; }
  .container,
  .container-wide { padding: 2rem 1.25rem 3rem; }
  .feature { padding: 1.5rem 1.25rem; }
}

/* Honor reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
