/* ── NORTHLAND HACKATHON — SHARED STYLESHEET ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 14px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.09), 0 16px 40px rgba(0,0,0,0.06);
  --indigo: #6366f1;
  --cyan: #0891b2;
  --grad: linear-gradient(135deg, #6366f1, #0891b2);
  --grad-text: linear-gradient(90deg, #6366f1, #0891b2);
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Mono', monospace; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── GRADIENT TEXT ── */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s;
}
.header-logo img { height: 34px; width: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--indigo); }
@media (max-width: 780px) { .header-nav { display: none; } }

/* ── PAGE HERO (light pages) ── */
.page-hero {
  margin-top: 68px;
  padding: 80px 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--card-border);
}
.page-hero-inner { max-width: 760px; }
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ── SECTION ── */
.section { padding: 80px 60px; }
.section-sm { padding: 56px 60px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── PERSON CARDS ── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.person-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.person-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.2s;
}
.person-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.person-card:hover::before { opacity: 1; }
.person-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card-border); }
.person-info { display: flex; flex-direction: column; gap: 5px; }
.person-role { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.person-name { font-family: 'Space Mono', monospace; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.person-logo { height: 18px; width: auto; max-width: 90px; opacity: 0.6; margin-top: 2px; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: #f8f7ff;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 16px;
  padding: 36px 40px;
}
.highlight-box.cyan {
  background: #f0fafb;
  border-color: rgba(8,145,178,0.2);
}

/* ── STAT CARDS ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.stat-card-number {
  font-family: 'Space Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}
.stat-card-label { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.stat-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── PLACEHOLDER IMAGE ── */
.img-placeholder {
  background: var(--bg3);
  border: 2px dashed var(--card-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--faint);
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  text-align: center;
  padding: 20px;
}
.img-placeholder .placeholder-icon { font-size: 2rem; opacity: 0.4; }

/* ── CTA SECTION ── */
.cta-dark {
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #06080f;
}
.cta-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-dark::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.cta-dark .cta-inner { position: relative; z-index: 1; }
.cta-dark h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-dark p { font-size: 1.05rem; color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 60px 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-logo img { height: 30px; width: auto; }
.footer-contact { font-size: 0.85rem; color: #94a3b8; margin-top: 12px; }
.footer-contact a { color: #94a3b8; transition: color 0.2s; }
.footer-contact a:hover { color: var(--cyan); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.footer-socials a:hover { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.15); }
.footer-socials img { width: 18px; height: 18px; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 0.78rem; color: #475569; }
.footer-cookie a { font-size: 0.78rem; color: #475569; text-decoration: underline; }
.footer-credit { font-size: 0.78rem; color: #475569; }
.footer-credit a { color: #64748b; text-decoration: underline; transition: color 0.2s; }
.footer-credit a:hover { color: #94a3b8; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--indigo); }
.breadcrumb span { color: var(--faint); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .section, .section-sm { padding: 60px 28px; }
  .page-hero { padding: 60px 28px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 28px 28px; }
  .footer-top { flex-direction: column; }
  .cta-dark { padding: 80px 28px; }
  header { padding: 0 20px; }
}
@media (max-width: 600px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* ── OUTLINE WHITE BUTTON ── */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

/* ── VOLUNTEER CARDS ── */
.vol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.vol-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.vol-card:hover { border-color: rgba(34,211,238,0.3); transform: translateY(-3px); }
.vol-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card-border); }
.vol-role { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.vol-name { font-family: 'Space Mono', monospace; font-size: 0.8rem; font-weight: 700; color: var(--text); }
.vol-logo { height: 16px; width: auto; max-width: 80px; opacity: 0.55; }

/* ── SPEAKER CARDS ── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.speaker-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.speaker-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-3px); }
.speaker-card-top {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--card-border);
}
.speaker-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(99,102,241,0.4); }
.speaker-name { font-family: 'Space Mono', monospace; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.speaker-title { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.speaker-logo-img { height: 16px; width: auto; max-width: 80px; opacity: 0.55; margin-top: 6px; }
.speaker-card-body { padding: 20px 24px; }
.speech-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(8,145,178,0.08);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.speech-text { font-size: 0.9rem; color: var(--muted); font-style: italic; line-height: 1.6; }

/* ── TIMELINE ── */
.timeline {
  max-width: 600px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 20px; bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--indigo) 20%, var(--cyan) 80%, transparent);
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px auto 1fr;
  gap: 0 24px;
  align-items: center;
  padding: 18px 0;
}
.timeline-time {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
  flex-shrink: 0;
}
.timeline-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ── CTA (dark) ── */
.cta {
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #06080f;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.4rem); color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta p { font-size: 1.1rem; color: #94a3b8; margin-bottom: 44px; }

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 960px) {
  .vol-grid { grid-template-columns: 1fr 1fr; }
  .speakers-grid { grid-template-columns: 1fr; }
  .cta { padding: 80px 28px; }
}
@media (max-width: 600px) {
  .vol-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 70px; }
  .timeline-time { font-size: 0.65rem; }
}
