/* Alspin (alspin.fr) — Alpine A110 Phase 1 Design System
 * Palette: Bleu Alpine (#0051BA / #1E88FF / #38BDF8) + Jaune Tournesol (#FFD100)
 */
:root {
  --bg-deep: #040914;
  --bg-surface: #071226;
  --bg-card: rgba(9, 22, 46, 0.84);
  --bg-card-solid: #0a1730;
  --alpine-blue: #0051ba;
  --alpine-blue-mid: #1668d8;
  --alpine-blue-bright: #2589ff;
  --alpine-cyan: #38bdf8;
  --alpine-yellow: #ffd100;
  --alpine-yellow-warm: #f5b700;
  --alpine-yellow-soft: rgba(255, 209, 0, 0.14);
  --text: #f3f7fd;
  --text-soft: #cbd8ee;
  --muted: #8aa0c2;
  --border: rgba(148, 179, 224, 0.16);
  --border-blue: rgba(56, 189, 248, 0.34);
  --border-yellow: rgba(255, 209, 0, 0.42);
  --ok: #34d399;
  --danger: #fb7185;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 24px 60px rgba(2, 6, 16, 0.65);
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 82% -6%, rgba(0, 81, 186, 0.34), transparent 62%),
    radial-gradient(900px 520px at 8% 14%, rgba(56, 189, 248, 0.14), transparent 58%),
    radial-gradient(750px 420px at 50% 62%, rgba(255, 209, 0, 0.05), transparent 65%),
    var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--alpine-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 9, 20, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--alpine-yellow);
  background: var(--alpine-yellow-soft);
  border: 1px solid var(--border-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.89rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-soft);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(37, 137, 255, 0.14);
  border-color: var(--border-blue);
  text-decoration: none;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Switcher Dropdown — Solid dark background, NO nested backdrop-filter */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: #0a1730;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  border-color: var(--border-blue);
  background: #102448;
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--muted);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 174px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: #071124;
  border: 1px solid var(--border-blue);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 300;
  pointer-events: auto;
}

.lang-menu.is-open {
  display: flex !important;
}

.lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 0.14s ease, color 0.14s ease;
}

.lang-menu-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
  text-decoration: none;
}

.lang-menu-item.active {
  background: rgba(0, 81, 186, 0.34);
  border-color: var(--border-blue);
  color: var(--text);
}

.lang-iso {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--alpine-yellow);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: #0a1730;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  background: rgba(12, 27, 54, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-blue);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--alpine-blue) 0%, var(--alpine-blue-bright) 100%);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 81, 186, 0.42);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(37, 137, 255, 0.52);
  border-color: var(--alpine-cyan);
}

.btn-yellow {
  background: linear-gradient(135deg, var(--alpine-yellow) 0%, #ffe259 100%);
  border-color: #fff2a6;
  color: #071124;
  box-shadow: 0 10px 28px rgba(255, 209, 0, 0.25);
}

.btn-yellow:hover {
  box-shadow: 0 14px 34px rgba(255, 209, 0, 0.38);
  border-color: #ffffff;
}

/* Hero Section */
.hero {
  padding: 54px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.phase1-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(0, 81, 186, 0.24);
  border: 1px solid var(--border-blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alpine-cyan);
}

.phase1-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--alpine-yellow);
  box-shadow: 0 0 12px var(--alpine-yellow);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 .hl-blue {
  color: var(--alpine-cyan);
}

.hero h1 .hl-yellow {
  color: var(--alpine-yellow);
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 60ch;
}

.promo-ribbon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 209, 0, 0.14), rgba(0, 81, 186, 0.18));
  border: 1px solid var(--border-yellow);
  font-size: 0.88rem;
}

.promo-old {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 600;
}

.promo-free {
  color: var(--alpine-yellow);
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(9, 22, 46, 0.72);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-soft);
}

.trust-check {
  color: var(--alpine-yellow);
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-blue);
  background: #061022;
  box-shadow: var(--shadow-lg);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: #071226;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.chip-spec {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 81, 186, 0.28);
  border: 1px solid var(--border-blue);
  color: var(--alpine-cyan);
}

.chip-yellow {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--alpine-yellow-soft);
  border: 1px solid var(--border-yellow);
  color: var(--alpine-yellow);
}

/* Section Layout */
.section {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alpine-yellow);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
  max-width: 68ch;
}

/* Generic Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(2, 6, 16, 0.35);
}

.card-blue {
  border-color: var(--border-blue);
  background: linear-gradient(160deg, rgba(0, 81, 186, 0.2), rgba(9, 22, 46, 0.92));
}

.card-yellow {
  border-color: var(--border-yellow);
  background: linear-gradient(160deg, rgba(255, 209, 0, 0.11), rgba(9, 22, 46, 0.94));
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
}

.spec-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.spec-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--alpine-yellow);
  font-weight: 800;
}

/* Phase 1 Eligibility Banner */
.compat-card-ok {
  border-color: rgba(52, 211, 153, 0.42);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.12), rgba(9, 22, 46, 0.9));
}

.compat-card-no {
  border-color: rgba(148, 179, 224, 0.25);
  background: rgba(9, 22, 46, 0.72);
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.status-pill-ok {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.status-pill-info {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-soft);
}

/* Interactive 7" Screen Simulator */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #09152b;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--border-blue);
  color: var(--text);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--alpine-blue), var(--alpine-blue-bright));
  border-color: var(--alpine-cyan);
  color: #ffffff;
}

.bezel-shell {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #161c28, #080d17);
  border: 2px solid rgba(148, 179, 224, 0.25);
  box-shadow: var(--shadow-lg);
}

.bezel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}

.screen-800x480 {
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 81, 186, 0.45), transparent 55%),
    #040c1b;
  border: 1px solid var(--border-blue);
  padding: 20px;
}

.cockpit-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.sim-widget {
  background: rgba(8, 20, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--alpine-cyan);
  font-weight: 700;
}

.speed-readout {
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin: 8px 0 4px;
}

.chrono-time {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--alpine-yellow);
  margin: 10px 0;
}

.chrono-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gmeter-box {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 10px auto;
  border-radius: 999px;
  border: 1px dashed rgba(56, 189, 248, 0.45);
  background: radial-gradient(circle, rgba(0, 81, 186, 0.25), rgba(4, 12, 27, 0.9));
}

.gmeter-crosshair-h,
.gmeter-crosshair-v {
  position: absolute;
  background: rgba(148, 179, 224, 0.22);
}

.gmeter-crosshair-h {
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
}

.gmeter-crosshair-v {
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
}

.gmeter-puck {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--alpine-yellow);
  box-shadow: 0 0 14px var(--alpine-yellow);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.25s ease, top 0.25s ease;
}

.mirror-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
}

.wireless-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-node {
  background: rgba(8, 20, 42, 0.92);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  padding: 18px;
}

.flow-step {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--alpine-yellow);
  margin-bottom: 8px;
}

/* Visual Mode Cards */
.mode-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.mode-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Steps & Pricing */
.step-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--alpine-yellow);
  margin-bottom: 8px;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0;
}

.price-now {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--alpine-yellow);
  line-height: 1;
}

.price-was {
  font-size: 1.35rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item[open] {
  border-color: var(--border-blue);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  color: var(--alpine-yellow);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Privacy Policy Article */
.policy-wrap {
  padding: 48px 0 64px;
  max-width: 860px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.policy-card h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.policy-card h2 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  color: var(--alpine-cyan);
}

/* Footer */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(3, 7, 16, 0.92);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-lang {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.footer-lang.active {
  background: rgba(0, 81, 186, 0.35);
  border-color: var(--border-blue);
  color: var(--text);
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .cockpit-sim-grid,
  .mirror-grid,
  .wireless-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    flex-direction: column;
    align-items: stretch;
    background: #071124;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    padding: 10px;
    z-index: 250;
  }

  .nav-links.open {
    display: flex;
  }

  .brand-pill {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .policy-card {
    padding: 22px;
  }
}
