/* =========================================================
   NEXT CHAPTER SKILLS — UNIFIED DESIGN SYSTEM
   Version 4.0 — Notion-Inspired Premium Restyle
   Font Strategy: Plus Jakarta Sans (display) + Inter (body)
   Color Strategy: Notion warm canvas + confident blue + NCS accents
   ========================================================= */

/* ── 1. FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900&display=swap');

/* ── 2. DESIGN TOKENS ── */
:root {
  /* ─ Notion Brand Colors ─ */
  --primary:          #0075de;
  --primary-active:   #005bab;
  --secondary:        #213183;   /* deep indigo — hero night band */
  --on-primary:       #ffffff;

  /* ─ Canvas & Surface ─ */
  --canvas:           #ffffff;
  --canvas-soft:      #f6f5f4;   /* warm paper — signature NCS canvas */
  --surface:          #ffffff;
  --hairline:         #e6e6e6;

  /* ─ Ink / Text ─ */
  --ink:              #0a0908;   /* near-black, warm tint */
  --ink-2:            #31302e;   /* warm charcoal */
  --ink-3:            #615d59;   /* stone */
  --ink-4:            #a39e98;   /* ash */

  /* ─ Backward-compat aliases (used throughout HTML inline styles) ─ */
  --bg:               #ffffff;
  --bg-alt:           #f6f5f4;
  --border:           #e6e6e6;
  --border-dark:      #d8d4d0;
  --blue:             #0075de;
  --blue-light:       rgba(0,117,222,0.08);
  --blue-mid:         rgba(0,117,222,0.18);
  --green:            #2a9d99;
  --green-light:      rgba(42,157,153,0.09);
  --amber:            #dd5b00;
  --amber-light:      rgba(221,91,0,0.08);
  --red:              #c0392b;

  /* ─ NCS Accent Palette (decorative, never structural) ─ */
  --accent-sky:       #62aef0;
  --accent-purple:    #d6b6f6;
  --accent-purple-deep: #391c57;
  --accent-pink:      #ff64c8;
  --accent-orange:    #dd5b00;
  --accent-teal:      #2a9d99;
  --accent-green:     #1aae39;
  --accent-brown:     #523410;

  /* ─ Purple product color (CodeArena) ─ */
  --purple:           #7c3aed;
  --purple-light:     rgba(124,58,237,0.08);

  /* ─ Typography ─ */
  --font:             'Inter', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display:     'Plus Jakarta Sans', 'Inter', -apple-system, system-ui, sans-serif;

  /* ─ Radius ─ */
  --radius-xs:        4px;
  --radius-sm:        5px;
  --radius-md:        8px;
  --radius-lg:        12px;
  --radius-xl:        16px;
  --radius-pill:      9999px;

  /* Backward compat */
  --glass-bg:         rgba(255,255,255,0.80);
  --glass-blur:       blur(20px) saturate(180%);
  --glass-border:     rgba(255,255,255,0.15);  /* used by codearena inline styles */
  --radius-full:      9999px;                  /* alias for --radius-pill */

  /* ─ Notion Elevation (barely-there layered micro-shadows) ─ */
  --shadow-sm:
    0 0.175px 1.041px rgba(0,0,0,0.01),
    0 0.8px   2.925px rgba(0,0,0,0.02),
    0 2px     6px     rgba(0,0,0,0.025);
  --shadow-md:
    0 0.175px 1.041px rgba(0,0,0,0.01),
    0 0.8px   2.925px rgba(0,0,0,0.02),
    0 2.025px 7.847px rgba(0,0,0,0.027),
    0 4px    18px     rgba(0,0,0,0.04);
  --shadow-lg:
    0 0.175px 1.041px rgba(0,0,0,0.01),
    0 0.8px   2.925px rgba(0,0,0,0.02),
    0 2.025px 7.847px rgba(0,0,0,0.027),
    0 4px    18px     rgba(0,0,0,0.04),
    0 10px   36px     rgba(0,0,0,0.048);
  --shadow-xl:
    0 0.175px 1.041px rgba(0,0,0,0.01),
    0 0.8px   2.925px rgba(0,0,0,0.02),
    0 2.025px 7.847px rgba(0,0,0,0.027),
    0 4px    18px     rgba(0,0,0,0.04),
    0 10px   36px     rgba(0,0,0,0.05),
    0 23px   52px     rgba(0,0,0,0.055);

  --transition:   all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 3. RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--canvas-soft);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Main content stacks above globe (z-index:0) globally */
main {
  position: relative;
  z-index: 2;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* ── 4. TYPOGRAPHY ── */

/* Headings: Plus Jakarta Sans — premium, distinctive, editorial */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

p, span, li, td, th { color: var(--ink-3); }
strong { color: var(--ink-2); font-weight: 600; }

/* Display: Plus Jakarta Sans — bold, editorial, distinctive */
.t-display   { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.02; }
.t-giant     { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.t-h1        { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.t-h2        { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.t-h3        { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; }
.t-h4        { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }

/* Body: Inter — clean, highly readable */
.t-body-lg   { font-family: var(--font); font-size: 1.1rem; line-height: 1.78; color: var(--ink-3); max-width: 640px; }
.t-body      { font-family: var(--font); font-size: 0.95rem; line-height: 1.7; color: var(--ink-3); }

/* Eyebrows: Inter — deliberate contrast to Plus Jakarta display */
.t-eyebrow   { font-family: var(--font); display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1rem; }

/* Gradient text — refined warm-to-blue */
.text-gradient {
  background: linear-gradient(135deg, #0075de 0%, #5b3fd4 55%, #2a9d99 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 5. LAYOUT ── */
.container, .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .container, .wrap { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.section      { padding: 6rem 0; }
.section-sm   { padding: 4rem 0; }
.section-lg   { padding: 8rem 0; }
.page-hero-section { padding: 10rem 0 5rem; }

section { overflow: visible; }

/* ── 6. NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-cta-wrap { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-verify {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-mid);
  background: var(--blue-light);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-verify:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 6b. HAMBURGER MOBILE NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1.5px solid var(--border-dark);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger:hover {
  background: var(--canvas-soft);
  border-color: var(--ink-3);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
  transform-origin: center;
}
/* Animate to X when open */
.nav.mobile-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.mobile-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    z-index: 998;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    overflow-y: auto;
    max-height: calc(100vh - 68px);
  }
  .nav.mobile-open .nav-links {
    display: flex;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 16px;
    min-height: 44px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--ink-2);
    width: 100%;
  }
  .nav-links a:hover, .nav-links a:active {
    background: var(--canvas-soft);
    color: var(--ink);
  }
  .nav-hamburger { display: flex; }
  .nav-verify { display: none; }
  .nav { position: fixed; }
  .nav.mobile-open {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
}

/* ── 7. BUTTONS ── */
.btn, .btn-primary, .btn-blue, .btn-ghost, .btn-dark, .btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);  /* Notion pill for marketing CTAs */
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0;
}

/* Primary: confident Notion blue pill */
.btn-primary, .btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover, .btn-dark:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-blue:hover {
  background: var(--primary-active);
  border-color: var(--primary-active);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,117,222,0.28);
}
.btn-blue:active { transform: scale(0.97); }

.btn-green {
  background: var(--accent-teal);
  color: #fff;
  border-color: var(--accent-teal);
}
.btn-green:hover {
  background: #228f8c;
  border-color: #228f8c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42,157,153,0.3);
}

/* Ghost: Notion secondary — white surface, ink text, pill shaped */
.btn-ghost {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--border-dark);
}
.btn-ghost:hover {
  background: var(--canvas-soft);
  color: var(--ink);
  border-color: var(--ink-3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Utility: nav/plan-select — tighter 8px radius, not pill */
.btn-utility {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  font-size: 0.875rem;
}
.btn-utility:hover {
  background: var(--canvas-soft);
  border-color: var(--ink-4);
}

.btn-sm  { padding: 8px 18px; font-size: 0.825rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }

/* ── 8. CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: -0.02em; font-family: var(--font-display); }
.card-desc  { font-size: 0.9rem; color: var(--ink-3); line-height: 1.65; }
.card-img-top { width: 100%; height: 240px; object-fit: cover; }

/* Glassmorphism card */
.glass-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ── 9. BADGES & TAGS ── */
.eyebrow { display: inline-block; font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1.1rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-pill); font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.badge-live   { background: rgba(42,157,153,0.10); color: var(--accent-teal); border: 1px solid rgba(42,157,153,0.22); }
.badge-soon   { background: rgba(221,91,0,0.10);   color: var(--accent-orange); border: 1px solid rgba(221,91,0,0.2); }
.badge-future { background: rgba(124,58,237,0.10); color: var(--purple); border: 1px solid rgba(124,58,237,0.2); }
.badge-beta   { background: var(--blue-light); color: var(--primary); border: 1px solid var(--blue-mid); }

/* Notion badge-pill: white + primary text */
.badge-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  border: 1px solid var(--blue-mid);
}

.product-tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
.product-tag.blue   { background: var(--blue-light); color: var(--primary); }
.product-tag.green  { background: var(--green-light); color: var(--accent-teal); }
.product-tag.amber  { background: var(--amber-light); color: var(--accent-orange); }
.product-tag.dark   { background: rgba(0,0,0,0.05); color: var(--ink-2); }
.product-tag.purple { background: var(--purple-light); color: var(--purple); }

/* ── 10. STAT BLOCKS ── */
.stat-block { text-align: center; }
.stat-number { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: var(--ink); letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.4rem; }
.stat-label  { display: block; font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── 11. FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-label { font-family: var(--font); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.form-input, .form-select, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xs);   /* Notion: 4px — inputs stay tight */
  padding: 10px 14px;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,117,222,0.12);
}
.form-input::placeholder { color: var(--ink-4); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ── 12. GLOBE / CANVAS ── */
.globe-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.globe-bg canvas { width: 100%; height: 100%; }

/* ── 13. FADE ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up-d1.visible { transition-delay: 0.08s; }
.fade-up-d2.visible { transition-delay: 0.16s; }
.fade-up-d3.visible { transition-delay: 0.24s; }
.fade-up-d4.visible { transition-delay: 0.32s; }
.fade-up-d5.visible { transition-delay: 0.40s; }

/* ── 14. HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
  background: transparent;   /* Globe shows through — body canvas-soft is base */
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.4)} }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.03;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.hero-h1 .accent { color: var(--primary); }

@media (max-width: 480px) {
  .hero-h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    letter-spacing: -0.04em;
    line-height: 1.07;
  }
}

.hero-sub {
  font-family: var(--font);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--ink-3);
  line-height: 1.78;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-products {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.hero-product-pill:hover { border-color: var(--blue-mid); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-product-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pill-label { font-family: var(--font); font-size: 0.68rem; color: var(--ink-4); font-weight: 500; padding-right: 2px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 3rem; }
  .hero-vis { display: none; }
}

.hero-vis { position: relative; }
.hero-vis-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hero-vis-card img { width: 100%; border-radius: var(--radius-lg); }
.hero-vis-badge {
  position: absolute;
  bottom: -1rem;
  left: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hero-vis-badge .green { color: var(--accent-teal); }

/* Hero bottom strip */
.hero-strip {
  border-top: 1px solid var(--hairline);
  padding: 1.5rem 2rem;
  background: rgba(246,245,244,0.60);  /* more transparent — globe breathes through */
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  position: relative;
  z-index: 2;
}
.hero-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-strip-text {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse 2s ease infinite;
}

/* ── 15. PRODUCT SECTIONS ── */
.product-sec {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;  /* globe renders behind product sections */
}
.product-sec.alt {
  background: rgba(246,245,244,0.65);  /* subtle warm wash, globe still visible */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.product-grid.flip { direction: rtl; }
.product-grid.flip > * { direction: ltr; }
@media (max-width: 860px) {
  .product-grid, .product-grid.flip { grid-template-columns: 1fr; direction: ltr; gap: 3rem; }
}

.prod-number {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.6rem;
}
.prod-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.prod-eyebrow-name { font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.prod-name { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.03; color: var(--ink); margin-bottom: 1rem; }
.prod-desc { font-family: var(--font); font-size: 1rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 1.75rem; }
.prod-use-case {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--hairline);
}
.prod-use-case-label { font-family: var(--font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
.prod-use-case p { font-size: 0.9rem; color: var(--ink-3); line-height: 1.6; margin: 0; }

.prod-features { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.prod-features li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: var(--ink-3); line-height: 1.55; }
.pf-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.58rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.pfi-blue  { background: var(--blue-light); color: var(--primary); }
.pfi-green { background: var(--green-light); color: var(--accent-teal); }
.pfi-dark  { background: rgba(0,0,0,0.06); color: var(--ink-2); }

.prod-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Visual panels */
.vis-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
  border: 1px solid var(--hairline);
}
.vis-panel:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 40px 80px rgba(0,0,0,0.1), 0 12px 28px rgba(0,0,0,0.06); }
.vis-panel img { width: 100%; display: block; }
.vis-panel.dark { background: #0d0e11; padding: 2rem; }
.vis-panel.green { background: linear-gradient(145deg, #011810, #020f0a, #000); padding: 2.5rem; min-height: 380px; display: flex; align-items: center; justify-content: center; }

/* CodeArena concept panel */
.code-concept {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.85;
  color: #cdd6f4;
}
.cc-comment  { color: #585e7c; }
.cc-keyword  { color: #cba6f7; }
.cc-fn       { color: #89b4fa; }
.cc-str      { color: #a6e3a1; }
.cc-num      { color: #fab387; }
.cc-obj      { color: #94e2d5; }

/* NextStep concept panel */
.pathway-steps { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; }
.pw-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(42,157,153,0.2);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background 0.3s;
}
.pw-step:hover { background: rgba(42,157,153,0.08); }
.pw-step-text { flex: 1; }
.pw-step-label { font-family: var(--font); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-teal); display: block; margin-bottom: 1px; }
.pw-step-desc  { font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.pw-step-val   { font-size: 0.78rem; font-weight: 800; }
.pw-divider { display: flex; justify-content: center; color: rgba(42,157,153,0.4); font-size: 0.85rem; }

/* ── 16. SECTION DIVIDER ── */
.sec-divider { height: 1px; background: linear-gradient(to right, transparent, var(--hairline), transparent); margin: 0; }
.sec-divider-h { width: 1px; background: linear-gradient(to bottom, transparent, var(--hairline), transparent); }

/* ── 17. BRIDGE STRIP — Notion "night" hero band in deep indigo ── */
.bridge {
  padding: 5rem 0;
  background: var(--secondary);   /* deep indigo #213183 */
  position: relative;
  overflow: hidden;
}
.bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,117,222,0.20) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(42,157,153,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.bridge-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.bridge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.bridge-item { padding: 3rem 2.5rem; position: relative; }
.bridge-item + .bridge-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.10), transparent);
}
.bridge-num { font-family: var(--font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.bridge-h { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.05em; color: #fff; line-height: 1.05; margin-bottom: 0.85rem; }
.bridge-p { font-family: var(--font); font-size: 0.95rem; color: rgba(255,255,255,0.52); line-height: 1.72; }
@media (max-width: 768px) {
  .bridge-grid { grid-template-columns: 1fr; }
  .bridge-item + .bridge-item::before { display: none; }
  .bridge-item { padding: 2.5rem 1.5rem; }
}

/* ── 18. STUDENT ECOSYSTEM SECTION ── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .ecosystem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ecosystem-grid { grid-template-columns: 1fr; } }

.eco-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.eco-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.eco-card:hover::before { opacity: 1; }
.eco-card.c-blue::before   { background: var(--primary); }
.eco-card.c-green::before  { background: var(--accent-teal); }
.eco-card.c-amber::before  { background: var(--accent-orange); }
.eco-card.c-purple::before { background: var(--purple); }

.eco-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.eco-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.eco-card-desc  { font-family: var(--font); font-size: 0.875rem; color: var(--ink-3); line-height: 1.6; }

/* ── 19. SSF SECTION ── */
.ssf-section {
  padding: 5rem 0;
  background: rgba(246,245,244,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
}
.ssf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
@media (max-width: 860px) { .ssf-grid { grid-template-columns: 1fr; } }
.ssf-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.ssf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.ssf-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.25rem; }
.ssf-card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.ssf-card-desc  { font-family: var(--font); font-size: 0.88rem; color: var(--ink-3); line-height: 1.65; }
.ssf-born { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 3.5rem; }
.ssf-born-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  transition: var(--transition);
}
.ssf-born-badge:hover { border-color: var(--blue-mid); color: var(--primary); box-shadow: var(--shadow-sm); }
.ssf-born-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── 20. IMPACT BAND ── */
.impact-band {
  padding: 5rem 0;
  background: rgba(246,245,244,0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.impact-item { padding: 2rem; text-align: center; position: relative; }
.impact-item + .impact-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; height: 50%;
  width: 1px;
  background: var(--hairline);
}
.impact-num { font-family: var(--font-display); font-size: clamp(2.5rem,4vw,3.5rem); font-weight: 800; letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-bottom: 0.4rem; }
.impact-label { font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .impact-item:nth-child(odd) + .impact-item::before { display: block; }
  .impact-item:nth-child(even) + .impact-item::before { display: none; }
  .impact-item:nth-child(3) { border-top: 1px solid var(--hairline); }
  .impact-item:nth-child(4) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 360px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-item + .impact-item::before { display: none; }
  .impact-item + .impact-item { border-top: 1px solid var(--hairline); }
}

/* ── 21. COLLABORATIONS ── */
.collab-photo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 860px) { .collab-photo-grid { grid-template-columns: 1fr; } }
.collab-photo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.collab-photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.collab-photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.48) saturate(1.1); transition: filter 0.4s; }
.collab-photo-card:hover img { filter: brightness(0.58) saturate(1.3); }
.collab-photo-card-body { position: relative; z-index: 2; padding: 1.75rem; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%); width: 100%; }
.collab-small-stack { display: flex; flex-direction: column; gap: 1rem; }
.collab-small-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 128px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.collab-small-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.collab-small-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(1.1); transition: filter 0.4s; }
.collab-small-card:hover img { filter: brightness(0.6) saturate(1.3); }
.collab-small-card-body { position: relative; z-index: 2; padding: 1.1rem 1.25rem; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%); width: 100%; }
.collab-bottom-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 768px) { .collab-bottom-row { grid-template-columns: 1fr; } }
.collab-uni-tag { font-family: var(--font); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.collab-event-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.collab-role-tag { display: inline-block; font-family: var(--font); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 4px 10px; margin-top: 0.5rem; }

/* ── 22. TECH STRIP ── */
.tech-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}
.tech-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tech-label { font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); flex-shrink: 0; }
.tech-items { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.tech-item { display: flex; align-items: center; gap: 6px; }
.tech-item img { height: 20px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.4; transition: opacity 0.3s, filter 0.3s; }
.tech-item:hover img { opacity: 0.75; filter: grayscale(0); }
.tech-item span { font-family: var(--font); font-size: 0.8rem; font-weight: 600; color: var(--ink-4); transition: color 0.3s; }
.tech-item:hover span { color: var(--ink-2); }

/* ── 23. VISION CTA BAND — deep indigo "night" ── */
.vision-band {
  padding: 6rem 0;
  background: var(--secondary);  /* deep indigo — the single dark moment */
  position: relative;
  overflow: hidden;
}
.vision-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(0,117,222,0.22) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(42,157,153,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.vision-band-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.vision-band-h { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.055em; color: #fff; margin-bottom: 1.25rem; line-height: 1.04; }
.vision-band-p { font-family: var(--font); font-size: 1.05rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 2.5rem; }

/* ── 24. FOOTER ── */
.site-footer {
  background: rgba(246,245,244,0.90);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--hairline);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 2;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 4rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; margin-bottom: 1.25rem; }
.footer-logo img { height: 64px; width: auto; object-fit: contain; }
.footer-brand-p { font-family: var(--font); font-size: 0.82rem; color: var(--ink-3); line-height: 1.75; }
.footer-brand-p a { color: var(--ink-3); transition: color 0.2s; }
.footer-brand-p a:hover { color: var(--primary); }

.footer-col h5 { font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-family: var(--font); font-size: 0.875rem; color: var(--ink-3); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }

.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.fs-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-3);
  text-decoration: none;
  transition: var(--transition);
}
.fs-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,117,222,0.22); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom span { font-family: var(--font); font-size: 0.8rem; color: var(--ink-4); }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* ── 25. MENTOR CARDS ── */
.mentor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
@media (max-width: 900px) { .mentor-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .mentor-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.mentor-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}
.mentor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.mentor-logo { height: 32px; max-width: 110px; object-fit: contain; margin-bottom: 0.5rem; opacity: 0.8; }
.mentor-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.mentor-role { font-family: var(--font); font-size: 0.8rem; color: var(--ink-3); }

/* ── 26. PAGE HERO ── */
.page-hero {
  padding: 11rem 0 4rem;
  background: transparent;  /* globe shows through on inner pages */
}
.page-hero-eyebrow { font-family: var(--font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1.1rem; display: block; }
.page-hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.03; color: var(--ink); margin-bottom: 1.5rem; }
.page-hero-sub { font-family: var(--font); font-size: 1.15rem; color: var(--ink-3); line-height: 1.78; max-width: 600px; }

/* ── 27. PRODUCT TAG AMBER FIX ── */
.product-tag.amber { background: var(--amber-light); color: var(--accent-orange); }

/* ── 28. TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 2rem; padding-bottom: 3rem; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 19px; top: 42px; width: 1px; bottom: 0; background: linear-gradient(to bottom, var(--hairline) 0%, transparent 100%); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--surface); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.tl-body { padding-top: 0.5rem; }
.tl-year { font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 0.5rem; }
.tl-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.tl-desc { font-family: var(--font); font-size: 0.9rem; color: var(--ink-3); line-height: 1.65; }

/* ── 29. TABLE ── */
.data-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.data-table th { padding: 1rem 1.25rem; font-family: var(--font); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--hairline); text-align: left; background: var(--canvas-soft); }
.data-table td { padding: 1.1rem 1.25rem; font-family: var(--font); font-size: 0.92rem; color: var(--ink-2); border-bottom: 1px solid var(--hairline); }
.data-table tr:hover td { background: var(--blue-light); }

/* ── 30. CONTENT BLOCKS (Legal Pages) ── */
.content-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 2rem;
}
.content-block h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 1.25rem; margin-top: 2rem; }
.content-block h2:first-child { margin-top: 0; }
.content-block p  { font-family: var(--font); font-size: 0.95rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 1rem; }
.content-block ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.content-block li { font-family: var(--font); font-size: 0.95rem; color: var(--ink-3); line-height: 1.7; margin-bottom: 0.5rem; list-style: disc; }
.content-block table { overflow-x: auto; display: block; }

/* ── 31. GLOBE ANIMATION ── */
@keyframes globePulse { 0%,100%{opacity:0.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.02)} }
#globe-canvas { cursor: grab; }
#globe-canvas:active { cursor: grabbing; }

.hero-globe-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.80;  /* increased for better globe visibility on all pages */
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.hero-globe-bg canvas { width: 100%; height: 100%; }

/* ── 32. NS STATS ── */
.ns-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.ns-stat { background: rgba(42,157,153,0.09); border: 1px solid rgba(42,157,153,0.2); border-radius: var(--radius-lg); padding: 0.85rem 1.1rem; min-width: 100px; }
.ns-stat-num   { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--accent-teal); letter-spacing: -0.04em; }
.ns-stat-label { font-family: var(--font); font-size: 0.68rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.15rem; }

/* ── 33. RESPONSIVE UTILITIES ── */
@media (max-width: 768px) {
  .section    { padding: 4rem 0; }
  .section-sm { padding: 3rem 0; }
  .section-lg { padding: 5rem 0; }
  .page-hero  { padding: 9rem 0 3rem; }
  .product-sec { padding: 3.5rem 0; }
  .hero-inner { padding: 3.5rem 1.25rem 3rem; }
  .bridge-item { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn, .hero-ctas a { width: 100%; justify-content: center; }
  .prod-ctas { flex-direction: column; }
  .prod-ctas .btn, .prod-ctas a { width: 100%; justify-content: center; }
  .ssf-grid { grid-template-columns: 1fr; }
  .mentor-grid { grid-template-columns: 1fr 1fr; }
  .content-block { padding: 1.75rem 1.25rem; }
}

/* ── 34. CODE BLOCK ── */
.code-block {
  background: #0d0e11;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #cdd6f4;
  overflow-x: auto;
}
.code-comment { color: #585e7c; }
.code-keyword { color: #cba6f7; }
.code-fn      { color: #89b4fa; }
.code-str     { color: #a6e3a1; }
.code-num     { color: #fab387; }

/* ── 35. FOOTER SOCIAL WRAPPER (standalone pages) ── */
.footer-social-wrapper { margin-top: 1rem; }

/* ── 36. STAGGER GRID (impact / codearena pages) ── */
.stagger-grid { }
.stagger-item { }

/* ── 37. MOBILE OVERFLOW SAFEGUARDS ── */
@media (max-width: 768px) {
  .collab-photo-grid { grid-template-columns: 1fr; }
  .collab-small-stack { flex-direction: row; }
  .collab-small-card { flex: 1; min-height: 160px; }
}
@media (max-width: 540px) {
  .collab-small-stack { flex-direction: column; }
  .collab-small-card { min-height: 130px; }
  .products-hero-grid { grid-template-columns: 1fr !important; }
}

/* ── 38. IMPACT PAGE — mobile fix ── */
/* Metric card numbers have inline white color on dark card —
   ensure text is visible on white canvas-soft bg when used outside dark card */
.impact-metric-num { font-family: var(--font-display); color: var(--ink); }

/* ══════════════════════════════════════════════════════
   39. COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ══════════════════════════════════════════════════════ */

/* ── Badges: never wrap text ── */
.badge, .product-tag, .badge-pill { white-space: nowrap; }

/* ── Product grid: force 1-col below 768px ── */
@media (max-width: 768px) {
  .product-grid,
  .product-grid.flip {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }
  /* Visual panels: cap height on mobile so they don't dominate */
  .vis-panel.dark  { min-height: auto !important; padding: 1.5rem !important; }
  .vis-panel.green { min-height: 280px !important; padding: 1.75rem !important; }
  .code-concept    { font-size: 0.72rem !important; line-height: 1.7; }

  /* Product CTA buttons: full-width on mobile */
  .prod-ctas {
    flex-direction: column;
  }
  .prod-ctas .btn,
  .prod-ctas a.btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero CTA buttons: full-width on mobile */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn,
  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }

  /* ns-stats: equal 2-col grid on mobile instead of flex-wrap breaking */
  .ns-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* prod-eyebrow: wrap if needed */
  .prod-eyebrow { flex-wrap: wrap; }

  /* Section spacing tighter */
  .product-sec  { padding: 3rem 0; }
  .section      { padding: 3rem 0; }
  .section-sm   { padding: 2rem 0; }
  .page-hero    { padding: 7rem 0 2.5rem; }

  /* Hero vis card: hide heavy visual on very small screens (saves scroll) */
  .hero-vis { display: none; }

  /* Hero products pills: wrap properly */
  .hero-products { gap: 0.5rem; }
  .hero-product-pill { font-size: 0.78rem; padding: 6px 12px; }

  /* Bridge: single column */
  .bridge-grid { grid-template-columns: 1fr; }
  .bridge-item { padding: 2rem 1.25rem; }
  .bridge-item + .bridge-item::before { display: none; }

  /* Impact grid: 2 columns */
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .impact-item + .impact-item::before { display: none; }
  .impact-item:nth-child(even) { border-left: 1px solid var(--hairline); }
  .impact-item:nth-child(n+3)  { border-top: 1px solid var(--hairline); }

  /* Footer grid: 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* Mentor grid: 2 columns */
  .mentor-grid { grid-template-columns: 1fr 1fr; }

  /* SSF grid: 1 column */
  .ssf-grid { grid-template-columns: 1fr; }

  /* Ecosystem grid: 1 column */
  .ecosystem-grid { grid-template-columns: 1fr; }

  /* Collab: fix overflow */
  .collab-photo-grid   { grid-template-columns: 1fr; }
  .collab-bottom-row   { grid-template-columns: 1fr; }
  .collab-small-stack  { flex-direction: row; }
  .collab-small-card   { flex: 1; min-height: 130px; }

  /* Table: horizontal scroll wrapper */
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content-block table { overflow-x: auto; display: block; -webkit-overflow-scrolling: touch; }

  /* Nav: ensure proper layout */
  .nav-inner { padding: 0 1.25rem; }
}

/* ── Extra small screens (≤480px) ── */
@media (max-width: 480px) {
  /* Impact grid: 1 column */
  .impact-grid { grid-template-columns: 1fr; }
  .impact-item + .impact-item::before { display: none; }
  .impact-item:nth-child(even) { border-left: none; }
  .impact-item + .impact-item { border-top: 1px solid var(--hairline); }

  /* ns-stats: 1 column on tiny screens */
  .ns-stats { grid-template-columns: 1fr; }

  /* Footer: 1 column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Mentor: 2 small columns */
  .mentor-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Content blocks: less padding */
  .content-block { padding: 1.5rem 1rem; }

  /* Collab: 1 column */
  .collab-bottom-row  { grid-template-columns: 1fr; }
  .collab-small-stack { flex-direction: column; }

  /* Hero typography: tighter on tiny screens */
  .hero-h1 { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .page-hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  
  /* Generic typography overrides for small screens */
  .t-giant   { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .t-display { font-size: clamp(2.25rem, 9vw, 2.8rem); }
  .t-h1      { font-size: clamp(1.75rem, 8vw, 2rem); }
  .t-body-lg { font-size: 1rem; }

  /* Product name: scale down */
  .prod-name { font-size: clamp(1.7rem, 7vw, 2.5rem); }

  /* Bridge heading: scale down */
  .bridge-h { font-size: clamp(1.3rem, 5.5vw, 2rem); }

  /* Nav logo: slightly smaller */
  .nav-logo img { height: 56px; }

  /* Buttons: ensure tap target */
  .btn, .btn-primary, .btn-blue, .btn-ghost, .btn-dark, .btn-green {
    min-height: 44px;
  }

  /* Page hero padding */
  .page-hero { padding: 6rem 0 2rem; }

  /* Hero inner padding */
  .hero-inner { padding: 2.5rem 1.25rem 2rem; }

  /* Container padding */
  .container, .wrap { padding: 0 1rem; }

  /* Grid utilities: force 1 col */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── applicantspace.html specific grid fixes ── */
@media (max-width: 860px) {
  .split-grid {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  /* Stat separator lines in dark stat blocks */
  .stat-separator { display: none; }
  /* Hero actions on applicantspace page */
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
}
