/* ═══════════════════════════════════════════════════════════════
   LUDYX — Official Website Styles
   Brand: F1 Racing + LEGO + Electronics
   ═══════════════════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'SpeedPlus2';
  src: url('../assets/fonts/speed+2.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SpeedPlus';
  src: url('../assets/fonts/speed+.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --orange:       #C8840A;
  --orange-light: #E09520;
  --orange-dark:  #8A5A05;
  --green:        #3CB371;
  --green-light:  #4ecb82;
  --green-dark:   #267A4D;
  --red:          #E00000;
  --red-dark:     #A80000;

  --dark-900:     #0D0D0D;
  --dark-800:     #141414;
  --dark-700:     #1C1C1C;
  --dark-600:     #252525;
  --dark-500:     #2F2F2F;
  --asphalt:      #1A1A1A;
  --asphalt-mid:  #222222;

  --white:        #FFFFFF;
  --off-white:    #F5F0E8;
  --grey-300:     #A0A0A0;
  --grey-400:     #707070;

  --font-title:   'SpeedPlus2', 'SpeedPlus', Impact, sans-serif;
  --font-speed:   'SpeedPlus2', Impact, sans-serif;
  --font-body:    'Berlin Sans FB Demi', 'Franklin Gothic Medium', 'Trebuchet MS', sans-serif;

  --section-pad:  clamp(60px, 8vw, 120px);
  --left-gutter:  clamp(80px, 10vw, 140px);
  --radius:       4px;
  --radius-lg:    8px;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--font-body);
  background: var(--dark-900);
  color: var(--white);
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── ASPHALT TEXTURE (CSS) ─────────────────────────────────── */
.section-asphalt {
  background-color: var(--asphalt);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.015) 2px,
      rgba(255,255,255,0.015) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    );
}

.section-dark {
  background-color: var(--dark-800);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,132,10,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(60,179,113,0.04) 0%, transparent 60%);
}

/* ─── CHECKERBOARD STRIPE ───────────────────────────────────── */
.checker-stripe {
  width: 100%;
  height: 18px;
  background-image:
    repeating-linear-gradient(
      90deg,
      #fff 0px, #fff 18px,
      #111 18px, #111 36px
    );
  opacity: 0.85;
}
.checker-top  { position: absolute; top: 0; left: 0; z-index: 3; }
.checker-bottom { position: absolute; bottom: 0; left: 0; z-index: 3; }

/* ─── LEGO STUD ─────────────────────────────────────────────── */
.stud {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5), rgba(255,255,255,0.1) 40%, transparent 70%), #888;
  border: 2px solid rgba(0,0,0,0.4);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.3);
  margin: 3px;
  flex-shrink: 0;
}
.stud.sm { width: 18px; height: 18px; margin: 2px; }
.stud.xs { width: 12px; height: 12px; margin: 1px; }
.stud.orange {
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5), rgba(255,255,255,0.1) 40%, transparent 70%), var(--orange);
}
.stud.green {
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5), rgba(255,255,255,0.1) 40%, transparent 70%), var(--green);
}

.stud-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.hero-studs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  justify-content: center;
}
.footer-studs { justify-content: flex-end; margin-bottom: 8px; }

/* ─── NAVIGATION ────────────────────────────────────────────── */
.ludyx-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(13,13,13,0.0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.ludyx-nav.scrolled {
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 1px 0 rgba(200,132,10,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  gap: 16px;
}

.nav-logo { height: 44px; width: auto; object-fit: contain; }
.nav-logo-link { transition: opacity 0.2s; z-index: 9999 }
.nav-logo-link:hover { opacity: 1; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.nav-links li a.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 7px 16px;
  font-weight: bold;
  letter-spacing: 0.15em;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.nav-links li a.nav-cta:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* ─── BURGER ─────────────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ─── MOBILE DRAWER ─────────────────────────────────────────── */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(16px);
  z-index: 9998;
  padding: 20px 0 30px;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 3px solid var(--red);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer ul li a {
  display: block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
.mobile-drawer ul li a:hover { color: var(--orange-light); background: rgba(200,132,10,0.08); }

/* ─── RED SEPARATOR ─────────────────────────────────────────── */
.red-separator {
  position: relative;
  overflow: hidden;
  height: 60px;
  background: transparent;
  pointer-events: none;
  z-index: 10;
}
.red-curve-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.red-line-img {
  display: none; /* SVG version used; show this if SVG fails */
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-900);
}

/* Noise texture overlay */
.asphalt-overlay {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

/* Speed lines */
.speed-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sl {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  width: 60%;
  left: 20%;
}
.sl1 { top: 20%; animation: speedLine 4s ease-in-out infinite 0s; }
.sl2 { top: 35%; animation: speedLine 4s ease-in-out infinite 0.8s; }
.sl3 { top: 55%; animation: speedLine 4s ease-in-out infinite 1.6s; }
.sl4 { top: 70%; animation: speedLine 4s ease-in-out infinite 2.4s; }

@keyframes speedLine {
  0%   { transform: scaleX(0) translateX(-50%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleX(1) translateX(20%); opacity: 0; }
}

/* Circuit BG SVG */
.circuit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-logo-wrap { position: relative; display: inline-block; }
.hero-logo {
  width: clamp(260px, 45vw, 560px);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(200,132,10,0.4)) drop-shadow(0 0 60px rgba(60,179,113,0.2));
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.highlight-orange { color: var(--orange-light); font-weight: bold; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.badge-pill {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.badge-pill i { font-size: 0.9rem; color: var(--orange-light); }

/* Race button */
.btn-race {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(224,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-race:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(224,0,0,0.5);
}
.btn-race-inner {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 14px 28px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}
.btn-race-flag {
  background: var(--red-dark);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
}
.btn-race.full-width { width: 100%; justify-content: stretch; }
.btn-race.full-width .btn-race-inner { flex: 1; text-align: center; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
.animate-logo    { animation: fadeDown 0.9s ease both; }
.animate-tagline { animation: fadeDown 0.9s ease 0.2s both; }
.animate-badges  { animation: fadeDown 0.9s ease 0.4s both; }
.animate-cta     { animation: fadeDown 0.9s ease 0.6s both; }

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-card {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-card.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }

/* ─── SECTION LAYOUT SYSTEM ─────────────────────────────────── */
.page-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-layout {
  display: flex;
  align-items: stretch;
  min-height: 100px;
}

.vertical-title-wrap {
  flex-shrink: 0;
  width: var(--left-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px 0;
}

.vertical-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  color: rgba(255,255,255,0.85);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1;
  text-shadow:
    2px 0 0 rgba(0,0,0,0.8),
    -1px 0 0 rgba(0,0,0,0.5);
  /* Speed+ style: stroked effect */
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
}

/* Italic slant as in the brand PDF */
.vertical-title {
  font-style: italic;
}

.section-number {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: rgba(255,255,255,0.04);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  font-style: italic;
  user-select: none;
}

/* Left border line */
.vertical-title-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200,132,10,0.4), rgba(200,132,10,0.4), transparent);
}

.section-body {
  flex: 1;
  padding: 0 clamp(20px, 4vw, 60px) 0 clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── SECTION TEXT ──────────────────────────────────────────── */
.section-text-block { padding: 10px 0; }

.section-lead {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.4;
}
.section-lead strong { color: var(--orange-light); }

.section-body-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 16px;
}

.section-accent {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--green-light);
  font-style: italic;
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(200,132,10,0.5);
  color: var(--orange-light);
  border-radius: 2px;
  background: rgba(200,132,10,0.08);
}

/* ─── LEGO BRICK FRAME ──────────────────────────────────────── */
.lego-brick-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.lego-brick-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,0.12);
  z-index: 2;
  pointer-events: none;
}
.lego-brick-frame::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow:
    0 0 0 1px rgba(200,132,10,0.25),
    0 12px 40px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}
.lego-brick-frame.frame-green::after {
  box-shadow:
    0 0 0 1px rgba(60,179,113,0.3),
    0 12px 40px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.4);
}
.lego-brick-frame.frame-orange::after {
  box-shadow:
    0 0 0 1px rgba(200,132,10,0.4),
    0 12px 40px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.4);
}

.section-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  transition: transform 0.4s ease;
}
.section-photo:hover { transform: scale(1.02); }

.brick-studs-top {
  position: absolute;
  top: -12px;
  left: 16px;
  display: flex;
  z-index: 5;
}

/* Lane badges overlay */
.lane-badges {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.lane-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

/* ─── TRACK FEATURES ────────────────────────────────────────── */
.track-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.track-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.track-feat:hover {
  background: rgba(60,179,113,0.1);
  border-color: rgba(60,179,113,0.3);
}
.feat-icon {
  color: var(--green-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ─── MISSION BLOCK ─────────────────────────────────────────── */
.mission-quote {
  margin-bottom: 8px;
}
.mission-line {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
  margin-bottom: 4px;
}
.mission-line strong { color: var(--white); }

.big-accent {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--orange-light);
  border-left-color: var(--orange);
  margin-top: 20px;
}

.duality-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.duality-left  { color: var(--orange-light); display: flex; align-items: center; gap: 6px; }
.duality-right { color: var(--green-light);  display: flex; align-items: center; gap: 6px; }
.duality-arrow { color: rgba(255,255,255,0.35); font-size: 1.1rem; }

/* ─── PARTNER CARDS ─────────────────────────────────────────── */
.partner-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.partner-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.partner-card:hover {
  background: rgba(224,0,0,0.06);
  transform: translateX(4px);
}
.pcard-icon {
  font-size: 1.5rem;
  color: var(--red);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.pcard-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.pcard-text p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

/* ─── SERVICE PILLARS ───────────────────────────────────────── */
.service-pillar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
  transition: background 0.3s, border-top-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-pillar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
}
.service-pillar:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}
.service-pillar.pillar-featured {
  border-top-color: var(--orange);
  background: rgba(200,132,10,0.06);
}
.service-pillar.pillar-featured:hover { background: rgba(200,132,10,0.1); }

.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sp-number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  font-style: italic;
}
.sp-studs { display: flex; }
.sp-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  display: block;
}
.sp-icon.orange-icon { color: var(--orange-light); }
.sp-icon.green-icon  { color: var(--green-light);  }
.sp-title {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.sp-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0;
}

/* ─── CONTATTI SECTION ──────────────────────────────────────── */
.section-contatti {
  position: relative;
  overflow: hidden;
  background: var(--dark-900);
}
.contatti-checker {
  position: absolute;
  inset: 0;
  background-image:
    repeating-conic-gradient(#1A1A1A 0% 25%, #141414 0% 50%);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

.contatti-inner { position: relative; z-index: 2; }

.contatti-headline {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}
.contatti-sub {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--orange-light);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.contact-item i {
  font-size: 1.2rem;
  color: var(--orange-light);
  width: 24px;
  flex-shrink: 0;
}
.contact-item:hover { color: var(--white); }
.contact-item:hover i { color: var(--green-light); }

/* Contact form */
.contatti-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}
.form-group-ludyx { margin-bottom: 14px; }
.form-group-ludyx input,
.form-group-ludyx select,
.form-group-ludyx textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  appearance: none;
}
.form-group-ludyx input::placeholder,
.form-group-ludyx textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group-ludyx select option { background: var(--dark-700); color: var(--white); }
.form-group-ludyx input:focus,
.form-group-ludyx select:focus,
.form-group-ludyx textarea:focus {
  border-color: var(--orange);
  background: rgba(200,132,10,0.06);
}

/* Form validation states */
.form-group-ludyx input.is-invalid,
.form-group-ludyx select.is-invalid,
.form-group-ludyx textarea.is-invalid {
  border-color: var(--red) !important;
  background: rgba(224,0,0,0.06) !important;
}
.form-group-ludyx input.is-valid,
.form-group-ludyx select.is-valid,
.form-group-ludyx textarea.is-valid {
  border-color: var(--green-light) !important;
  background: rgba(60,179,113,0.05) !important;
}
.form-error-msg {
  display: block;
  color: var(--red);
  font-size: 0.75rem;
  margin-top: 4px;
  padding-left: 4px;
  font-family: var(--font-body);
}
.btn-race:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Toast notification */
.ludyx-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #242424;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  pointer-events: none;
}
.ludyx-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ludyx-toast--success { border-left-color: var(--green-light); }
.ludyx-toast--error   { border-left-color: var(--red); }

/* ─── FOOTER ────────────────────────────────────────────────── */
.ludyx-footer {
  background: var(--dark-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.footer-checker        { opacity: 0.6; }
.footer-checker-bottom { opacity: 0.6; }
.footer-inner { padding: 30px 32px; }
.footer-logo { height: 50px; width: auto; opacity: 0.9; }
.footer-motto {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.footer-motto strong { color: rgba(255,255,255,0.8); }
.footer-social { display: flex; justify-content: center; gap: 16px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  color: var(--white);
  border-color: var(--orange);
  background: rgba(200,132,10,0.12);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
  letter-spacing: 0.06em;
}

/* Active nav link */
.nav-links li a.active {
  color: var(--orange-light);
}

/* ─── BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(224,0,0,0.4);
  z-index: 9990;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red-dark); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 991px) {
  :root { --left-gutter: 65px; }

  .vertical-title { font-size: clamp(1.8rem, 5vw, 3rem); }

  .nav-links { display: none; }
  .burger    { display: flex; }
  .mobile-drawer { display: block; }

  .track-features { grid-template-columns: 1fr 1fr; }

  .partner-card { flex-direction: row; }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --section-pad: 50px;
    --left-gutter: 52px;
  }

  .hero-logo { width: clamp(200px, 75vw, 320px); }

  .vertical-title { font-size: 1.5rem; }
  .section-number { font-size: 2.5rem; }

  .section-body { padding: 0 16px 0 14px; }

  .vertical-title-wrap::after { display: none; }

  .track-features { grid-template-columns: 1fr; }

  .partner-cards .partner-card { flex-direction: column; gap: 8px; }

  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }

  .contatti-form-wrap { padding: 20px 16px; }

  .duality-bar { flex-direction: column; gap: 6px; text-align: center; }

  .hero-studs { display: none; }

  .footer-inner { padding: 24px 16px; }
}

/* Very small */
@media (max-width: 480px) {
  :root { --left-gutter: 44px; }
  .vertical-title { font-size: 1.2rem; }
  .hero-badges { flex-direction: column; align-items: center; }
  .badge-pill { width: 100%; max-width: 260px; justify-content: center; }
}
