/* ========== VARIABLES ========== */
:root {
  --bg-dark: #06080d;
  --bg-soft: #10131c;
  --bg-card: #0d1118;
  --bg-glass: rgba(13, 17, 24, 0.82);

  --primary: #3d74ff;
  --purple: #8a3aff;
  --gold: #ffcc4d;

  --text-main: #f4f6ff;
  --text-muted: #8f96a8;

  --border-soft: rgba(255,255,255,0.06);
  --shadow-strong: 0 18px 40px rgba(0,0,0,0.6);
}

/* ========== BASE ========== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, #202657 0, #050711 55%);
  color: var(--text-main);
}

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

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(61,116,255,0.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(138,58,255,0.22), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.wrap {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ========== TOPBAR ========== */
.topbar {
  padding: 12px 0;
  background: rgba(5,7,15,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand img {
  height: 32px;
  display: block;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--primary),var(--purple));
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: #f5f7ff;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* BUTTONS */
.btn {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(90deg,#1c8ca8,#392de7);
  color: #fff;
  box-shadow: 0 10px 25px rgba(45,130,255,0.25);
}
.btn-primary1 {
  background: linear-gradient(90deg,#0d6efd,#9f46d3);
  color: #fff;
  box-shadow: 0 10px 25px rgba(45,130,255,0.35);
}
.btn-primary2 {
  background: linear-gradient(90deg,var(--primary),#7722ff);
  color: #fff;
  box-shadow: 0 10px 25px rgba(45,130,255,0.35);
}
.btn-outline {
  color: #d2d8ea;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(9,12,24,0.7);
}

/* ========== HERO ========== */
.main {
  flex: 1;
  padding-bottom: 40px;
}

.hero-section {
  margin-top: 14px;
  margin-bottom: 48px;
}

/* Banner oben */
.hero-banner {
  width: 1350px;
  height: 360px;
  margin: 30px auto 0;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Card darunter */
.hero-card {
  width: 1180px;
  margin: -70px auto 0;
  padding: 32px 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);

  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;

  position: relative;
}



/* Hero Left */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: 'Rajdhani', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b6bee0;
}

.hero-highlight {
  font-size: 40px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f5f7ff;
  text-shadow: 0 0 32px rgba(10,30,80,0.9);
}

.hero-subtitle {
  margin: 4px 0 4px;
  font-size: 14px;
  color: #c1c7e1;
  max-width: 420px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.hero-cta-secondary {
  font-size: 13px;
}

.hero-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9fa7c4;
}

/* Countdown */
.cs2-countdown {
  width: 100%;
  max-width: 420px;
  margin: 10px 0 0;
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.cs2-timer {
  display:flex;
  gap:10px;
}

.time-segment {
  min-width: 70px;
  padding: 8px 8px 7px;
  border-radius: 12px;
  text-align:center;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,0.7));
  border: 1px solid rgba(173,188,255,0.35);
  box-shadow: inset 0 -6px 18px rgba(0,0,0,0.35);
}
.time-segment .number {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
}
.time-segment .label {
  margin-top: 3px;
  font-size: 10px;
  color: #c3cbe3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Hero Right */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hero-pill {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dfe4ff;
  background: linear-gradient(90deg, rgba(45,130,255,0.2), rgba(159,70,211,0.16));
}

.hero-metric-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at top right, rgba(45,130,255,0.18), transparent 55%),
              rgba(9,13,26,0.95);
  border: 1px solid rgba(157,179,255,0.4);
  box-shadow: 0 0 22px rgba(34,70,178,0.6);
}

.metric-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c3ceff;
  margin-bottom: 4px;
}
.metric-value {
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}
.metric-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(20,27,54,0.95);
  margin: 8px 0 6px;
  overflow: hidden;
}
.metric-bar-fill {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg,#2d82ff,#3cff8f,#ffcf40);
  box-shadow: 0 0 18px rgba(60,255,143,0.8);
}
.metric-foot {
  font-size: 11px;
  color: #c3c9e2;
}

/* mini panels */
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.mini-panel {
  padding: 9px 10px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(17,21,36,0.95), rgba(9,11,22,0.95));
  border: 1px solid rgba(107,122,181,0.4);
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}
.mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #afb8db;
}
.mini-value {
  font-size: 12px;
  color: #f5f7ff;
}

/* ========== SECTIONS / FEATURES ========== */
.section {
  margin-top: 48px;
}

.section-features {
  margin-top: 56px;
}

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

.section-title {
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
  color: #f5f7ff;
}
.section-subtitle {
  margin: 10px auto 0;
  font-size: 14px;
  color: #b4bbd4;
  max-width: 520px;
}

/* Feature Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  height: 240px;
  background: linear-gradient(145deg,#0f141d,#0b0f15);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  overflow: hidden;
  transition: 0.25s ease;
}
.card::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  padding:2px;
  background:linear-gradient(130deg,var(--primary),var(--purple));
  opacity:0;
  transition:0.25s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 35px rgba(61,116,255,0.35);
}
.card:hover::before { opacity:0.35; }

.card-media {
  height: 120px;
  background-size: cover;
  background-position: center;
}
.card-inner {
  padding: 12px 14px 14px;
}
.card h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== LOWER SECTION / SPONSOR ========== */
.lower-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.mini-card {
  background: var(--bg-soft);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.sponsor-v2 {
  position: relative;
  background: radial-gradient(circle at top left, rgba(45,130,255,0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(159,70,211,0.14), transparent 60%),
              linear-gradient(145deg, #1b1f27 0%, #111418 100%);
  overflow: hidden;
}
.sponsor-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #2d82ff, #ffcf40);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}
.sponsor-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sponsor-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  text-shadow: 0 0 10px rgba(255,255,255,0.23);
}
.sponsor-pulse {
  width: 14px;
  height: 14px;
  background: #2d82ff;
  border-radius: 50%;
  box-shadow: 0 0 16px #2d82ff;
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.9; }
}
.sponsor-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #c3c9de;
}
.sponsor-btn { margin-top: 18px; }

.right-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.right-stack .mini-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

/* ========== FOOTER ========== */
.footer {
  margin-top: 70px;
  padding: 32px 0 36px;
  background: linear-gradient(180deg,#0b0d12,#07090d);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #7c8396;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.socials { opacity: 0.85; }

/* ========== POPUPS ========== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 380px;
  max-width: 90%;
  background: linear-gradient(145deg, rgba(20,24,32,0.95), rgba(38,46,62,0.95));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 25px;
  box-shadow: 0 0 25px rgba(0,128,255,0.25), inset 0 0 20px rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}
.popup-box.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}
.popup-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(130deg, #2d82ff, #9f46d3, #ffcc40, #2d82ff);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
  animation: holo 6s linear infinite;
}
@keyframes holo {
  0% {background-position:0% 50%}
  50% {background-position:100% 50%}
  100% {background-position:0% 50%}
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup-header h2 {
  margin: 0;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(45,130,255,0.6);
}
.popup-close {
  cursor: pointer;
  font-size: 26px;
  color: #fff;
  padding: 4px 10px;
  transition: 0.2s ease;
  z-index: 10000;
}
.popup-close:hover {
  color: #2d82ff;
  text-shadow: 0 0 10px rgba(45,130,255,0.8);
}
.popup-content {
  margin-top: 10px;
  color: #c8cfdd;
  font-size: 15px;
  line-height: 1.6;
}
.popup-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: white;
  outline: none;
  margin-top: 10px;
  margin-bottom: 15px;
  transition: 0.25s;
}
.popup-input:focus {
  border-color: #2d82ff;
  box-shadow: 0 0 10px rgba(45,130,255,0.5);
}
.popup-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2d82ff, #7a4bff);
  border: none;
  font-size: 15px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}
.popup-btn:hover { filter: brightness(1.15); }

/* ========== MOBILE NAV ========== */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #e4e8f2;
  cursor: pointer;
  z-index: 100;
}

.mobile-nav {
  position: fixed;
  top: 70px;
  right: 20px;
  background: var(--bg-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
  padding: 0 16px;
  z-index: 9999;
}
.mobile-nav.show {
  opacity: 1;
  transform: scaleY(1);
  padding: 12px 16px;
}
.mobile-nav a {
  display: block;
  color: #e4e8f2;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
  font-size: 14px;
}
.mobile-nav a:hover {
  background: rgba(45,130,255,0.15);
  color: var(--primary);
}
.mobile-nav .btn {
  width: 100%;
  padding: 11px 0;
  font-weight: 700;
  border-radius: 10px;
  margin-top: 8px;
  transition: 0.25s ease;
}
.mobile-nav .btn:hover { filter: brightness(1.15); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .hero-banner {
    width: 100%;
    border-radius: 0;
  }
  .hero-card {
    width: 100%;
    border-radius: 0;
  }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: minmax(0,1fr);
    padding: 24px 20px;
  }
  .hero-right { order: -1; }
  .hero-banner { height: 260px; }
}
@media (max-width: 720px) {
  .nav, .actions { display: none; }
  .hamburger { display: block; }

  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

  .hero-highlight { font-size: 30px; }
  .hero-kicker { font-size: 13px; }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .time-segment {
    min-width: 0;
    flex: 1;
  }
  .lower-section {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}
