/* ============================================
   E-Rider — Electric Motorsports
   ============================================ */

:root {
  --bg: #03080f;
  --bg-elevated: #070f1a;
  --bg-card: #0a1524;
  --bg-card-hover: #0e1c30;
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --lime: #39ff14;
  --lime-dim: rgba(57, 255, 20, 0.15);
  --violet: #a855f7;
  --text: #e8f4ff;
  --text-muted: #8ba3b8;
  --border: rgba(0, 240, 255, 0.12);
  --border-strong: rgba(0, 240, 255, 0.35);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.15);
  --header-h: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --yellow: #fecb00;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

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

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

ul {
  list-style: none;
}

button,
input {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

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

/* Ambient layers */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 70%);
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.text-gradient {
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Comfortable tap targets on interactive controls */
.btn,
.nav-toggle,
.nav-cta,
.kw-nav-cart {
  min-height: 44px;
  touch-action: manipulation;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-header h2,
.race-copy h2,
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 52ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00c4d4);
  color: #021018;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(0, 240, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 0.7rem 1.2rem;
  font-size: 0.7rem;
}

/* Logo banner sits above sticky nav (styles in assets/logo.css) */
.logo-header,
.page-banner {
  position: relative;
  z-index: 101;
  overflow: visible !important;
}

/* Don’t let global img rules squash / clip the header rider */
.logo-header img,
.page-banner img,
.logo-header .rider-stack img,
.page-banner .rider-stack img {
  max-width: none;
  width: 100%;
  height: auto;
}

/* Sticky site nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(3, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(254, 203, 0, 0.25);
}

.nav {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  z-index: 110;
  transition: color 0.2s, text-shadow 0.2s;
  line-height: 1.15;
  flex-shrink: 1;
  min-width: 0;
}

.nav-brand-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  max-width: 14rem;
}

.nav-brand-div {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-brand:hover {
  color: #fff3a8;
  text-shadow: 0 0 16px rgba(254, 203, 0, 0.45);
}

.nav-brand:hover .nav-brand-div {
  color: rgba(255, 243, 168, 0.75);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--yellow);
}

.nav-links a.nav-active {
  text-shadow: 0 0 12px rgba(254, 203, 0, 0.35);
}

/* Phone CTA sits outside the link list so it never wraps or gets crushed */
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 110;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(254, 203, 0, 0.45);
  color: var(--yellow) !important;
  background: rgba(254, 203, 0, 0.1);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: rgba(254, 203, 0, 0.22) !important;
  box-shadow: 0 0 20px rgba(254, 203, 0, 0.25);
  color: #fff3a8 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  min-height: min(92vh, 900px);
  min-height: min(92dvh, 900px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem min(5vw, 3rem) 4rem;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin-inline: auto;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 700;
}

/* Dual product hero tiles — locked equal size */
.hero-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

.hero-product-tile {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 3.1rem 1.4rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  padding: 1.25rem 1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-tile-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Shared image frame so board vs bike use identical box */
.hero-tile-img {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s var(--ease-out);
}

.hero-product-tile:hover .hero-tile-img {
  transform: scale(1.03);
}

.hero-product-tile:hover {
  border-color: rgba(254, 203, 0, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(254, 203, 0, 0.12);
}

.hero-tile-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.55rem) !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  max-width: 100%;
  height: 3.1rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pl-onewheel .hero-tile-label {
  color: var(--cyan);
  text-shadow: 0 0 36px var(--cyan);
}

.pl-bonnell .hero-tile-label {
  color: var(--yellow);
  text-shadow: 0 0 36px rgba(254, 203, 0, 0.55);
}

.hero-tile-sub {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-glow {
  position: absolute;
  top: 15%;
  right: 5%;
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(57, 255, 20, 0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--lime) 55%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 520px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--lime);
  margin-left: 0.15rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.speed-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
  animation: spin 20s linear infinite;
}

.ring-1 {
  width: min(90%, 420px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(0, 240, 255, 0.25);
}

.ring-2 {
  width: min(70%, 320px);
  aspect-ratio: 1;
  border-color: rgba(57, 255, 20, 0.2);
  animation-direction: reverse;
  animation-duration: 14s;
}

.ring-3 {
  width: min(50%, 220px);
  aspect-ratio: 1;
  border-color: rgba(0, 240, 255, 0.15);
  animation-duration: 10s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.car-silhouette {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  filter: drop-shadow(0 20px 40px rgba(0, 240, 255, 0.2));
  animation: float-car 5s ease-in-out infinite;
}

@keyframes float-car {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ev-car {
  width: 100%;
  height: auto;
}

.voltage-badge {
  position: absolute;
  bottom: 12%;
  right: 5%;
  z-index: 3;
  background: rgba(7, 15, 26, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
  animation: float-badge 4s ease-in-out infinite 0.5s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.vb-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.vb-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lime);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Experience cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.feature-grid .feature-card {
  flex: 1 1 260px;
  max-width: 300px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 240, 255, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Machines */
.machines {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.machine-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.machine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.machine-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 255, 0.1);
}

.machine-card.featured {
  grid-row: span 2;
}

.machine-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), #22c55e);
  color: #041208;
}

.machine-visual {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.machine-card.featured .machine-visual {
  min-height: 280px;
  flex: 1;
}

.machine-card.featured {
  position: relative;
}

.mv-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.machine-card:hover .mv-glow {
  opacity: 0.8;
}

.m-proto {
  background: linear-gradient(160deg, #061525 0%, #0a2038 50%, #041018 100%);
}
.m-proto .mv-glow { background: var(--cyan); }

.m-gt {
  background: linear-gradient(160deg, #0a1220 0%, #121a2e 100%);
}
.m-gt .mv-glow { background: var(--violet); }

.m-kart {
  background: linear-gradient(160deg, #061818 0%, #0a2420 100%);
}
.m-kart .mv-glow { background: var(--lime); }

.m-moto {
  background: linear-gradient(160deg, #120a18 0%, #1a1028 100%);
}
.m-moto .mv-glow { background: #f472b6; }

.mv-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 30px currentColor;
}

.m-proto .mv-label { color: var(--cyan); text-shadow: 0 0 40px var(--cyan); }
.m-gt .mv-label { color: #c4b5fd; text-shadow: 0 0 30px var(--violet); }
.m-kart .mv-label { color: var(--lime); text-shadow: 0 0 30px var(--lime); }
.m-moto .mv-label { color: #f9a8d4; text-shadow: 0 0 30px #f472b6; }

.machine-body {
  padding: 1.4rem 1.5rem 1.6rem;
  border-top: 1px solid var(--border);
}

.machine-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.machine-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.machine-specs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.machine-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.machine-specs span {
  color: var(--text-muted);
}

.machine-specs strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

/* Race section */
.race {
  background: radial-gradient(ellipse 80% 50% at 70% 50%, rgba(0, 240, 255, 0.06), transparent);
}

.race-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.race-list {
  margin: 2rem 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.race-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 21, 36, 0.6);
  transition: border-color 0.25s, background 0.25s;
}

.race-list li:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.race-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  min-width: 2rem;
  padding-top: 0.15rem;
}

.race-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.race-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.live-card {
  background: linear-gradient(145deg, #0a1628, #061018);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.live-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime), transparent);
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.live-time {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.live-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.live-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.live-meters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.meter-top span:last-child {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text);
}

.meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: var(--p);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #00a8b8);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  animation: fill-in 1.2s var(--ease-out) both;
}

.meter-fill.green {
  background: linear-gradient(90deg, var(--lime), #22c55e);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

@keyframes fill-in {
  from { width: 0; }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.cd-unit {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.4rem;
}

.cd-unit span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.2;
}

.cd-unit label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Tech */
.tech-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.tech-item {
  padding: 1.75rem 1.4rem;
  border-left: 2px solid var(--cyan);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.06), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.tech-item:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), transparent);
  transform: translateX(4px);
}

.tech-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.tech-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: 0.03em;
}

.tech-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.join {
  padding-bottom: 5rem;
}

.cta-box {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.95), rgba(5, 12, 22, 0.98));
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-box .eyebrow,
.cta-box h2,
.cta-box .section-lead {
  position: relative;
  margin-inline: auto;
}

.cta-box .section-lead {
  margin-bottom: 2rem;
}

.cta-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.cta-form input {
  flex: 1 1 220px;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-note {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.cta-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.cta-tags span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand-eyebrow {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--yellow);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.footer-brand-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffe566 0%, #fecb00 40%, #fff3a8 55%, #fecb00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.copyright {
  font-size: 0.85rem;
  color: rgba(139, 163, 184, 0.6);
  margin-top: 0.5rem;
}

/* Product lines (homepage) — locked equal Onewheel / Bonnell cards */
.product-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.85rem;
  align-items: stretch;
}

.product-line-card {
  display: grid;
  grid-template-rows: 320px 1fr;
  width: 100%;
  min-height: 620px;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.product-line-card:hover {
  border-color: rgba(254, 203, 0, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(254, 203, 0, 0.1);
}

.product-line-visual {
  position: relative;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  display: grid;
  grid-template-rows: 1fr 2.6rem;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 1.5rem 1.25rem 1.1rem;
  box-sizing: border-box;
}

.product-line-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-line-img {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s var(--ease-out);
}

.product-line-card:hover .product-line-img {
  transform: scale(1.03);
}

.pl-onewheel {
  background: linear-gradient(160deg, #061525 0%, #0a2038 50%, #041018 100%);
}
.pl-onewheel .mv-glow { background: var(--cyan); }

.pl-bonnell {
  background: linear-gradient(160deg, #1a1206 0%, #2a1e08 50%, #0d0a04 100%);
}
.pl-bonnell .mv-glow { background: var(--yellow); }

.product-line-visual .mv-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.45rem) !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  height: 2.6rem;
  max-width: 100%;
  padding: 0 0.75rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pl-onewheel .mv-label {
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan);
}

.pl-bonnell .mv-label {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(254, 203, 0, 0.6);
}

.product-line-body {
  padding: 1.6rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

.product-line-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  min-height: 1.7rem;
}

.product-line-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
  /* Keep body text blocks similar height */
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-line-points {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  min-height: 4.5rem;
}

.product-line-points li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}

.product-line-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(254, 203, 0, 0.6);
}

.product-line-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Homepage product highlight bands */
.highlight-section {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03), transparent);
}

.highlight-alt {
  background: linear-gradient(180deg, transparent, rgba(254, 203, 0, 0.04), transparent);
}

.highlight-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.75rem;
  align-items: center;
}

.highlight-layout.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.highlight-layout.reverse .highlight-copy {
  order: 2;
}

.highlight-layout.reverse .highlight-panel {
  order: 1;
}

.highlight-list {
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.highlight-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 21, 36, 0.6);
  transition: border-color 0.25s, background 0.25s;
}

.highlight-list li:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.hl-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  min-width: 2rem;
  padding-top: 0.1rem;
}

.highlight-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.highlight-list span:not(.hl-num) {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.highlight-panel {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 0.5rem;
}

.highlight-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.15;
}

.pl-onewheel .highlight-mark {
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan);
  letter-spacing: 0.1em;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.pl-bonnell .highlight-mark {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(254, 203, 0, 0.55);
  letter-spacing: 0.03em;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.highlight-tag {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.highlight-specs {
  grid-template-columns: repeat(4, 1fr);
  margin: 1.5rem 0 1.25rem;
}

.visit-actions {
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Subpages */
.subpage-hero {
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--yellow);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.product-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.25rem;
}

.subpage-hero-panel {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 0.5rem;
}

.subpage-hero-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pl-onewheel .subpage-hero-mark {
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan);
}

.pl-bonnell .subpage-hero-mark {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(254, 203, 0, 0.55);
}

.subpage-hero-tag {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-board-grid {
  grid-template-columns: 1fr 1.2fr 1fr;
}

.product-board-grid .machine-card.featured {
  grid-row: auto;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.spec-item:hover {
  border-color: rgba(254, 203, 0, 0.4);
  transform: translateY(-3px);
}

.spec-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.03em;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.config-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.config-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.config-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.config-chips span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(0, 240, 255, 0.04);
}

.config-chips.colors .swatch {
  border-color: rgba(254, 203, 0, 0.35);
}

.config-chips .slate { box-shadow: inset 0 0 0 2px #64748b; }
.config-chips .graphite { box-shadow: inset 0 0 0 2px #4b5563; }
.config-chips .amethyst { box-shadow: inset 0 0 0 2px #8b5cf6; }
.config-chips .texas { box-shadow: inset 0 0 0 2px #9ca3af; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
  }

  .hero-visual {
    order: -1;
    min-height: 280px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .machine-grid {
    grid-template-columns: 1fr 1fr;
  }

  .machine-card.featured {
    grid-column: span 2;
    grid-row: auto;
    flex-direction: row;
  }

  .machine-card.featured .machine-visual {
    min-height: 220px;
    flex: 1;
  }

  .machine-card.featured .machine-body {
    flex: 1;
    border-top: none;
    border-left: 1px solid var(--border);
  }

  .race-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tech-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-line-grid,
  .subpage-hero-grid,
  .config-grid,
  .highlight-layout,
  .highlight-layout.reverse {
    grid-template-columns: 1fr;
  }

  .highlight-layout.reverse .highlight-copy,
  .highlight-layout.reverse .highlight-panel {
    order: unset;
  }

  .product-feature-grid,
  .product-board-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spec-strip,
  .highlight-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-board-grid .machine-card.featured {
    grid-column: span 2;
  }

  .hero-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .hero-product-tile {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }

  .product-line-card {
    min-height: 560px;
    grid-template-rows: 260px 1fr;
  }

  .product-line-visual {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }
}

/* Collapse menu earlier so dense nav + phone CTA never collide */
@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    width: min(1180px, calc(100% - 1.25rem));
    gap: 0.5rem;
  }

  .nav-brand-text {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    max-width: 8.5rem;
  }

  .nav-brand-div {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .nav-brand-logo {
    width: 52px;
    height: 52px;
  }

  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    z-index: 120;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
    padding: max(5rem, env(safe-area-inset-top, 0px)) 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
    background: rgba(3, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 105;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-end {
    margin-left: auto;
    gap: 0.4rem;
  }

  .nav-cta {
    font-size: 0.7rem;
    padding: 0.55rem 0.7rem;
    letter-spacing: 0.02em;
    min-height: 44px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .container {
    width: min(1180px, calc(100% - 1.5rem));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 1.5rem 1rem 3rem;
    gap: 1.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.6rem);
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .feature-grid,
  .machine-grid,
  .tech-strip,
  .product-feature-grid,
  .product-board-grid,
  .spec-strip,
  .highlight-specs {
    grid-template-columns: 1fr;
  }

  .feature-grid .feature-card {
    max-width: 100%;
    flex-basis: 100%;
  }

  .visit-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .visit-actions .btn,
  .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  /* Keep small inline buttons from going full-width when not needed */
  .btn-sm {
    width: auto;
  }

  .machine-card.featured,
  .product-board-grid .machine-card.featured {
    grid-column: auto;
    flex-direction: column;
  }

  .machine-card.featured .machine-body {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .cta-box {
    padding: 2rem 1.1rem;
  }

  .countdown {
    gap: 0.4rem;
  }

  .cd-unit span {
    font-size: 1.15rem;
  }

  .footer-inner {
    padding-inline: 0.25rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
  }

  .product-line-body {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .product-line-body p {
    min-height: 0;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }

  .highlight-layout,
  .highlight-layout.reverse {
    gap: 1.5rem;
  }

  .highlight-panel {
    min-height: 220px;
  }

  /* Avoid horizontal overflow from wide content */
  .hero-product-tile,
  .product-line-card,
  .machine-card,
  .feature-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-dual {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-product-tile {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }

  .product-line-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .product-line-card {
    min-height: 0;
    grid-template-rows: 220px auto;
  }

  .product-line-visual {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    padding: 1rem 0.85rem 0.75rem;
  }

  .container {
    width: min(1180px, calc(100% - 1.15rem));
  }
}

@media (max-width: 400px) {
  .nav-brand-div {
    display: none;
  }

  .nav-brand-text {
    max-width: 5.5rem;
    font-size: 0.55rem;
  }

  .nav-brand-logo {
    width: 44px;
    height: 44px;
  }

  .nav-cta {
    font-size: 0.62rem;
    padding: 0.45rem 0.5rem;
  }

  .nav-end .kw-nav-cart {
    padding: 0.45rem 0.55rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
