/* ══════════════════════════════════════════════════════════════
   be-faster.com – Stylesheet
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #0f0f0f;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.45);
  --text-faint: rgba(255, 255, 255, 0.3);
  --accent: #7BC87F;
  --accent-soft: rgba(123, 200, 127, 0.18);
  --accent-border: rgba(123, 200, 127, 0.4);
  --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* ── TOP NAV ─────────────────────────────────────────────── */

.top-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: 20px 32px;
  z-index: 2;
}

.top-nav.solid {
  position: relative;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo-mark {
  height: 38px;
  width: auto;
  display: block;
}

.logo-full {
  height: 44px;
  width: auto;
  display: block;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── HERO CONTENT ────────────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 48px;
  max-width: 860px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.flag { font-size: 22px; }
.separator { color: var(--text-faint); }

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 120px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
}

/* ── SCROLL HINT ─────────────────────────────────────────── */

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

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

/* ── CONTENT ─────────────────────────────────────────────── */

.content {
  background: var(--bg-elev);
  padding: 64px 32px 96px;
  max-width: 860px;
  margin: 0 auto;
}

.gallery {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
}

.gallery-item {
  flex: 1;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--accent-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.history p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ── CARDS ───────────────────────────────────────────────── */

.card {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.card-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.card-label.muted { color: var(--text-faint); }
.card-label.accent-color { color: var(--accent); }

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

.card-accent {
  background: rgba(123, 200, 127, 0.06);
  border-color: rgba(123, 200, 127, 0.18);
}

.card-accent .card-label { color: var(--accent); }

.lap-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.record-driver {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.record-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.card-dark {
  background: linear-gradient(135deg, #1e1e28, #14141e);
  border-color: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.card-bg-mark {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 120px;
  opacity: 0.06;
  font-weight: 700;
  pointer-events: none;
  font-family: 'Bebas Neue', sans-serif;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-meta {
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── ARCHIVE PAGE ────────────────────────────────────────── */

.archive-page { background: var(--bg); }

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.archive-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.archive-subtitle {
  color: var(--text-faint);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.archive-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s;
}

.archive-card:hover { transform: scale(1.02); }

.archive-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.1) 60%);
}

.archive-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.archive-flag { font-size: 20px; }

.archive-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 6px;
  margin-bottom: 6px;
  line-height: 1.1;
}

.archive-category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── ERROR PAGE ──────────────────────────────────────────── */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.error-content { text-align: center; }

.error-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 180px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 0.2s;
}

.button:hover { transform: translateY(-2px); }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .top-nav { padding: 16px 20px; }
  .logo-full { height: 36px; }
  .hero-content { padding: 0 20px 32px; }
  .content { padding: 48px 20px 64px; }
  .gallery { flex-direction: column; }
  .stat { min-width: 0; flex: 1; }
  .record-time { font-size: 22px; }
}
