/* ─── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:            #0a0d13;
  --panel:         #11151e;
  --panel-2:       #181d29;
  --panel-3:       #20283a;
  --border:        #232b3a;
  --border-strong: #313c52;
  --accent:        #6366c5;
  --accent-hover:  #7678d4;
  --accent-press:  #5254b6;
  --accent-soft:   rgba(99,102,197,0.16);
  --on-accent:     #ffffff;
  --text:          #e9eef6;
  --muted:         #8d99ad;
  --faint:         #5f6b80;
  --ok:            #36c46a;
  --radius:        10px;
  --radius-sm:     7px;
  --radius-lg:     14px;
  --shadow:        0 12px 34px rgba(0,0,0,0.5);
  --shadow-lg:     0 40px 100px rgba(0,0,0,0.7);
  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(99,102,197,0.06), transparent 65%),
    linear-gradient(180deg,
      rgba(10,13,19,0.10) 0%,
      rgba(10,13,19,0.45) 55%,
      rgba(10,13,19,0.85) 100%);
  pointer-events: none;
}

.hero-fallback { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99,102,197,0.1), transparent 65%); }
.hero-fallback.hidden { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.35rem;
  padding: 2rem 1.5rem;
  max-width: 660px;
}

/* Logo */
.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  margin-bottom: 0.2rem;
}

.hero-logo-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background-color: var(--accent);
  -webkit-mask-image: url('assets/truck.png');
  mask-image: url('assets/truck.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.hero-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  color: var(--text);
}

/* "u" stays white like the rest of the wordmark */
.hero-logo-text .logo-u {
  color: inherit;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(17,21,30,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(54,196,106,0.2);
  flex: 0 0 auto;
}

/* Headline */
.hero-headline {
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Sub */
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
}

/* CTA */
.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(99,102,197,0.4),
    0 8px 30px rgba(99,102,197,0.38),
    0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  background: var(--accent-hover);
  box-shadow:
    0 0 0 1px rgba(118,120,212,0.5),
    0 12px 44px rgba(99,102,197,0.52),
    0 2px 8px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.hero-cta:active  { background: var(--accent-press); transform: translateY(0); }
.hero-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero-cta .win-icon { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }

.hero-version {
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.025em;
}

/* Scroll chevron */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  animation: chevron-bounce 2.2s ease-in-out infinite;
  opacity: 0.38;
}

.hero-scroll svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes chevron-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─── SHOWROOM (Features + Screenshots merged) ──────────────────────────────── */
.showroom {
  padding: 6rem 1.5rem;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showroom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Left: header + tabs ── */
.showroom-left { display: flex; flex-direction: column; gap: 1.6rem; }

.section-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Feature tabs */
.showroom-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stab {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.stab:hover { background: var(--panel-2); border-color: var(--border); }

.stab.active {
  background: var(--panel-2);
  border-color: var(--accent);
}

.stab-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.stab.active .stab-icon { background: rgba(99,102,197,0.28); }

.stab-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}

.stab.active .stab-icon svg { stroke: var(--accent); }

.stab-body { display: flex; flex-direction: column; gap: 0.2rem; }

.stab-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.15s ease;
}

.stab.active .stab-title { color: var(--text); }

.stab-desc {
  font-size: 0.83rem;
  color: var(--faint);
  line-height: 1.5;
  transition: color 0.15s ease;
}

.stab.active .stab-desc { color: var(--muted); }

/* ── Right: 3D glass panel ── */
.showroom-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showroom-frame {
  position: relative;
  width: 100%;
  transform: perspective(1100px) rotateY(-14deg) rotateX(4deg);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  background: rgba(17,21,30,0.52);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(99,102,197,0.2);
  box-shadow:
    0 50px 110px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 18px 55px rgba(99,102,197,0.10);
  overflow: hidden;
  transition: transform 0.65s cubic-bezier(0.22,0.72,0.22,1);
}

.showroom-right:hover .showroom-frame {
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}

/* Screenshot container */
.showroom-screens {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.showroom-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
  display: block;
}

.showroom-img.active { opacity: 1; }

/* Glass glare */
.showroom-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255,255,255,0.055) 0%,
    rgba(255,255,255,0.018) 30%,
    transparent 60%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

/* Dots indicator */
.showroom-dots {
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.showroom-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}

.showroom-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

/* ─── CTA STRIP ──────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 5.5rem 1.5rem;
  background: var(--bg);
  text-align: center;
}

.cta-section .cta-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.cta-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.cta-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.footer-logo-mark {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  background-color: var(--accent);
  -webkit-mask-image: url('assets/truck.png');
  mask-image: url('assets/truck.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

.footer-logo-text { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.footer-tagline   { font-size: 0.78rem; color: var(--faint); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s ease;
}

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

.footer-copy { font-size: 0.72rem; color: var(--faint); width: 100%; }

/* ─── Scroll reveal ──────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].revealed            { opacity: 1; transform: none; }
[data-reveal-delay="1"]           { transition-delay: 0.07s; }
[data-reveal-delay="2"]           { transition-delay: 0.14s; }
[data-reveal-delay="3"]           { transition-delay: 0.21s; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .showroom-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .showroom-frame {
    transform: perspective(1100px) rotateY(0deg) rotateX(3deg);
  }
  .showroom-right:hover .showroom-frame {
    transform: perspective(1100px) rotateY(0deg) rotateX(1deg);
  }
}

@media (max-width: 600px) {
  .showroom { padding: 4rem 1rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 4rem 1rem; }
}

/* ─── Reduced motion ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
