/* =========================================================
   Cubeology Competitions — Dark + Vibrant (Neon) UI
   Works on Cloudflare Pages + custom domain
========================================================= */

/* ===== RESET ===== */
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ max-width:100%; overflow-x:hidden; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:#e5e7eb;
  background:
    radial-gradient(1200px 520px at 15% 10%, rgba(217,70,239,.20), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(800px 380px at 30% 90%, rgba(34,197,94,.12), transparent 55%),
    #05060a;
}

/* ===== TOKENS ===== */
:root{
  --bg:#05060a;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.16);

  --ink:#e5e7eb;
  --muted:#9aa4b2;

  --accent:#22d3ee;     /* cyan */
  --accent2:#d946ef;    /* neon pink */
  --accent3:#22c55e;    /* green */

  --shadow: 0 20px 50px rgba(0,0,0,.55);
  --shadow2: 0 12px 30px rgba(0,0,0,.40);

  --radius:18px;
  --radius2:24px;
}

/* ===== UTIL ===== */
.container{ max-width:1200px; margin:0 auto; padding:0 18px; }
.muted{ color:var(--muted); }
.accent{ color:var(--accent); }

a{ color:inherit; }
button{ font-family:inherit; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:950;
  text-decoration:none;
  border:1px solid transparent;
  user-select:none;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.btn.primary{
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color:#071018;
  box-shadow: 0 18px 34px rgba(217,70,239,.22), 0 18px 34px rgba(34,211,238,.16);
}
.btn.ghost{
  background: rgba(255,255,255,.05);
  border-color: var(--line2);
}
.btn.small{
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
}
.btnIcon{ font-weight:950; }

/* ===== TOPBAR ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(5,6,10,.55);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:1000;
}
.brandMark{ font-size:20px; }
.brandText{ font-size:16px; letter-spacing:.2px; }
.pill{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.pillLive{
  color:#05120c;
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(34,211,238,.85));
  box-shadow: 0 16px 30px rgba(34,197,94,.18);
}
.pillSoft{
  border-color: rgba(34,211,238,.25);
  color: rgba(34,211,238,.95);
  background: rgba(34,211,238,.08);
}

.navlinks{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.navlink{
  text-decoration:none;
  font-weight:950;
  color: var(--ink);
  opacity:.92;
  position:relative;
}
.navlink:hover{ opacity:1; }
.navlink.active{
  opacity:1;
  color: var(--accent);
}
.navlink.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  border-radius:99px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 0 0 6px rgba(34,211,238,.08);
}
.navlink.ext{ opacity:.85; }

/* Burger */
.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:#e5e7eb;
  border-radius:99px;
}

/* Mobile menu */
.mobileMenu{
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(5,6,10,.65);
  backdrop-filter: blur(12px);
}
.mobileMenuInner{ padding:12px 0 16px; display:flex; flex-direction:column; gap:10px; }
.mobileLink{
  text-decoration:none;
  font-weight:1000;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background: rgba(255,255,255,.05);
}

/* ===== HERO ===== */
.hero{
  position:relative;
  padding:74px 0 34px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:22px;
  align-items:stretch;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:1000;
  box-shadow: var(--shadow2);
}
.dot{
  width:10px; height:10px; border-radius:99px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 0 0 7px rgba(217,70,239,.12), 0 0 0 14px rgba(34,211,238,.08);
}

.heroLeft h1{
  margin-top:16px;
  font-size:58px;
  line-height:1.03;
  letter-spacing:-.03em;
  font-weight:1100;
}
.heroLeft h1 .accent{
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  margin-top:14px;
  font-size:18px;
  line-height:1.55;
  max-width:650px;
  color:#cbd5e1;
  font-weight:750;
}

.ctaRow{
  margin-top:22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.miniRow{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.miniCard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius:18px;
  padding:12px 12px;
  box-shadow: var(--shadow2);
}
.miniLabel{
  font-size:12px;
  font-weight:1000;
  color: var(--muted);
}
.miniValue{
  margin-top:6px;
  font-size:14px;
  font-weight:1000;
  color: var(--ink);
}

.storeBar{
  margin-top:16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background: linear-gradient(135deg, rgba(217,70,239,.10), rgba(34,211,238,.08));
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow: var(--shadow);
}
.storeTitle{ font-weight:1100; }
.storeSub{ font-weight:850; font-size:13px; margin-top:3px; }
.btn.store{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: var(--ink);
}
.btn.store:hover{
  border-color: rgba(34,211,238,.45);
}

/* Right glass card */
.glassCard{
  height:100%;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding:16px;
  display:flex;
  flex-direction:column;
}
.glassTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.glassTitle{ font-weight:1100; font-size:16px; }
.glassSub{
  margin-top:4px;
  font-weight:850;
  color:var(--muted);
  font-size:13px;
}

.quickGrid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.tile{
  text-decoration:none;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  box-shadow: var(--shadow2);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.tileIcon{ font-size:22px; }
.tileTitle{ font-weight:1100; }
.tileSub{ margin-top:3px; font-size:12px; font-weight:900; color:var(--muted); }

.glassNote{
  margin-top:auto;
  padding-top:14px;
  font-weight:900;
  color:var(--muted);
  font-size:13px;
}

/* ===== STRIP ===== */
.strip{
  padding:18px 0 4px;
}
.stripHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.stripTitle{ font-weight:1100; font-size:16px; }
.stripSub{ font-weight:850; font-size:13px; margin-top:4px; color:var(--muted); }
.stripBadge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight:1000;
  font-size:12px;
}
.spark{
  width:10px;height:10px;border-radius:99px;
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  box-shadow: 0 0 0 8px rgba(34,197,94,.10), 0 0 0 14px rgba(34,211,238,.08);
}

.stripGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
}
.stat{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:14px;
  box-shadow: var(--shadow2);
}
.statLabel{ font-size:12px; font-weight:1100; color:var(--muted); }
.statValue{
  margin-top:10px;
  font-size:26px;
  font-weight:1100;
  letter-spacing:-.02em;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.statHint{ margin-top:6px; font-size:12px; font-weight:850; color:var(--muted); }

/* ===== SECTION ===== */
.section{ padding:34px 0; }
.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.sectionHead h2{
  font-size:28px;
  letter-spacing:-.02em;
  font-weight:1100;
}
.headActions{ display:flex; gap:10px; align-items:center; }

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 14px;
}
.tabBtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:1100;
  color: var(--ink);
}
.tabBtn.active{
  border-color: rgba(34,211,238,.40);
  background: rgba(34,211,238,.10);
  box-shadow: 0 0 0 6px rgba(34,211,238,.06);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.card{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:16px;
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
}
.card::before{
  content:"";
  position:absolute;
  inset:auto -60px -70px auto;
  width:220px; height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(217,70,239,.22), transparent 60%);
  filter: blur(2px);
}
.cardTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:1100;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.tag.hot{
  border-color: rgba(217,70,239,.40);
  background: rgba(217,70,239,.12);
  color: rgba(217,70,239,.95);
}
.tag.soft{
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.10);
  color: rgba(34,211,238,.95);
}
.card h3{
  font-weight:1100;
  font-size:18px;
  letter-spacing:-.01em;
}
.card p{
  margin-top:8px;
  color: var(--muted);
  font-weight:850;
  line-height:1.5;
}
.cardMeta{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.metaPill{
  font-size:12px;
  font-weight:1100;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--ink);
}
.cardActions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn.disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}

/* ===== SOFT BG / FEATURES ===== */
.softBg{
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(860px 380px at 90% 20%, rgba(217,70,239,.16), transparent 60%),
    rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.featureGrid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.feature{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:16px;
  box-shadow: var(--shadow2);
}
.featureIcon{ font-size:22px; }
.feature h3{ margin-top:10px; font-weight:1100; font-size:18px; }
.feature p{ margin-top:8px; font-weight:850; line-height:1.5; color:var(--muted); }

.ctaPanel{
  margin-top:14px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(217,70,239,.12), rgba(34,211,238,.10));
  box-shadow: var(--shadow);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ctaTitle{ font-weight:1100; font-size:18px; }
.ctaBtns{ display:flex; gap:10px; flex-wrap:wrap; }

/* ===== FOOTER ===== */
.footer{ padding:28px 0 0; }
.footerGrid{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footerBrand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:1100;
}
.footerLinks{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}
.footerLinks a{
  text-decoration:none;
  font-weight:1000;
  opacity:.9;
}
.footerLinks a:hover{ opacity:1; }
.footerBottom{
  padding:16px 0 22px;
  text-align:center;
  font-weight:900;
  color:var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .heroLeft h1{ font-size:46px; }
}
@media (max-width: 860px){
  .stripGrid{ grid-template-columns: 1fr 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .featureGrid{ grid-template-columns: 1fr; }
  .miniRow{ grid-template-columns: 1fr; }
}
@media (max-width: 820px){
  .navlinks{ display:none; }
  .burger{ display:inline-flex; }
}
@media (max-width: 460px){
  .heroLeft h1{ font-size:38px; }
  .statValue{ font-size:22px; }
}
