/* ==========================================================================
   dflasher.com - Complete Design System & Stylesheet
   BMW M57 Diesel ECU Tuning Application
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONT IMPORTS
   -------------------------------------------------------------------------- */
/* Fonts loaded via HTML <link> tags for better performance */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors */
  --color-midnight:      #000000;
  --color-surface:       #0a0a0a;
  --color-surface-alt:   #141414;

  /* Accent Colors */
  --color-electric:      #FFD700;
  --color-electric-dim:  #B8960C;
  --color-electric-glow: #FFD70033;
  --color-blue:          #00A3FF;

  /* Signal Colors */
  --color-power:         #FF3D00;
  --color-power-soft:    #FF3D0020;
  --color-success:       #00E676;
  --color-caution:       #FFB300;

  /* Neutral Colors */
  --color-white:         #FFFFFF;
  --color-gray-100:      #F1F5F9;
  --color-gray-200:      #CBD5E1;
  --color-gray-300:      #64748B;
  --color-gray-400:      #334155;

  /* Gradients */
  --gradient-hero:       linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
  --gradient-cta:        linear-gradient(135deg, #FFD700 0%, #B8960C 100%);
  --gradient-power:      linear-gradient(135deg, #FF3D00 0%, #FF6D00 100%);
  --gradient-card:       linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  --gradient-glow:       radial-gradient(ellipse at center, #FFD70015 0%, transparent 70%);

  /* Typography - Font Families */
  --font-display:   'Poppins', Arial, sans-serif;
  --font-body:      'Poppins', Arial, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, monospace;

  /* Typography - Sizes (Desktop defaults, overridden at breakpoints) */
  --text-hero:          64px;
  --lh-hero:            68px;
  --text-section:       48px;
  --lh-section:         52px;
  --text-card-title:    28px;
  --lh-card-title:      34px;
  --text-subheadline:   20px;
  --lh-subheadline:     28px;
  --text-body-lg:       18px;
  --lh-body-lg:         28px;
  --text-body:          16px;
  --lh-body:            24px;
  --text-caption:       13px;
  --lh-caption:         16px;
  --text-technical:     14px;
  --lh-technical:       20px;

  /* Spacing */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    32px;
  --space-2xl:   48px;
  --space-3xl:   56px;
  --space-4xl:   72px;
  --space-5xl:   88px;

  /* Borders & Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;
  --border-default: 1px solid var(--color-gray-400);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl:    0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow:  0 0 24px var(--color-electric-glow);
  --shadow-glow-strong: 0 0 32px #FFD70033;
  --shadow-power: 0 0 40px var(--color-power-soft);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navigation */
  --nav-height:        72px;
  --nav-height-mobile: 64px;

  /* Z-index scale */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

/* --------------------------------------------------------------------------
   2. MODERN CSS RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--color-gray-100);
  background-color: var(--color-midnight);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
}

::selection {
  background: var(--color-electric);
  color: var(--color-midnight);
}

:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-300);
}

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1440px;
}

/* Section spacing */
.section {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section-sm {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-lg {
  padding-top: 160px;
  padding-bottom: 160px;
}

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Display */
.d-none   { display: none; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }

/* Flex utilities */
.flex-col     { flex-direction: column; }
.flex-row     { flex-direction: row; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Spacing utilities */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Color utilities */
.text-electric { color: var(--color-electric); }
.text-power    { color: var(--color-power); }
.text-success  { color: var(--color-success); }
.text-caution  { color: var(--color-caution); }
.text-muted    { color: var(--color-gray-200); }
.text-dim      { color: var(--color-gray-300); }
.text-white    { color: var(--color-white); }

/* Background utilities */
.bg-midnight    { background-color: var(--color-midnight); }
.bg-surface     { background-color: var(--color-surface); }
.bg-surface-alt { background-color: var(--color-surface-alt); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive visibility */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */

/* Headings */
.h1, h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.h2, h2 {
  font-family: var(--font-display);
  font-size: var(--text-section);
  line-height: var(--lh-section);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.h3, h3 {
  font-family: var(--font-body);
  font-size: var(--text-card-title);
  line-height: var(--lh-card-title);
  font-weight: 700;
  color: var(--color-white);
}

.h4, h4 {
  font-family: var(--font-body);
  font-size: var(--text-subheadline);
  line-height: var(--lh-subheadline);
  font-weight: 600;
  color: var(--color-white);
}

.h5, h5 {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  font-weight: 600;
  color: var(--color-white);
}

.h6, h6 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: 600;
  color: var(--color-white);
}

/* Body text */
.body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
}

.body {
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

/* Overline */
.overline {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-electric);
}

.overline-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.overline-line::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
}

/* Caption */
.caption {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-300);
}

/* Technical / Monospace */
.technical,
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-technical);
  line-height: var(--lh-technical);
  font-weight: 500;
}

/* Stat numbers */
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.stat-number-lg {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
}

.stat-number-md {
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.1;
}

.stat-number-sm {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
}

/* Text emphasis */
.text-gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-power {
  background: var(--gradient-power);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Paragraph default spacing */
p + p {
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base),
    opacity var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button sizes */
.btn-sm {
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.btn-md,
.btn {
  font-size: 15px;
  padding: 12px 28px;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
}

/* Primary button - Gold gradient */
.btn-primary {
  background: var(--gradient-cta);
  color: #000;
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-md), 0 0 20px var(--color-electric-glow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* Primary button shine effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 600ms ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Secondary button - Ghost border */
.btn-secondary {
  background: transparent;
  color: var(--color-electric);
  border: 2px solid var(--color-electric);
}

.btn-secondary:hover {
  background: var(--color-electric-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Ghost button - Text only */
.btn-ghost {
  background: transparent;
  color: var(--color-gray-100);
  border: none;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.btn-ghost:hover {
  color: var(--color-electric);
  background: rgba(255, 255, 255, 0.05);
}

/* Danger button - Red */
.btn-danger {
  background: var(--gradient-power);
  color: var(--color-white);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-danger:hover {
  box-shadow: var(--shadow-lg), var(--shadow-power);
  transform: translateY(-2px);
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-icon svg,
.btn-icon img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-lg .btn-icon svg,
.btn-lg .btn-icon img {
  width: 24px;
  height: 24px;
}

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   6. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
  background: transparent;
}

.nav-scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  text-decoration: none;
  z-index: var(--z-overlay);
}

.nav-logo img,
.nav-logo-img {
  height: 72px;
  width: auto;
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

.store-badge {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gray-200);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-sm) 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-gray-400);
  border-top: 1px solid var(--color-gray-400);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--color-gray-200);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-item:hover {
  background: var(--color-surface-alt);
  color: var(--color-white);
}

/* Nav Actions container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Nav CTA */
.nav-cta {
}

/* Nav Account - accent button */
.nav-account {
  font-size: 12px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-account svg {
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 24px;
  justify-content: center;
  z-index: var(--z-overlay);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-mobile-overlay {
  display: none;
}

@media (max-width: 1023px) {
  .nav {
    height: var(--nav-height-mobile);
  }

  .nav-logo img,
  .nav-logo-img {
    height: 56px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav-mobile-overlay.open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-overlay .nav-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
  }

  .nav-mobile-overlay .btn {
    margin-top: var(--space-lg);
  }
}

/* Spacer for fixed nav */
.nav-spacer {
  height: var(--nav-height);
}

@media (max-width: 1023px) {
  .nav-spacer {
    height: var(--nav-height-mobile);
  }
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: var(--gradient-glow);
  pointer-events: none;
  opacity: 0.35;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-midnight), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: var(--z-base);
}

.hero-content {
  max-width: 600px;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-overline::before {
  content: '';
  width: 48px;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-subheadline {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-gray-200);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* App store badges */
.hero-badges {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-badge {
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hero-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Social proof */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-midnight);
  margin-left: -10px;
  object-fit: cover;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-social-text {
  font-size: 14px;
  color: var(--color-gray-200);
}

.hero-social-text strong {
  color: var(--color-white);
  font-weight: 600;
}

.hero-social-stars {
  display: flex;
  gap: 2px;
  color: var(--color-caution);
  margin-bottom: 4px;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-img {
  max-width: 340px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(255, 215, 0, 0.15)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  animation: phoneFloat 6s ease-in-out infinite;
  z-index: 2;
  will-change: transform;
}

.hero-adapter-img {
  max-width: 160px;
  width: 40%;
  height: auto;
  position: absolute;
  right: -10%;
  bottom: 10%;
  filter: drop-shadow(0 12px 40px rgba(255, 215, 0, 0.1)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
  animation: phoneFloat 6s ease-in-out infinite;
  animation-delay: -3s;
  z-index: 1;
  will-change: transform;
}

.hero-phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 40px;
  background: var(--color-surface);
  border: 2px solid var(--color-gray-400);
  box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
  overflow: hidden;
  animation: phoneFloat 6s ease-in-out infinite;
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

.hero-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--color-midnight);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Hero background decoration */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hero responsive */
@media (max-width: 1023px) {
  .hero {
    padding-top: calc(var(--nav-height-mobile) + var(--space-2xl));
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-headline {
    font-size: var(--text-hero);
    line-height: var(--lh-hero);
  }

  .hero-subheadline {
    max-width: 100%;
  }

  .hero-overline {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-badge {
    min-height: 48px;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-mockup-img {
    max-width: 240px;
  }

  .hero-adapter-img {
    max-width: 110px;
    right: -5%;
    bottom: 5%;
  }

  .hero-phone {
    width: 240px;
    height: 500px;
  }
}

/* --------------------------------------------------------------------------
   8. TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  position: relative;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-gray-400);
  border-bottom: 1px solid var(--color-gray-400);
  background: var(--color-surface);
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-bar-item {
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  position: relative;
}

.trust-bar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--color-gray-400);
}

.trust-bar-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.trust-bar-value .accent {
  color: var(--color-electric);
}

.trust-bar-value .power {
  color: var(--color-power);
}

.trust-bar-label {
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-300);
}

@media (max-width: 767px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar-item:nth-child(2)::after {
    display: none;
  }

  .trust-bar-item:nth-child(1),
  .trust-bar-item:nth-child(2) {
    border-bottom: 1px solid var(--color-gray-400);
    padding-bottom: var(--space-xl);
  }

  .trust-bar-item:nth-child(3),
  .trust-bar-item:nth-child(4) {
    padding-top: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   9. FEATURE GRID
   -------------------------------------------------------------------------- */
.features {
  position: relative;
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.features-header .overline {
  margin-bottom: var(--space-md);
}

.features-header h2 {
  margin-bottom: var(--space-md);
}

.features-header p {
  color: var(--color-gray-200);
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 215, 0, 0.15);
}

/* Highlighted card */
.feature-card-highlighted {
  border-color: var(--color-electric);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, var(--color-surface) 100%);
}

.feature-card-highlighted::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient-cta);
  z-index: -1;
  opacity: 0.15;
}

/* Icon circle */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-electric-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: background var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(0, 212, 255, 0.25);
}

.feature-icon svg,
.feature-icon img {
  width: 28px;
  height: 28px;
  color: var(--color-electric);
}

.feature-icon-power {
  background: var(--color-power-soft);
}

.feature-icon-power svg,
.feature-icon-power img {
  color: var(--color-power);
}

.feature-card h3 {
  font-size: var(--text-subheadline);
  line-height: var(--lh-subheadline);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-gray-200);
  font-size: 15px;
  line-height: 24px;
}

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-electric-glow);
  color: var(--color-electric);
  margin-bottom: var(--space-md);
}

.feature-tag-power {
  background: var(--color-power-soft);
  color: var(--color-power);
}

@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. HOW IT WORKS
   -------------------------------------------------------------------------- */
.how-it-works {
  position: relative;
}

.how-it-works-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* Connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-electric), var(--color-electric-dim), var(--color-electric));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-electric);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-electric);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-electric-glow);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--color-electric);
}

.step h3 {
  font-size: var(--text-subheadline);
  line-height: var(--lh-subheadline);
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--color-gray-200);
  font-size: 15px;
  line-height: 24px;
  max-width: 280px;
  margin: 0 auto;
}

/* Mobile: vertical timeline */
@media (max-width: 767px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-left: var(--space-3xl);
  }

  .steps::before {
    top: 0;
    bottom: 0;
    left: 39px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 22px;
    position: absolute;
    left: calc(-1 * var(--space-3xl) - 28px + 12px);
  }

  .step p {
    max-width: 100%;
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   11. ABOUT DFLASHER SECTION
   -------------------------------------------------------------------------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block-reverse {
  direction: rtl;
}

.about-block-reverse > * {
  direction: ltr;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.about-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-gray-200);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon-box {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.02));
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-electric);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-icon-box:hover {
  transform: scale(1.05);
  border-color: rgba(0, 212, 255, 0.35);
}

@media (max-width: 767px) {
  .about-block {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .about-block-reverse {
    direction: ltr;
  }
  .about-icon-box {
    width: 120px;
    height: 120px;
  }
}

/* --------------------------------------------------------------------------
   12. PERFORMANCE SECTION
   -------------------------------------------------------------------------- */
.performance {
  position: relative;
  overflow: hidden;
}

.performance::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 50%;
  height: 100%;
  background: var(--gradient-glow);
  opacity: 0.15;
  pointer-events: none;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.performance-content {
  position: relative;
  z-index: var(--z-base);
}

.performance-content .overline {
  margin-bottom: var(--space-md);
}

.performance-content h2 {
  margin-bottom: var(--space-md);
}

.performance-content > p {
  color: var(--color-gray-200);
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  margin-bottom: var(--space-xl);
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-card-value.electric {
  color: var(--color-electric);
}

.stat-card-value.power {
  color: var(--color-power);
}

.stat-card-label {
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-300);
}

.stat-card-unit {
  font-size: 16px;
  font-weight: 600;
}

/* Stage tabs */
.stage-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.stage-tab {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-200);
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.stage-tab:hover {
  border-color: var(--color-gray-300);
  color: var(--color-white);
}

.stage-tab.active {
  background: var(--gradient-cta);
  color: var(--color-midnight);
  border-color: transparent;
}

/* Stage Optimization Variants */
.stage-optimizations {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-opt-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-300);
  margin-bottom: var(--space-sm);
}

.stage-opt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.opt-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.opt-tag.opt-compatible {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--color-electric);
}

.opt-tag.opt-required {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--color-caution);
}

.stage-legacy-note {
  margin-top: var(--space-sm);
  font-size: 12px;
  color: var(--color-gray-400);
  font-style: italic;
}

/* Performance visual */
.performance-visual {
  position: relative;
}

.performance-chart {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.performance-engine-img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 40px rgba(255, 215, 0, 0.1));
}

@media (max-width: 1023px) {
  .performance-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .performance-visual {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   12. APP SHOWCASE
   -------------------------------------------------------------------------- */
.app-showcase {
  position: relative;
  overflow: hidden;
}

.app-showcase-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  padding: var(--space-3xl) 0;
}

/* Center phone */
.app-showcase-phone {
  position: relative;
  width: 280px;
  height: 580px;
  border-radius: 36px;
  background: var(--color-surface);
  border: 2px solid var(--color-gray-400);
  box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
}

.app-showcase-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

/* Callout cards */
.callout-card {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 3;
  transition: transform var(--transition-base);
}

.callout-card:hover {
  transform: scale(1.05);
}

.callout-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.callout-card p {
  font-size: 13px;
  color: var(--color-gray-200);
}

.callout-card-left-top {
  top: 15%;
  right: calc(50% + 180px);
}

.callout-card-left-bottom {
  bottom: 20%;
  right: calc(50% + 160px);
}

.callout-card-right-top {
  top: 20%;
  left: calc(50% + 180px);
}

.callout-card-right-bottom {
  bottom: 15%;
  left: calc(50% + 160px);
}

/* Connection lines */
.callout-line {
  position: absolute;
  z-index: 1;
}

@media (max-width: 1023px) {
  .app-showcase-wrapper {
    flex-direction: column;
    min-height: auto;
    gap: var(--space-lg);
  }

  .callout-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    min-width: auto;
    width: 100%;
    max-width: 400px;
  }

  .app-showcase-phone {
    width: 240px;
    height: 500px;
  }
}

/* App Screenshots Grid — Premium 2x2 Layout */
.app-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.app-screenshot {
  text-align: center;
  position: relative;
}

.app-screenshot img {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(0, 212, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  margin: 0 auto;
  display: block;
}

.app-screenshot:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 212, 255, 0.15),
    0 0 120px rgba(0, 212, 255, 0.08);
}

.app-screenshot-label {
  margin-top: var(--space-lg);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-electric);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 767px) {
  .app-screenshots-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 480px;
  }
  .app-screenshot img {
    max-width: 100%;
  }
}

/* User Gallery */
.gallery-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.gallery-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-arrow:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--color-electric);
  transform: scale(1.1);
}

.user-gallery {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.user-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.gallery-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .gallery-card {
    flex: 0 0 240px;
  }
  .gallery-img {
    height: 320px;
  }
  .gallery-arrow {
    width: 36px;
    height: 36px;
  }
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials {
  position: relative;
}

.testimonials-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.testimonials-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) var(--space-sm) var(--space-xl);
  margin: 0 calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 min(400px, 80vw);
  scroll-snap-align: center;
  background: var(--gradient-card);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: var(--shadow-md);
}

/* Star rating */
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
}

.star {
  width: 22px;
  height: 22px;
  color: var(--color-caution);
}

.star-empty {
  color: var(--color-gray-400);
}

.testimonial-text {
  font-size: 15px;
  line-height: 24px;
  color: var(--color-gray-100);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-text::before {
  content: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-alt);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial-detail {
  font-size: 13px;
  color: var(--color-gray-300);
}

/* Arrow navigation */
.testimonials-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.testimonial-arrow:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--color-electric);
  transform: scale(1.1);
}


@media (max-width: 767px) {
  .testimonial-card {
    flex: 0 0 min(320px, 85vw);
  }

  .testimonial-arrow {
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   14. PRICING
   -------------------------------------------------------------------------- */
.pricing {
  position: relative;
}

.pricing-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

/* Product cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-popular {
  border-color: var(--color-electric);
  box-shadow: var(--shadow-glow);
}

.pricing-card-popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: var(--color-midnight);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card-name {
  font-size: var(--text-subheadline);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.pricing-card-desc {
  font-size: 14px;
  color: var(--color-gray-300);
  margin-bottom: var(--space-lg);
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.pricing-card-amount {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.pricing-card-period {
  font-size: 14px;
  color: var(--color-gray-300);
}

.pricing-card-original {
  text-decoration: line-through;
  color: var(--color-gray-300);
  font-size: 18px;
}

/* Feature checkmark list */
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 15px;
  line-height: 22px;
  color: var(--color-gray-100);
}

.pricing-feature svg,
.pricing-feature .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 1px;
}

.pricing-feature-disabled {
  color: var(--color-gray-300);
}

.pricing-feature-disabled svg,
.pricing-feature-disabled .check {
  color: var(--color-gray-400);
}

.pricing-card .btn {
  width: 100%;
}

@media (max-width: 1023px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-card-featured {
  border-color: rgba(0, 212, 255, 0.4) !important;
  position: relative;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-electric);
  color: var(--color-bg-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-decimal {
  font-size: 0.6em;
  vertical-align: super;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq {
  position: relative;
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-gray-300);
}

.faq-item.open {
  border-color: var(--color-electric-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  transition: color var(--transition-fast);
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--color-electric);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  color: var(--color-gray-300);
  transition: transform var(--transition-base), color var(--transition-base);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: var(--radius-full);
}

.faq-icon::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-item.open .faq-icon {
  color: var(--color-electric);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 15px;
  line-height: 26px;
  color: var(--color-gray-200);
}

.faq-answer-inner a {
  color: var(--color-electric);
  text-decoration: underline;
  text-decoration-color: var(--color-electric-glow);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.faq-answer-inner a:hover {
  text-decoration-color: var(--color-electric);
}

/* --------------------------------------------------------------------------
   16. FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.25;
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 700px;
  margin: 0 auto;
}

.final-cta .overline {
  margin-bottom: var(--space-md);
}

.final-cta h2 {
  margin-bottom: var(--space-md);
}

.final-cta p {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-gray-200);
  margin-bottom: var(--space-xl);
}

.final-cta .btn-group {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-gray-400);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-gray-300);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-200);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--color-electric);
  color: var(--color-midnight);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: 14px;
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-electric);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-400);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-gray-300);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-link {
  font-size: 13px;
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--color-electric);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   18. STICKY MOBILE CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-gray-400);
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
  }

  .mobile-cta-text {
    flex: 1;
  }

  .mobile-cta-text .price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
  }

  .mobile-cta-text .label {
    font-size: 12px;
    color: var(--color-gray-300);
  }

  .mobile-cta .btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 12px 20px;
  }

  /* Extra padding at footer to account for sticky CTA */
  .footer {
    padding-bottom: 100px;
  }
}

/* --------------------------------------------------------------------------
   19. ANIMATIONS
   -------------------------------------------------------------------------- */

/* Fade up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Slide in from left */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }
.delay-7 { transition-delay: 700ms; }
.delay-8 { transition-delay: 800ms; }

/* Phone float keyframes */
@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Subtle pulse for glow elements */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--color-electric-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--color-electric-glow), 0 0 80px rgba(0, 212, 255, 0.1);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Counter animation helper */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.6s ease-out forwards;
}

/* Spinner / Loading */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-gray-400);
  border-top-color: var(--color-electric);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Shimmer effect for loading states */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-alt) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* Nav scroll transition */
.nav {
  transition: background var(--transition-base), box-shadow var(--transition-base), height var(--transition-base);
}

.nav-scrolled .nav-inner {
  transition: height var(--transition-base);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up,
  .fade-in,
  .slide-left,
  .slide-right,
  .scale-up {
    opacity: 1;
    transform: none;
  }

  .hero-phone {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   20. ADDITIONAL PAGES
   -------------------------------------------------------------------------- */

/* Page hero (compact) */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-midnight), transparent);
  pointer-events: none;
}

.page-hero .overline {
  margin-bottom: var(--space-md);
}

.page-hero h1 {
  font-size: var(--text-section);
  line-height: var(--lh-section);
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-gray-200);
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-electric);
}

.breadcrumb-separator {
  color: var(--color-gray-400);
  margin: 0 8px;
}

.breadcrumb-current {
  color: var(--color-gray-100);
}

/* Engine specs table */
.specs-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-400);
}

.specs-table {
  width: 100%;
  min-width: 600px;
}

.specs-table thead {
  background: var(--color-surface-alt);
}

.specs-table th {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-200);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-gray-400);
}

.specs-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 15px;
  color: var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-400);
  vertical-align: middle;
}

.specs-table tbody tr {
  transition: background var(--transition-fast);
}

.specs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.specs-table .mono {
  font-family: var(--font-mono);
  font-size: var(--text-technical);
  color: var(--color-electric);
}

.specs-table .value-power {
  color: var(--color-power);
  font-weight: 600;
}

.specs-table .value-success {
  color: var(--color-success);
  font-weight: 600;
}

/* Engine badge in table */
.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-size: 13px;
  font-weight: 500;
}

/* Timeline layout */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-electric), var(--color-electric-dim), var(--color-gray-400));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 8px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-electric);
  border: 3px solid var(--color-midnight);
  box-shadow: 0 0 12px var(--color-electric-glow);
}

.timeline-date {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-electric);
  margin-bottom: var(--space-sm);
}

.timeline-item h3 {
  font-size: var(--text-subheadline);
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  font-size: 15px;
  line-height: 24px;
  color: var(--color-gray-200);
}

/* Support grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.support-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.support-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.support-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-electric-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.support-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-electric);
}

.support-card h3 {
  font-size: var(--text-subheadline);
  margin-bottom: var(--space-sm);
}

.support-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-gray-200);
  margin-bottom: var(--space-lg);
}

@media (max-width: 767px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.form-label .required {
  color: var(--color-power);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  color: var(--color-gray-100);
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-300);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-electric);
  box-shadow: 0 0 0 3px var(--color-electric-glow);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--color-gray-300);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 5.5l3.5 4 3.5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-hint {
  font-size: 13px;
  color: var(--color-gray-300);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: 13px;
  color: var(--color-power);
  margin-top: var(--space-xs);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--color-power);
}

.form-input.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px var(--color-power-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-electric);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-check-label {
  font-size: 15px;
  color: var(--color-gray-100);
}

/* Success / Alert messages */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.alert-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--color-success);
}

.alert-error {
  background: rgba(255, 61, 0, 0.1);
  border: 1px solid rgba(255, 61, 0, 0.2);
  color: var(--color-power);
}

.alert-warning {
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.2);
  color: var(--color-caution);
}

.alert-info {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--color-electric);
}

/* --------------------------------------------------------------------------
   21. ADDITIONAL COMPONENTS
   -------------------------------------------------------------------------- */

/* Badges / Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-electric {
  background: var(--color-electric-glow);
  color: var(--color-electric);
}

.badge-power {
  background: var(--color-power-soft);
  color: var(--color-power);
}

.badge-success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-success);
}

.badge-caution {
  background: rgba(255, 179, 0, 0.15);
  color: var(--color-caution);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-gray-400);
  border: none;
}

.divider-glow {
  background: linear-gradient(90deg, transparent, var(--color-electric-glow), transparent);
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-gray-100);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
  z-index: var(--z-toast);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Progress bar */
.progress {
  width: 100%;
  height: 8px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-cta);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-power {
  background: var(--gradient-power);
}

/* Chip / Pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-gray-400);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-100);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.chip:hover {
  background: var(--color-surface);
  border-color: var(--color-gray-300);
}

.chip.active {
  background: var(--color-electric-glow);
  border-color: var(--color-electric);
  color: var(--color-electric);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--color-gray-400);
}

.modal-header h3 {
  font-size: var(--text-subheadline);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-300);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-surface-alt);
  color: var(--color-white);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-gray-400);
}

/* Toast / Notification */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  background: var(--color-surface);
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 400px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-error   { border-left: 3px solid var(--color-power); }
.toast-info    { border-left: 3px solid var(--color-electric); }

/* --------------------------------------------------------------------------
   22. RESPONSIVE TYPE SCALE
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --text-hero:        36px;
    --lh-hero:          40px;
    --text-section:     32px;
    --lh-section:       36px;
    --text-card-title:  22px;
    --lh-card-title:    28px;
    --text-subheadline: 17px;
    --lh-subheadline:   24px;
    --text-body-lg:     16px;
    --lh-body-lg:       24px;
    --text-body:        15px;
    --lh-body:          22px;
  }

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .section-lg {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-hero:        48px;
    --lh-hero:          52px;
    --text-section:     40px;
    --lh-section:       44px;
    --text-card-title:  24px;
    --lh-card-title:    30px;
  }

  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }

  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

/* Wide screens */
@media (min-width: 1440px) {
  .container {
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
  }
}

/* --------------------------------------------------------------------------
   23. DARK MODE OVERRIDES (for future light-mode support)
   -------------------------------------------------------------------------- */

/* The site is dark by default. This section provides a structure for a
   potential light-mode toggle in the future. */

[data-theme="light"] {
  --color-midnight:    #FFFFFF;
  --color-surface:     #F8FAFC;
  --color-surface-alt: #F1F5F9;
  --color-gray-100:    #1E293B;
  --color-gray-200:    #475569;
  --color-gray-300:    #94A3B8;
  --color-gray-400:    #E2E8F0;
  --color-white:       #0F172A;
}

/* Performance: skip rendering of off-screen sections */
.features,
.how-it-works,
.performance,
.app-showcase,
.testimonials,
.pricing,
.faq,
.final-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* --------------------------------------------------------------------------
   24. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .nav,
  .mobile-cta,
  .footer,
  .btn,
  .final-cta {
    display: none !important;
  }

  a {
    text-decoration: underline;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}

/* --------------------------------------------------------------------------
   LEGAL CONTENT
   -------------------------------------------------------------------------- */
.legal-content {
  color: var(--color-gray-200);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: var(--text-card-title);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: var(--text-subheadline);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-electric);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.legal-content li {
  list-style: disc;
  margin-bottom: var(--space-md);
  padding-left: var(--space-sm);
}

.legal-content a {
  color: var(--color-electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  opacity: 0.8;
}
