:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #101828;
  --muted: #667085;
  --border: #ececec;
  --accent: #c7ff3e;
  --accent-2: #4f6bff;
  --teal: #14b8a6;
  --radius: 24px;
}

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

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.6rem); margin-top: 0; }
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; border-radius: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 999; }

.container { width: min(1150px, 92vw); margin: 0 auto; }
.section { position: relative; padding: 5rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.75); }
.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.subtitle, .section-lead { color: var(--muted); max-width: 70ch; }

.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { font-family: "Space Grotesk"; font-weight: 700; }
.nav-links { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero-copy p { font-size: 1.05rem; }
.portrait-card { position: relative; padding: 1rem; min-height: 420px; }
.portrait-fallback {
  display: none; place-content: center; text-align: center; min-height: 380px; border: 1px dashed var(--border);
  border-radius: 20px; color: var(--muted);
}

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt-24 { margin-top: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: transform 250ms ease, border-color 250ms ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.glass {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.timeline { margin: 0; padding-left: 1rem; }
.timeline li { margin-bottom: 0.5rem; }

.btn-group, .toolbar, .socials { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); padding: 0.56rem 0.95rem; cursor: pointer; transition: all 220ms ease;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0f172a; font-weight: 700; }
.btn.ghost { background: transparent; }
.text-link { border: 0; background: transparent; color: var(--accent-2); cursor: pointer; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips span {
  border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.88rem;
  background: rgba(199, 255, 62, 0.18);
}

.toolbar input, .toolbar select, .form-card input, .form-card textarea {
  width: 100%; padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
.toolbar input { max-width: 360px; }
.form-card label { display: block; font-size: 0.92rem; margin-bottom: 0.7rem; color: var(--muted); }
.form-status { min-height: 1.2rem; font-size: 0.9rem; color: var(--teal); }
.disclaimer { font-size: 0.82rem; color: var(--muted); }

.featured-talk { margin-bottom: 1rem; }
.media-card { border: 1px solid var(--border); border-radius: 16px; padding: 0.85rem; }
.quote-wrap blockquote { font-size: clamp(1.2rem, 2.3vw, 2rem); margin: 1rem 0 0; max-width: 50ch; }
.stack { margin-bottom: 1rem; }

.floating-badge {
  position: absolute; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 0.65rem; font-size: 0.76rem; animation: float 4s ease-in-out infinite;
}
.badge-1 { top: -8px; left: 18px; }
.badge-2 { top: 16px; right: -8px; animation-delay: 0.6s; }
.badge-3 { bottom: 26px; left: -8px; animation-delay: 1.1s; }
.badge-4 { bottom: -8px; right: 16px; animation-delay: 1.7s; }
@keyframes float { 0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);} }

.glow {
  position: absolute; inset: auto auto 0 0; pointer-events: none;
  width: min(600px, 90vw); height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(199, 255, 62, 0.35) 0%, rgba(199, 255, 62, 0.06) 45%, transparent 70%);
  filter: blur(28px);
}
.glow-hero { top: -60px; right: -100px; left: auto; }
.glow-vision { top: 0; left: 25%; }

.site-footer {
  background: #0f172a; color: #f8fafc; border-top: 1px solid rgba(199, 255, 62, 0.35); padding: 3rem 0 1rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1rem; }
.site-footer a { color: #d4f980; margin-right: 0.6rem; }
.copyright { text-align: center; color: #c7d2fe; margin-top: 1.4rem; font-size: 0.9rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

body.dark {
  --bg: #0f172a;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: #1f2937;
}
body.dark .section-alt { background: rgba(2, 6, 23, 0.3); }
body.dark .glass { background: rgba(17, 24, 39, 0.58); border-color: rgba(51, 65, 85, 0.7); }
body.dark .floating-badge { background: rgba(15, 23, 42, 0.9); }

@media (max-width: 980px) {
  .hero-grid, .grid.two, .grid.three, .grid.four, .grid.five, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-wrap { flex-wrap: wrap; }
  .hero-grid, .grid.two, .grid.three, .grid.four, .grid.five, .footer-grid { grid-template-columns: 1fr; }
}
