*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --bg:             #f5f5f5;
  --bg-dark:        #e8e8e8;
  --bg-alt:         #efefef;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --accent:         #e63030;
  --accent-hover:   #cc1f1f;
  --accent-orange:  #d95a00;
  --text:           #111111;
  --text-muted:     #555555;
  --text-dim:       #888888;
  --border:         rgba(0,0,0,0.08);
  --border-accent:  rgba(230,48,48,0.20);
  --border-accent2: rgba(230,48,48,0.45);
  --font-h:         'Orbitron', sans-serif;
  --font-b:         'DM Sans', sans-serif;
  --max-w:          1280px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Scroll Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ─── Navigation ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,245,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-accent);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem;
  font-family: var(--font-h);
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover           { color: var(--accent); }
.nav-links a:hover::after    { transform: scaleX(1); }

@media (max-width: 768px) { .nav-links { display: none; } }

/* ─── Section Utilities ─── */
section { padding: 6rem 1.5rem; }
.container { max-width: var(--max-w); margin: 0 auto; }

.section-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-h);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.section-title .acc { color: var(--accent); }
.section-bar {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
  border-radius: 2px;
  margin-bottom: 3.5rem;
}

/* ─── HERO ─── */
#hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(230,48,48,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(217,90,0,0.05) 0%, transparent 50%),
    var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,48,48,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,48,48,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.5) 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.5) 0%, transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 4rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Kart 3D Tilt */
.kart-container {
  perspective: 900px;
  cursor: crosshair;
}
.kart-inner {
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.kart-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.kart-container:hover .kart-inner::after { opacity: 1; }
.kart-container:hover .kart-inner {
  box-shadow:
    0 0 50px rgba(230,48,48,0.25),
    0 0 100px rgba(230,48,48,0.10),
    0 20px 60px rgba(0,0,0,0.15);
}
.kart-img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.kart-badge-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.kart-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(230,48,48,0.06);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-h);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.kart-stat span { color: var(--accent); font-weight: 700; }

/* Hero text column */
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-eyebrow {
  font-family: var(--font-h);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.hero-h1 {
  font-family: var(--font-h);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-h1 .line-evil { color: var(--accent); }
.hero-sub {
  font-family: var(--font-h);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: rgba(230,48,48,0.06);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}
.badge-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 1.25rem 1.5rem;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-accent2);
  border-radius: 0 8px 8px 0;
}
.hero-season-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-h);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.hero-season-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem 3rem;
  }
  .kart-img { height: 300px; }
}
@media (max-width: 480px) {
  .hero-h1  { font-size: 2.4rem; }
  .kart-img { height: 240px; }
  .hero-desc { font-size: 0.85rem; }
}

/* ─── TEAM ─── */
#team { background: var(--bg-alt); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  border-color: var(--border-accent2);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(230,48,48,0.1);
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.team-info { flex: 1; min-width: 0; }
.team-name {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-h);
}
.team-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.team-photo-wrap {
  margin-top: 3.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.team-photo-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.team-photo-caption {
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* ─── SPONSORS ─── */
#sponsors { background: var(--bg); }
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .sponsors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sponsors-grid { grid-template-columns: 1fr; } }

.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sponsor-card:hover {
  border-color: var(--border-accent2);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(230,48,48,0.1);
}
.sponsor-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(230,48,48,0.06);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  text-align: center;
}
.sponsor-name {
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.sponsor-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ─── HIGHLIGHTS ─── */
#highlights { background: var(--bg-alt); }
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hl-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  transition: border-left-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.hl-item:hover {
  transform: translateX(5px);
  background: rgba(230,48,48,0.02);
  border-left-color: var(--accent-hover);
}
.hl-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(230,48,48,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.hl-icon svg  { width: 14px; height: 14px; fill: var(--accent); }
.hl-text      { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.hl-text strong { color: var(--text); font-weight: 600; }

/* ─── TECHNICAL ─── */
#technical { background: var(--bg); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr; } }

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.tech-card:hover::before { transform: scaleX(1); }
.tech-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 16px 45px rgba(230,48,48,0.08);
  transform: translateY(-5px);
}
.tech-icon-ring {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: rgba(230,48,48,0.06);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.tech-icon-ring svg {
  width: 30px; height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tech-title {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.tech-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }

/* ─── ACKNOWLEDGEMENTS ─── */
#acknowledgements { background: var(--bg-alt); }
.ack-inner { max-width: 860px; }
.ack-list   { display: flex; flex-direction: column; }
.ack-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.ack-item:last-child { border-bottom: none; }
.ack-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.ack-name {
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}
.ack-role { font-size: 0.88rem; color: var(--text-muted); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-h);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-logo .acc { color: var(--accent); }
.footer-sub {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ─── Scroll-to-top button ─── */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px; height: 42px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 99;
}
#scrollTop.show   { opacity: 1; transform: translateY(0); }
#scrollTop:hover  { background: var(--accent-hover); }
#scrollTop svg {
  width: 16px; height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Focus ring accessibility ─── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }