/* ===== VARIABLES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent: #e10600;
  --accent-glow: rgba(225, 6, 0, 0.3);
  --accent-light: #ff3333;
  --text-primary: #ffffff;
  --text-secondary: #b0b0c8;
  --text-muted: #787890;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== RACING STRIPE ===== */
.racing-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    var(--accent) 30%,
    #ff6b00 50%,
    var(--accent) 70%,
    var(--accent) 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 4px;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  height: 56px;
  width: auto;
  filter: invert(1);
  transition: var(--transition);
}

.logo-link:hover .logo {
  filter: invert(1) drop-shadow(0 0 8px var(--accent-glow));
  transform: scale(1.05);
}

.header-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-grow: 1;
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.site-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(225, 6, 0, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255, 107, 0, 0.05), transparent);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.2);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-secondary);
  text-align: justify;
}

/* ===== EDITIONS SECTION ===== */
.editions {
  padding: 70px 0 90px;
  position: relative;
}

.editions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;

  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== EDITIONS GRID ===== */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.edition-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}

.edition-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(225, 6, 0, 0.08);
  background: var(--bg-card-hover);
}

.edition-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.edition-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.edition-card:hover .edition-cover img {
  transform: scale(1.06);
}

.edition-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.6), transparent);
  pointer-events: none;
}

.edition-info {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.edition-number {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.edition-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
}

/* ===== SCROLL ANIMATIONS ===== */
.edition-card {
  opacity: 0;
  transform: translateY(30px);
}

.edition-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--transition),
              border-color var(--transition);
}

.edition-card:hover.visible {
  transform: translateY(-8px);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 48px 0 32px;
}

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

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

.footer-logo {
  height: 36px;
  filter: invert(1);
  opacity: 0.7;
}

.footer-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-contact a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .logo {
    height: 44px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .editions {
    padding: 50px 0 60px;
  }

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

@media (max-width: 480px) {
  .header-text {
    flex-direction: column;
    gap: 2px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .editions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .edition-info {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ===== SELECTION ===== */
::selection {
  background: var(--accent);
  color: white;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== PARAGRAPH DEFAULT ===== */
p {
  text-align: justify;
}

.lead + .lead {
  margin-top: 16px;
}
