@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f5f5f6;
  --bg-elevated: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #646464;
  --line: #dedee2;
  --line-strong: #c9c9cf;
  --accent: #4971f5;
  --radius-xl: 26px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: min(1200px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

html,
body {
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.55;
  background: var(--bg);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-wrap {
  width: var(--container);
  margin: 0 auto;
}

.page-hero-bg {
  position: relative;
  padding-top: 72px;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/background.svg') no-repeat top center / cover;
  transform: scaleY(-1);
  pointer-events: none;
  z-index: -1;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(222, 222, 226, 0.5);
}

.nav-inner {
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Sidebar layout ──────────────────────────────────────── */
.page-body {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  padding-top: 100px;
  padding-bottom: 28px;
  background: transparent;
  z-index: 20;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-group {
  margin-bottom: 4px;
  padding: 0 12px;
}

.sidebar-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  padding: 14px 8px 6px;
  margin: 0;
}
.sidebar-group:has(.sidebar-group-label) .sidebar-link {
  padding-left: 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.sidebar-link.active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-weight: 500;
}

.sidebar-ext {
  color: #bbb;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: 4px;
}

.sidebar-content {
  flex: 1;
  min-width: 0;
}

body.has-sidebar {
  padding-left: 220px;
}

body.has-sidebar .page-hero-bg,
body.has-sidebar .cta-band {
  margin-left: -220px;
  width: 100vw;
}

body.has-sidebar .page-hero-bg {
  padding-left: 220px;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links .btn-primary:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0f0f0f;
  color: #fff;
}

.btn-primary:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}


.page-title,
.hero {
  padding: 42px 0 26px;
}

.hero.main-wrap,
.page-title.main-wrap {
  padding-left: max(20px, calc((100% - 1200px) / 2));
  padding-right: max(20px, calc((100% - 1200px) / 2));
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.hero-shell,
.page-title-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.hero h1,
.page-title h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero p,
.page-title p {
  margin-top: 14px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 13px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #999;
}





/* ── Program flagship card ───────────────────────────────── */
.program-flagship {
  overflow: hidden;
}

.program-flagship-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 24px;
}

.program-flagship-info h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.program-flagship-info p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 780px;
  font-size: 0.95rem;
}

.program-flagship-top .btn {
  flex-shrink: 0;
}

.program-flagship-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.program-flagship-photos img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.program-flagship-photos img:not(:last-child) {
  border-right: none;
}

.program-tracks-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.track-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8f9fc;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.program-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.track-card {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card + .track-card {
  border-left: 1px solid var(--line);
}

.track-card h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.track-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0;
}

.track-card a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 4px;
}

/* ── Why Join ─────────────────────────────────────────────── */
.why-join {
  padding-top: 24px;
  padding-bottom: 32px;
}

.why-join-kicker {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 24px;
}

.why-join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 22px;
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(13, 13, 13, 0.04);
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(122, 153, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(248, 249, 252, 0.9), rgba(255, 255, 255, 0.98));
  pointer-events: none;
}

.why-card > * {
  position: relative;
  z-index: 1;
}

.why-card-index {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b88a6;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

.why-card p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* ── Developer Access ────────────────────────────────────── */
.dashboard-strip {
  border: none;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-strip h2 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.dashboard-strip p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 720px;
}

.main-wrap > .section + .section {
  margin-top: 32px;
}

#meetup {
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 16px;
}

.meetup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 8px;
  max-width: 760px;
  color: var(--ink-soft);
}

/* ── Programs page layout (aligned to programs.svg) ───────────────────── */
.program-page main.main-wrap .section:first-of-type {
  margin-top: 48px;
}

.program-page main.main-wrap .section + .section {
  margin-top: 48px;
}

.program-page .section-head {
  margin-bottom: 28px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: none;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px;
}

.card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.card p,
.card li {
  margin-top: 8px;
  color: var(--ink-soft);
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card li + li {
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  background: #f8f9fc;
  color: #0d0d0d;
  margin-bottom: 10px;
}


/* ── Events filter bar ───────────────────────────────────── */
.events-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select {
  padding: 7px 32px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.events-feed {
  display: grid;
  gap: 16px;
}

.event-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.event-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px;
}

.event-rail {
  padding-top: 8px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.event-rail-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #5f5f68;
}

.event-rail-node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #d2d2d8;
  background: #fff;
  position: relative;
  z-index: 1;
}

.event-panel {
  overflow: hidden;
}

.event-banner {
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  overflow: hidden;
}

.event-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.event-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,16,26,0.08), rgba(10,16,26,0.55));
  z-index: 1;
}

.event-banner.is-fallback {
  background:
    linear-gradient(155deg, rgba(17, 25, 46, 0.88), rgba(16, 36, 70, 0.68)),
    radial-gradient(circle at 14% 22%, rgba(70, 118, 209, 0.65), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(25, 63, 121, 0.7), transparent 34%);
}

.event-chips {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.event-banner-copy {
  position: relative;
  z-index: 2;
}

.event-banner-copy p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 400;
}

.event-banner-copy h3 {
  margin-top: 4px;
  font-size: 1.875rem;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.event-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
}

.event-meta-date {
  margin-top: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.25rem;
}

.event-meta-host {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  color: var(--ink-soft);
}

.quote {
  border-left: 2px solid #cddedb;
  padding-left: 12px;
  color: #2f2f35;
}

.quote-author {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: #5c5c63;
}

/* ── Tweet grid ───────────────────────────────────────────── */
.tweets-grid {
  columns: 4;
  column-gap: 16px;
}

.tweet-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
  break-inside: avoid;
  margin-bottom: 16px;
}

.tweet-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tweet-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tweet-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.tweet-card-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tweet-card-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tweet-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tweet-card-handle {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.tweet-card-x {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ink);
  opacity: 0.55;
}

.tweet-card-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
}

.tweet-card-date {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 4px;
}


.highlight {
  border: none;
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 24px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.benefits-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-size: 1.8rem;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.kit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.kit-table th,
.kit-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px;
}

.kit-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c5c63;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-left: 48px;
}

.timeline-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.step-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-connector {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
  margin-left: 23px;
  margin-top: 16px;
  margin-bottom: 40px;
}

.timeline-step h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #0D0D0D;
}

.timeline-step p {
  font-size: 16px;
  line-height: 28px;
  color: #646464;
}

.kit-table thead tr {
  background: #f8f9fc;
}

.form-shell {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 5px;
}

.field.full {
  grid-column: span 2;
}

label {
  font-size: 0.88rem;
  color: #57575f;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  padding: 10px 11px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0f0f0f;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #f8f8f9;
  border-radius: 12px;
  padding: 12px;
  color: #57575f;
  font-size: 0.94rem;
}

.faq-list {
  display: grid;
  gap: 20px;
}

.faq-item {
  border: none;
  border-radius: var(--radius-md);
  background: #fff;
}

.faq-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 24px 16px 10px;
  font-size: 18px;
  font-weight: 600;
}

.faq-title {
  padding: 24px 16px 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.faq-content {
  color: var(--ink-soft);
  padding: 0 16px 24px;
  font-size: 16px;
}

.faq-item.open .faq-content {
  display: block;
}

.cta-band {
  position: relative;
  background: url('assets/background.svg') no-repeat center center / cover;
  padding: 120px 20px 130px;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

.cta-band p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  background: linear-gradient(135deg, #5a8af5, #8b5cf6);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  color: #9f9fa8;
  font-size: 0.8rem;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  margin: 0;
}

.footer-links span + span::before {
  content: none;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .program-page main.main-wrap .section:first-of-type {
    margin-top: 92px;
  }

  .program-page main.main-wrap .section + .section {
    margin-top: 84px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .why-join-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-flagship-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-shell {
    grid-template-columns: 1fr;
  }

  .event-meta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1120px, calc(100% - 28px));
  }

  .sidebar {
    top: 72px;
    height: calc(100vh - 72px);
    padding-top: 16px;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 28;
    background: #fff;
    border-right: 1px solid var(--line);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.1);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 25;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .sidebar-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }

  .sidebar-mobile-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.has-sidebar {
    padding-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .page-title {
    padding-top: 64px;
  }

  .hero-shell,
  .page-title-shell {
    padding: 24px;
  }

  .why-join-grid {
    grid-template-columns: 1fr;
  }

  .why-join {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .why-card {
    padding: 24px 22px 26px;
    border-radius: 20px;
  }

  .program-tracks {
    grid-template-columns: 1fr;
  }

  .track-card + .track-card {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .program-page main.main-wrap .section:first-of-type {
    margin-top: 64px;
  }

  .program-page main.main-wrap .section + .section {
    margin-top: 64px;
  }

  .program-page .section-head {
    margin-bottom: 22px;
  }

  .field.full {
    grid-column: span 1;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .dashboard-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-banner {
    min-height: 200px;
  }

  .event-actions {
    width: 100%;
  }

  .event-actions .btn {
    flex: 1;
  }

  /* ── Reset sidebar negative margins (critical) ─────────── */
  body.has-sidebar .page-hero-bg,
  body.has-sidebar .cta-band {
    margin-left: 0;
    width: 100%;
  }

  body.has-sidebar .page-hero-bg {
    padding-left: 0;
  }

  /* ── Nav ──────────────────────────────────────────────── */
  .nav-inner {
    padding: 0 16px;
  }

  /* ── Hero / page-title ─────────────────────────────────── */
  .hero.main-wrap,
  .page-title.main-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .page-title h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  /* ── CTA band ─────────────────────────────────────────── */
  .cta-band {
    padding: 72px 20px 80px;
  }

  .cta-band h2 {
    white-space: normal;
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
  }

  /* ── Program flagship card ─────────────────────────────── */
  .program-flagship-top {
    padding: 20px 20px 16px;
    gap: 16px;
  }

  /* ── Section spacing ───────────────────────────────────── */
  .main-wrap > .section + .section {
    margin-top: 24px;
  }

  /* ── Event cards ───────────────────────────────────────── */
  .event-banner-copy h3 {
    font-size: 1.4rem;
  }

  .event-meta-wrap {
    padding: 14px 16px;
  }

  .event-meta-date {
    font-size: 1rem;
  }

  /* ── Tweet grid ─────────────────────────────────────────── */
  .tweets-grid {
    columns: 1;
  }

  /* ── Why-join kicker ────────────────────────────────────── */
  .why-join-kicker {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  /* ── Dashboard strip ────────────────────────────────────── */
  .dashboard-strip {
    padding: 20px;
  }

  /* ── Filter bar ─────────────────────────────────────────── */
  .meetup-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-filter-bar {
    width: 100%;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
  }
}

/* ── Events grouping ─────────────────────────────────────── */
.events-group {
  margin-bottom: 28px;
}

.events-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #7a7a84;
}

.events-group-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.events-group-dot--ongoing  { background: #1a7f5a; }
.events-group-dot--upcoming { background: var(--accent); }
.events-group-dot--past     { background: #b8b8c2; }

.events-group-cards {
  display: grid;
  gap: 16px;
}

/* Past archive (hidden by default) */
.events-archive {
  display: none;
  margin-top: 16px;
}

.events-archive.open {
  display: block;
}

.events-archive-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #b8b8c2;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 4px;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.18s ease;
}

.show-more-btn:hover {
  color: var(--ink);
}

/* ── Share Modal ─────────────────────────────────────────── */
.share-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.share-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.share-modal {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(222, 222, 226, 0.7);
  border-radius: 20px;
  width: min(380px, 100%);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.share-modal-backdrop.open .share-modal {
  transform: translateY(0) scale(1);
}

.share-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.share-modal-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #b0b0b8;
  margin: 0;
}

.share-modal-title {
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 4px 0 0;
  line-height: 1.3;
}

.share-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.share-modal-close:hover {
  background: #f0f0f2;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
  width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.share-option:hover {
  background: #fff;
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.share-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.share-option-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.share-option-arrow {
  color: #c0c0ca;
  flex-shrink: 0;
}

/* ── Extra-small phones (≤ 390px) ────────────────────────── */
@media (max-width: 390px) {
  .hero h1,
  .page-title h1 {
    font-size: 1.75rem;
  }

  .section-head h2 {
    font-size: 1.4rem;
  }

  .why-card {
    padding: 20px 18px 22px;
  }

  .event-banner {
    min-height: 160px;
    padding: 14px 16px;
  }

  .event-banner-copy h3 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }

  .cta-band {
    padding: 56px 16px 64px;
  }
}
