/* Roadcraft Editor Suite — marketing site (aligns with app tokens: accent #d4920a) */

:root {
  --background: #0e0e0e;
  --surface: #111111;
  --surface-low: #131313;
  --surface-high: #1a1a1a;
  --surface-highest: #262626;
  --surface-dim: rgba(19, 19, 19, 0.88);
  --primary: #d4920a;
  --primary-dim: #b87c08;
  --primary-glow: rgba(212, 146, 10, 0.15);
  --primary-glow-strong: rgba(212, 146, 10, 0.28);
  --on-primary: #0a0a0a;
  --on-surface: #f0ece4;
  --on-surface-variant: #adaaaa;
  --text-muted: #666666;
  --outline-variant: rgba(72, 72, 71, 0.22);
  --roundness-sm: 0.5rem;
  --roundness-md: 0.75rem;
  --roundness-lg: 1rem;
  --roundness-xl: 1.5rem;
  --max-width: 1120px;
  --nav-height: 72px;
  --subnav-height: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--on-surface-variant);
  line-height: 1.6;
  overflow-x: hidden;
}

header[id],
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--on-surface); }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* Match classic landing: room for large screenshots (style.css used 1600px) */
.container.container--wide {
  max-width: min(1600px, 96vw);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-dim));
  color: var(--on-primary);
  border-radius: var(--roundness-md);
  box-shadow: 0 0 20px var(--primary-glow), 0 4px 16px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 28px var(--primary-glow-strong), 0 6px 24px rgba(0, 0, 0, 0.45);
  color: var(--on-primary);
}

.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(212, 146, 10, 0.4);
  border-radius: var(--roundness-md);
}
.btn-outline:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: var(--surface-high);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #5865f2;
  color: #fff !important;
  border-radius: var(--roundness-md);
  box-shadow: 0 2px 18px rgba(88, 101, 242, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.25;
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff !important;
  transform: scale(1.03);
  box-shadow: 0 4px 26px rgba(88, 101, 242, 0.55), 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-discord__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  line-height: 0;
  opacity: 0.95;
}
.btn-discord__icon svg {
  display: block;
  flex-shrink: 0;
}
.btn-discord.btn-sm .btn-discord__icon svg {
  width: 24px;
  height: 24px;
}
.btn-discord.btn-lg .btn-discord__icon svg {
  width: 30px;
  height: 30px;
}

/* Ko-fi — same spirit as in-app .btn-support */
.btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--roundness-md);
  background: linear-gradient(135deg, #ffdd57 0%, #f7b731 100%);
  border: 1px solid #e6a800;
  color: #3a2800 !important;
  box-shadow: 0 2px 10px rgba(247, 183, 49, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn-support:hover {
  background: linear-gradient(135deg, #ffe97a 0%, #f7c200 100%);
  border-color: #c98f00;
  color: #3a2800 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247, 183, 49, 0.35);
}
.btn-support.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}
.btn-support.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ----- Main nav ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: var(--surface-dim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--outline-variant);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 48px; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--on-surface); }

.nav-icon { border-radius: 8px; width: 36px; height: 36px; }
.nav-icon--round { border-radius: 10px; }
/* Same asset as .suite-hero-logo (images/icon.png) */
.nav-icon--hero {
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(212, 146, 10, 0.35)) drop-shadow(0 0 20px rgba(212, 146, 10, 0.12));
}
.nav-title-muted { font-weight: 500; color: var(--on-surface-variant); }

/* Subnav — desktop */
.nav-sub {
  display: none;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.nav-sub a {
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-sub a:hover,
.nav-sub a.is-active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--outline-variant);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .btn { margin-top: 8px; text-align: center; }

@media (max-width: 1024px) {
  .nav-sub { display: none; }
  .nav-hamburger { display: flex; }
}

@media (min-width: 1025px) {
  .nav-sub { display: flex; }
  .nav-drawer { display: none !important; }
}

/* ----- Hero (full first viewport, tech grid + scan) ----- */
.suite-hero {
  position: relative;
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: calc(var(--nav-height) + 16px) 24px 28px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .suite-hero {
    padding: calc(var(--nav-height) + 20px) 48px 32px;
  }
}

@media (max-height: 720px) {
  .suite-hero {
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 20px;
  }
}

.suite-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: suiteHeroBgReveal 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes suiteHeroBgReveal {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Single vertical stack: headline + editor cards grouped and centered in viewport */
.suite-hero-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 28px);
  width: 100%;
  max-width: 100%;
}

/* Coarse grid — subtle tech texture */
.suite-hero-grid {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image:
    linear-gradient(rgba(212, 146, 10, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 146, 10, 0.052) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 95% 90% at 50% 38%, black 0%, rgba(0, 0, 0, 0.55) 50%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 38%, black 0%, rgba(0, 0, 0, 0.55) 50%, transparent 78%);
  animation: suiteGridDrift 28s linear infinite;
}

/* Fine mesh overlay */
.suite-hero-grid--fine {
  background-image:
    linear-gradient(rgba(240, 236, 228, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 236, 228, 0.026) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 88% 85% at 50% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 88% 85% at 50% 40%, black 10%, transparent 70%);
  animation: suiteGridDriftFine 40s linear infinite reverse;
  opacity: 0.55;
}

@keyframes suiteGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

@keyframes suiteGridDriftFine {
  0% { background-position: 0 0; }
  100% { background-position: 14px 14px; }
}

.suite-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(212, 146, 10, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 55%);
  pointer-events: none;
}

/* Slow scan beam (long cycle = passes less often) */
.suite-hero-scan {
  position: absolute;
  inset: -20% 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 42%,
    rgba(212, 146, 10, 0.035) 49.5%,
    rgba(255, 210, 120, 0.065) 50%,
    rgba(212, 146, 10, 0.035) 50.5%,
    transparent 58%,
    transparent 100%
  );
  background-size: 100% 220%;
  background-repeat: no-repeat;
  animation: suiteHeroScan 32s ease-in-out infinite;
  opacity: 0.75;
  pointer-events: none;
}

@keyframes suiteHeroScan {
  0%, 100% { background-position: 0 -30%; }
  50% { background-position: 0 130%; }
}

.suite-hero-glow {
  position: absolute;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 146, 10, 0.14) 0%, rgba(212, 146, 10, 0.04) 35%, transparent 68%);
  border-radius: 50%;
}

.suite-hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 146, 10, 0.14);
  pointer-events: none;
  animation: suiteOrbPulse 7s ease-in-out infinite;
}
.suite-hero-orb--1 {
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 60px rgba(212, 146, 10, 0.06);
}
.suite-hero-orb--2 {
  width: min(780px, 98vw);
  height: min(780px, 98vw);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3.5s;
  border-color: rgba(212, 146, 10, 0.08);
}
@keyframes suiteOrbPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .suite-hero-grid,
  .suite-hero-grid--fine,
  .suite-hero-scan,
  .suite-hero-orb {
    animation: none !important;
  }
  .suite-hero-grid--fine { opacity: 0.4; }
  .suite-hero-bg {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.suite-hero-inner {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Opening sequence (staggered rise + fade) */
@keyframes suiteHeroLineIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes suiteHeroLogoIn {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes suiteHeroCardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.suite-hero-inner .suite-badge {
  animation: suiteHeroLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s backwards;
}

.suite-hero-inner .suite-hero-logo {
  animation: suiteHeroLogoIn 0.85s cubic-bezier(0.34, 1.15, 0.64, 1) 0.12s backwards;
}

.suite-hero-inner .suite-menu-sub {
  animation: suiteHeroLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.suite-hero-inner .suite-title {
  animation: suiteHeroLineIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.26s backwards;
}

.suite-hero-inner .suite-tagline {
  animation: suiteHeroLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.34s backwards;
}

.suite-hero-inner .suite-hero-cta {
  animation: suiteHeroLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.42s backwards;
}

.suite-hero-inner .suite-meta {
  animation: suiteHeroLineIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.48s backwards;
}

.suite-hero-inner .hero-stats {
  animation: suiteHeroLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.54s backwards;
}

.suite-hero .menu-card:nth-child(1) {
  animation: suiteHeroCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.62s backwards;
}
.suite-hero .menu-card:nth-child(2) {
  animation: suiteHeroCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.72s backwards;
}
.suite-hero .menu-card:nth-child(3) {
  animation: suiteHeroCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.82s backwards;
}

@media (prefers-reduced-motion: reduce) {
  .suite-hero-inner .suite-badge,
  .suite-hero-inner .suite-hero-logo,
  .suite-hero-inner .suite-menu-sub,
  .suite-hero-inner .suite-title,
  .suite-hero-inner .suite-tagline,
  .suite-hero-inner .suite-hero-cta,
  .suite-hero-inner .suite-meta,
  .suite-hero-inner .hero-stats,
  .suite-hero .menu-card:nth-child(1),
  .suite-hero .menu-card:nth-child(2),
  .suite-hero .menu-card:nth-child(3) {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero content always visible (no scroll-reveal delay on first screen) */
.suite-hero .animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

.suite-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(212, 146, 10, 0.14) 0%, rgba(212, 146, 10, 0.06) 100%);
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(212, 146, 10, 0.35);
  margin-bottom: clamp(12px, 2.5vh, 20px);
  box-shadow: 0 0 24px rgba(212, 146, 10, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.suite-hero-logo {
  width: clamp(88px, 16vh, 120px);
  height: clamp(88px, 16vh, 120px);
  margin: 0 auto clamp(8px, 1.5vh, 12px);
  filter: drop-shadow(0 4px 32px rgba(212, 146, 10, 0.35)) drop-shadow(0 0 40px rgba(212, 146, 10, 0.12));
}

.suite-menu-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.suite-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  line-height: 1.05;
  text-shadow: 0 0 80px rgba(212, 146, 10, 0.12);
}
.suite-title--plain {
  margin-top: 4px;
}
.suite-title-brand {
  color: var(--primary);
  margin-right: 0.35em;
}
.suite-code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.88em;
  color: var(--primary);
  background: var(--surface-high);
  padding: 1px 6px;
  border-radius: 4px;
}

.suite-tagline {
  margin-top: clamp(10px, 2vh, 18px);
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  color: var(--on-surface-variant);
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.suite-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(14px, 2.5vh, 24px);
}

.suite-meta {
  margin-top: clamp(10px, 1.8vh, 16px);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ----- Pillars ----- */
.pillars {
  padding: 24px 0 56px;
  position: relative;
  z-index: 2;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.pillar-card {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-xl);
  padding: 24px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  display: block;
  width: 100%;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 146, 10, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 146, 10, 0.12);
}

.pillar-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--primary);
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.pillar-arrow {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ----- Section chrome ----- */
.section {
  padding: 72px 0;
}

.section--alt { background: var(--surface-low); }

.section-head {
  margin-bottom: 40px;
  max-width: 640px;
}

.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-desc {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* ----- Module spotlight ----- */
.spotlight {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .spotlight { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  .spotlight--reverse .spotlight-copy { order: 2; }
  .spotlight--reverse .spotlight-media { order: 1; }
}

.spotlight-copy ul {
  margin-top: 18px;
}

.spotlight-copy li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
}
.spotlight-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow-strong);
}

/* ----- Carousel ----- */
.carousel {
  position: relative;
  border-radius: var(--roundness-lg);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  background: var(--surface);
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carousel-caption__title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--on-surface);
  line-height: 1.25;
}

.carousel-caption__sub {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--on-surface-variant);
  opacity: 0.92;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-high);
  border-top: 1px solid var(--outline-variant);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot[aria-current="true"] {
  background: var(--primary);
  transform: scale(1.15);
}

.carousel-btn {
  background: var(--surface-highest);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  width: 36px;
  height: 36px;
  border-radius: var(--roundness-sm);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.carousel-btn:hover { border-color: var(--primary); color: var(--primary); }
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ----- Placeholder frame (Vehicle / Mod — swap for PNG later) ----- */
.ph-frame {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(145deg, var(--surface-high) 0%, #0c0c0c 50%, var(--surface-low) 100%);
  border: 1px dashed rgba(212, 146, 10, 0.35);
}

.ph-frame svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
  color: var(--primary);
}

.ph-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-align: center;
  max-width: 280px;
}

.ph-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.carousel-slide > .ph-frame {
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

/* ----- Accordion ----- */
.suite-details {
  margin-top: 20px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-md);
  background: var(--surface);
  overflow: hidden;
}

.suite-details summary {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--on-surface);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.suite-details summary::-webkit-details-marker { display: none; }
.suite-details summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
}
.suite-details[open] summary::after { content: '−'; }

.suite-details-body {
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  border-top: 1px solid var(--outline-variant);
}
.suite-details-body strong { color: var(--on-surface); }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.feature-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--surface-high);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
}

/* ----- Bento (compact) ----- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-md);
  padding: 14px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: border-color 0.2s;
}
.bento-item:hover { border-color: rgba(212, 146, 10, 0.35); color: var(--on-surface); }
.bento-item--jump {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.bento-item--jump:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----- Safety grid ----- */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}

.safety-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-lg);
  padding: 22px;
}

.safety-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.safety-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

.safety-shot {
  margin-top: 32px;
  border-radius: var(--roundness-lg);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.safety-shot img { width: 100%; }

/* Compact safety band: one scannable band + short strip + small sample */
.section--safety-compact {
  padding-top: 24px;
  padding-bottom: 24px;
}
.section--safety-compact .section-head {
  margin-bottom: 10px;
}
.section-desc--tight {
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.safety-grid--compact {
  margin-top: 14px;
  gap: 10px;
}
@media (min-width: 640px) {
  .safety-grid.safety-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .safety-grid.safety-grid--compact {
    grid-template-columns: repeat(4, 1fr);
  }
}
.safety-card--compact {
  padding: 11px 12px;
}
.safety-card--compact h3 {
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.safety-card--compact p {
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0;
}
.backup-detail-grid--compact {
  margin-top: 12px;
  gap: 8px;
}
@media (min-width: 900px) {
  .backup-detail-grid.backup-detail-grid--compact {
    grid-template-columns: repeat(4, 1fr);
  }
}
.backup-detail--compact {
  padding: 8px 10px;
}
.backup-detail--compact h4 {
  font-size: 0.74rem;
  margin-bottom: 3px;
}
.backup-detail--compact p {
  font-size: 0.68rem;
  line-height: 1.35;
  margin: 0;
}
.safety-shot--compact {
  margin-top: 14px;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 70% 80% at 50% 40%, #141414 0%, #0a0a0a 100%);
}
.safety-shot--compact img {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

/* ----- Steps ----- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.step {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-lg);
  padding: 22px 18px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* ----- Download ----- */
.download-block {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.download-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212, 146, 10, 0.08), transparent 70%);
  pointer-events: none;
}

.download-block .container { position: relative; z-index: 2; }

.download-block .section-title { margin-bottom: 12px; }

.download-sub {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--on-surface-variant);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.download-specs li::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* ----- Discord community ----- */
.discord-block {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 12px);
}
.discord-block__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, rgba(88, 101, 242, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(88, 101, 242, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(88, 101, 242, 0.06) 0%, transparent 45%);
  pointer-events: none;
}
.discord-block__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}
.discord-block .container {
  position: relative;
  z-index: 1;
}
.discord-block__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.discord-block__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(165, 180, 252, 0.35);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.discord-block__lead {
  margin-top: 8px;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.discord-block__list {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
}
.discord-block__list li {
  position: relative;
  padding-left: 22px;
}
.discord-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
}
.discord-block__cta {
  margin-top: 4px;
}

/* ----- Footer ----- */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--outline-variant);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

/* ----- In-app main menu cards (below hero copy, same centered stack) ----- */
.menu-cards-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding-bottom: 0;
}

.menu-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .menu-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.92) 0%, rgba(12, 12, 12, 0.96) 100%);
  border: 1px solid rgba(212, 146, 10, 0.14);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 146, 10, 0.5), transparent);
  opacity: 0.65;
  pointer-events: none;
}
.menu-card:hover {
  border-color: rgba(212, 146, 10, 0.45);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 146, 10, 0.15),
    0 0 48px rgba(212, 146, 10, 0.08);
}
.menu-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.menu-card-logo-wrap {
  height: clamp(88px, 14vh, 118px);
  background: linear-gradient(185deg, #1e1c18 0%, #0f0f0f 55%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(212, 146, 10, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.menu-card-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(212, 146, 10, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.menu-card-logo {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px 18px;
  filter: drop-shadow(0 0 6px rgba(212, 146, 10, 0.4)) drop-shadow(0 2px 16px rgba(212, 146, 10, 0.2)) brightness(1.12);
  position: relative;
  z-index: 1;
}

.menu-card-body {
  padding: 14px 16px 36px;
  flex: 1;
}
.menu-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.menu-card-body p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
}

.menu-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.menu-card:hover .menu-card-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ----- Editor hub (tabs + one visible panel) ----- */
.section--tight {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section--tight { padding: 56px 0; }
}

.section-head--tight {
  margin-bottom: 28px;
}

.editor-hub {
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-high);
  border-bottom: 1px solid var(--outline-variant);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .editor-tabs {
    gap: 10px;
    padding: 14px 16px;
  }
}

/* Pill labels — same amber accent family as Mod hub bento */
.editor-tab {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-md);
  margin-bottom: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.editor-tab img {
  flex-shrink: 0;
  opacity: 0.9;
}
.editor-tab:hover {
  border-color: rgba(212, 146, 10, 0.38);
  background: rgba(212, 146, 10, 0.06);
}
.editor-tab.is-active {
  color: var(--primary);
  border-color: rgba(212, 146, 10, 0.55);
  background: rgba(212, 146, 10, 0.12);
  box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.12);
}
.editor-tab.is-active img {
  opacity: 1;
}

.editor-panels {
  padding: 0;
  position: relative;
  z-index: 0;
}

.editor-panel {
  padding: 24px 18px 22px;
}

@media (min-width: 768px) {
  .editor-panel { padding: 26px 26px 28px; }
}

.editor-panel-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline-variant);
}

.editor-panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--on-surface);
  margin: 0 0 8px;
}

.editor-panel-lead {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 720px;
}

/* Stacked layout: copy on top, full-width preview below (classic-style large shots) */
.editor-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.editor-panel-meta {
  max-width: 900px;
}

@media (min-width: 900px) {
  .editor-panel-meta--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    align-items: start;
    max-width: none;
  }
}

.showcase-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.editor-panel-showcase {
  width: 100%;
}

.editor-panel-showcase .carousel--showcase {
  box-shadow: 0 12px 56px rgba(0, 0, 0, 0.55), 0 0 1px rgba(212, 146, 10, 0.12);
}

.editor-panel-list {
  margin: 0;
  padding: 0;
}
.editor-panel-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
}
.editor-panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.suite-details--inline {
  margin-top: 0;
}

.editor-panel-carousel .carousel {
  border-radius: var(--roundness-md);
}

/* Large “hero” carousels: full UI visible (classic page used big stills, not tight crops) */
.carousel--showcase .carousel-viewport {
  position: relative;
  aspect-ratio: auto;
  /* Image + caption bar share this height; caption sits below the shot, not overlaid */
  height: clamp(420px, min(58vw, 54vh), 820px);
  max-height: 88vh;
  background: radial-gradient(ellipse 80% 70% at 50% 35%, #1a1a1a 0%, #0a0a0a 55%, #080808 100%);
  border-radius: var(--roundness-lg);
  overflow: hidden;
}

.carousel--showcase .carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  background: #0a0a0a;
}

.carousel--showcase .carousel-slide > img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto !important;
  object-fit: contain;
  object-position: center top;
}

.carousel--showcase .carousel-caption {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  padding: 12px 14px 14px;
  font-size: 0.8rem;
  background: var(--surface-high);
  border-top: 1px solid var(--outline-variant);
  background-image: none;
  gap: 4px;
}

.carousel--showcase .carousel-caption__title {
  font-size: 0.9rem;
}

.carousel--showcase .carousel-caption__sub {
  font-size: 0.74rem;
}

.ph-frame--brand {
  justify-content: center;
  gap: 16px;
}
.ph-brand-mark {
  max-width: min(320px, 88%);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 24px rgba(212, 146, 10, 0.15));
}

.steps--compact .step {
  padding: 18px 14px;
}
.steps--compact .step p {
  font-size: 0.8rem;
}

.safety-ico {
  vertical-align: -4px;
  margin-right: 6px;
  opacity: 0.9;
}
.safety-card h3 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-logo {
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 20px rgba(212, 146, 10, 0.2));
}

/* ----- Vehicle Editor screen-recording demo ----- */
.vehicle-demo-showcase {
  margin: 4px auto 36px;
  max-width: min(960px, 100%);
  border-radius: var(--roundness-xl);
  border: 1px solid rgba(212, 146, 10, 0.22);
  background: linear-gradient(168deg, rgba(28, 26, 22, 0.97) 0%, rgba(8, 8, 8, 0.99) 55%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(212, 146, 10, 0.1);
  overflow: hidden;
}

.vehicle-demo-showcase__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(212, 146, 10, 0.12);
}
.vehicle-demo-showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vehicle-demo-showcase__chrome-label {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vehicle-demo-showcase__body {
  display: grid;
  gap: 20px;
  padding: 20px 18px 22px;
}
@media (min-width: 900px) {
  .vehicle-demo-showcase__body {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 28px 36px;
    padding: 24px 28px 28px;
  }
}

.vehicle-demo-showcase__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.vehicle-demo-showcase__title {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--on-surface);
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.vehicle-demo-showcase__lead {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin: 0;
  max-width: 36ch;
}
.vehicle-demo-showcase__lead--gap {
  margin-top: 0.85rem;
}

.vehicle-demo-showcase__video-wrap {
  position: relative;
  border-radius: var(--roundness-md);
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(212, 146, 10, 0.15);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.vehicle-demo-showcase__video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.vehicle-demo-showcase__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

#vehicle-demo {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* ----- Share vehicle configs (save / load JSON) ----- */
.vehicle-share-block {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid rgba(212, 146, 10, 0.12);
}

#vehicle-share {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.vehicle-share-pair {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .vehicle-share-pair {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.vehicle-share-shot {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border-radius: var(--roundness-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 146, 10, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-share-shot:hover {
  border-color: rgba(212, 146, 10, 0.42);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

.vehicle-share-shot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.vehicle-share-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.vehicle-share-caption {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
}

.vehicle-share-caption strong {
  color: var(--on-surface);
}

/* ----- AI mode promo ----- */
#vehicle-ai {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.vehicle-ai-block {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid rgba(212, 146, 10, 0.12);
}

.vaw-free-pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: linear-gradient(180deg, var(--primary), var(--primary-dim));
  border-radius: 999px;
  box-shadow: 0 0 16px var(--primary-glow);
}

.vaw-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 12px;
  line-height: 1.25;
}

.vaw-lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.vaw-lead:last-of-type {
  margin-bottom: 0;
}

.vaw-list {
  margin: 14px 0 0;
  padding-left: 1.15rem;
  list-style: disc;
  color: var(--on-surface-variant);
  font-size: 0.92rem;
  line-height: 1.55;
}

.vaw-list li {
  margin-bottom: 6px;
}

.vaw-list li::marker {
  color: var(--primary);
}

.vaw-split {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

@media (min-width: 960px) {
  .vaw-split {
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.25fr);
    gap: 40px;
    align-items: center;
  }
}

.vaw-shots--pair {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .vaw-shots--pair {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.vaw-shot-item .vehicle-share-caption {
  font-size: 0.82rem;
}

/* ----- Editor screenshot gallery (native dialog) ----- */
.editor-gallery {
  margin: auto;
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-xl);
  padding: 0;
  max-width: min(1100px, 96vw);
  width: calc(100% - 24px);
  max-height: 92vh;
  background: var(--surface-high);
  color: inherit;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.editor-gallery::backdrop {
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.editor-gallery__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  max-height: min(90vh, 900px);
  min-height: 0;
}
.editor-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.editor-gallery__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--on-surface);
}
.editor-gallery__panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.editor-gallery__panel {
  flex: 1;
  min-height: 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.editor-gallery__panel[hidden] {
  display: none !important;
}
.editor-gallery__carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.editor-gallery .carousel--showcase .carousel-viewport {
  height: clamp(260px, min(46vh, 50vw), 620px);
  max-height: 58vh;
}

/* ----- Scroll animations ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .carousel-track { transition: none; }
}

/* ----- Hero stats strip ----- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
}
.suite-hero .hero-stats {
  margin-top: clamp(12px, 2.2vh, 24px);
  gap: 8px;
}
.hero-stat {
  background: rgba(26, 26, 26, 0.65);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-md);
  padding: 12px 8px;
}
.suite-hero .hero-stat {
  background: linear-gradient(180deg, rgba(34, 32, 28, 0.75) 0%, rgba(18, 18, 18, 0.85) 100%);
  border-color: rgba(212, 146, 10, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.hero-stat span {
  display: block;
  font-size: clamp(0.62rem, 1.85vw, 0.72rem);
  color: var(--on-surface-variant);
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 280px; }
  .hero-stat span { white-space: normal; }
}

/* ----- Capability matrices (save / vehicle / mod) ----- */
.capability-block {
  margin-top: 40px;
}
.capability-block:first-of-type {
  margin-top: 0;
}
.capability-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.capability-block > p {
  font-size: 0.92rem;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
  max-width: 720px;
}
.feature-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .feature-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .feature-matrix--9 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-matrix__card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-lg);
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.feature-matrix__card:hover {
  border-color: rgba(212, 146, 10, 0.35);
}
.feature-matrix__card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 6px;
}
/* Match Mod Menu category cards: amber tab titles */
#save-detail .feature-matrix__card h4,
#vehicle-detail .feature-matrix__card h4 {
  color: var(--primary);
}
.feature-matrix__card p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0;
}
.feature-matrix__card--wide {
  grid-column: 1 / -1;
}
@media (min-width: 600px) {
  .feature-matrix__card--wide {
    grid-column: span 2;
  }
}
@media (min-width: 960px) {
  .feature-matrix__card--wide {
    grid-column: span 3;
  }
}

/* Vehicle Editor matrix: last row = Backups (1 col) + Configs (2 cols) */
#vehicle-detail .feature-matrix--9 .feature-matrix__card--span2 {
  grid-column: 1 / -1;
}
@media (min-width: 600px) {
  #vehicle-detail .feature-matrix--9 .feature-matrix__card--span2 {
    grid-column: span 2;
  }
}

.feature-matrix__card--lightbox {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: inherit;
}
.feature-matrix__card--lightbox:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.mod-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .mod-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mod-cat-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-lg);
  padding: 18px;
}
.mod-cat-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.mod-cat-card p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin: 0;
}
.mod-cat-card--lightbox {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: inherit;
}
.mod-cat-card--lightbox:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.mod-flow-list {
  margin-top: 24px;
  max-width: 720px;
}
.mod-flow-list li {
  padding-left: 0;
}
.mod-flow-list li::before {
  display: none;
}
.mod-flow-btn {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  display: block;
}
.mod-flow-btn:hover {
  color: var(--on-surface);
}
.mod-flow-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.mod-flow-btn--lightbox:hover {
  color: var(--primary);
}

/* ----- Screenshot lightbox (single image) ----- */
.screenshot-lightbox {
  margin: auto;
  padding: 0;
  max-width: min(96vw, 1180px);
  width: 100%;
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-lg);
  background: var(--surface);
  color: var(--on-surface);
}
.screenshot-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.screenshot-lightbox__inner {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
}
.screenshot-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--outline-variant);
  flex-shrink: 0;
}
.screenshot-lightbox__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.screenshot-lightbox__body {
  padding: 12px 14px 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.screenshot-lightbox__img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: var(--roundness-md);
  background: #0a0a0a;
}
.screenshot-lightbox__sub {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--on-surface-variant);
  text-align: center;
  max-width: 48rem;
}

/* ----- Expanded backup detail ----- */
.backup-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .backup-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.backup-detail {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--roundness-lg);
  padding: 20px;
}
.backup-detail h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.backup-detail p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin: 0;
}

.steps--extended .step p {
  font-size: 0.85rem;
  max-width: 42ch;
}

@media (min-width: 768px) {
  .steps.steps--six {
    grid-template-columns: repeat(3, 1fr);
  }
}
