/* ==================================================
   Levobrightcrew — World Cup 2026 Match Hub
   "Deep Space" Edition — Sky Blue × Black
   ================================================== */

:root {
  --bg-primary: #02060c;
  --bg-secondary: #040b16;
  --surface: rgba(8, 18, 34, 0.82);
  --surface-solid: #081222;
  --surface-alt: #0c1c33;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --accent-3: #818cf8;
  --border: rgba(56, 189, 248, 0.16);
  --text-primary: #f0f9ff;
  --text-secondary: #b8cde3;
  --muted: #7d97b5;
  --radius: 16px;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  --glow: 0 0 26px rgba(56, 189, 248, 0.35);
  --transition: 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ==================================================
   Global starfield backdrop (site-wide)
   ================================================== */
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, rgba(129, 140, 248, 0.07), transparent 60%),
    var(--bg-primary);
}
.space-backdrop::before,
.space-backdrop::after {
  content: "";
  position: absolute;
  inset: -200px;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, rgba(240, 249, 255, 0.9), transparent 50%),
    radial-gradient(1px 1px at 120px 90px, rgba(125, 211, 252, 0.8), transparent 50%),
    radial-gradient(2px 2px at 210px 160px, rgba(240, 249, 255, 0.7), transparent 50%),
    radial-gradient(1px 1px at 300px 60px, rgba(186, 230, 253, 0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 80px 220px, rgba(240, 249, 255, 0.65), transparent 50%),
    radial-gradient(1px 1px at 260px 260px, rgba(125, 211, 252, 0.6), transparent 50%);
  background-size: 340px 340px;
  animation: starTwinkle 6s ease-in-out infinite alternate;
}
.space-backdrop::after {
  background-size: 520px 520px;
  opacity: 0.55;
  animation: starDrift 160s linear infinite;
}
body > main,
body > header,
body > footer { position: relative; z-index: 1; }

@keyframes starTwinkle {
  0%   { opacity: 0.45; }
  100% { opacity: 0.95; }
}
@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-340px, -340px, 0); }
}

/* Layout */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; }
.section { padding: 92px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.55), rgba(4, 11, 22, 0.75));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
}
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 16px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
  animation: beamPulse 3s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: 1; width: 88px; }
  50%      { opacity: 0.6; width: 128px; }
}
.section-sub { color: var(--text-secondary); margin-top: 12px; }
.accent { color: var(--accent); }

/* Animated shimmer accent (hero "Top 10") */
.accent-shimmer {
  background: linear-gradient(110deg, #38bdf8 20%, #e0f2fe 40%, #38bdf8 60%, #818cf8 80%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: -250% center; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #02060c;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 12px 38px rgba(56, 189, 248, 0.5), 0 0 22px rgba(56, 189, 248, 0.4);
}
.btn-pulse { animation: btnPulse 2.6s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35), 0 0 0 0 rgba(56, 189, 248, 0.45); }
  50%      { box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35), 0 0 0 14px rgba(56, 189, 248, 0); }
}
.btn-ghost {
  background: rgba(56, 189, 248, 0.04);
  color: var(--text-primary);
  border: 2px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  background: rgba(2, 6, 12, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(56, 189, 248, 0.2);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand span { color: var(--accent); text-shadow: 0 0 16px rgba(56, 189, 248, 0.7); }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), text-shadow var(--transition);
}
.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}
.header-cta { padding: 10px 20px; font-size: 0.85rem; }
.menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 26px; height: 3px; background: var(--text-primary); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==================================================
   HERO — animated deep-space launchpad
   ================================================== */
.hero {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 18% -5%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(800px 440px at 92% 95%, rgba(129, 140, 248, 0.12), transparent 60%),
    #010409;
  border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
#starCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Drifting nebulae */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.nebula-1 {
  width: 560px; height: 560px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  animation: nebulaDrift 18s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 480px; height: 480px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.28), transparent 70%);
  animation: nebulaDrift 22s ease-in-out infinite alternate-reverse;
}
@keyframes nebulaDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.15); }
}

/* Rotating orbit rings with satellites */
.orbit {
  position: absolute;
  border: 1px dashed rgba(56, 189, 248, 0.22);
  border-radius: 50%;
}
.orbit-1 { width: 620px; height: 620px; top: 50%; right: -180px; transform: translateY(-50%); animation: orbitSpin 40s linear infinite; }
.orbit-2 { width: 420px; height: 420px; top: 50%; right: -80px; transform: translateY(-50%); animation: orbitSpin 26s linear infinite reverse; }
.orbit-3 { width: 260px; height: 260px; top: 12%; left: 38%; animation: orbitSpin 18s linear infinite; opacity: 0.7; }
.satellite {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 4px rgba(56, 189, 248, 0.7);
}
.satellite-alt { background: var(--accent-3); box-shadow: 0 0 14px 4px rgba(129, 140, 248, 0.7); }
@keyframes orbitSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.orbit-3 { animation-name: orbitSpinFree; }
@keyframes orbitSpinFree {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating glow planets */
.planet {
  position: absolute;
  border-radius: 50%;
}
.planet-1 {
  width: 90px; height: 90px;
  top: 16%; right: 18%;
  background: radial-gradient(circle at 32% 30%, #7dd3fc, #0ea5e9 45%, #03253d 100%);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.45), inset -14px -10px 30px rgba(0, 0, 0, 0.6);
  animation: floatY 7s ease-in-out infinite;
}
.planet-2 {
  width: 38px; height: 38px;
  bottom: 20%; left: 6%;
  background: radial-gradient(circle at 35% 30%, #a5b4fc, #6366f1 50%, #131642 100%);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.45), inset -8px -6px 16px rgba(0, 0, 0, 0.55);
  animation: floatY 9s ease-in-out infinite reverse;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}

/* Shooting stars */
.shooting-star {
  position: absolute;
  width: 140px; height: 2px;
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.95), transparent);
  border-radius: 999px;
  opacity: 0;
  transform: rotate(-32deg);
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.8));
}
.shooting-star-1 { top: 18%; left: 10%; animation: shoot 7s ease-in 1.5s infinite; }
.shooting-star-2 { top: 55%; left: 55%; animation: shoot 9s ease-in 4.5s infinite; }
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-32deg) translateX(0); }
  4%   { opacity: 1; }
  12%  { opacity: 0; transform: rotate(-32deg) translateX(420px); }
  100% { opacity: 0; transform: rotate(-32deg) translateX(420px); }
}

/* Subtle perspective grid floor */
.hero-gridlines {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  animation: gridScroll 5s linear infinite;
}
@keyframes gridScroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 56px, 0 0; }
}

.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}
.kicker-beam {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(56, 189, 248, 0.06);
  backdrop-filter: blur(6px);
}
.hero-sub { color: var(--text-secondary); font-size: 1.1rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-panel { display: flex; flex-direction: column; gap: 18px; }
.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  box-shadow: var(--shadow), inset 0 0 30px rgba(56, 189, 248, 0.04);
  backdrop-filter: blur(8px);
}
.float-1 { animation: floatY 6s ease-in-out infinite; }
.float-2 { animation: floatY 6s ease-in-out 0.8s infinite; }
.float-3 { animation: floatY 6s ease-in-out 1.6s infinite; }
.hero-stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.8);
}
.hero-stat-label { color: var(--text-secondary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }

/* Title race strip */
.title-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.title-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.title-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.title-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--glow);
}
.title-card:hover::before { opacity: 1; }
.rank-badge {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
}
.rank-badge.rank-1 {
  background: var(--accent);
  color: #02060c;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}
.title-card h3 { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; }
.title-odds { font-size: 1.5rem; font-weight: 900; color: var(--accent-3); margin: 6px 0 10px; text-shadow: 0 0 16px rgba(129, 140, 248, 0.5); }
.title-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted); }
.title-meta strong { color: var(--text-primary); }

/* Match grid */
.match-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.match-card::after {
  content: "";
  position: absolute;
  top: -60%; left: -60%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(125, 211, 252, 0.07), transparent);
  transform: rotate(18deg) translateX(-260%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.match-card:hover::after { transform: rotate(18deg) translateX(420%); }
.match-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: var(--shadow), var(--glow);
}
.match-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.group-tag {
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.edge-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
}
.match-card h3 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
.match-rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.match-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 0.9fr 0.9fr;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  align-items: center;
}
.match-row.head {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.match-row.fav { background: rgba(56, 189, 248, 0.1); color: var(--text-primary); }
.match-row.fav span:first-child { color: var(--accent); font-weight: 800; }
.match-row:not(.head):not(.fav) { color: var(--text-secondary); border-top: 1px solid var(--border); }
.match-summary { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 18px; flex-grow: 1; }
.match-link {
  align-self: flex-start;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition), text-shadow var(--transition);
}
.match-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-2);
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

/* Expanded previews */
.preview-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.preview-block:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: var(--shadow), 0 0 24px rgba(56, 189, 248, 0.12); }
.preview-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.preview-head h3 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.fav-marker {
  margin-left: auto;
  background: rgba(129, 140, 248, 0.14);
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.compare { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  padding: 12px 18px;
  font-size: 0.95rem;
}
.compare-row:nth-child(odd) { background: var(--surface-alt); }
.compare-label { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.compare-a, .compare-b { font-weight: 700; text-align: center; }
.compare-b { color: var(--text-secondary); }
.fav-val { color: var(--accent); text-shadow: 0 0 12px rgba(56, 189, 248, 0.45); }
.preview-text p { color: var(--text-secondary); margin-bottom: 12px; }
.preview-text p:last-child { margin-bottom: 0; }
.preview-text strong { color: var(--text-primary); }

/* Group race */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.group-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--glow);
}
.group-letter {
  position: absolute;
  top: -14px;
  right: 10px;
  font-size: 5.5rem;
  font-weight: 900;
  color: rgba(56, 189, 248, 0.07);
  line-height: 1;
  pointer-events: none;
}
.group-card h3 { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
.group-bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 700; }
.bar { height: 10px; background: rgba(2, 6, 12, 0.8); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #7dd3fc);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  transform-origin: left center;
}
.bar-fill.alt {
  background: linear-gradient(90deg, #6366f1, #a5b4fc);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.55);
}
/* Bars launch when card is revealed */
.reveal.visible .bar-fill { animation: growBar 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.reveal.visible .bar-row:nth-child(2) .bar-fill { animation-delay: 0.15s; }
@keyframes growBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.bar-row strong { text-align: right; }
.group-fav { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

/* Hosts */
.host-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.host-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.host-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), var(--glow);
  border-color: rgba(56, 189, 248, 0.45);
}
.host-card h3 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.host-tag { color: var(--accent); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin: 6px 0 18px; text-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
.host-stats li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.host-stats li:last-child { border-bottom: none; }
.host-stats span { color: var(--muted); }
.host-stats strong { color: var(--text-primary); font-weight: 800; }

/* Guide */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--glow);
}
.guide-num { font-size: 0.85rem; font-weight: 900; color: var(--accent); letter-spacing: 0.14em; text-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }
.guide-card h3 { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; margin: 10px 0 10px; }
.guide-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 0 20px rgba(56, 189, 248, 0.12); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 800;
  font-size: 1rem;
  list-style: none;
  position: relative;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 26px 22px; color: var(--text-secondary); }

/* Legal pages */
.legal-section { min-height: 60vh; }
.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--text-secondary); margin-bottom: 14px; }
.legal-body a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.legal-body a:hover { border-bottom-color: var(--accent); }
.legal-body ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-body ul li { color: var(--text-secondary); margin-bottom: 8px; }
.legal-body strong { color: var(--text-primary); }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cookie-table th, .cookie-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cookie-table th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cookie-table td { color: var(--text-secondary); }
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table td:first-child { color: var(--accent); font-weight: 700; }

/* Footer */
.site-footer {
  background: rgba(1, 4, 9, 0.92);
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1.2fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); margin-top: 14px; font-size: 0.92rem; max-width: 380px; }
.footer-nav, .footer-info { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h4, .footer-info h4 {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer-nav a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition), text-shadow var(--transition); }
.footer-nav a:hover { color: var(--accent); text-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }
.footer-note { color: var(--muted); font-size: 0.85rem; }
.footer-address {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(2, 6, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(56, 189, 248, 0.25);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cookie-banner-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.cookie-banner-text { flex: 1; }
.cookie-banner-text h4 {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}
.cookie-banner-text p { color: var(--text-secondary); font-size: 0.88rem; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie { padding: 11px 22px; font-size: 0.82rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cookie-banner { transition: none; }
  html { scroll-behavior: auto; }
  .space-backdrop::before,
  .space-backdrop::after,
  .nebula, .orbit, .orbit-3, .planet,
  .shooting-star, .hero-gridlines,
  .accent-shimmer, .btn-pulse,
  .float-1, .float-2, .float-3,
  .section-head h2::after,
  .reveal.visible .bar-fill { animation: none !important; }
}

/* Breakpoints */
@media (max-width: 1200px) {
  .title-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1 1 240px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .orbit-1, .orbit-2 { right: -320px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 6, 12, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .hero { padding: 84px 0 70px; }
  .orbit-1, .orbit-2 { display: none; }
  .planet-1 { width: 60px; height: 60px; right: 8%; top: 8%; }
  .match-grid, .group-grid, .host-grid { grid-template-columns: 1fr; }
  .title-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .preview-block { padding: 26px 20px; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-label { grid-column: 1 / -1; margin-bottom: 4px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .cookie-banner-actions { flex-direction: column; }
  .btn-cookie { width: 100%; text-align: center; }
  .cookie-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .section { padding: 32px 0; }
  .hero h1 { font-size: 1.9rem; }
  .title-strip { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 1.4fr 0.7fr 1fr 0.8fr 0.8fr; font-size: 0.78rem; padding: 9px 10px; }
  .bar-row { grid-template-columns: 90px 1fr 50px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .preview-head h3 { font-size: 1.2rem; }
  .fav-marker { margin-left: 0; }
  .cookie-table th, .cookie-table td { padding: 9px 10px; font-size: 0.8rem; }
  .nebula-1 { width: 320px; height: 320px; }
  .nebula-2 { width: 280px; height: 280px; }
}