/* ================================================================
   TESLA LANDING PAGE — tesla.css
   Premium · Cinematic · Minimalist Automotive Aesthetic
   Black / White / Dark Gray / Tesla Red
   ================================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────────── */
:root {
  --t-red:          #e82127;
  --t-red-dark:     #c0181d;
  --t-red-glow:     rgba(232, 33, 39, 0.30);
  --t-white:        #ffffff;
  --t-off-white:    #f5f5f5;
  --t-black:        #000000;
  --t-dark:         #171a20;
  --t-dark-2:       #1e2029;
  --t-gray:         #5c5e62;
  --t-gray-light:   #9a9a9a;
  --t-border:       rgba(0, 0, 0, 0.10);
  --t-border-light: rgba(255, 255, 255, 0.14);

  --t-font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-nav-h:  72px;
  --t-ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-dur:    0.35s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* prevent horizontal scroll at root */
  max-width: 100%;
}

body {
  font-family: var(--t-font);
  background: var(--t-white);
  color: var(--t-dark);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--t-font); }

ion-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  pointer-events: none;
  flex-shrink: 0;
}

/* Nav WhatsApp button — hidden on mobile, visible on desktop */
.t-nav__wa-btn { display: none; }
@media (min-width: 768px) {
  .t-nav__wa-btn { display: inline-flex; }
}




/* ================================================================
   3. NAVBAR
   ================================================================ */
.t-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--t-nav-h);
  background: rgba(0, 0, 0, 0.0);
  width: 100%;
  max-width: 100vw;
  transition: background var(--t-dur) var(--t-ease),
              box-shadow  var(--t-dur) var(--t-ease);
}

.t-nav--scrolled {
  background: rgba(23, 26, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.t-nav--light {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--t-border);
}

.t-nav--light .t-nav__links a       { color: var(--t-dark); }
.t-nav--light .t-nav__links a:hover { background: rgba(0,0,0,0.05); color: var(--t-dark); }
.t-nav--light .t-nav__logo          { color: var(--t-red); }
.t-nav--light .t-hamburger span     { background: var(--t-dark); }.t-nav--light .t-nav__link--active  { color: var(--t-red) !important; }

/* Over hero: fully transparent, white text */
.t-nav--on-hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, transparent 100%);
}
.t-nav--on-hero .t-nav__links a     { color: rgba(255,255,255,0.85); }
.t-nav--on-hero .t-nav__links a:hover { background: rgba(255,255,255,0.10); color: var(--t-white); }
.t-nav--on-hero .t-nav__logo       { color: var(--t-white); }
.t-nav--on-hero .t-hamburger span  { background: var(--t-white); }
.t-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.t-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--t-white);
  transition: color var(--t-dur), opacity 0.2s;
}
.t-nav__logo:hover { opacity: 0.8; }

.t-logo-svg       { height: 40px; width: 40px; }
.t-logo-svg--sm   { height: 34px; width: 34px; }

/* PNG logo image — wordmark, transparent background */
.t-logo-img {
  height: 56px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Invert black wordmark to white on dark navbar */
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.t-nav__logo:hover .t-logo-img {
  opacity: 0.70;
}

/* Footer logo */
.t-logo-img--sm {
  height: 44px;
  filter: brightness(0) invert(1);
}

/* Light navbar mode */
.t-nav--light .t-logo-img {
  filter: brightness(0);
}

/* Centre nav links */
.t-nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .t-nav__links { display: flex; }
  .t-hamburger  { display: none !important; }
}

.t-nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 13px;
  border-radius: 6px;
  transition: background var(--t-dur), color var(--t-dur);
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.t-nav__links a:hover          { background: rgba(255,255,255,0.10); color: var(--t-white); }
.t-nav__link--active           { color: var(--t-white) !important; }

/* Right actions */
.t-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.t-hamburger {
  width: 38px; height: 38px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none; border-radius: 6px;
  transition: background var(--t-dur);
}
.t-hamburger:hover { background: rgba(255,255,255,0.10); }

/* The three bars */
.t-hamburger .t-ham-bar {
  display: block; width: 22px; height: 2px;
  background: var(--t-white); border-radius: 2px;
  transition: opacity var(--t-dur), transform var(--t-dur) var(--t-ease);
  transform-origin: center;
}

/* The X icon — hidden by default */
.t-ham-close-icon {
  display: none !important;
  font-size: 26px;
  color: var(--t-white);
  pointer-events: none;
}

/* When open — hide bars, show X */
.t-ham--open .t-ham-bar       { display: none; }
.t-ham--open .t-ham-close-icon { display: inline-flex !important; }

/* Keep nav-mode bar colours correct */
.t-nav--light .t-hamburger .t-ham-bar   { background: var(--t-dark); }
.t-nav--on-hero .t-hamburger .t-ham-bar { background: var(--t-white); }
.t-nav--scrolled .t-hamburger .t-ham-bar { background: var(--t-white); }

/* Mobile drawer */
.t-nav__drawer {
  position: fixed;
  top: var(--t-nav-h);
  right: 0; bottom: 0;
  width: min(360px, 100vw);
  background: var(--t-dark);
  transform: translateX(100%);
  transition: transform 0.38s var(--t-ease);
  overflow-y: auto;
  z-index: 899;
  padding: 20px 28px 48px;
  display: flex; flex-direction: column; gap: 24px;
  box-shadow: -4px 0 40px rgba(0,0,0,0.5);
}
.t-nav__drawer.t-drawer--open { transform: translateX(0); }

.t-nav__drawer ul { display: flex; flex-direction: column; }
.t-nav__drawer ul li a {
  display: block; padding: 14px 0;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--t-dur);
}
.t-nav__drawer ul li a:hover { color: var(--t-white); }

.t-drawer__ctas {
  display: flex; flex-direction: column; gap: 12px; margin-top: auto;
}


/* ================================================================
   4. BUTTONS
   ================================================================ */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--t-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 13px 30px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none !important;
  /* stays inline-flex even when <a> loses its href */
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--t-dur) var(--t-ease),
              border-color var(--t-dur),
              color var(--t-dur),
              box-shadow var(--t-dur),
              transform 0.2s var(--t-ease);
}
/* Ensure <a>.t-btn renders correctly whether href is present or not */
a.t-btn { display: inline-flex !important; }
.t-btn ion-icon { font-size: 18px; }

/* Sizes */
.t-btn-sm   { font-size: 12px; padding: 8px 18px; gap: 6px; }
.t-btn-sm ion-icon { font-size: 15px; }
.t-btn-lg   { font-size: 15px; padding: 15px 38px; }
.t-btn-hero { font-size: 15px; padding: 16px 40px; border-radius: 4px; }
.t-btn-full { width: 100%; justify-content: center; }

/* Red — primary CTA */
.t-btn-red {
  background: var(--t-red);
  border-color: var(--t-red);
  color: var(--t-white) !important;
}
.t-btn-red:hover {
  background: var(--t-red-dark);
  border-color: var(--t-red-dark);
  box-shadow: 0 8px 28px var(--t-red-glow);
  transform: translateY(-2px);
}
.t-btn-red:active { transform: translateY(0); box-shadow: none; }

/* Outline white (over dark/photo bg) */
.t-btn-outline-white {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.50);
  color: var(--t-white) !important;
  backdrop-filter: blur(6px);
}
.t-btn-outline-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--t-white);
  transform: translateY(-2px);
}

/* Outline light (glass on photo) */
.t-btn-outline-light {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.55);
  color: var(--t-white) !important;
  backdrop-filter: blur(6px);
}
.t-btn-outline-light:hover {
  background: rgba(255,255,255,0.20);
  border-color: var(--t-white);
  transform: translateY(-2px);
}

/* Outline dark (over light bg) */
.t-btn-outline-dark {
  background: transparent;
  border-color: rgba(0,0,0,0.28);
  color: var(--t-dark) !important;
}
.t-btn-outline-dark:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.5);
  transform: translateY(-2px);
}


/* ================================================================
   5. HERO SECTION
   ================================================================ */
.t-hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--t-dark);
}

/* Full-bleed background image */
.t-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.t-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  animation: t-kenburns 24s ease-in-out infinite alternate;
}

/* Cinematic gradient overlay — dark at bottom for text, slight top fade */
.t-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(0,0,0,0.92)   0%,
      rgba(0,0,0,0.65)  30%,
      rgba(0,0,0,0.30)  60%,
      rgba(0,0,0,0.10)  80%,
      rgba(0,0,0,0.05) 100%
    );
}

/* Hero text content — vertically centred in the hero, below trust bar + nav */
.t-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* centre the block: top reserved for bars, bottom for scroll cue */
  padding: calc(var(--t-trust-h, 34px) + var(--t-nav-h) + 48px) 60px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: t-fade-up 1s 0.2s both;
  box-sizing: border-box;
}

.t-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--t-red);
  margin-bottom: 10px;
}

.t-hero__headline {
  font-size: clamp(32px, 4.5vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--t-white);
  margin-bottom: 14px;
}

.t-hero__headline-accent {
  color: var(--t-white);
  display: block;
}

.t-hero__desc {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 28px;
  letter-spacing: 0.1px;
}

/* Hero CTA row */
.t-hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Hero CTA button — always visible, full-width on small screens */
.t-hero__ctas .t-btn {
  display: inline-flex !important;
  min-width: 220px;
}

/* Scroll cue */
.t-hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.2s;
  animation: t-fade-in 2s 1.2s both;
}
.t-hero__scroll:hover { color: rgba(255,255,255,0.7); }
.t-hero__scroll ion-icon { font-size: 18px; animation: t-bounce 2s ease infinite; }

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


/* ================================================================
   6. VEHICLE MODEL SECTIONS
   ================================================================ */
.t-model {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--t-white);
}

/* Background image */
.t-model__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.t-model__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 52%;
  display: block;
  /* Push car image into the middle third — text occupies top, specs/CTAs bottom */
  padding: calc(var(--t-nav-h) + 180px) 8% 220px;
  animation: t-kenburns 22s ease-in-out infinite alternate;
}

@keyframes t-kenburns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.04); }
}

/* Gradient overlays */
.t-model__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* White sections (Model S, 3, X, Y) */
.t-overlay-bottom {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1)    0%,
    rgba(255,255,255,1)   18%,
    rgba(255,255,255,0.85) 32%,
    rgba(255,255,255,0)   52%,
    rgba(255,255,255,0)   58%,
    rgba(255,255,255,0.70) 72%,
    rgba(255,255,255,0.96) 84%,
    rgba(255,255,255,1)   100%
  );
}

/* Cybertruck dark section */
.t-overlay-dark-bottom {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.80)  0%,
    rgba(0,0,0,0.60)  18%,
    rgba(0,0,0,0.20)  36%,
    rgba(0,0,0,0)     50%,
    rgba(0,0,0,0.50)  68%,
    rgba(0,0,0,0.88)  84%,
    rgba(0,0,0,1)    100%
  );
}

/* New Arrival: full cinematic gradient */
.t-overlay-full-gradient {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55)  0%,
      rgba(0,0,0,0.20)  30%,
      rgba(0,0,0,0.55)  65%,
      rgba(0,0,0,0.92)  88%,
      rgba(0,0,0,1)    100%
    );
}

/* ── Content block: name + tagline + description ── */
.t-model__content {
  position: relative;
  z-index: 3;          /* above overlay (z-index:1) and bg (z-index:0) */
  text-align: center;
  padding: calc(var(--t-nav-h) + 44px) 24px 0;
  width: 100%;
  max-width: 800px;
  flex-shrink: 0;
  align-self: center;
}

/* t-content-top: content sits at top of section (name visible above car) */
.t-content-top {
  /* uses .t-model__content positioning — padding-top clears the nav */
}

.t-model__name {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--t-dark);
  line-height: 1.0;
  margin-bottom: 6px;
}

.t-name-light,
.t-name-white { color: var(--t-white) !important; }

.t-model__tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--t-gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.t-tag-light,
.t-tag-white { color: rgba(255, 255, 255, 0.65) !important; }

/* Model description */
.t-model__desc {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  color: var(--t-gray);
  line-height: 1.70;
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.1px;
}

.t-desc-light,
.t-desc-white { color: rgba(255, 255, 255, 0.68) !important; }

/* ── Specs row ── */
.t-model__specs {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 720px;
  padding: 0 24px;
  margin: auto 0 0;
  align-self: center;
}

.t-specs-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.t-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.t-spec__val {
  font-size: 26px;
  font-weight: 700;
  color: var(--t-dark);
  letter-spacing: -0.5px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.t-spec__val small {
  font-size: 12px;
  font-weight: 400;
  color: var(--t-gray);
  letter-spacing: 0;
  margin-left: 2px;
}

.t-spec__key {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t-gray);
  margin-top: 6px;
}

.t-spec__sep {
  width: 1px; height: 32px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* Dark section specs */
.t-specs-dark {
  border-top-color:    rgba(255,255,255,0.12);
  border-bottom-color: rgba(255,255,255,0.12);
}
.t-specs-dark .t-spec__val       { color: var(--t-white); }
.t-specs-dark .t-spec__val small  { color: rgba(255,255,255,0.45); }
.t-specs-dark .t-spec__key        { color: rgba(255,255,255,0.55); }
.t-specs-dark .t-spec__sep        { background: rgba(255,255,255,0.15); }

/* ── CTA row ── */
.t-model__ctas {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px 48px;
  width: 100%;
}

/* ── Scroll hint (Model S only) ── */
.t-scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: t-fade-in 1.5s 1.5s both;
}

.t-scroll-hint span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.28);
}

.t-scroll-hint__line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28), transparent);
  animation: t-scroll-drop 2s ease infinite;
}

@keyframes t-scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}


/* ================================================================
   7. NEW ARRIVAL SECTION
   ================================================================ */
.t-new-arrival {
  background: var(--t-dark);
}

.t-new-bg { background: var(--t-dark); }

/* Pulsing placeholder when no image */
.t-new-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(232,33,39,0.10) 0%, transparent 70%);
  z-index: 0;
}

.t-new-placeholder__inner {
  display: flex; align-items: center; justify-content: center;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  animation: t-pulse-ring 3s ease infinite;
}

@keyframes t-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,33,39,0.15); }
  50%       { box-shadow: 0 0 0 20px rgba(232,33,39,0); }
}

.t-new-placeholder__icon { font-size: 72px; color: rgba(255,255,255,0.10); }

/* Badge */
.t-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(232,33,39,0.14);
  border: 1px solid rgba(232,33,39,0.40);
  color: var(--t-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.t-new-badge ion-icon { font-size: 12px; }

/* New arrival text overrides */
.t-new-arrival .t-model__name    { color: var(--t-white) !important; }
.t-new-arrival .t-model__tagline { color: rgba(255,255,255,0.60) !important; }
.t-new-arrival .t-model__desc    { color: rgba(255,255,255,0.65) !important; }

/* New arrival image: cover for real photo */
.t-new-img {
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  opacity: 0.55;
}


/* ================================================================
   8. CONTACT / FINAL CTA
   ================================================================ */
.t-contact {
  background: var(--t-dark);
  padding: 130px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.t-contact__inner {
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.t-contact__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--t-red);
  margin-bottom: 16px;
}

.t-contact__title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--t-white);
  line-height: 1.05;
  margin-bottom: 18px;
}

.t-contact__sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 56px;
}

/* Channel cards */
.t-contact__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.t-channel-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  text-decoration: none !important;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;           /* allow card to shrink inside its container */
  overflow: hidden;       /* clip anything that still escapes */
  transition: border-color var(--t-dur),
              background   var(--t-dur),
              box-shadow   var(--t-dur),
              transform    0.2s var(--t-ease);
  cursor: pointer;
}

.t-channel-card:hover {
  border-color: var(--t-red);
  background: rgba(232,33,39,0.06);
  box-shadow: 0 8px 40px rgba(232,33,39,0.15);
  transform: translateY(-3px);
}

.t-channel-card__icon {
  width: 54px; height: 54px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.t-channel-card__icon ion-icon { font-size: 26px; color: var(--t-white); }

.t-channel-wa .t-channel-card__icon { background: #25D366; }
.t-channel-tg .t-channel-card__icon { background: #229ED9; }
.t-channel-email .t-channel-card__icon { background: #EA4335; }

.t-channel-card__text {
  flex: 1;
  min-width: 0;          /* critical — lets flex item shrink below content width */
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left;
  overflow: hidden;
}
.t-channel-card__text strong {
  font-size: 18px; font-weight: 700; color: var(--t-white); letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.t-channel-card__text span {
  font-size: 13px; color: rgba(255,255,255,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.t-channel-card__arrow {
  font-size: 22px; color: rgba(255,255,255,0.25);
  transition: transform var(--t-dur), color var(--t-dur);
  flex-shrink: 0;
  min-width: 22px;
}
.t-channel-card:hover .t-channel-card__arrow {
  transform: translateX(5px);
  color: var(--t-red);
}

.t-contact__note {
  font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 0.3px;
}


/* ================================================================
   9. FOOTER
   ================================================================ */
.t-footer {
  background: var(--t-dark-2);
  color: var(--t-gray-light);
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.t-footer__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 52px 48px 36px;
  box-sizing: border-box;
}

.t-footer__top {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.t-footer__logo { color: var(--t-white); }

.t-footer__nav {
  display: flex; flex-wrap: wrap;
  gap: 4px 6px; justify-content: center;
}
.t-footer__nav a {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.45);
  padding: 5px 10px; border-radius: 4px;
  transition: color var(--t-dur), background var(--t-dur);
}
.t-footer__nav a:hover { color: var(--t-white); background: rgba(255,255,255,0.06); }

.t-footer__social { display: flex; align-items: center; gap: 10px; }

.t-footer__social-link {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.45);
  transition: background var(--t-dur), color var(--t-dur), transform 0.2s;
}
.t-footer__social-link ion-icon { font-size: 17px; }
.t-footer__social-link:hover {
  background: var(--t-red); border-color: var(--t-red);
  color: var(--t-white); transform: translateY(-2px);
}

.t-footer__bottom {
  padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.t-footer__bottom p { font-size: 11px; color: rgba(255,255,255,0.22); }
.t-footer__email {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 11px;
  transition: color var(--t-dur);
}
.t-footer__email:hover { color: var(--t-red); }


/* ================================================================
   10. FLOATING CTA BUTTONS
   ================================================================ */
.t-float {
  position: fixed; right: 24px; bottom: 88px;
  z-index: 800; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--t-ease);
}

.t-float__btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.40);
  transition: transform 0.2s var(--t-ease), box-shadow 0.2s;
}
.t-float__btn ion-icon { font-size: 25px; color: var(--t-white); }
.t-float__btn:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(0,0,0,0.50); }

.t-float__wa { background: #25D366; }
.t-float__tg { background: #229ED9; }


/* ================================================================
   11. BACK TO TOP
   ================================================================ */
.t-back-top {
  position: fixed; right: 24px; bottom: 26px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(23,26,32,0.90);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--t-white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s, background var(--t-dur), transform 0.2s;
}
.t-back-top ion-icon { font-size: 20px; }
.t-back-top:hover { background: var(--t-red); transform: translateY(-3px); }


/* ================================================================
   12. SCROLL REVEAL
   ================================================================ */
.t-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.70s var(--t-ease), transform 0.70s var(--t-ease);
}
.t-model__specs.t-reveal  { transition-delay: 0.14s; }
.t-model__ctas.t-reveal   { transition-delay: 0.26s; }
.t-channel-card:nth-child(2).t-reveal { transition-delay: 0.14s; }

.t-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* ================================================================
   13. KEYFRAMES
   ================================================================ */
@keyframes t-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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


/* ================================================================
   14. RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1200px) {
  .t-hero__content  { padding: calc(var(--t-trust-h, 34px) + var(--t-nav-h) + 40px) 40px 72px; }
  .t-spec           { padding: 0 22px; }
}

@media (max-width: 991px) {
  .t-model__content { padding-top: calc(var(--t-nav-h) + 28px); max-width: 100%; }
  .t-model__name    { font-size: clamp(30px, 8vw, 48px); }
  .t-model__desc    { font-size: 14px; max-width: 420px; }

  .t-spec       { padding: 0 16px; }
  .t-spec__val  { font-size: 21px; }
  .t-spec__key  { font-size: 9px; }

  .t-contact { padding: 90px 24px; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --t-nav-h: 52px; }

  /* Hero */
  .t-hero { min-height: 100svh; align-items: flex-start; }
  .t-hero__content {
    padding: calc(var(--t-trust-h, 34px) + var(--t-nav-h) + 36px) 24px 56px;
    align-items: flex-start;
  }
  .t-hero__headline  { font-size: clamp(28px, 8vw, 40px); letter-spacing: -1px; }
  .t-hero__desc      { font-size: 13px; max-width: 100%; margin-bottom: 22px; }
  .t-hero__ctas      { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 340px; }
  .t-hero__ctas .t-btn { justify-content: center; min-width: 0; }

  /* Model sections */
  .t-model { min-height: 100svh; }
  .t-model__img {
    padding: calc(var(--t-nav-h) + 140px) 6% 230px;
    max-width: 100%;
  }
  .t-overlay-bottom {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,1)    0%,
      rgba(255,255,255,1)   20%,
      rgba(255,255,255,0.90) 32%,
      rgba(255,255,255,0)   50%,
      rgba(255,255,255,0.80) 68%,
      rgba(255,255,255,1)   100%
    );
  }
  .t-overlay-dark-bottom {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.85)  0%,
      rgba(0,0,0,0.65)  20%,
      rgba(0,0,0,0.15)  45%,
      rgba(0,0,0,0.70)  68%,
      rgba(0,0,0,1)    100%
    );
  }

  .t-model__content { padding-top: calc(var(--t-nav-h) + 20px); padding-bottom: 0; }
  .t-model__name    { font-size: clamp(28px, 10vw, 42px); letter-spacing: -1px; }
  .t-model__tagline { font-size: 11px; letter-spacing: 1.5px; }
  .t-model__desc    { font-size: 13px; line-height: 1.6; max-width: 100%; }

  /* Spec grid: 2×2 on mobile */
  .t-specs-inline {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .t-spec {
    flex: 1 1 50%;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .t-spec:nth-child(n+5) { border-bottom: none; } /* last row */
  .t-spec:nth-child(4),
  .t-spec:nth-child(8)   { border-bottom: none; }
  .t-spec__sep { display: none; }
  .t-spec__val { font-size: 20px; }

  .t-specs-dark .t-spec { border-bottom-color: rgba(255,255,255,0.08); }

  .t-model__ctas {
    flex-direction: column; align-items: stretch;
    padding: 14px 20px 40px; gap: 12px;
  }
  .t-model__ctas .t-btn { justify-content: center; }

  /* Contact */
  .t-contact        { padding: 72px 20px; }
  .t-contact__title { letter-spacing: -1.5px; }
  .t-contact__sub   { margin-bottom: 40px; font-size: 15px; }
  .t-channel-card   { padding: 18px 20px; gap: 14px; }
  .t-channel-card__text strong { font-size: 16px; }

  /* Footer */
  .t-footer__inner  { padding: 40px 24px 28px; }
  .t-footer__top    { flex-direction: column; align-items: flex-start; }
  .t-footer__nav    { justify-content: flex-start; }
  .t-footer__bottom { flex-direction: column; }

  .t-float    { right: 16px; bottom: 78px; }
  .t-back-top { right: 16px; bottom: 20px; }
  .t-nav__inner { padding: 0 16px; }
  .t-logo-img   { height: 46px; }
  .t-logo-img--sm { height: 36px; }
}

/* Very small */
@media (max-width: 390px) {
  .t-model__name   { font-size: 28px; }
  .t-spec__val     { font-size: 18px; }
  .t-btn           { font-size: 13px; padding: 11px 22px; }
  .t-btn-hero      { font-size: 13px; padding: 13px 24px; }
  .t-hero__content { padding: calc(var(--t-trust-h, 34px) + var(--t-nav-h) + 28px) 20px 48px; }
  .t-hero__headline { font-size: 26px; }
}

/* Large screens */
@media (min-width: 1400px) {
  .t-model__content { max-width: 860px; margin-left: auto; margin-right: auto; }
  .t-model__ctas    { max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
  .t-model__specs   { max-width: 820px; }
}

/* Scroll hint: only Model S shows it */
.t-scroll-hint { display: flex; }
#model-3 .t-scroll-hint,
#model-x .t-scroll-hint,
#model-y .t-scroll-hint,
#cybertruck .t-scroll-hint,
#new-model .t-scroll-hint { display: none; }


/* ================================================================
   SECURITY — disable image dragging + text selection
   ================================================================ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img, video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Re-enable pointer events on anchor/button children that contain images */
a img, button img { pointer-events: none; }
a, button { pointer-events: auto; }


/* ================================================================
   15. TRUST BAR
   ================================================================ */
.t-trust-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 950;
  background: var(--t-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Marquee scrolling track */
.t-trust-bar__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  height: 34px;           /* exactly match bar height */
  flex-shrink: 0;
  animation: t-marquee 35s linear infinite;
  will-change: transform;
}
.t-trust-bar:hover .t-trust-bar__track {
  animation-play-state: paused;
}

@keyframes t-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.70);
  height: 34px;              /* match bar height so nothing bleeds */
  padding: 0 14px;           /* horizontal spacing between items */
  line-height: 34px;
  vertical-align: middle;
}
.t-trust-item ion-icon { font-size: 12px; color: rgba(255,255,255,0.55); flex-shrink: 0; }

.t-trust-item--yellow { color: #f5c518; }
.t-trust-item--yellow ion-icon { color: #f5c518; }

.t-trust-item--green  { color: #4caf82; }
.t-trust-item--green ion-icon  { color: #4caf82; }

.t-trust-item--live { color: #4caf82; }

.t-live-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #4caf82;
  animation: t-live-pulse 1.6s ease infinite;
  flex-shrink: 0;
}

@keyframes t-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.t-trust-sep {
  color: rgba(255,255,255,0.20);
  font-size: 10px;
  padding: 0 2px;
  height: 34px;
  display: inline-flex;
  align-items: center;
}

/* trust-sep--hide-sm no longer needed — all items scroll in marquee */

/* Push nav and hero down by trust bar height */
.t-nav   { top: 34px !important; }
.t-hero  { padding-top: 34px; }
:root    { --t-trust-h: 34px; }


/* ================================================================
   16. HERO — Updated headline style
   ================================================================ */
.t-hero__headline-red {
  color: var(--t-red);
  display: inline;
}


/* ================================================================
   17. GUEST SNAPSHOT WIDGET
   ================================================================ */
.t-snapshot {
  position: absolute;
  top: calc(var(--t-nav-h) + 54px);
  right: 24px;
  z-index: 4;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: rgba(255,255,255,0.97);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  overflow: hidden;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s var(--t-ease), transform 0.35s var(--t-ease);
  pointer-events: none;
}

.t-snapshot--visible {
  opacity: 1;
  transform: translateX(0);
}

.t-snapshot__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 14px;
}

.t-snapshot__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--t-red);
  color: #fff;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s;
}

.t-snapshot__body { flex: 1; min-width: 0; }

.t-snapshot__name {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.t-snapshot__name strong { font-size: 13.5px; font-weight: 700; color: var(--t-dark); }
.t-snapshot__name span   { font-size: 12px; color: var(--t-gray); }

.t-snapshot__action {
  font-size: 11.5px; color: var(--t-gray);
  margin: 4px 0 5px;
}

.t-snapshot__model-row { margin-bottom: 6px; }

.t-snapshot__model-tag {
  display: inline-block;
  background: rgba(232,33,39,0.10);
  color: var(--t-red);
  border: 1px solid rgba(232,33,39,0.25);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.2px;
}

.t-snapshot__result {
  font-size: 12px; color: #2a9d5c; font-weight: 600;
}
.t-snapshot__result strong { color: #1e7a48; }

.t-snapshot__bar {
  height: 3px; background: rgba(0,0,0,0.07);
}
.t-snapshot__bar-fill {
  height: 100%; width: 0%;
  background: var(--t-red);
}

@media (max-width: 767px) {
  .t-snapshot {
    top: auto;
    bottom: 130px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }
}


/* ================================================================
   18. SECTION SHARED STYLES (Videos, Simulator, Testimonials)
   ================================================================ */
.t-section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--t-red);
  margin-bottom: 14px;
  display: block;
}

.t-section-eyebrow--dark { color: var(--t-red); }

.t-section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--t-white);
  line-height: 1.05;
  margin-bottom: 14px;
}

.t-section-title--dark { color: var(--t-dark); }

.t-section-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 52px;
}

.t-section-sub--dark { color: var(--t-gray); }


/* ================================================================
   19. VIDEOS SECTION
   ================================================================ */
.t-videos {
  background: var(--t-dark);
  padding: 110px 24px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.t-videos__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.t-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.t-video-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t-dur), box-shadow var(--t-dur), transform 0.25s;
}
.t-video-card:hover {
  border-color: rgba(232,33,39,0.40);
  box-shadow: 0 12px 48px rgba(232,33,39,0.14);
  transform: translateY(-4px);
}

.t-video-wrap {
  position: relative;
  padding-bottom: 56.25%;  /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.t-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.t-video-card__body {
  padding: 20px 22px 24px;
}

.t-video-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,33,39,0.15);
  color: var(--t-red);
  border: 1px solid rgba(232,33,39,0.30);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 12px;
}
.t-video-badge ion-icon { font-size: 13px; }

.t-video-card__title {
  font-size: 17px; font-weight: 700;
  color: var(--t-white); letter-spacing: -0.3px;
  line-height: 1.3; margin-bottom: 10px;
}

.t-video-card__desc {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.50);
  line-height: 1.65;
}

.t-videos__note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 14px 18px;
}
.t-videos__note ion-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.t-videos__note code {
  background: rgba(255,255,255,0.08);
  padding: 1px 5px; border-radius: 4px;
  font-family: monospace; font-size: 11px; color: rgba(255,255,255,0.50);
}

@media (max-width: 767px) {
  .t-videos { padding: 72px 16px; }
  .t-video-grid { grid-template-columns: 1fr; gap: 22px; }
}


/* ================================================================
   20. CAR SIMULATOR
   ================================================================ */
.t-simulator {
  background: var(--t-off-white);
  padding: 110px 24px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.t-simulator__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.t-sim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

/* Car preview */
.t-sim-preview {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.t-sim-car-wrap {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  overflow: hidden;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}

.t-sim-car-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: opacity 0.25s var(--t-ease);
  pointer-events: none;
}

.t-sim-badge-row {
  display: flex; gap: 10px;
}

.t-sim-model-badge,
.t-sim-color-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 5px 14px; border-radius: 100px;
}
.t-sim-model-badge {
  background: var(--t-dark); color: var(--t-white);
}
.t-sim-color-badge {
  background: rgba(0,0,0,0.08); color: var(--t-gray);
  border: 1px solid rgba(0,0,0,0.12);
}

.t-sim-fee-box {
  background: var(--t-dark);
  color: var(--t-white);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
  width: 100%; max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.t-sim-fee-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.t-sim-fee-amount {
  font-size: 48px; font-weight: 800;
  letter-spacing: -2px; color: var(--t-white);
  line-height: 1; margin-bottom: 8px;
}

.t-sim-fee-note {
  font-size: 11px; color: rgba(255,255,255,0.40);
}

/* Controls */
.t-sim-controls {
  display: flex; flex-direction: column; gap: 28px;
}

.t-sim-group { display: flex; flex-direction: column; gap: 12px; }

.t-sim-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--t-gray);
}

.t-sim-model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}

.t-sim-model-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 10px; border-radius: 8px;
  background: var(--t-white);
  border: 1.5px solid rgba(0,0,0,0.12);
  cursor: pointer; transition: border-color var(--t-dur), box-shadow var(--t-dur), transform 0.2s;
}
.t-sim-model-btn:hover {
  border-color: var(--t-red); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,33,39,0.15);
}
.t-sim-model-btn--active {
  border-color: var(--t-red) !important;
  background: rgba(232,33,39,0.05) !important;
  box-shadow: 0 4px 16px rgba(232,33,39,0.20);
}
.t-sim-model-btn__name {
  font-size: 13px; font-weight: 700; color: var(--t-dark);
}
.t-sim-model-btn__fee {
  font-size: 10px; color: var(--t-gray); font-weight: 500;
}

.t-sim-color-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

.t-sim-color-swatch {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.t-sim-color-swatch:hover { transform: scale(1.15); }
.t-sim-color-swatch--active {
  border-color: var(--t-dark) !important;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.30);
}

.t-sim-color-check { display: none; }
.t-sim-color-swatch--active .t-sim-color-check {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.t-sim-cta {
  width: 100%;
  justify-content: center;
  font-size: 15px !important;
}

.t-sim-disclaimer {
  font-size: 11px; color: var(--t-gray-light);
  text-align: center; line-height: 1.5;
}

@media (max-width: 900px) {
  .t-sim-layout { grid-template-columns: 1fr; gap: 36px; }
  .t-sim-preview { width: 100%; }
}
@media (max-width: 767px) {
  .t-simulator { padding: 72px 16px; }
  .t-sim-model-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .t-sim-fee-amount { font-size: 40px; }
}


/* ================================================================
   21. TESTIMONIALS — YouTube-style
   ================================================================ */
.t-testimonials {
  background: #0f0f0f;
  padding: 90px 24px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.t-testimonials__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* YouTube channel header */
.t-yt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.t-yt-logo {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: var(--t-red); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.t-yt-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0) invert(1);
}

.t-yt-channel {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.t-yt-channel strong {
  font-size: 15px; font-weight: 700; color: var(--t-white);
}
.t-yt-channel span {
  font-size: 12px; color: rgba(255,255,255,0.45);
}

/* Stats bar */
.t-yt-stats {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.t-yt-stats span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70);
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  cursor: default;
}
.t-yt-stats span ion-icon { font-size: 15px; }

.t-yt-comment-count {
  font-size: 14px; font-weight: 700;
  color: var(--t-white);
  margin-bottom: 24px;
}

/* Comment list */
.t-comment-list {
  display: flex; flex-direction: column; gap: 22px;
  margin-bottom: 48px;
}

.t-comment {
  display: flex; gap: 14px;
}

.t-comment__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Avatar colours — matching reference screenshots */
.t-avatar--mj { background: #1565c0; }
.t-avatar--sw { background: #c62828; }
.t-avatar--cm { background: #2e7d32; }
.t-avatar--dc { background: #6a1b9a; }
.t-avatar--ak { background: #ef6c00; }
.t-avatar--sf { background: #00838f; }
.t-avatar--ew { background: #ad1457; }
.t-avatar--rb { background: #1b5e20; }

.t-comment__body { flex: 1; min-width: 0; }

.t-comment__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 6px;
}
.t-comment__meta strong {
  font-size: 13.5px; font-weight: 700; color: var(--t-white);
}
.t-comment__meta span {
  font-size: 12px; color: rgba(255,255,255,0.40);
}
.t-comment__time { font-size: 12px; color: rgba(255,255,255,0.35); }
.t-comment__pin  { color: #f5c518; font-size: 11px; font-weight: 700; }

.t-comment__text {
  font-size: 14px; color: rgba(255,255,255,0.80);
  line-height: 1.65; margin-bottom: 10px;
}

.t-comment--pinned .t-comment__text { font-weight: 500; }

.t-comment__actions {
  display: flex; align-items: center; gap: 16px;
}
.t-comment__actions span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,0.40);
  cursor: default;
}
.t-comment__actions ion-icon { font-size: 14px; }
.t-comment__reply {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.50);
  cursor: pointer;
  transition: color var(--t-dur);
}
.t-comment__reply:hover { color: var(--t-white); }

.t-testimonials__cta {
  display: flex; justify-content: center;
}

@media (max-width: 767px) {
  .t-testimonials { padding: 64px 16px; }
  .t-comment__avatar { width: 34px; height: 34px; font-size: 12px; }
  .t-comment__text   { font-size: 13px; }
  .t-yt-stats span   { padding: 6px 12px; font-size: 11px; }
}


/* ================================================================
   22. TESTIMONIALS SLIDER
   ================================================================ */

/* Replace the old static list layout */
.t-comment-list { display: none; } /* removed in favour of slider */

.t-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 24px;
  /* Grab cursor on desktop */
  cursor: grab;
}
.t-slider-wrap:active { cursor: grabbing; }

.t-comment-track {
  display: flex;
  /* Each card is exactly 100% of the container width */
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  user-select: none;
}

/* Each slide card */
.t-comment-track .t-comment {
  /* Fixed width = full slider width, never shrinks */
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 24px 22px 20px;
  /* Prevent drag cursor interfering with pointer events inside card */
  pointer-events: none;
}

/* Prev / Next arrow buttons */
.t-slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--t-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-dur), transform 0.2s;
  pointer-events: auto;
}
.t-slider-arrow ion-icon { font-size: 20px; pointer-events: none; }
.t-slider-arrow:hover  { background: var(--t-red); border-color: var(--t-red); transform: translateY(-50%) scale(1.08); }
.t-slider-arrow:disabled { opacity: 0.25; pointer-events: none; }

.t-slider-arrow--prev { left: -16px; }
.t-slider-arrow--next { right: -16px; }

@media (min-width: 600px) {
  .t-slider-arrow--prev { left: -20px; }
  .t-slider-arrow--next { right: -20px; }
}

/* Dot indicators */
.t-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.t-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--t-dur), transform 0.2s, width 0.2s;
  flex-shrink: 0;
}
.t-slider-dot--active {
  background: var(--t-red);
  width: 22px;
  border-radius: 4px;
  transform: none;
}
.t-slider-dot:hover:not(.t-slider-dot--active) {
  background: rgba(255,255,255,0.45);
}

/* Mobile: make arrows a bit smaller, position closer to edges */
@media (max-width: 480px) {
  .t-slider-arrow { width: 34px; height: 34px; }
  .t-slider-arrow ion-icon { font-size: 17px; }
  .t-slider-arrow--prev { left: -12px; }
  .t-slider-arrow--next { right: -12px; }
  .t-testimonials { padding: 64px 24px; }
}

/* ================================================================
   23. VIDEO THUMBNAIL CARDS (click-to-play)
   ================================================================ */

/* Replace the old inline-iframe wrap */
.t-video-wrap { display: none; }

/* Thumbnail */
.t-video-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;   /* 16:9 */
  background: #000;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.t-video-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s var(--t-ease), filter 0.4s;
  filter: brightness(0.82);
}

.t-video-thumb:hover .t-video-thumb__img,
.t-video-thumb:focus-visible .t-video-thumb__img {
  transform: scale(1.04);
  filter: brightness(0.65);
}

/* Dark gradient overlay */
.t-video-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.40) 100%);
  transition: background 0.35s;
}
.t-video-thumb:hover .t-video-thumb__overlay,
.t-video-thumb:focus-visible .t-video-thumb__overlay {
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.58) 100%);
}

/* YouTube-red play button */
.t-video-play-btn {
  width: 72px; height: 72px;
  background: var(--t-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 30px rgba(232,33,39,0.55), 0 0 0 0 rgba(232,33,39,0.30);
  animation: t-play-pulse 2.4s ease infinite;
  transition: transform 0.25s var(--t-ease), box-shadow 0.25s;
}
.t-video-play-btn ion-icon {
  font-size: 36px;
  color: #fff;
  margin-left: 4px; /* optical centre for play triangle */
}

.t-video-thumb:hover .t-video-play-btn,
.t-video-thumb:focus-visible .t-video-play-btn {
  transform: scale(1.12);
  box-shadow: 0 10px 40px rgba(232,33,39,0.70), 0 0 0 12px rgba(232,33,39,0.15);
}

@keyframes t-play-pulse {
  0%, 100% { box-shadow: 0 6px 30px rgba(232,33,39,0.55), 0 0 0 0   rgba(232,33,39,0.30); }
  50%       { box-shadow: 0 6px 30px rgba(232,33,39,0.55), 0 0 0 14px rgba(232,33,39,0.00); }
}

/* Focus ring for keyboard users */
.t-video-thumb:focus-visible {
  outline: 3px solid var(--t-red);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .t-video-play-btn { width: 58px; height: 58px; }
  .t-video-play-btn ion-icon { font-size: 28px; }
}


/* ================================================================
   24. VIDEO LIGHTBOX MODAL
   ================================================================ */
.t-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.30s var(--t-ease), visibility 0.30s;
}

.t-lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Blurred dark backdrop */
.t-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

/* Centred video container */
.t-lightbox__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  transform: scale(0.92);
  transition: transform 0.32s var(--t-ease);
}
.t-lightbox--open .t-lightbox__container {
  transform: scale(1);
}

/* 16:9 iframe wrapper */
.t-lightbox__video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.80);
}
.t-lightbox__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Close button */
.t-lightbox__close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--t-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.t-lightbox__close ion-icon { font-size: 22px; pointer-events: none; }
.t-lightbox__close:hover {
  background: var(--t-red);
  border-color: var(--t-red);
  transform: rotate(90deg) scale(1.1);
}

@media (max-width: 600px) {
  .t-lightbox { padding: 12px; }
  .t-lightbox__close { top: -44px; right: 0; }
}

/* ================================================================
   25. TESTIMONIALS — clean card redesign (no YT chrome)
   ================================================================ */

/* Section header */
.t-testimonials .t-section-title {
  margin-bottom: 36px;
}

/* Hide old YT elements if any remain */
.t-yt-header, .t-yt-stats, .t-yt-comment-count,
.t-comment__actions, .t-comment__time, .t-comment__pin,
.t-comment--pinned .t-comment__pin { display: none; }

/* Slide card — clean white-on-dark card */
.t-comment-track .t-comment {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 28px 28px;
  pointer-events: none;
}

/* Avatar — larger for the clean look */
.t-comment__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 16px; font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
}

/* Name row */
.t-comment__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 12px;
}
.t-comment__meta strong {
  font-size: 15px; font-weight: 700; color: var(--t-white);
}
.t-comment__meta span {
  font-size: 13px; color: rgba(255,255,255,0.50);
}

/* Quote text */
.t-comment__text {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.70;
  margin-bottom: 16px;
  font-style: italic;
}

/* Delivery confirmation tag */
.t-comment__fee-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(44,187,99,0.15);
  border: 1px solid rgba(44,187,99,0.35);
  color: #4caf82;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 100px;
}
.t-comment__fee-tag ion-icon { font-size: 14px; flex-shrink: 0; }

/* Quote mark decoration */
.t-comment-track .t-comment::before {
  content: '\201C';
  display: block;
  font-size: 52px;
  line-height: 1;
  color: var(--t-red);
  opacity: 0.6;
  margin-bottom: 4px;
  font-family: Georgia, serif;
}

/* ================================================================
   26. VIDEO CARDS — YouTube-open style (file:// compatible)
   ================================================================ */

/* YouTube red icon instead of generic play circle */
.t-video-play-btn ion-icon {
  font-size: 48px !important;
  color: #fff;
  margin-left: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* "Watch on YouTube" label under the button */
.t-video-yt-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.70);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.t-video-thumb:hover .t-video-yt-label,
.t-video-thumb:focus-visible .t-video-yt-label {
  opacity: 1;
}

/* cursor pointer on entire card */
.t-video-thumb { cursor: pointer; }

/* ================================================================
   27. SIMULATOR — pointer-events & transition fixes
   ================================================================ */

/* Re-enable pointer events on all simulator interactive elements */
.t-sim-color-swatch,
.t-sim-model-btn,
.t-sim-cta,
.t-sim-controls,
.t-sim-layout,
.t-simulator { pointer-events: auto !important; }

/* Smooth car image fade on model switch */
.t-sim-car-img {
  transition: opacity 0.25s ease !important;
}

/* Active swatch: white border so it's visible on all colours */
.t-sim-color-swatch--active {
  border-color: #111 !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.20), 0 4px 14px rgba(0,0,0,0.30) !important;
}

/* Pearl White needs a dark border so it's visible */
.t-sim-color-swatch[data-color="Pearl White"].t-sim-color-swatch--active {
  border-color: #555 !important;
}

/* ================================================================
   28. SIMULATOR REWRITE — colour filter + local images
   ================================================================ */

/* Car wrap — position:relative so overlay sits on top */
.t-sim-car-wrap {
  position: relative !important;
  overflow: hidden;
  border-radius: 14px;
  background: #f0f0f0;
}

/* Car image — smooth filter + opacity transitions */
.t-sim-car-img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 14px;
  display: block;
  transition: opacity 0.25s ease, filter 0.40s ease !important;
  pointer-events: none;
}

/* Colour dot inside badge */
.t-sim-color-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.20);
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Badge row */
.t-sim-badge-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

.t-sim-color-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

/* 3-col model grid to fit 9 models neatly */
.t-sim-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
}

/* Colour swatch — every swatch shows checkmark (hidden by default) */
.t-sim-color-swatch {
  position: relative;
}
.t-sim-color-check {
  display: flex !important;  /* always in DOM */
  align-items: center; justify-content: center;
  position: absolute; inset: 0;
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}
.t-sim-color-swatch--active .t-sim-color-check { opacity: 1; }

/* Pearl White swatch — dark checkmark since bg is light */
.t-sim-color-swatch[data-color="Pearl White"] .t-sim-color-check,
.t-sim-color-swatch[data-color="Quicksilver"] .t-sim-color-check {
  color: rgba(0,0,0,0.60);
  text-shadow: none;
}

/* Colour swatches row */
.t-sim-color-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}

/* Active swatch ring */
.t-sim-color-swatch--active {
  border-color: rgba(0,0,0,0.55) !important;
  transform: scale(1.18) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.28) !important;
}

/* White swatch needs visible ring */
.t-sim-color-swatch[data-color="Pearl White"].t-sim-color-swatch--active,
.t-sim-color-swatch[data-color="Quicksilver"].t-sim-color-swatch--active {
  border-color: rgba(0,0,0,0.45) !important;
}

/* Responsive */
@media (max-width: 520px) {
  .t-sim-model-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 7px; }
  .t-sim-car-img    { height: 180px !important; }
}

/* ================================================================
   29. LOCAL VIDEO CARDS + LIGHTBOX
   ================================================================ */

/* 3-column grid for 3 videos */
.t-video-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
  .t-video-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .t-video-grid { grid-template-columns: 1fr !important; }
}

/* Thumbnail <video> element — same as the old <img> */
.t-video-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s var(--t-ease), filter 0.4s;
  filter: brightness(0.82);
}

.t-video-thumb:hover .t-video-thumb__img,
.t-video-thumb:focus-visible .t-video-thumb__img {
  transform: scale(1.04);
  filter: brightness(0.60);
}

/* Play button — standard red circle */
.t-video-play-btn {
  width: 68px; height: 68px;
  background: var(--t-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(232,33,39,0.55);
  animation: t-play-pulse 2.4s ease infinite;
  transition: transform 0.25s var(--t-ease), box-shadow 0.25s;
  z-index: 2;
  position: relative;
}
.t-video-play-btn ion-icon {
  font-size: 34px !important;
  color: #fff;
  pointer-events: none;
  margin-left: 3px;
}
.t-video-thumb:hover .t-video-play-btn {
  transform: scale(1.14);
  box-shadow: 0 10px 40px rgba(232,33,39,0.70);
}

/* Lightbox video element */
.t-lightbox__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
  border-radius: 12px;
}

/* Remove old iframe rule interference */
.t-lightbox__video-wrap iframe { display: none; }

/* ================================================================
   30. STATS STRIP
   ================================================================ */
.t-stats-strip {
  background: var(--t-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 52px 24px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.t-stats-strip__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.t-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 48px;
  flex: 1 1 180px;
}

.t-stat-num {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--t-white);
  line-height: 1;
  margin-bottom: 10px;
  /* count-up animation handled by JS */
}

/* Highlight the $0 item in red */
.t-stat-item:nth-child(5) .t-stat-num { color: var(--t-red); }

.t-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.t-stat-sep {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 767px) {
  .t-stats-strip { padding: 40px 16px; }
  .t-stats-strip__inner { gap: 32px 0; }
  .t-stat-item  { padding: 0 20px; flex: 1 1 140px; }
  .t-stat-sep   { display: none; }
  .t-stat-num   { font-size: clamp(30px, 8vw, 44px); }
}


/* ================================================================
   31. WORLD MAP
   ================================================================ */
.t-worldmap {
  background: #0b0d10;
  padding: 110px 24px 80px;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.t-worldmap__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Override section-title for dark bg */
.t-worldmap .t-section-title { color: var(--t-white); }
.t-worldmap .t-section-sub   { color: rgba(255,255,255,0.50); margin-bottom: 44px; }

/* Map container */
.t-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 36px;
}

/* SVG map */
.t-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.t-map-land {
  fill: rgba(255,255,255,0.08);
  stroke: rgba(255,255,255,0.04);
  stroke-width: 0.5;
  transition: fill 0.3s;
}

/* Delivery dots */
.t-map-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.t-map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--t-red);
  box-shadow: 0 0 0 0 rgba(232,33,39,0.6);
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  animation: t-dot-pulse 2.5s ease-out infinite;
}

/* Stagger pulse so not all dots beat together */
.t-map-dot:nth-child(2n)   { animation-delay: 0.4s; }
.t-map-dot:nth-child(3n)   { animation-delay: 0.8s; }
.t-map-dot:nth-child(4n)   { animation-delay: 1.2s; }
.t-map-dot:nth-child(5n)   { animation-delay: 1.6s; }
.t-map-dot:nth-child(6n)   { animation-delay: 0.2s; }
.t-map-dot:nth-child(7n)   { animation-delay: 1.0s; }

@keyframes t-dot-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(232,33,39,0.70); }
  60%  { box-shadow: 0 0 0 10px rgba(232,33,39,0.00); }
  100% { box-shadow: 0 0 0 0   rgba(232,33,39,0.00); }
}

/* Tooltip */
.t-map-tooltip {
  position: absolute;
  background: rgba(23,26,32,0.95);
  color: var(--t-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.t-map-tooltip--visible { opacity: 1; }

/* Country chips */
.t-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.t-map-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  transition: background var(--t-dur), border-color var(--t-dur), color var(--t-dur);
}
.t-map-chip:last-child {
  background: rgba(232,33,39,0.12);
  border-color: rgba(232,33,39,0.30);
  color: var(--t-red);
}

@media (max-width: 767px) {
  .t-worldmap { padding: 72px 16px 56px; }
  .t-map-dot  { width: 7px; height: 7px; }
}

/* ================================================================
   32. GLOBAL MOBILE OVERFLOW FIX
   — Prevents any element from causing horizontal scrollbar / whitespace
   ================================================================ */
@media (max-width: 767px) {
  /* Catch-all: every direct section-level block must not exceed viewport */
  section, header, footer, nav, div {
    max-width: 100%;
  }

  /* Explicit overrides for known problem areas */
  .t-hero__content,
  .t-model__content,
  .t-model__specs,
  .t-model__ctas,
  .t-stats-strip__inner,
  .t-videos__inner,
  .t-simulator__inner,
  .t-testimonials__inner,
  .t-contact__inner,
  .t-footer__inner,
  .t-worldmap__inner {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Prevent wide buttons from stretching outside */
  .t-btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
  }

  /* Prevent pre-formatted inline content from stretching */
  /* (trust bar now uses marquee animation — no override needed) */
}
