/* ===== Design tokens ===== */
:root {
  --bg: #0a0a0a;
  --bg-light: #ffffff;
  --bg-alt: #f7f7f5;
  --ink: #111111;
  --ink-soft: #565656;
  --line: #e6e6e3;
  --emerald: #059669;
  --emerald-deep: #047857;
  --emerald-bright: #34d399;
  --emerald-soft: rgba(5, 150, 105, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px -24px rgba(0, 0, 0, .30);
  --maxw: 1120px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--emerald-deep); font-weight: 600; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(18px, 5vw, 48px);
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.02rem; letter-spacing: -.01em; }
.nav__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald-bright); }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); }
.nav__links a { color: rgba(255, 255, 255, .74); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { padding: 8px 18px; border-radius: 999px; background: var(--emerald); color: #fff !important; font-weight: 600; transition: background .2s; }
.nav__cta:hover { background: var(--emerald-deep); }
.nav__links a:not(.nav__cta) { display: none; }
@media (min-width: 860px) { .nav__links a:not(.nav__cta) { display: inline; } }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--bg); color: #fff; padding: clamp(72px, 12vw, 128px) clamp(18px, 5vw, 48px) clamp(80px, 12vw, 132px); }
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 118%, rgba(5, 150, 105, .30), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.hero__eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald-bright); font-weight: 600; margin: 0 0 22px; }
.hero__title { font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 700; color: #fff; letter-spacing: -.03em; }
.hero__subtitle { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 3.2vw, 1.6rem); color: #d7d7d3; margin: 16px 0 0; }
.hero__lede { max-width: 620px; margin: 26px auto 0; color: rgba(255, 255, 255, .74); font-size: 1.06rem; }
.hero em { color: var(--emerald-bright); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 0; }
.chip { padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.hero__cal { margin: 16px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.hero__cal a { color: var(--emerald-bright); font-weight: 600; text-decoration: underline; }
.hero__cal a:hover { color: #fff; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; cursor: pointer; border: none; transition: transform .18s, background .2s, border-color .2s; font-family: var(--font-body); }
.btn--primary { background: var(--emerald); color: #fff; }
.btn--primary:hover { background: var(--emerald-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn--ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 10vw, 108px) clamp(18px, 5vw, 48px); }
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin: 0 0 14px; }
.section__head h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); letter-spacing: -.025em; }
.section__intro { color: var(--ink-soft); font-size: 1.06rem; margin-top: 16px; }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card--challenge:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--emerald); }
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--emerald); }
.card h3 { margin: 14px 0 8px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.takeaway { margin-top: 34px; padding: 22px 26px; border-left: 3px solid var(--emerald); background: var(--emerald-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.06rem; }

/* ===== Prose & question list ===== */
.prose { max-width: 760px; font-size: 1.06rem; }
.prose p { margin: 0 0 20px; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--emerald-deep); font-weight: 600; text-decoration: underline; }
.prose a:hover { color: var(--emerald); }
.callout { margin: 4px 0 0; padding: 16px 20px; background: var(--emerald-soft); border-left: 3px solid var(--emerald); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1rem; }
.callout strong { color: var(--emerald-deep); }
.qlist { list-style: none; margin: 4px 0 24px; padding: 0; display: grid; gap: 12px; }
.qlist li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.qlist li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 700; }

/* ===== Themes ===== */
.theme { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.theme:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--emerald); }
.theme__tag { display: inline-block; align-self: flex-start; font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-deep); background: var(--emerald-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.theme h3 { font-size: 1.26rem; }
.theme p { color: var(--ink-soft); font-size: .97rem; }
.theme__list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.theme__list a { font-weight: 600; color: var(--ink); font-size: .95rem; display: inline-flex; gap: 8px; }
.theme__list a::before { content: "→"; color: var(--emerald); }
.theme__list a:hover { color: var(--emerald-deep); }

/* ===== Roundtables ===== */
.rt-list { display: grid; gap: 16px; }
.rt { display: flex; gap: clamp(16px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); transition: transform .2s, box-shadow .2s, border-color .2s; }
.rt:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--emerald); }
.rt__index { flex: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.2rem); width: clamp(56px, 8vw, 80px); height: clamp(56px, 8vw, 80px); display: grid; place-items: center; border-radius: 14px; color: var(--emerald-deep); background: var(--emerald-soft); border: 1px solid rgba(5, 150, 105, .22); }
.rt__theme { font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 700; margin-bottom: 8px; }
.rt__body h3 { font-size: clamp(1.18rem, 2.6vw, 1.45rem); margin-bottom: 10px; }
.rt__q { color: var(--ink-soft); margin: 0 0 14px; font-size: 1.01rem; }
.rt__leader { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.rt__avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--line); }
.rt__leaderinfo { min-width: 0; }
.rt__name { margin: 0 0 4px; font-size: .97rem; color: var(--ink); }
.rt__bio { margin: 0 0 6px; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.rt__links { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.rt__links a { color: var(--emerald-deep); font-weight: 600; }
.rt__links a:hover { text-decoration: underline; }

/* ===== Timeline ===== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline__item { display: flex; gap: clamp(16px, 3vw, 30px); padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline__item:last-child { border-bottom: none; }
.timeline__time { flex: none; width: 84px; font-family: var(--font-display); font-weight: 700; color: var(--emerald); font-size: 1.02rem; }
.timeline__item h4 { font-size: 1.16rem; margin-bottom: 4px; }
.timeline__item p { margin: 0; color: var(--ink-soft); }

/* ===== Form ===== */
.form { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 20px; }
.form__row--2 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 20px; }
.field__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.field__label b { color: var(--emerald-deep); }
.field__hint { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-soft); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }
.field textarea { resize: vertical; }
input:invalid:not(:placeholder-shown), select.invalid, textarea:invalid:not(:placeholder-shown) { border-color: #dc2626; }

/* ===== Ranking grid ===== */
.rank { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 20px; margin: 0 0 24px; }
.rank legend { padding: 0 6px; }
.ranklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ranklist__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: grab; transition: border-color .15s, box-shadow .15s; }
.ranklist__item:hover { border-color: var(--emerald); }
.ranklist__item.is-dragging { opacity: .55; cursor: grabbing; box-shadow: var(--shadow); border-color: var(--emerald); }
.ranklist__num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--emerald-soft); color: var(--emerald-deep); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.ranklist__grip { flex: none; color: var(--ink-soft); font-size: 1.15rem; line-height: 1; }
.ranklist__label { flex: 1; min-width: 0; font-size: .95rem; font-weight: 500; }
.ranklist__label small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .82rem; }
.ranklist__moves { flex: none; display: grid; gap: 3px; }
.ranklist__move { width: 28px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: var(--ink-soft); font-size: .78rem; line-height: 1; transition: background .15s, border-color .15s, color .15s; }
.ranklist__move:hover { border-color: var(--emerald); color: var(--emerald-deep); background: var(--emerald-soft); }
.ranklist__move:focus-visible { outline: 3px solid var(--emerald-soft); outline-offset: 1px; }
.rank__error { color: #dc2626; font-size: .9rem; font-weight: 600; margin: 12px 0 0; }

.form__status { margin: 16px 0 0; font-weight: 600; text-align: center; min-height: 1.2em; }
.form__status.is-error { color: #dc2626; }
.form__status.is-success { color: var(--emerald-deep); background: var(--emerald-soft); border: 1px solid rgba(5, 150, 105, .25); border-radius: var(--radius-sm); padding: 14px 16px; }
.form__note { text-align: center; color: var(--ink-soft); font-size: .85rem; margin: 14px 0 0; }

/* ===== Footer ===== */
.footer { background: var(--bg); color: rgba(255, 255, 255, .74); padding: 56px clamp(18px, 5vw, 48px); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer__title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.28rem; margin: 0 0 6px; }
.footer__sub { margin: 0; font-size: .92rem; max-width: 420px; }
.footer__meta { text-align: left; font-size: .9rem; display: grid; gap: 6px; align-content: start; }
.footer__meta a { color: var(--emerald-bright); }
@media (min-width: 720px) { .footer__meta { text-align: right; } }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
