/* ===================== TOKENS ===================== */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1526;
  --bg-alt: #0c1120;
  --surface: #141b30;
  --surface-2: #1a2238;
  --border: #243049;
  --text: #e9edf6;
  --text-dim: #a9b4cc;
  --text-mute: #7c89a6;
  --brand: #6c8cff;
  --brand-2: #22d3ee;
  --accent: #f472b6;
  --grad: linear-gradient(120deg, #6c8cff 0%, #22d3ee 55%, #a78bfa 100%);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
em { color: var(--text); font-style: italic; }
strong { color: #fff; font-weight: 600; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 26, 0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; margin-top: 2px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--grad); color: #08111f !important; font-weight: 700 !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; padding: 110px 0 96px; }
.hero-bg {
  position: absolute; inset: -40% -10% auto -10%; height: 720px;
  background:
    radial-gradient(60% 60% at 25% 20%, rgba(108, 140, 255, 0.30), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(50% 60% at 60% 80%, rgba(167, 139, 250, 0.18), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 80%);
  opacity: 0.25;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 20px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; }
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-family: var(--font-head); font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--text); margin-top: 18px; font-weight: 500; }
.hero-lede { font-size: 1.06rem; color: var(--text-dim); max-width: 660px; margin: 22px auto 0; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; color: var(--text-dim); }
.meta-pill strong { color: var(--brand-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.98rem; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #08111f; box-shadow: 0 10px 30px -10px rgba(108, 140, 255, 0.6); }
.btn-primary:hover { filter: brightness(1.07); color: #08111f; }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.04rem; }
.btn[aria-disabled="true"] { opacity: 0.65; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ===================== SECTIONS ===================== */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-intro { color: var(--text-dim); font-size: 1.05rem; margin-top: 16px; }
.prose p { color: var(--text-dim); font-size: 1.04rem; margin-bottom: 18px; max-width: 850px; }

/* ===================== LOOP CARDS ===================== */
.loop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; margin-top: 44px; }
.loop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease; position: relative; overflow: hidden; }
.loop-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: 0.7; }
.loop-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.loop-card.accent::before { background: linear-gradient(120deg, var(--accent), #a78bfa); }
.loop-num { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-2); }
.loop-card.accent .loop-num { color: var(--accent); }
.loop-card h3 { font-size: 1.18rem; margin: 10px 0 12px; }
.loop-card p { color: var(--text-dim); font-size: 0.96rem; }

/* ===================== CALLOUT ===================== */
.callout { margin-top: 48px; background: linear-gradient(135deg, rgba(108,140,255,0.10), rgba(34,211,238,0.06)); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 30px 34px; }
.callout h3 { font-size: 1.3rem; margin-bottom: 12px; }
.callout p { color: var(--text-dim); }

/* ===================== TOPIC GRID ===================== */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.topic-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; transition: border-color 0.2s ease, transform 0.2s ease; }
.topic-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.topic-card h3 { font-size: 1.12rem; margin-bottom: 16px; color: #fff; }
.topic-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.topic-card li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.95rem; }
.topic-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* ===================== TIMELINE ===================== */
.timeline { list-style: none; position: relative; max-width: 760px; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 30px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl-item.highlight .tl-marker { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 5px rgba(108,140,255,0.18); }
.tl-date { font-family: var(--font-mono); font-size: 0.86rem; color: var(--brand-2); }
.tl-body h3 { font-size: 1.16rem; margin: 4px 0 4px; }
.tl-body p { color: var(--text-dim); font-size: 0.95rem; }

/* ===================== SPEAKERS ===================== */
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.speaker-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: transform 0.2s ease, border-color 0.2s ease; }
.speaker-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #08111f; background: var(--grad); }
.speaker-card.placeholder .avatar { background: var(--surface-2); color: var(--text-mute); border: 1px dashed var(--border); }
.speaker-card h3 { font-size: 1.1rem; }
.affil { color: var(--text-dim); font-size: 0.9rem; margin: 6px 0 14px; }
.speaker-focus { color: var(--text-dim); font-size: 0.82rem; font-style: italic; margin: -8px 0 14px; line-height: 1.4; }
.status { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; }
.status.confirmed { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.status.pending { background: rgba(250, 204, 21, 0.12); color: #fbbf24; border: 1px solid rgba(250,204,21,0.3); }

.debate-banner { margin-top: 44px; background: linear-gradient(135deg, rgba(244,114,182,0.10), rgba(167,139,250,0.08)); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.debate-banner .kicker { color: var(--accent); }
.debate-banner h3 { font-size: 1.35rem; margin: 6px 0 12px; max-width: 760px; }
.debate-banner p { color: var(--text-dim); max-width: 760px; }
.debate-intro { margin-bottom: 28px; }
.panelist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.panelist-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: transform 0.2s ease, border-color 0.2s ease; }
.panelist-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.panelist-card .avatar { width: 58px; height: 58px; font-size: 1.2rem; margin-bottom: 12px; background: linear-gradient(120deg, var(--accent), #a78bfa); }
.panelist-card.placeholder .avatar { background: var(--surface-2); color: var(--text-mute); border: 1px dashed var(--border); }
.panelist-card h4 { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -0.01em; }
.panelist-card .affil { color: var(--text-dim); font-size: 0.86rem; margin: 5px 0 12px; }

/* ===================== SCHEDULE ===================== */
.schedule { display: flex; flex-direction: column; gap: 12px; }
.sched-row { display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; transition: border-color 0.2s ease; }
.sched-row:hover { border-color: var(--brand); }
.sched-tag { flex-shrink: 0; min-width: 110px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); padding-top: 3px; }
.sched-row h3 { font-size: 1.08rem; }
.sched-row p { color: var(--text-dim); font-size: 0.94rem; margin-top: 3px; }

/* ===================== SUBMIT ===================== */
.submit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.submit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.submit-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.submit-card p { color: var(--text-dim); font-size: 0.96rem; }
.submit-cta { text-align: center; margin-top: 40px; }
.submit-cta .muted { color: var(--text-mute); font-size: 0.9rem; margin-top: 14px; }

/* ===================== ORGANIZERS ===================== */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.org-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; transition: border-color 0.2s ease, transform 0.2s ease; }
.org-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.org-card h3 { font-size: 1.14rem; }
.org-card .affil { color: var(--brand-2); font-weight: 500; margin: 4px 0 6px; }
.org-role { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; padding: 3px 11px; margin: 0 0 12px; border-radius: 999px; background: rgba(99, 102, 241, 0.12); color: var(--brand-2); border: 1px solid rgba(99,102,241,0.3); }
.org-bio { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 14px; }
.org-mail { font-family: var(--font-mono); font-size: 0.82rem; word-break: break-all; }

/* ===================== COMMITTEE ===================== */
.pc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; display: flex; flex-direction: column; transition: border-color 0.2s ease; }
.pc-item:hover { border-color: var(--brand); }
.pc-name { font-weight: 600; font-size: 0.95rem; }
.pc-meta { font-size: 0.82rem; color: var(--text-mute); margin-top: 2px; }
.pc-role { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-2); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand-mark { font-size: 1.7rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-dim); font-size: 0.94rem; }
.footer-meta p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 28px; }
.footer-bottom p { color: var(--text-mute); font-size: 0.86rem; }

/* ===================== REVEAL ANIMATION ===================== */
.section, .hero-inner > * { will-change: opacity, transform; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10,14,26,0.98); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { display: inline-block; margin-top: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .sched-row { flex-direction: column; gap: 8px; }
  .sched-tag { padding-top: 0; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}
