:root {
  --bg: #0d0f16;
  --bg-soft: #141824;
  --bg-card: #1a2030;
  --text: #eef1f6;
  --text-muted: #a8b0c2;
  --accent: #f04e45;
  --accent-2: #f3c969;
  --accent-3: #4fd1c5;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(3, 7, 18, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(
    circle at top,
    #1b2033 0%,
    #0d0f16 55%,
    #090b10 100%
  );
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  z-index: 20;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1.5rem;
}

.page-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  flex: 1;
}

.site-header {
  width: min(1200px, 100% - 3rem);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
}

.hero-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0.4rem 0;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 42rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 30px rgba(240, 78, 69, 0.35);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
}

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

.button:focus-visible,
.nav-link:focus-visible,
.hero-card:focus-visible,
.battle-card:focus-visible,
.product-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.hero-intro-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hero-intro-card-header {
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-intro-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.hero-intro-stats li {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.hero-intro-stats strong {
  color: var(--text);
}

.hero-intro-card-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section {
  padding: 2rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
}

.section-heading p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.hero-grid,
.battle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.hero-card,
.battle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.hero-card:hover,
.battle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-card::after,
.battle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(240, 78, 69, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-card:hover::after,
.battle-card:hover::after {
  opacity: 1;
}

.hero-card-title,
.battle-card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.hero-card-meta,
.battle-card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.product-card-title {
  font-weight: 600;
}

.product-card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.hero-card-score {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
}

.hero-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-profile-art {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem;
  min-height: 240px;
  background: linear-gradient(
    135deg,
    rgba(79, 209, 197, 0.2),
    rgba(240, 78, 69, 0.2)
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-profile-art[data-universe="Marvel"] {
  background: linear-gradient(
    135deg,
    rgba(240, 78, 69, 0.3),
    rgba(255, 255, 255, 0.05)
  );
}

.hero-profile-art[data-universe="DC"] {
  background: linear-gradient(
    135deg,
    rgba(79, 209, 197, 0.35),
    rgba(255, 255, 255, 0.05)
  );
}

.hero-profile-art[data-universe="The Boys"] {
  background: linear-gradient(
    135deg,
    rgba(243, 201, 105, 0.35),
    rgba(255, 255, 255, 0.05)
  );
}

.hero-profile-art[data-universe="Indie"] {
  background: linear-gradient(
    135deg,
    rgba(185, 146, 255, 0.35),
    rgba(255, 255, 255, 0.05)
  );
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stats-grid {
  display: grid;
  gap: 0.8rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.stat-row span {
  color: var(--text-muted);
}

.stat-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.versus-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.versus-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.versus-card-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
}

.versus-vs {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  text-align: center;
  color: var(--accent);
}

.probability {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.probability-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.probability-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.probability-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  color: var(--text-muted);
}

.battle-narrative p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.two-column {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
  color: var(--text-muted);
}

.footer-content {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-meta {
  width: min(1200px, 100% - 3rem);
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}
