/* Cesura Landing Page
   Clean, modern, single-file deploy. */
:root{
  --bg: #070a10;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --border: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --accent: #7c3aed;
  --accent2: #22c55e;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

:root[data-theme="light"]{
  --bg: #f7f8fb;
  --panel: rgba(0,0,0,.05);
  --panel2: rgba(0,0,0,.07);
  --text: rgba(10,15,22,.92);
  --muted: rgba(10,15,22,.68);
  --border: rgba(10,15,22,.12);
  --shadow: 0 20px 60px rgba(10,15,22,.12);
  --accent: #6d28d9;
  --accent2: #16a34a;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height:1.5;
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }
:root[data-theme="light"] a:hover{ text-decoration-color: rgba(10,15,22,.25); }

.container{ width:min(1100px, 92vw); margin:0 auto; }

.bg{ position:fixed; inset:0; z-index:-2; overflow:hidden; }
.grid{
  position:absolute; inset:-100px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity:.25;
  transform: translateZ(0);
}
:root[data-theme="light"] .grid{
  background-image:
    linear-gradient(to right, rgba(10,15,22,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,15,22,.08) 1px, transparent 1px);
  opacity:.22;
}

.orb{
  position:absolute;
  width: 640px; height: 640px;
  border-radius:999px;
  filter: blur(40px);
  opacity:.30;
  transform: translateZ(0);
}
.o1{ left:-160px; top:-200px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%); }
.o2{ right:-220px; bottom:-240px; background: radial-gradient(circle at 40% 40%, var(--accent2), transparent 60%); }

.header{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.30);
  border-bottom: 1px solid var(--border);
  z-index:10;
}
:root[data-theme="light"] .header{
  background: rgba(247,248,251,.70);
}

.header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  min-width: 220px;
}
.logo{
  display:grid; place-items:center;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.brandName{ font-weight: 800; letter-spacing: .2px; }
.brandTag{ display:block; font-size: 12px; color: var(--muted); margin-top: 1px; }

.nav{ display:flex; gap: 16px; font-weight: 600; color: var(--muted); }
.nav a{ padding: 8px 10px; border-radius: 12px; }
.nav a:hover{ background: var(--panel); text-decoration:none; color: var(--text); }

.actions{ display:flex; align-items:center; gap: 10px; }
.iconBtn{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor:pointer;
}
.iconBtn:hover{ background: var(--panel2); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.btn:hover{ background: var(--panel2); text-decoration:none; }
.btnPrimary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,197,94,.75));
  border-color: rgba(255,255,255,.20);
}
:root[data-theme="light"] .btnPrimary{
  border-color: rgba(10,15,22,.14);
}
.btnPrimary:hover{ filter: brightness(1.05); }
.btnSecondary{ background: rgba(255,255,255,.08); }
:root[data-theme="light"] .btnSecondary{ background: rgba(10,15,22,.06); }
.btnGhost{ background: transparent; }
.btnGhost:hover{ background: var(--panel); }

.hero{ padding: 52px 0 34px; }
.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items:start;
}
.kicker{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}
h1{
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height:1.08;
  letter-spacing: -0.6px;
}
.subline{ display:block; margin-top: 10px; font-size: clamp(14px, 1.6vw, 18px); color: var(--muted); font-weight: 600; line-height:1.3; }
.accent{ background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip:text; background-clip:text; color: transparent; }

.lead{ color: var(--muted); font-size: 16px; max-width: 62ch; }

.joinCard{
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .joinCard{ background: rgba(10,15,22,.04); }

.joinRow{
  display:grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items:center;
  padding: 10px 8px;
  border-radius: 14px;
}
.joinRow + .joinRow{ border-top: 1px solid var(--border); border-radius: 0; }
.joinLabel{ color: var(--muted); font-weight: 700; }
.joinValue{ font-weight: 800; letter-spacing: .2px; }

.tiny{ margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
.mono{ font-family: var(--mono); }
.small{ font-size: 13px; }
.muted{ color: var(--muted); }

.heroCtas{ margin-top: 14px; display:flex; gap: 10px; flex-wrap:wrap; }

.heroPanel{ position:relative; }
.panelCard{
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .panelCard{ background: rgba(10,15,22,.04); }

.panelHeader{ display:flex; justify-content:space-between; align-items:center; gap: 12px; }
.panelTitle{ font-weight: 900; font-size: 16px; }
.panelSub{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge{
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,58,237,.22);
  border: 1px solid rgba(124,58,237,.35);
}

.checklist{ list-style:none; padding: 14px 0 0; margin: 0; display:grid; gap: 10px; }
.checklist li{ display:flex; gap: 10px; align-items:flex-start; color: var(--muted); }
.dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  margin-top: 6px;
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.stat{
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-align:center;
}
.statNum{ font-weight: 900; font-size: 24px; }
.statLabel{ color: var(--muted); font-weight: 700; font-size: 12px; }

.panelFooter{ margin-top: 14px; display:flex; gap: 10px; flex-wrap:wrap; }
.panelHint{
  margin-top: 12px;
  display:flex; gap: 10px; align-items:center;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}
.spark{ font-size: 18px; }

.section{ padding: 56px 0; }
.sectionHead h2{
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.3px;
}
.sectionHead p{ margin: 10px 0 0; color: var(--muted); max-width: 75ch; }

.cards{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: 0 16px 38px rgba(0,0,0,.20);
}
:root[data-theme="light"] .card{ background: rgba(10,15,22,.04); box-shadow: 0 16px 38px rgba(10,15,22,.10); }

.card h3{ margin: 0 0 8px; }
.card p{ margin: 0 0 12px; color: var(--muted); }

.pillRow{ display:flex; gap: 8px; flex-wrap:wrap; }
.pill{
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}

.leagueGrid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.timeline{
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: 0 16px 38px rgba(0,0,0,.20);
}
:root[data-theme="light"] .timeline{ background: rgba(10,15,22,.04); box-shadow: 0 16px 38px rgba(10,15,22,.10); }

.step{ display:flex; gap: 12px; padding: 12px; border-radius: 18px; }
.step + .step{ border-top: 1px solid var(--border); border-radius: 0; }
.stepIcon{ width: 40px; height: 40px; border-radius: 14px; display:grid; place-items:center; background: var(--panel); border: 1px solid var(--border); }
.stepTitle{ font-weight: 900; }
.stepText{ color: var(--muted); margin-top: 3px; }

.bigCard{
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: 0 16px 38px rgba(0,0,0,.20);
}
:root[data-theme="light"] .bigCard{ background: rgba(10,15,22,.04); box-shadow: 0 16px 38px rgba(10,15,22,.10); }

.cmdList{ margin-top: 10px; display:grid; gap: 10px; }
.cmd{
  display:flex; justify-content:space-between; gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  align-items:center;
}
.callout{
  margin-top: 14px;
  display:flex; gap: 12px; align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(124,58,237,.14);
  border: 1px solid rgba(124,58,237,.25);
}
.calloutIcon{ width: 38px; height: 38px; border-radius: 14px; display:grid; place-items:center; background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.25); }
.calloutTitle{ font-weight: 900; }
.calloutText{ color: var(--muted); margin-top: 2px; }

.ctaRow{ margin-top: 14px; display:flex; gap: 10px; flex-wrap:wrap; }

.rules{ margin-top: 22px; display:grid; gap: 12px; }
.rule{
  display:grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}
:root[data-theme="light"] .rule{ background: rgba(10,15,22,.04); }
.ruleNum{
  width: 52px; height: 52px;
  border-radius: 18px;
  display:grid; place-items:center;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-weight: 900;
}
.ruleTitle{ font-weight: 900; }
.ruleText{ color: var(--muted); margin-top: 3px; }

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}

.faq{ margin-top: 18px; display:grid; gap: 10px; }
details{
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  padding: 12px 14px;
}
:root[data-theme="light"] details{ background: rgba(10,15,22,.04); }
summary{
  cursor:pointer;
  font-weight: 900;
  list-style:none;
}
summary::-webkit-details-marker{ display:none; }
.answer{ margin-top: 10px; color: var(--muted); }

.footerCta{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,58,237,.20), rgba(34,197,94,.16));
  border: 1px solid var(--border);
}
.footerCtaTitle{ font-weight: 900; font-size: 18px; }

.footer{
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.22);
}
:root[data-theme="light"] .footer{ background: rgba(247,248,251,.75); }
.footerGrid{ display:flex; justify-content:space-between; align-items:center; gap: 14px; }
.footerLinks{ display:flex; gap: 14px; color: var(--muted); font-weight: 700; }

.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.70);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
:root[data-theme="light"] .toast{
  background: rgba(10,15,22,.78);
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 940px){
  .heroGrid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .cards{ grid-template-columns: 1fr 1fr; }
  .leagueGrid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
  .joinRow{ grid-template-columns: 1fr; }
  .joinRow .btn{ justify-self: start; }
  .footerGrid{ flex-direction: column; align-items:flex-start; }
}

/* i18n: language button */
#langBtn .icon{ font-family: var(--mono); font-weight: 900; font-size: 12px; letter-spacing: .6px; }
