/* Home page sections only */
.section { padding: 100px 6vw; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 6vw 80px;
  background: linear-gradient(90deg, var(--hero-overlay-start) 35%, var(--hero-overlay-end)), url("../assets/hero.jpg") center / cover no-repeat, radial-gradient(circle at 80% 20%, var(--hero-glow), var(--bg) 65%); }
.hero-content { max-width: 880px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin: 26px 0 22px; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 520px; margin-bottom: 38px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: .8rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.6); } 100% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb),0); } }
.fade-in { opacity: 0; transform: translateY(26px); animation: fadeUp .9s ease forwards; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Scroll reveal (js/reveal.js) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .3s; }

/* Snapshot: university + stats */
.based-at { display: flex; align-items: center; gap: 22px; margin-bottom: 40px; }
.based-logo { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: .7rem; overflow: hidden; padding: 6px; flex-shrink: 0; }
.based-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.based-logo img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.based-logo .logo-dark { display: none; }
.based-logo .logo-light { display: block; }

[data-theme="dark"] .based-logo .logo-light { display: none !important; }
[data-theme="dark"] .based-logo .logo-dark { display: block !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .based-logo .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .based-logo .logo-dark { display: block !important; }
}
.based-name { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.count { font-family: var(--font-head); font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--accent); }
.stat p { margin-top: 12px; color: var(--muted); }

/* Who we are */
.who-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 26px; max-width: 560px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 32px 28px; border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, border-color .25s, background .25s; }
.step:hover { transform: translateY(-8px); border-color: var(--accent); background: var(--surface); }
.step-num { font-family: var(--font-mono); color: var(--accent); }
.step h3 { font-size: 1.7rem; margin: 40px 0 10px; }
.step p { color: var(--muted); }

/* Current competition */
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; padding: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.featured h2 { margin-bottom: 16px; }
.meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin: 10px 0 34px; }
.meta dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin-top: 4px; font-weight: 500; }
.stages { list-style: none; position: relative; padding-left: 34px; align-self: center; }
.stages::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.stages li { position: relative; display: flex; flex-direction: column; padding: 14px 0; }
.stages li::before { content: ""; position: absolute; left: -34px; top: 20px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.stages li strong { font-family: var(--font-head); font-size: 1.2rem; }
.stages li span { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.stages .done::before { background: var(--accent); border-color: var(--accent); }
.stages .active::before { border-color: var(--accent); background: var(--bg); animation: pulse 1.8s infinite; }
.stages .active span { color: var(--accent); }
.stages .upcoming strong { color: var(--muted); }

/* Sponsors */
.marquee { overflow: hidden; margin: 36px 0 44px; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll 30s linear infinite; align-items: center; }
.marquee-track span { padding: 16px 34px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.marquee-track img { height: 56px; padding: 8px 24px; border: 1px solid var(--line); border-radius: 999px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .who-top, .featured { grid-template-columns: 1fr; gap: 30px; }
  .featured { padding: 32px; }
  .meta { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) { .stats, .steps { grid-template-columns: 1fr; } }

/* Featured Vehicle Section on Home Page */
.home-vehicle-section {
  padding: 80px 6vw;
  border-top: 1px solid var(--line);
}
.home-vehicle-section .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.home-vehicle-section .reveal.visible {
  opacity: 1;
  transform: none;
}
.home-vehicle-section .vehicle {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.home-vehicle-section .vehicle h2 {
  margin: 18px 0 14px;
}
.home-vehicle-section .lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
}
.home-vehicle-section .status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .78rem;
}
.home-vehicle-section .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}
.home-vehicle-section .vehicle-title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  transition: color .2s ease;
}
.home-vehicle-section .vehicle-title-link:hover {
  color: var(--accent);
}
.home-vehicle-section .vehicle-title-link .arrow {
  transition: transform .25s ease;
  color: var(--accent);
}
.home-vehicle-section .vehicle-title-link:hover .arrow {
  transform: translateX(6px);
}
.home-vehicle-section .vehicle-media {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s ease;
}
.home-vehicle-section .vehicle-media:hover {
  transform: translateY(-4px);
}
.home-vehicle-section .home-3d-stage {
  position: relative;
  height: 360px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), 0.24), #070b14 75%);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.home-vehicle-section .vehicle-media:hover .home-3d-stage {
  border-color: var(--accent);
  box-shadow: 0 18px 42px rgba(var(--accent-rgb), 0.22);
}
.home-vehicle-section .home-3d-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.home-vehicle-section .img-ph {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  height: 100%;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s ease;
}
.home-vehicle-section .vehicle-media:hover .img-ph {
  border-color: var(--accent);
}
.home-vehicle-section .view-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.home-vehicle-section .vehicle-media:hover .view-pill {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: translateX(2px);
}
.home-vehicle-section .specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
  margin-top: 30px;
}
.home-vehicle-section .specs dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-vehicle-section .specs dd {
  font-weight: 500;
  margin-top: 2px;
}
.home-vehicle-section .vehicle-action {
  margin-top: 28px;
}
@media (max-width: 900px) {
  .home-vehicle-section .vehicle {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 520px) {
  .home-vehicle-section .specs {
    grid-template-columns: 1fr;
  }
}