/* ==========================================================================
   KNIGHT AUTOMOTIVE · Luxury Automotive Design System (Apple Aesthetics)
   Knight E1 Flagship Electric Vehicle (2026)
   ========================================================================== */

:root {
  color-scheme: dark light;

  /* Color Palette */
  --bg-black: #000000;
  --bg-deep: #070709;
  --bg-surface: #101014;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(0, 0, 0, 0.82);

  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #6e6e73;

  --accent-blue: #2997ff;
  --accent-blue-hover: #0077ed;
  --accent-glow: rgba(41, 151, 255, 0.35);

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.35);

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
  --radius-pill: 980px;
  --radius-card: 24px;
  --radius-sub: 16px;
}

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

html {
  font-family: var(--font-stack);
  background-color: var(--bg-black);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 64px;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  text-rendering: optimizeLegibility;
}

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

/* ==========================================================================
   CONTAINERS & TYPOGRAPHY
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.5vw, 28px);
  padding-right: clamp(16px, 3.5vw, 28px);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s var(--ease-apple);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 25px var(--accent-glow);
  transform: scale(1.02);
}

.btn-nav {
  padding: 6px 16px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-trim {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  width: 100%;
  margin-top: 24px;
}

.btn-trim:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.link-apple {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-apple:hover {
  text-decoration: underline;
  color: #60a5fa;
}

.chevron {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.link-apple:hover .chevron,
.ribbon-link:hover .chevron {
  transform: translateX(4px);
}

/* ==========================================================================
   GLOBAL NAVIGATION (FROSTED GLASS)
   ========================================================================== */

.global-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding-top: env(safe-area-inset-top);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 28px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo-svg {
  color: var(--text-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-apple);
}

/* ==========================================================================
   ANNOUNCEMENT RIBBON
   ========================================================================== */

.announcement-ribbon {
  background: #0d0d10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.announcement-ribbon .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-ribbon span {
  max-width: 100%;
  word-break: break-word;
}

.ribbon-tag {
  background: rgba(41, 151, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(41, 151, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.ribbon-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.ribbon-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 70px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-header {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(19px, 3vw, 24px);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 36px auto;
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 50px;
}

/* Hero Stage & Car Visualizer */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.stage-ambient-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(41, 151, 255, 0.18), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  transition: background 0.5s ease;
}

.car-presentation-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #09090b;
  border: 1px solid var(--border-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 100px rgba(41, 151, 255, 0.08);
}

.hero-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-apple);
}

/* Color Swatches Bar */
.hero-color-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.switcher-label {
  font-size: 13px;
  color: var(--text-muted);
}

.swatches-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swatch-btn.active {
  border-color: #ffffff;
  transform: scale(1.1);
}

.swatch-dot {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot-black { background: #121214; }
.dot-silver { background: #9a9b9e; }
.dot-blue { background: #1a2c4e; }
.dot-white { background: #e8ecf1; }

.color-selected-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 120px;
  text-align: left;
}

/* Floating HUD Metrics */
.hero-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-sub);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hud-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
}

.hud-value {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.hud-value small {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0;
}

.hud-desc {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   DYNAMICS & BENTO SECTION
   ========================================================================== */

.dynamics-section {
  padding: 100px 0;
  background: #050507;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  transition: transform 0.4s var(--ease-apple), border-color 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.bento-hero {
  grid-column: span 2;
  background: radial-gradient(circle at 80% 50%, rgba(41, 151, 255, 0.08), transparent 60%), var(--bg-card);
}

.bento-wide {
  grid-column: span 2;
}

.card-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.card-title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 600px;
}

.spec-highlight {
  margin-top: 24px;
}

.spec-num {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.spec-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.aero-badge {
  margin-top: 30px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  align-self: flex-start;
}

.charge-graphic {
  margin-top: 30px;
}

.charge-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.charge-bar-fill {
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #38bdf8);
  border-radius: 4px;
  animation: pulseBar 2.5s infinite ease-in-out;
}

@keyframes pulseBar {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px var(--accent-blue)); }
}

.charge-stat {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 600;
}

/* ==========================================================================
   INTERIOR SECTION
   ========================================================================== */

.interior-section {
  padding: 100px 0;
}

.interior-hero-frame {
  position: relative;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

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

.interior-overlay-details {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lounge-pill {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* ==========================================================================
   TRIMS SECTION (START, PRO, ELITE)
   ========================================================================== */

.trims-section {
  padding: 110px 0;
  background: #050507;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.trim-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.4s var(--ease-apple), border-color 0.4s ease;
}

.trim-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
}

.trim-card.featured {
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 40px rgba(41, 151, 255, 0.15);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.trim-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.trim-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.trim-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.trim-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 42px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.trim-price {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-bottom: 26px;
}

.price-val {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.price-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.trim-specs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.spec-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.b-icon {
  font-size: 16px;
  line-height: 1.2;
}

.spec-bullet div {
  display: flex;
  flex-direction: column;
}

.spec-bullet strong {
  color: #ffffff;
  font-weight: 600;
}

.spec-bullet span {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Detailed Comparison Table */
.comparison-block {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px;
  overflow: hidden;
}

.comparison-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.comparison-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.comparison-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.table-scroll-hint {
  display: none;
  font-size: 13px;
  color: var(--accent-blue);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 500;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(41, 151, 255, 0.08);
  border: 1px solid rgba(41, 151, 255, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.table-scroll-hint .hint-icon {
  font-size: 15px;
  animation: bounceHint 2s infinite ease-in-out;
}

@keyframes bounceHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.table-scroller {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroller::-webkit-scrollbar {
  height: 6px;
}

.table-scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.table-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.table-scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.col-feature {
  width: 28%;
  color: var(--text-muted);
  font-weight: 600;
}

.col-trim {
  width: 24%;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.featured-th,
.featured-td {
  background: rgba(41, 151, 255, 0.04);
  color: #93c5fd;
}

.comparison-table td.feature-name {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   CONFIGURATOR & PRE-ORDER SECTION
   ========================================================================== */

.configurator-section {
  padding: 100px 0 120px 0;
}

.configurator-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: flex-start;
}

/* Left: Car Preview Visualizer */
.config-preview-card {
  background: #09090b;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  position: sticky;
  top: 80px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.preview-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.preview-trim-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue);
  color: #ffffff;
}

.preview-color-pill {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.config-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sub);
  overflow: hidden;
  background: #000000;
  margin-bottom: 20px;
}

.config-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.preview-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.pqs-v {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.pqs-l {
  font-size: 12px;
  color: var(--text-muted);
}

/* Right: Form & Controls */
.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px;
}

.config-step {
  margin-bottom: 32px;
}

.config-step:last-child {
  margin-bottom: 0;
}

.step-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

/* Trim selection tabs */
.trim-tabs-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trim-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 14px 10px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.trim-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.trim-tab-btn.active {
  background: rgba(41, 151, 255, 0.15);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(41, 151, 255, 0.2);
}

.tt-name {
  font-size: 16px;
  font-weight: 700;
}

.tt-price {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Color selection */
.config-colors-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cfg-color-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 12px 14px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cfg-color-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cfg-color-btn.active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.cfg-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Form */
.preorder-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sub);
  padding: 13px 16px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.25);
}

/* Order Summary Box */
.order-summary-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sub);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.sum-row strong {
  color: #ffffff;
}

.sum-row.total {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 15px;
}

.sum-price {
  color: var(--accent-blue) !important;
  font-size: 18px;
  font-weight: 800;
}

.btn-submit-order {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

.order-guarantee-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   CONFIRMATION MODAL (ORDER RECEIPT)
   ========================================================================== */

.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.order-modal-dialog {
  width: 100%;
  max-width: 520px;
}

.modal-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.voucher-logo {
  margin-bottom: 12px;
}

.voucher-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.voucher-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.voucher-id {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.voucher-id strong {
  color: var(--accent-blue);
  font-family: monospace;
}

.voucher-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sub);
  padding: 18px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.vd-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.vd-row strong {
  color: #ffffff;
}

.vf-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* ==========================================================================
   PORTFOLIO DEMO SHOWCASE BAR
   ========================================================================== */

.demo-showcase-bar {
  background: #09090b;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 30px 0;
}

.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.demo-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: #3b82f6;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.demo-info strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 4px;
}

.demo-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */

.global-footer {
  background: #000000;
  padding: 50px 0 60px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-notes {
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 32px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.col-title {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-nav-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-grid a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--text-primary);
}

.legal-links .sep {
  color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN (LAPTOPS, TABLETS & MOBILE SMARTPHONES)
   ========================================================================== */

/* 1. Standard Laptops & Compact Desktops (1024px to 1280px) */
@media (max-width: 1200px) {
  .trims-grid {
    gap: 16px;
  }

  .trim-card {
    padding: 30px 20px;
  }

  .price-val {
    font-size: 28px;
  }

  .configurator-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
  }

  .config-card {
    padding: 28px 22px;
  }
}

/* 2. Shorter Laptop Viewports (1366x768, 1440x900, scaled 1080p) */
@media (min-width: 993px) and (max-height: 850px) {
  .config-preview-card {
    top: 64px;
    padding: 16px 20px;
  }

  .config-img-frame {
    margin-bottom: 12px;
  }

  .preview-quick-specs {
    padding-top: 10px;
  }

  .pqs-v {
    font-size: 16px;
  }

  .pqs-l {
    font-size: 11px;
  }
}

/* 3. Small Laptops, Tablets Landscape & Large Screens (<= 992px) */
@media (max-width: 992px) {
  .hero-hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .trims-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .trim-card.featured {
    transform: none;
  }

  .configurator-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .config-preview-card {
    position: static;
  }
}

/* 4. Tablets Portrait & Mobile Devices (<= 860px) */
@media (max-width: 860px) {
  .nav-container {
    height: 50px;
    padding: 0 18px;
  }

  /* Full-Screen Frosted Glass Apple Mobile Navigation Drawer */
  .nav-menu {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 50px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    padding: 36px 24px 60px 24px;
    border-bottom: none;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
    animation: fadeInMenu 0.25s var(--ease-apple) forwards;
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #ffffff;
    transform: translateX(4px);
  }

  .nav-toggle {
    display: flex;
    padding: 8px;
    background: transparent;
  }

  /* Bento Grid: 1 Column */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bento-hero,
  .bento-wide {
    grid-column: span 1;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* 5. Mobile & Tablets (<= 768px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 50px 0;
  }

  .dynamics-section,
  .interior-section,
  .trims-section,
  .configurator-section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Interior Cockpit Lounge Pills below image */
  .interior-overlay-details {
    position: static;
    margin-top: 16px;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .lounge-pill {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Comparison Table Mobile Scroller */
  .table-scroll-hint {
    display: flex;
  }

  .comparison-block {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .table-scroller {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .col-feature {
    min-width: 135px;
    font-size: 12px;
  }

  .col-trim {
    min-width: 105px;
    font-size: 14px;
  }

  .trim-card {
    padding: 28px 20px;
  }
}

/* 6. Smartphones (<= 640px) */
@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(32px, 8.5vw, 48px);
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 26px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 34px;
  }

  .hero-cta-group .btn-pill {
    width: 100%;
    max-width: 320px;
  }

  .hero-color-switcher {
    flex-direction: column;
    gap: 8px;
  }

  .color-selected-name {
    text-align: center;
    min-width: unset;
  }

  .bento-card {
    padding: 22px 18px;
    min-height: auto;
    border-radius: 20px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-desc {
    font-size: 14px;
  }

  .spec-num {
    font-size: 32px;
  }

  /* Configurator Controls */
  .config-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .config-step {
    margin-bottom: 26px;
  }

  .step-label {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Segmented iOS-Style Trim Buttons (Side-by-Side) */
  .trim-tabs-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .trim-tab-btn {
    padding: 10px 4px;
    border-radius: 12px;
  }

  .tt-name {
    font-size: 14px;
  }

  .tt-price {
    font-size: 11px;
  }

  /* Color buttons */
  .config-colors-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cfg-color-btn {
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 12px;
    gap: 8px;
  }

  .cfg-dot {
    width: 15px;
    height: 15px;
  }

  /* Inputs (16px prevents iOS automatic zoom on focus) */
  .form-input {
    font-size: 16px;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .order-summary-box {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .sum-row {
    font-size: 13px;
  }

  .sum-price {
    font-size: 17px;
  }

  .btn-submit-order {
    padding: 15px;
    font-size: 15px;
    border-radius: var(--radius-pill);
  }

  /* Confirmation Modal for Mobile Sheet */
  .order-modal-backdrop {
    padding: 16px;
    align-items: flex-end;
  }

  .order-modal-dialog {
    max-width: 100%;
    width: 100%;
    margin-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .modal-card {
    padding: 26px 18px 22px 18px;
    border-radius: 22px;
    max-height: 88dvh;
    overflow-y: auto;
  }

  .voucher-title {
    font-size: 20px;
  }

  .voucher-details {
    padding: 14px;
    font-size: 13px;
    gap: 8px;
  }

  .demo-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .demo-bar-inner .btn-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px;
  }
}

/* 7. Extra-Small Mobile Devices (<= 420px, e.g. iPhone SE / Mini) */
@media (max-width: 420px) {
  .hero-hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .hud-card {
    padding: 12px 6px;
    border-radius: 12px;
  }

  .hud-value {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .hud-value small {
    font-size: 12px;
  }

  .hud-desc {
    font-size: 10px;
  }

  .nav-logo {
    font-size: 14px;
    gap: 6px;
  }

  .logo-svg {
    width: 18px;
    height: 18px;
  }

  .nav-actions .btn-nav {
    padding: 5px 10px;
    font-size: 12px;
  }

  .announcement-ribbon {
    font-size: 12px;
    padding: 8px 12px;
  }

  .announcement-ribbon .container {
    gap: 6px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 8. Touch Screen Tap Target Optimization (Apple HIG) */
@media (hover: none) and (pointer: coarse) {
  .swatch-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .cfg-color-btn,
  .trim-tab-btn,
  .select-trim-btn,
  .btn-pill {
    min-height: 44px;
  }
}
