:root {
  --bg: #ffffff;
  --bg-elevated: #f5f5f5;
  --bg-card: #f9f9f9;
  --fg: #1a1a1a;
  --fg-muted: #666666;
  --accent: #ff5e3b;
  --accent-glow: rgba(255, 94, 59, 0.12);
  --accent-2: #0ea5e9;
  --border: #e5e5e5;
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--accent);
  font-size: 22px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.hero-content {
  flex: 1;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  width: 280px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* TRIBES */
.tribes {
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.tribes-header {
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
}

.tribe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tribe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.tribe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tribe-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.tribe-card:hover::before {
  opacity: 1;
}

.tribe-icon {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--accent);
}

.tribe-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.tribe-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* FEATURES */
.features {
  padding: 120px 32px;
  background: var(--bg-elevated);
}

.features-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.feature-block {
  padding: 20px 0;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* RACE FINDER */
.racefinder {
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.racefinder-content {
  display: flex;
  gap: 80px;
  align-items: center;
}

.racefinder-text {
  flex: 1;
}

.racefinder-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.racefinder-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.racefinder-text p {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.race-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.race-pill {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent-2);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.racefinder-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 320px;
}

.race-card-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 3px solid var(--accent-2);
}

.race-mock-date {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.race-mock-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.race-mock-detail {
  font-size: 14px;
  color: var(--fg-muted);
}

/* CLOSING */
.closing {
  padding: 140px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 94, 59, 0.04) 50%, var(--bg) 100%);
}

.closing-content {
  max-width: 700px;
  margin: 0 auto;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.closing-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.2s;
}
.closing-cta:hover { opacity: 0.88; transform: translateY(-2px); }

/* FOOTER */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  font-size: 14px;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 48px;
    padding-top: 100px;
    min-height: auto;
  }

  .hero-visual {
    width: 100%;
  }

  .stat-card {
    width: 100%;
  }

  .tribe-grid {
    grid-template-columns: 1fr;
  }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .racefinder-content {
    flex-direction: column;
    gap: 48px;
  }

  .racefinder-visual {
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}