/* ============================================================
   CFS — Design System v2 (Dark, Minimal, Premium)
   Fonts: Space Grotesk (headings) + Inter (body)
   Theme: Deep dark + Electric violet accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {

  /* Base / surface */
  --bg:        #ffffff;
  --bg-card:   #ffffff;
  --bg-elev:   #f8f9fa; /* subtle off-white */
  --border:    rgba(34,34,34,0.06);
  --border-hi: rgba(34,34,34,0.10);

  /* Accent (Samsung-inspired blue) */
  --accent:    #006BEA;
  --accent-lt: #1E90FF;
  --accent-glow: rgba(0,107,234,0.12);

  --text-1:   #0b1220; /* primary text (near black) */
  --text-2:   #4b5563; /* secondary text */
  --text-3:   #6b7280; /* muted */

  --green:    #22c55e;
  --red:      #ef4444;

  /* 8px spacing system radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 6px 18px rgba(34,34,34,0.06);
  --shadow-md: 0 12px 36px rgba(34,34,34,0.08);
  --shadow-lg: 0 24px 64px rgba(34,34,34,0.10);
  --shadow-accent: 0 10px 36px rgba(0,107,234,0.12);

  --container: min(1160px, calc(100% - 40px));
  --nav-height: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; outline: none; }
ul { list-style: none; }

/* ---------- Background grid texture ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { width: var(--container); margin: 0 auto; }
.section-pad { padding: 100px 0; }
.section-alt { background: rgba(255,255,255,0.022); }

/* ---------- Typography ---------- */
.display-1, h1.display {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-1);
}
h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-lt);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.lead { font-size: 1.1rem; color: var(--text-2); line-height: 1.75; margin-top: 16px; }
.muted { color: var(--text-2); }

/* ---------- Card Base ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-pad { padding: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-xl);
  font-size: 0.9rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,107,234,0.22); }
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-hi);
}
.btn-ghost:hover { background: var(--bg-elev); transform: translateY(-2px); }

/* ==============================================
   NAVIGATION
   ============================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.28s ease;
}
.site-header.hide { transform: translateY(-100%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text-1); flex-shrink: 0;
}
.brand-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.brand-sub { font-size: 0.72rem; color: var(--text-3); font-weight: 400; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text-1); background: var(--bg-elev); }
.nav-link.is-active { color: var(--text-1); }

.nav-cta {
  margin-left: 12px;
  background: var(--accent); color: #fff;
  padding: 9px 20px; border-radius: var(--radius-xl);
  font-size: 0.88rem; font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }

/* Mobile toggle */
.nav-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-1); border-radius: 2px; transition: 0.2s; }

/* ==============================================
   HERO — HOME
   ============================================== */
.hero-section {
  padding: 120px 0 80px;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(0,107,234,0.10) 0%, transparent 65%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 420px;
  align-items: center; gap: 60px; position: relative; z-index: 1;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.hero-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.feature-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-1);
  display: flex; align-items: center; gap: 10px;
}
.pill-icon { font-size: 1.1rem; }

/* ==============================================
   STATS BAR
   ============================================== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 40px 0;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; divide-color: var(--border);
}
.stat-item {
  padding: 0 40px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block; line-height: 1;
}
.stat-label { color: var(--text-2); font-size: 0.88rem; margin-top: 6px; }

/* ==============================================
   SECTION HEADER
   ============================================== */
.section-heading { margin-bottom: 52px; }
.section-heading.center { text-align: center; }
.section-heading p { margin-top: 14px; max-width: 54ch; color: var(--text-2); }
.section-heading.center p { margin-left: auto; margin-right: auto; }

/* ==============================================
   ABOUT SPLIT
   ============================================== */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.about-panels { display: grid; gap: 16px; }
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.panel-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-lt); margin-bottom: 10px;
}
.panel p { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }

/* ==============================================
   FEATURE GRID (What We Do / Values)
   ============================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .value-card {
  padding: 28px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(0,107,234,0.06);
  border: 1px solid rgba(0,107,234,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}
.feature-card h3, .value-card h3 { margin-bottom: 8px; }
.feature-card p, .value-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; }

/* ==============================================
   TEAM — HOME PREVIEW
   ============================================== */
.team-grid-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.team-grid-home .team-card {
  padding: 28px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.team-grid-home .team-avatar {
  width: 100%; max-width: 220px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid var(--border-hi);
  background: var(--bg-elev);
}
.team-grid-home .team-role-badge {
  display: inline-flex; padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,107,234,0.08);
  border: 1px solid rgba(0,107,234,0.14);
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent-lt); width: fit-content;
}
.team-grid-home .team-card h3 { font-size: 1.05rem; margin-top: 2px; }
.team-grid-home .team-card p {
  color: var(--text-2); font-size: 0.9rem; line-height: 1.65;
  margin-top: 2px;
}

/* ==============================================
   EVENT PREVIEW / CARDS
   ============================================== */
.event-spotlight {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.event-spotlight-img {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
}
.event-spotlight-img img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.event-spotlight-body {
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.event-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-2);
}
.meta-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Events page */
.event-shell { padding-bottom: 40px; }
.event-hero {
  padding: 92px 0 48px;
  border-bottom: 1px solid var(--border);
}
.event-showcase-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px;
}
.event-highlight {
  display: flex; flex-direction: column; gap: 16px;
}
.event-highlight h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.event-highlight p {
  color: var(--text-2); font-size: 0.95rem; line-height: 1.7;
}
.event-details-card {
  background: linear-gradient(135deg, rgba(0,107,234,0.06), rgba(255,255,255,0.03));
}
.event-check-list {
  display: flex; flex-direction: column; gap: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}
.event-check-list li {
  position: relative; padding-left: 18px;
}
.event-check-list li::before {
  content: '•'; color: var(--accent); position: absolute; left: 0; top: 0;
}
.event-card-full {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
}
.event-card-full img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,107,234,0.06));
}
.event-card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.event-card-body h2 { font-size: 1.8rem; }
.event-card-body p { color: var(--text-2); margin-bottom: 0; }

.event-list { display: grid; gap: 20px; }
.event-card { border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--border); }
.event-card-body { padding: 32px; }
.event-card-body h2 { margin-top: 8px; margin-bottom: 14px; }
.event-detail-panel { padding-top: 24px; border-top: 1px solid var(--border); margin-top: 24px; }
.event-detail-block { margin-bottom: 24px; }
.event-detail-block:last-child { margin-bottom: 0; }
.event-detail-block h3 { margin-bottom: 10px; font-size: 1.05rem; }
.event-detail-content p { color: var(--text-2); line-height: 1.75; }
.event-detail-actions { margin-top: 10px; }
.event-register-card { margin-top: 32px; }
.hidden { display: none !important; }

/* ==============================================
   JOIN FORM
   ============================================== */
.join-form-wrapper {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.join-form-left {
  padding: 48px 40px;
  background: var(--bg-elev);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.join-form-right { padding: 40px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-1);
  font-size: 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,107,234,0.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.checkbox-row input[type='checkbox'] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.checkbox-row label { font-size: 0.85rem; color: var(--text-2); }
.form-feedback { min-height: 1.2rem; font-size: 0.875rem; font-weight: 600; color: var(--accent-lt); margin-top: 6px; }
.form-status { min-height: 1.2rem; font-weight: 600; color: var(--accent-lt); }
.form-progress { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; }
.form-step-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s ease;
}
.form-step-dot.is-active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(0,107,234,0.08); }
.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.form-step-actions .btn { flex: 1; }
.registration-shell { display: flex; flex-direction: column; gap: 18px; }
.registration-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(0,107,234,0.06), rgba(255,255,255,0.04)); border: 1px solid var(--border); }
.registration-hero h3 { margin: 4px 0 4px; font-size: 1.12rem; }
.registration-hero p { color: var(--text-2); font-size: 0.86rem; margin: 0; }
.payment-card { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 18px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border); }
.payment-qr { display: grid; place-items: center; min-height: 220px; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,107,234,0.06)); padding: 16px; }
.payment-qr img { max-width: 100%; border-radius: 12px; }
.payment-details { display: flex; flex-direction: column; gap: 12px; }
.payment-row { display: flex; flex-direction: column; gap: 6px; }
.payment-row span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.payment-row strong, .payment-row input { color: var(--text-1); }
.payment-row input { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.declaration-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: rgba(0,107,234,0.02); margin-top: 8px; }
.team-members-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.team-member-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elev); }
.member-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.inline-btn { padding: 8px 12px; width: auto; }
.registration-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 10px; }
.registration-success .success-icon { font-size: 2rem; }
.registration-success .success-id { padding: 10px 12px; border-radius: 999px; background: rgba(0,107,234,0.08); border: 1px solid rgba(0,107,234,0.16); color: var(--accent-lt); }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==============================================
   CONTACT
   ============================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px;
}
.contact-card h3 { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.contact-card p { color: var(--text-1); font-size: 0.95rem; }
.contact-card:hover { color: var(--accent-lt); }

/* ==============================================
   PAGE HERO (inner pages)
   ============================================== */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 680px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }

/* ==============================================
   EVENT DETAILS
   ============================================== */
.details-banner {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  aspect-ratio: 16/7;
}
.details-banner img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,107,234,0.06));
}
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.details-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.details-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-lt); margin-bottom: 14px;
}
.details-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 14px; }
.details-card p:last-child { margin-bottom: 0; }
.timeline-list { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.timeline-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text-2); font-size: 0.9rem;
}
.timeline-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.faq-item { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item strong { display: block; font-size: 0.9rem; color: var(--text-1); margin-bottom: 4px; }
.faq-item p { color: var(--text-2); font-size: 0.88rem; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid div {
  border-radius: var(--radius-md); min-height: 120px;
  background: var(--bg-elev); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-3); font-size: 0.82rem; font-weight: 600;
}

/* ==============================================
   TEAM PAGE — SHOWCASE
   ============================================== */
.showcase-section { padding: 80px 0; }
.showcase-grid {
  display: grid; grid-template-columns: 4fr 6fr;
  gap: 48px; align-items: center; min-height: 480px;
  margin: 40px 0 32px;
}
.showcase-info-content { transition: opacity 0.22s, transform 0.22s; }
.is-animating .showcase-info-content { opacity: 0; transform: translateY(14px); }
.is-animating .visual-img { opacity: 0; transform: scale(0.96); }

.showcase-role {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-lt); display: block; margin-bottom: 12px;
}
.showcase-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 16px;
}
.showcase-desc { color: var(--text-2); font-size: 0.95rem; line-height: 1.75; max-width: 44ch; }
.showcase-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.glass-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border-hi);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.glass-btn:hover { border-color: var(--accent); color: var(--accent-lt); background: rgba(0,107,234,0.06); }

.showcase-visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.portrait-glow {
  position: absolute; width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(0,107,234,0.12), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.visual-img {
  width: min(100%, 480px); height: auto; object-fit: contain;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  z-index: 1; transition: opacity 0.22s, transform 0.22s;
}

.showcase-nav-wrapper { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.showcase-selector {
  display: flex; gap: 10px; overflow-x: auto; flex: 1; padding: 4px 0;
  scrollbar-width: none;
}
.showcase-selector::-webkit-scrollbar { display: none; }
.selector-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s;
}
.selector-item:hover { border-color: var(--border-hi); }
.selector-item.is-active { border-color: var(--accent); background: rgba(0,107,234,0.08); }
.selector-thumb { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.selector-name { font-size: 0.82rem; font-weight: 600; color: var(--text-1); }
.selector-role { font-size: 0.72rem; color: var(--text-3); }
.nav-arrow { padding: 10px 18px; }

/* Community team grid */
.leadership-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin-top: 8px;
}
.team-grid-full { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* -----------------
   Team card accents
   Add subtle colored left-border accents and soft shadow variants
   without changing markup. Uses nth-child to provide variety.
   ----------------- */
.team-card {
  border-left: 6px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.team-card:hover {
  transform: translateY(-6px);
}

/* Varied accent colors for community team grid */
.team-grid-full .team-card:nth-child(3n+1) {
  border-left-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,107,234,0.04);
}
.team-grid-full .team-card:nth-child(3n+2) {
  border-left-color: rgba(0,163,255,0.95);
  box-shadow: 0 10px 30px rgba(0,163,255,0.03);
}
.team-grid-full .team-card:nth-child(3n) {
  border-left-color: rgba(0,209,178,0.95);
  box-shadow: 0 10px 30px rgba(0,209,178,0.03);
}

/* Home preview team cards — match two-card layout */
.team-grid-home .team-card {
  border-left: 6px solid transparent;
}
.team-grid-home .team-card:nth-child(1) { border-left-color: var(--accent); box-shadow: 0 10px 28px rgba(0,107,234,0.04); }
.team-grid-home .team-card:nth-child(2) { border-left-color: rgba(0,163,255,0.95); box-shadow: 0 10px 28px rgba(0,163,255,0.03); }

/* Ensure avatars keep same shape and don't overflow the accent */
.team-card .team-avatar { object-fit: cover; }
.team-card--leadership, .team-card--member {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; padding: 28px;
}
.team-avatar--square {
  width: min(100%, 220px);
  height: min(100%, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border-hi);
}
.team-avatar--circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-hi);
}
.team-card--member .team-role-badge,
.team-card--leadership .team-role-badge {
  margin-top: 2px;
}
.team-card--member h3,
.team-card--leadership h3 {
  font-size: 1.04rem;
}
.team-card--member p,
.team-card--leadership p {
  color: var(--text-2); font-size: 0.9rem; line-height: 1.6;
}

/* ==============================================
   MODAL
   ============================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: min(740px, 100%);
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-size: 1.2rem;
  display: grid; place-items: center; transition: color 0.15s, border-color 0.15s;
}
.modal-close:hover { color: var(--text-1); border-color: var(--border-hi); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }

/* ==============================================
   TOAST
   ============================================== */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  background: var(--bg-elev); border: 1px solid var(--border-hi);
  color: var(--text-1); padding: 13px 20px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: all 0.22s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #1f1015; border-color: rgba(239,68,68,0.3); color: #fca5a5; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-card);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-2); font-size: 0.88rem; line-height: 1.7; margin-top: 14px; max-width: 36ch; }
.footer-col-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--text-2); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-1); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom small { color: var(--text-3); font-size: 0.82rem; }
.social-row { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-2); font-size: 0.8rem; font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent-lt); }

/* Divider accent line */
.accent-line {
  width: 48px; height: 3px; background: var(--accent);
  border-radius: 2px; margin-bottom: 20px;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 480px; }
  .about-split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .event-spotlight { grid-template-columns: 1fr; }
  .event-card-full { grid-template-columns: 1fr; }
  .event-card-full img { max-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .showcase-grid { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .showcase-desc { margin: 0 auto; }
  .showcase-actions { justify-content: center; }
  .showcase-nav-wrapper { flex-direction: column; }
  .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-form-wrapper { grid-template-columns: 1fr; }
  .join-form-left { border-right: none; border-bottom: 1px solid var(--border); }
  .details-grid { grid-template-columns: 1fr; }
  .team-grid-home { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section-pad { padding: 72px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch;
    background: var(--bg-card); border: 1px solid var(--border-hi);
    border-radius: var(--radius-md); padding: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity 0.22s, transform 0.22s;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: 11px 14px; border-radius: var(--radius-sm); }
  .nav-cta { text-align: center; margin-left: 0; border-radius: var(--radius-sm); padding: 12px 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid-home { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .team-grid-full { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-section { padding: 80px 0 60px; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 32px); }
  h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-right: none; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid-full { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; }
  .event-actions { flex-direction: column; }
  .showcase-nav-wrapper .nav-arrow { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 20px; }
}