:root {
  --bg: #0a1130;
  --bg-alt: #0d1442;
  --card: #122054;
  --card-hi: #182660;
  --line: #26357a;
  --text: #eef2fb;
  --muted: #a4b0d6;
  --accent: #8fb4e8;
  --accent-soft: rgba(143, 180, 232, 0.12);
  --gold: #e2a55e;
  --gold-soft: rgba(226, 165, 94, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background:
    radial-gradient(1400px 700px at 50% -8%, #1a2e82 0%, rgba(26, 46, 130, 0) 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 48, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: nowrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-text { font-weight: 700; font-size: 18px; color: var(--text); }
.brand-text em { font-style: normal; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  flex: 1 0 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin-right: 4px;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 38px;
  align-self: center;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}
.nav-burger span {
  display: block;
  height: 3px;
  width: 20px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-inner .brand { order: 1; }
.nav-inner .nav-links { order: 2; }
.nav-inner .nav-cta { order: 3; }
.nav-inner .nav-burger { order: 4; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  flex: 0 0 auto;
  background: var(--gold);
  color: #0a1130 !important;
  font-weight: 700 !important;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 68px;
  background:
    radial-gradient(640px 340px at 74% 0%, rgba(226, 165, 94, 0.10), transparent 70%),
    radial-gradient(900px 500px at 30% 20%, rgba(26, 46, 130, 0.55), transparent 75%);
}
.hero-inner { max-width: 760px; }
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  margin-bottom: 22px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  margin: 0 0 20px;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.hero-meta strong { color: var(--text); }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #0a1130; }
.btn-primary:hover { background: #f0b56f; }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt {
  background: linear-gradient(180deg, #0d1442 0%, #0b1138 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title { font-size: 32px; margin: 0 0 28px; }
.section-sub { color: var(--muted); margin: -18px 0 28px; }
.subhead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 40px 0 18px;
}
.section .subhead:first-of-type { margin-top: 8px; }

.prose p { margin: 0 0 16px; font-size: 16.5px; }
.prose em { color: var(--text); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-unique { background: var(--accent-soft); border-color: rgba(143, 180, 232, 0.35); }
.card-unique p { color: var(--text); }

/* ---------- schedule ---------- */
.schedule-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.chip span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.chip strong { font-size: 15px; }
.fineprint { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(143, 180, 232, 0.4);
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 12px;
}
.step h4 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- leadership ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------- resources ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.resource {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.resource:hover {
  text-decoration: none;
  border-color: rgba(226, 165, 94, 0.55);
  background: var(--card-hi);
}
.resource h4 { margin: 0 0 8px; font-size: 16px; }
.resource h4 span { color: var(--gold); }
.resource p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2c089;
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #070d24;
  padding: 40px 0 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.footer > .container > div:first-child strong { display: inline; }
.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  vertical-align: -8px;
  margin-right: 8px;
}
.disclaimer { color: #6d7494; font-size: 13px; align-self: flex-end; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .nav-links { gap: 12px; }
}

/* Mobile: hamburger menu with dropdown panel */
@media (max-width: 820px) {
  .nav-inner { flex-wrap: nowrap; }
  .brand { order: 1; }
  .nav-cta { order: 2; }
  .nav-burger {
    display: flex;
    order: 3;
    margin-left: 10px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: none;
    overflow: visible;
    margin-right: 0;
    background: rgba(9, 15, 40, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    padding: 8px 0 14px;
  }
  .nav-links a {
    padding: 12px 24px;
    font-size: 15px;
  }
  .nav-links a[href="https://epsilon.stuysu.org/stuycrypto"] { display: block; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 52px 0 44px; }
  .hero-logo { width: 76px; height: 76px; margin-bottom: 16px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 26px; margin-bottom: 20px; }
}

@media (max-width: 560px) {
  .nav-links a { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}
