/* FutureAbility — Modern Prototype v2 */

/* ── Web font — Inter (consistent across all OS/browsers) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  /* ── Brand palette (from logo extraction) ── */
  --brand-navy: #002F61;
  --blue: #3587F6;
  --purple: #624CED;
  --cyan: #21A1F9;

  /* ── Dark theme (default) ── */
  --surface-0: #0B1220;   /* deepest — header, footer, body */
  --surface-1: #0F1A2E;   /* base — primary dark sections */
  --surface-2: #152236;   /* elevated — alt dark sections, glass bg */
  --surface-3: #1B2B42;   /* prominent — feature panels, hovers */

  /* Legacy aliases — theme-aware so all existing components adapt */
  --navy: var(--heading);
  --navy-deep: var(--surface-1);
  --white: #FFFFFF;
  --grey-light: var(--surface-2);
  --grey-mid: var(--muted);
  --grey-body: var(--body-text);
  --charcoal: var(--body-text);

  /* Glass */
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.10);

  /* ── Text colours (named, not RGBA) ── */
  --heading: #E8ECF1;
  --body-text: #B8C0CE;
  --muted: #7A8494;
  --faint: #6E7A8C;

  /* Legacy text tier aliases */
  --text-faint: var(--faint);
  --text-muted: var(--muted);
  --text-light: var(--heading);

  /* ── Accent variants for gradients ── */
  --grad-start: var(--blue);
  --grad-end: var(--purple);
  --grad-text-start: #5BC0F8;
  --grad-text-end: #9B8CF7;

  /* ── Borders & UI ── */
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(53,135,246,0.2);
  --card-bg: var(--surface-3);
  --card-border: var(--glass-border);
  --card-heading: var(--heading);
  --card-body: var(--body-text);
  --tag-bg: rgba(53,135,246,0.12);
  --tag-border: rgba(53,135,246,0.2);
  --tag-color: var(--blue);

  /* ── Section colours ── */
  --section-dark-bg: var(--surface-1);
  --section-alt-bg: var(--surface-2);
  --section-light-bg: var(--white);
  --hero-bg: var(--surface-1);
  --footer-bg: var(--surface-0);
  --header-bg: rgba(11, 18, 32, 0.88);

  /* ── Body defaults ── */
  --page-bg: var(--surface-0);
  --page-text: var(--body-text);

  /* ── Type scale ── */
  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.15rem;
  --text-lg: 1.35rem;

  /* ── Spacing ── */
  --section-pad: 4.5rem 0;
  --section-pad-sm: 3rem 0;
  --max-w: 1120px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --surface-0: #FFFFFF;            /* white base throughout */
  --surface-1: #FFFFFF;
  --surface-2: #F7F8FA;            /* very subtle alt sections */
  --surface-3: #F0F2F5;            /* card hover / elevated */

  --navy: #1B2A4A;
  --navy-deep: var(--brand-navy);
  --white: #FFFFFF;
  --grey-light: #F5F7FA;
  --grey-mid: #8C95A6;
  --grey-body: #3D4F65;
  --charcoal: #2D3748;

  --glass-bg: rgba(0,47,97,0.03);
  --glass-border: rgba(0,47,97,0.08);

  --heading: var(--brand-navy);
  --body-text: #3D4F65;
  --muted: #6B7A8D;
  --faint: #6B7A8D;

  --text-faint: var(--faint);
  --text-muted: var(--muted);
  --text-light: var(--heading);

  --blue: #2B6CC4;
  --purple: #5640C8;
  --cyan: #1A8AD4;
  --grad-start: #2B6CC4;
  --grad-end: #5640C8;
  --grad-text-start: #2B6CC4;
  --grad-text-end: #5640C8;

  --border: rgba(0,47,97,0.06);
  --border-accent: rgba(0,47,97,0.08);
  --card-bg: var(--white);
  --card-border: #E2E6EC;
  --card-heading: var(--brand-navy);
  --card-body: #3D4F65;
  --tag-bg: rgba(43,108,196,0.08);
  --tag-border: rgba(43,108,196,0.18);
  --tag-color: #2B6CC4;

  --section-dark-bg: var(--white);
  --section-alt-bg: #F7F8FA;
  --section-light-bg: var(--white);
  --hero-bg: var(--white);
  --footer-bg: var(--brand-navy);   /* footer stays dark for contrast */
  --header-bg: rgba(255, 255, 255, 0.92);

  --page-bg: var(--white);
  --page-text: #3D4F65;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--page-text); background: var(--page-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.4s ease, color 0.4s ease; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--purple); }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── GRAIN TEXTURE ── */
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-accent);
  transition: background 0.4s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo img { height: 62px; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { color: var(--body-text); font-size: 1rem; font-weight: 500; letter-spacing: 0.03em; }
nav a:hover, nav a.on { color: var(--heading); }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.2rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-glow {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #FFFFFF !important; position: relative;
}
.btn-glow::after {
  content: ''; position: absolute; inset: -1px; border-radius: 9px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  filter: blur(12px); opacity: 0.4; z-index: -1; transition: opacity 0.3s;
}
.btn-glow:hover { transform: translateY(-2px); color: var(--white); }
.btn-glow:hover::after { opacity: 0.6; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.2); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--grey-mid); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── HERO ── */
.hero {
  background: var(--hero-bg); position: relative; overflow: hidden;
  padding: 11rem 0 6rem; color: var(--heading);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(74,173,232,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(107,92,231,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(74,173,232,0.06) 0%, transparent 40%);
  animation: meshShift 15s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.05) translate(-2%,1%); }
}
.hero .wrap { position: relative; z-index: 2; }
.hero .tag, .dark .tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  background: var(--tag-bg); color: var(--tag-color); border: 1px solid var(--tag-border);
  margin-bottom: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15;
  max-width: 720px; margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.grad-text {
  background: linear-gradient(135deg, var(--grad-text-start) 0%, var(--grad-text-end) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: 1.1rem; color: var(--body-text); max-width: 480px;
  margin-bottom: 2.5rem; line-height: 1.6; font-weight: 400;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Page hero (shorter) */
.hero-sm { padding: 9rem 0 3.5rem; }
.hero-sm h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ── GLASS CARDS ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 2rem;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.glass:hover { border-color: rgba(74,173,232,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }

/* Cards */
.card {
  background: var(--card-bg); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--card-border); position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.card:hover { transform: translateY(-4px) rotateX(1deg); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.card .card-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--purple)); opacity: 0; transition: opacity 0.3s; }
.card:hover .card-bar { opacity: 1; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--card-heading); margin-bottom: 0.4rem; }
.card p { font-size: 0.9rem; color: var(--card-body); line-height: 1.55; }

/* ── GRIDS ── */
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width:900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width:600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .tall { grid-row: span 2; }
@media (max-width:900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .span-3 { grid-column: span 2; } }
@media (max-width:600px) { .bento { grid-template-columns: 1fr; } .bento .span-2, .bento .span-3 { grid-column: span 1; } .bento .tall { grid-row: span 1; } }

/* ── SECTIONS ── */
section { padding: 4.5rem 0; position: relative; }
.dark { background: var(--section-dark-bg); color: var(--heading); }
.alt { background: var(--section-alt-bg); }
.label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.6rem;
}
.dark .label { color: var(--blue); }
h2.sec { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--card-heading); line-height: 1.15; margin-bottom: 0.8rem; letter-spacing: -0.015em; }
.dark h2.sec { color: var(--heading); }
p.intro { font-size: 1rem; color: var(--card-body); max-width: 680px; margin-bottom: 2.5rem; line-height: 1.6; }

/* ── STATS ── */
.stats { display: flex; gap: 3rem; flex-wrap: wrap; padding: 2.5rem 0; }
.stat { text-align: center; flex: 1; min-width: 120px; }
.stat-n { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-n.blue { color: var(--blue); }
.stat-n.purple { color: var(--purple); }
.stat-l { font-size: 0.85rem; color: var(--grey-body); margin-top: 0.3rem; font-weight: 500; }
.dark .stat-l { color: var(--muted); }

/* ── PROBLEM CARDS (glass on dark) ── */
.problem-num { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 0.6rem; }
.problem-num.c1 { color: var(--blue); }
.problem-num.c2 { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.problem-num.c3 { color: var(--purple); }
.glass h3 { font-size: 1.1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.4rem; }
.glass p { font-size: 0.9rem; color: var(--body-text); line-height: 1.55; }

/* ── TIMELINE ── */
.timeline { display: flex; align-items: flex-start; justify-content: space-between; position: relative; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 28px; left: 40px; right: 40px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: 2px; }
.tl-node { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; position: relative; z-index: 1; }
.tl-dot { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 0.8rem; background: var(--brand-navy); border: 2px solid var(--blue); transition: 0.3s; }
.tl-node:hover .tl-dot { background: var(--blue); box-shadow: 0 0 24px rgba(74,173,232,0.4); transform: scale(1.1); }
.tl-node:last-child .tl-dot { border-color: var(--purple); }
.tl-node:last-child:hover .tl-dot { background: var(--purple); box-shadow: 0 0 24px rgba(107,92,231,0.4); }
.tl-node h4 { font-size: 0.9rem; font-weight: 700; color: var(--card-heading); margin-bottom: 0.2rem; }
.tl-node p { font-size: 0.82rem; color: var(--card-body); max-width: 140px; }
@media (max-width:700px) { .timeline { flex-direction: column; gap: 1.5rem; } .timeline::before { display: none; } .tl-node { flex-direction: row; text-align: left; gap: 1rem; } }

/* ── PROJECT CARDS ── */
.proj {
  background: var(--card-bg); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--card-border); transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.proj:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.proj-head { background: var(--section-dark-bg); padding: 1.2rem 1.5rem; border-bottom: 2px solid var(--blue); position: relative; overflow: hidden; }
.proj:nth-child(even) .proj-head { border-bottom-color: var(--purple); }
.proj-head::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 100%; background: linear-gradient(90deg, transparent, rgba(74,173,232,0.06)); }
.proj-ind { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); font-weight: 700; }
.proj-name { font-size: 1rem; font-weight: 700; color: var(--heading); margin-top: 0.2rem; }
.proj-body { padding: 1.5rem; }
.proj-body dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); font-weight: 700; margin-bottom: 0.15rem; }
.proj-body dd { font-size: 0.9rem; color: var(--charcoal); margin-bottom: 0.8rem; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--card-border); }
.tags span { font-size: 0.78rem; padding: 0.2rem 0.55rem; background: var(--grey-light); color: var(--charcoal); border-radius: 100px; font-weight: 600; }

/* ── TECH GRID ── */
.tech-cat { margin-bottom: 2rem; }
.tech-cat h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--card-border); text-transform: uppercase; letter-spacing: 0.06em; }
.tech-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.tech-i { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; transition: all 0.3s; }
.tech-i:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(74,173,232,0.08); }
.tech-i img, .tech-i svg { width: 24px; height: 24px; flex-shrink: 0; }
.tech-i .t-name { font-size: 0.85rem; font-weight: 600; color: var(--navy); }

/* ── FILTER TABS ── */
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab {
  padding: 0.4rem 0.9rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  background: transparent; color: var(--grey-body);
  border: 1px solid var(--card-border); cursor: pointer; transition: 0.3s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.on { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ── TEAM ── */
.team-card { text-align: center; padding: 2rem 1.5rem; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--white);
  transition: 0.4s; position: relative;
}
.avatar::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); opacity: 0; transition: 0.4s; z-index: -1; filter: blur(12px); }
.team-card:hover .avatar::after { opacity: 0.5; }
.team-card:hover .avatar { transform: scale(1.05); }
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.15rem; }
.team-card .role { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-bottom: 0.4rem; }
.team-card .bio { font-size: 0.85rem; color: var(--grey-body); line-height: 1.5; }

/* ── QUOTE ── */
.quote-band { background: var(--surface-2); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.quote-band::before { content: '\201C'; position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); font-size: 12rem; color: var(--blue); opacity: 0.06; line-height: 1; font-family: Georgia, serif; }
.quote-band blockquote { font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--heading); font-weight: 500; max-width: 640px; margin: 0 auto 1.2rem; line-height: 1.45; }
.quote-band cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--blue); font-weight: 600; }
.quote-band cite span { color: var(--muted); font-weight: 400; }

/* ── CTA BAND ── */
.cta-band { background: var(--section-dark-bg); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-band .cta-glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(120px); opacity: 0.15; }
.cta-band .cta-glow.left { background: var(--blue); top: -100px; left: -100px; }
.cta-band .cta-glow.right { background: var(--purple); bottom: -100px; right: -100px; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.6rem; }
.cta-band p { color: var(--body-text); margin-bottom: 2rem; font-size: 1rem; }
.cta-band .btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ── DELIVERABLES ── */
.del-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.8rem; }
.del-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.8rem 1rem; background: var(--card-bg); border-radius: 10px; border: 1px solid var(--card-border); }
.del-check { width: 22px; height: 22px; flex-shrink: 0; background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.del-check svg { width: 11px; height: 11px; fill: var(--white); }
.del-item p { font-size: 0.9rem; color: var(--charcoal); line-height: 1.45; }
.del-item strong { color: var(--navy); }

/* ── CALLOUT BOX ── */
.callout {
  background: linear-gradient(135deg, rgba(74,173,232,0.08), rgba(107,92,231,0.06));
  border: 1px solid rgba(74,173,232,0.2);
  border-radius: 16px; padding: 2.5rem; text-align: center; max-width: 600px; margin: 2rem auto 0;
}
.callout h3 { font-size: 1.3rem; font-weight: 800; color: var(--card-heading); margin-bottom: 0.5rem; }
.callout p { font-size: 0.9rem; color: var(--card-body); margin-bottom: 1.5rem; }
.dark .callout { background: rgba(255,255,255,0.04); border-color: var(--glass-border); }
.dark .callout h3 { color: var(--heading); }
.dark .callout p { color: var(--body-text); }

.note { border-left: 3px solid var(--blue); padding: 1rem 1.5rem; background: var(--grey-light); border-radius: 0 10px 10px 0; margin-top: 1.5rem; max-width: 600px; }
.note h4 { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.note p { font-size: 0.88rem; color: var(--charcoal); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: var(--footer-bg); padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-accent);
  transition: background 0.4s ease;
}
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.ft-brand img { height: 24px; margin-bottom: 0.8rem; }
.ft-brand p { font-size: 0.85rem; color: #9AAABB; max-width: 280px; line-height: 1.5; }
footer h4 { font-size: 0.8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.35rem; }
footer li a { color: #9AAABB; font-size: 0.88rem; }
footer li a:hover { color: var(--blue); }
.ft-bottom { padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.ft-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.ft-bottom img { height: 20px; opacity: 0.75; }
@media (max-width:700px) { .ft-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── PARTNER ROW ── */
.partner-row { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; padding: 1rem 0; }
.partner-row img { height: 48px; opacity: 0.8; transition: 0.3s; }
.partner-row img:hover { opacity: 1; }

/* Partner credentials */
.partner-credentials { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.partner-credential {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--card-bg); color: var(--card-heading);
  border: 1px solid var(--card-border);
}

/* ── FOURTH PROBLEM NUM ── */
.problem-num.c4 { color: var(--purple); opacity: 0.8; }

/* ── (scorecard CSS removed — replaced by diagnostic.html) ── */

/* ── TECH PILLS ── */
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-pill {
  padding: 0.4rem 0.9rem; border-radius: 100px; font-size: 0.84rem; font-weight: 600;
  background: var(--grey-light); color: var(--charcoal); border: 1px solid var(--card-border);
  transition: all 0.3s;
}
.tech-pill:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── INTEGRATION TILE GRID ── */
.int-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.8rem;
  max-width: 900px; margin: 0 auto;
}
.int-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.1rem 0.6rem;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.int-tile:hover {
  border-color: var(--blue); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,173,232,0.1);
}
.int-tile img, .int-tile svg {
  width: 28px; height: 28px; flex-shrink: 0;
}
.int-tile span {
  font-size: 0.72rem; font-weight: 600; color: var(--navy);
  text-align: center; line-height: 1.25;
}
@media (max-width:800px) { .int-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width:500px) { .int-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── LARGER CTA BUTTON ── */
.btn-lg { padding: 0.7rem 1.8rem; font-size: 1rem; }

/* ── SPLIT-BUTTON DROPDOWN ── */
.btn-split {
  position: relative; display: inline-flex; border-radius: 8px;
}
.btn-split-main {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: 8px 0 0 8px;
  font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #FFFFFF !important; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-split-main:hover { transform: translateY(-2px); }
.btn-split-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 0.6rem; border-radius: 0 8px 8px 0; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border-left: 1px solid rgba(255,255,255,0.25);
  color: #FFFFFF; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-split-toggle:hover { transform: translateY(-2px); }
.btn-split-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.btn-split::after {
  content: ''; position: absolute; inset: -1px; border-radius: 9px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  filter: blur(12px); opacity: 0.4; z-index: -1; transition: opacity 0.3s;
}
.btn-split:hover::after { opacity: 0.6; }
.btn-split-lg .btn-split-main { padding: 0.7rem 1.8rem; font-size: 1rem; }
.btn-split-lg .btn-split-toggle { padding: 0.7rem 0.7rem; }
.btn-split-dropdown {
  position: fixed; min-width: 240px;
  background: var(--card-bg, #1a2744); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; overflow: hidden; z-index: 9999;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.btn-split.open .btn-split-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.btn-split-dropdown a {
  display: block; padding: 0.65rem 1rem; color: var(--heading, #fff);
  font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.btn-split-dropdown a:hover {
  background: rgba(74,173,232,0.15);
}
.btn-split-dropdown a span {
  display: block; font-size: 0.75rem; opacity: 0.6; font-weight: 400; margin-top: 2px;
}
[data-theme="light"] .btn-split-dropdown {
  background: #fff; border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] .btn-split-dropdown a { color: var(--charcoal); }
[data-theme="light"] .btn-split-dropdown a:hover { background: rgba(74,173,232,0.1); }
.hero-light .btn-split-dropdown {
  background: #fff; border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.hero-light .btn-split-dropdown a { color: var(--charcoal, #2D3748); }
.hero-light .btn-split-dropdown a:hover { background: rgba(74,173,232,0.1); }

/* ── HERO SPLIT LAYOUT ── */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-split .hero-left .tag { margin-bottom: 1rem; font-size: 0.7rem; padding: 0.25rem 0.75rem; opacity: 0.8; }
.hero-split .hero-left h1 {
  text-align: left;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero-split .hero-left p {
  font-size: 1.05rem; color: var(--body-text); max-width: 560px;
  margin-bottom: 2rem; line-height: 1.65;
}
.hero-split .hero-cta { margin-top: 0; }
@media (max-width:800px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-split .hero-left h1 { text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); }
  .hero-split .hero-left p { max-width: 100%; }
  .hero-split .hero-cta { justify-content: center; }
}

/* ── LEVEL STEPPER ── */
.stepper-container { position: relative; }

.stepper-dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.2rem;
}
.stepper-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15); cursor: pointer; transition: all 0.4s;
}
.stepper-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }
.stepper-dot[data-level="1"].active { background: rgba(74,173,232,0.5); }
.stepper-dot[data-level="2"].active { background: var(--blue); }
.stepper-dot[data-level="3"].active { background: var(--purple); }

.stepper-frame {
  position: relative; overflow: hidden;
  border-radius: 20px; min-height: 380px; cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.stepper-frame[data-active="0"] {
  background: rgba(74,173,232,0.06); border: 1px solid rgba(74,173,232,0.15);
}
.stepper-frame[data-active="1"] {
  background: rgba(74,173,232,0.08); border: 1px solid rgba(74,173,232,0.25);
  box-shadow: 0 0 60px rgba(74,173,232,0.12), 0 0 120px rgba(107,92,231,0.06);
}
.stepper-frame[data-active="2"] {
  background: rgba(107,92,231,0.06); border: 1px dashed rgba(107,92,231,0.25);
}

.stepper-track {
  display: flex; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.stepper-slide {
  min-width: 100%; padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
}

.slide-level-tag {
  display: inline-flex; align-self: flex-start;
  padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1rem;
}
.stepper-slide:nth-child(1) .slide-level-tag { background: rgba(74,173,232,0.15); color: var(--blue); }
.stepper-slide:nth-child(2) .slide-level-tag { background: linear-gradient(135deg, var(--blue), var(--purple)); color: var(--white); }
.stepper-slide:nth-child(3) .slide-level-tag { background: rgba(107,92,231,0.15); color: var(--purple); }

.slide-num { font-size: 4rem; font-weight: 800; line-height: 1; margin-bottom: 0.3rem; }
.stepper-slide:nth-child(1) .slide-num { color: rgba(74,173,232,0.5); }
.stepper-slide:nth-child(2) .slide-num {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stepper-slide:nth-child(3) .slide-num { color: rgba(107,92,231,0.55); }

.slide-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.stepper-slide:nth-child(1) .slide-title { color: var(--body-text); }
.stepper-slide:nth-child(2) .slide-title { color: var(--heading); }
.stepper-slide:nth-child(3) .slide-title { color: var(--body-text); }

.slide-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.2rem; }
.stepper-slide:nth-child(1) .slide-desc { color: var(--body-text); }
.stepper-slide:nth-child(2) .slide-desc { color: var(--body-text); }
.stepper-slide:nth-child(3) .slide-desc { color: var(--body-text); }

.slide-examples { font-size: 0.85rem; line-height: 1.6; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.stepper-slide:nth-child(1) .slide-examples { color: var(--muted); }
.stepper-slide:nth-child(2) .slide-examples { color: var(--muted); }
.stepper-slide:nth-child(3) .slide-examples { color: var(--muted); }
.slide-examples strong { color: var(--body-text); display: block; margin-bottom: 0.3rem; }

/* Stepper arrows */
.stepper-frame .arrow-btn {
  position: absolute; top: 50%; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; color: rgba(255,255,255,0.25);
  transform: translateY(-50%); padding: 0;
}
.stepper-frame .arrow-btn:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}
.stepper-frame .arrow-btn:active { transform: translateY(-50%) scale(0.92); }
.stepper-frame .arrow-btn svg { width: 14px; height: 14px; fill: currentColor; }
.stepper-frame .arrow-prev { left: 0.6rem; }
.stepper-frame .arrow-next { right: 0.6rem; }

@media (max-width:600px) { .stepper-frame { min-height: 340px; } }

/* ── HERO CAROUSEL ── */
.carousel { position: relative; }
.carousel-frame {
  position: relative; overflow: hidden;
  border-radius: 20px;
  background: rgba(20, 32, 56, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(74,173,232,0.1);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.carousel-slide {
  min-width: 100%; padding: 1.5rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.carousel-slide .icon {
  width: 28px; height: 28px; fill: none; stroke-width: 1.5;
  margin-bottom: 0.75rem;
}
.carousel-slide h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--heading);
  margin-bottom: 0.4rem;
}
.carousel-slide p {
  font-size: 0.88rem; color: var(--body-text);
  line-height: 1.55; margin-bottom: 0;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; color: rgba(255,255,255,0.3);
  transform: translateY(-50%); padding: 0;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
.carousel-arrow svg { width: 16px; height: 16px; }
.carousel-prev { left: 0.6rem; }
.carousel-next { right: 0.6rem; }

/* Carousel dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); cursor: pointer;
  transition: all 0.4s; padding: 0;
}
.carousel-dot.active {
  background: var(--blue); width: 24px; border-radius: 4px;
}

@media (max-width:600px) {
  .carousel-frame { min-height: 300px; }
  .carousel-slide { padding: 2rem 1.5rem; }
}

/* ── AGENT TYPE BADGE ── */
.agent-type-badge {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(74,173,232,0.1); color: var(--blue); margin-bottom: 1rem;
}

/* ── TAG-LIGHT (pill on white/light backgrounds) ── */
.tag-light {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  background: rgba(74,173,232,0.08); color: var(--blue); border: 1px solid rgba(74,173,232,0.18);
  letter-spacing: 0.04em; text-transform: uppercase;
}
/* Tag-light on dark backgrounds — boost visibility */
.timeline-section .tag-light,
.dark .tag-light {
  background: rgba(53,135,246,0.12); color: #3587F6; border-color: rgba(53,135,246,0.2);
}

/* ── LEVEL PILLS (agents page) ── */
.level-pill {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.pill-muted { background: rgba(74,173,232,0.12); color: rgba(74,173,232,0.85); }
.pill-active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: var(--white); }
.pill-horizon { background: rgba(107,92,231,0.12); color: rgba(107,92,231,0.85); }

/* ── SCREENSHOT FRAME ── */
.agent-screenshot-frame {
  background: var(--grey-light); border-radius: 16px; padding: 0.6rem;
  border: 1px solid var(--card-border); overflow: hidden;
}
.agent-screenshot-frame img { border-radius: 12px; }
.screenshot-caption {
  text-align: center; font-size: 0.82rem; color: var(--grey-body);
  margin-top: 0.6rem; font-weight: 500;
}

/* ── SUPERVISED EXAMPLES ── */
.supervised-example {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.6rem 0.8rem; background: var(--grey-light); border-radius: 10px;
  font-size: 0.88rem; color: var(--charcoal); line-height: 1.45;
}
.supervised-example strong { color: var(--navy); }
.se-arrow { color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── POWER PLATFORM CAROUSEL ── */
.pp-carousel {
  position: relative; overflow: hidden; padding: 0 2.5rem;
}
.pp-carousel-track {
  display: flex; gap: 1rem; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.pp-card {
  flex: 0 0 calc(33.333% - 0.67rem); background: var(--glass-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 1.5rem; text-align: center;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.pp-card:hover { border-color: rgba(74,173,232,0.3); transform: translateY(-4px); }
.pp-card img { width: 48px; height: 48px; margin: 0 auto 0.8rem; }
.pp-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--heading); margin-bottom: 0.3rem; }
.pp-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.pp-arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; color: rgba(255,255,255,0.3); padding: 0;
}
.pp-arrow:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.pp-arrow svg { width: 16px; height: 16px; fill: currentColor; }
.pp-arrow-left { left: 0; }
.pp-arrow-right { right: 0; }

@media (max-width:800px) {
  .pp-card { flex: 0 0 calc(50% - 0.5rem); }
}
@media (max-width:500px) {
  .pp-card { flex: 0 0 100%; }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 26, 46, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  position: relative; max-width: 960px; width: 100%;
  background: var(--card-bg); border-radius: 16px;
  padding: 1.5rem; box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: modalSlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  border: 2px solid rgba(255,255,255,0.15);
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: var(--blue); }

/* ── HIGHLIGHT TEXT (agents hero — uses brand gradient, not gold) ── */
.highlight-text {
  display: inline;
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
}
.highlight-text::after {
  content: ''; position: absolute;
  left: -4px; right: -4px; bottom: 0.08em; height: 0.32em;
  background: linear-gradient(135deg, rgba(53,135,246,0.15), rgba(98,76,237,0.12));
  border-radius: 4px; z-index: -1;
}

/* ── AGENT NAV CARDS (hero right side) ── */
.agent-nav-cards {
  display: flex; flex-direction: column; gap: 1rem;
}
.agent-nav-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  padding: 1.4rem 1.8rem; border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-decoration: none; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.agent-nav-card:hover {
  transform: translateX(6px); border-color: rgba(74,173,232,0.3);
  background: rgba(255,255,255,0.07); color: var(--white);
}
.anc-number {
  font-size: 1.8rem; font-weight: 800; line-height: 1; min-width: 40px;
}
.anc-1 .anc-number { color: rgba(74,173,232,0.5); }
.anc-2 .anc-number {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.anc-3 .anc-number { color: rgba(107,92,231,0.5); }
.anc-content h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--heading); margin-bottom: 0.2rem;
}
.anc-content p {
  font-size: 0.92rem; color: var(--muted); line-height: 1.45;
}
.anc-arrow {
  font-size: 1.1rem; color: rgba(255,255,255,0.15); transition: all 0.3s;
}
.agent-nav-card:hover .anc-arrow { color: var(--blue); transform: translateX(4px); }
.anc-1:hover { border-color: rgba(74,173,232,0.3); }
.anc-2:hover { border-color: rgba(74,173,232,0.35); box-shadow: 0 0 30px rgba(74,173,232,0.08); }
.anc-3:hover { border-color: rgba(107,92,231,0.3); }

@media (max-width:800px) {
  .agent-nav-cards { margin-top: 1rem; }
}

/* ── HERO LEVEL STEPS (right side) ── */
.level-steps {
  display: flex; flex-direction: column; gap: 0.9rem;
}
.level-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.5rem; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-decoration: none; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.level-step:hover {
  transform: translateX(6px); border-color: rgba(74,173,232,0.3);
  background: rgba(255,255,255,0.07); color: var(--white);
}
.ls-badge {
  flex-shrink: 0; padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(74,173,232,0.12); color: rgba(74,173,232,0.7);
  margin-top: 0.15rem;
}
.ls-badge-active {
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: var(--white);
}
.ls-badge-horizon {
  background: rgba(107,92,231,0.12); color: rgba(107,92,231,0.7);
}
.ls-body h3 {
  font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.2rem;
}
.ls-body p {
  font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin: 0;
}
.ls-1:hover { border-color: rgba(74,173,232,0.3); }
.ls-2:hover { border-color: rgba(74,173,232,0.35); box-shadow: 0 0 30px rgba(74,173,232,0.08); }
.ls-3:hover { border-color: rgba(107,92,231,0.3); }

@media (max-width:800px) {
  .level-steps { margin-top: 1rem; }
}

/* ── BRIDGE TEXT ── */
.bridge-text {
  max-width: 700px; font-size: 1.15rem; font-weight: 500;
}
.max-w-narrow { max-width: 800px; }

/* Tighter spacing: bridge into flip cards */
.dark.grain + #frontier-levels { padding-top: 3rem; }
#frontier-levels { padding-bottom: 4rem; }

/* ── FLIP CARDS ── */
.flip-grid {
  perspective: 1200px;
}
.flip-card {
  height: 360px; cursor: pointer;
}
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px; padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
}
.flip-front {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.flip-back {
  background: var(--card-bg);
  border: 1px solid rgba(74,173,232,0.25);
  transform: rotateY(180deg);
  justify-content: center;
}
.flip-back h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.8rem;
}
.flip-back p {
  font-size: 0.9rem; color: var(--body-text); line-height: 1.6; margin-bottom: 0.6rem;
}
.flip-back-cta {
  margin-top: auto; padding-top: 0.8rem;
}
.flip-back-cta a {
  font-size: 0.85rem; font-weight: 600; color: var(--blue); text-decoration: none;
}
.flip-back-cta a:hover { text-decoration: underline; }

.flip-front .num-lg { margin-bottom: 0.5rem; }
.flip-front h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem;
}
.flip-front p {
  font-size: 0.9rem; color: var(--body-text); line-height: 1.55; flex-grow: 1;
}
.flip-level {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: 100px;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(74,173,232,0.1); color: rgba(74,173,232,0.6);
  margin-bottom: 0.8rem; align-self: flex-start;
}
.flip-level-active {
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: var(--white);
}
.flip-level-horizon {
  background: rgba(107,92,231,0.1); color: rgba(107,92,231,0.6);
}
.flip-hint {
  margin-top: auto; font-size: 0.75rem; color: var(--faint);
  font-weight: 500; padding-top: 0.5rem;
}
.frontier-closing { padding-top: 2rem; }
.mt-xl { margin-top: 3rem; }

/* Flip card Level 2 featured border */
#flip-2 .flip-front {
  border-color: rgba(74,173,232,0.25);
  box-shadow: 0 0 40px rgba(74,173,232,0.06);
}
/* Level 3 dashed border */
#flip-3 .flip-front {
  border-style: dashed;
}

/* Touch device: tap to flip */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

@media (max-width:800px) {
  .flip-card { height: 340px; }
  .flip-grid { gap: 1.5rem; }
  .flip-grid.g3 { grid-template-columns: 1fr; }
}

/* ── LIGHT MODE: Flip cards ── */
[data-theme="light"] .flip-front {
  background: var(--white);
  border-color: var(--card-border);
}
[data-theme="light"] .flip-back {
  background: var(--white);
  border-color: rgba(43,108,196,0.2);
}
[data-theme="light"] .flip-front h3,
[data-theme="light"] .flip-back h3 { color: var(--card-heading); }
[data-theme="light"] .flip-front p,
[data-theme="light"] .flip-back p { color: var(--card-body); }
[data-theme="light"] .flip-hint { color: var(--muted); }
[data-theme="light"] .pill-muted { background: rgba(43,108,196,0.1); color: rgba(43,108,196,0.9); }
[data-theme="light"] .pill-horizon { background: rgba(86,64,200,0.1); color: rgba(86,64,200,0.9); }
[data-theme="light"] .flip-level { background: rgba(43,108,196,0.1); color: rgba(43,108,196,0.9); }
[data-theme="light"] .flip-level-active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: var(--white); }
[data-theme="light"] .flip-level-horizon { background: rgba(86,64,200,0.1); color: rgba(86,64,200,0.9); }
[data-theme="light"] .flip-front .num-lg { opacity: 0.35; }
[data-theme="light"] .ls-badge { background: rgba(43,108,196,0.1); color: rgba(43,108,196,0.9); }
[data-theme="light"] .ls-badge-horizon { background: rgba(86,64,200,0.1); color: rgba(86,64,200,0.9); }

/* ── LIGHT MODE: Hero level steps ── */
[data-theme="light"] .level-step {
  background: rgba(0,47,97,0.04);
  border-color: rgba(0,47,97,0.1);
}
[data-theme="light"] .level-step:hover {
  background: rgba(0,47,97,0.07);
  border-color: rgba(43,108,196,0.3);
}
[data-theme="light"] .ls-body h3 { color: var(--card-heading); }
[data-theme="light"] .ls-body p { color: var(--card-body); }

/* ── STAT COUNTER CARDS ── */
.stat-cards { gap: 1.5rem; }
.stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.2rem; border-radius: 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.stat-card:hover {
  transform: translateY(-4px); border-color: rgba(74,173,232,0.3);
  background: rgba(255,255,255,0.07);
}
.stat-card .stat-num {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline;
}
.stat-card .stat-suffix {
  font-size: 2rem; font-weight: 800; display: inline;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-left: -0.1rem;
}
.stat-card .stat-num,
.stat-card .stat-suffix { display: inline; }
.stat-card > div:first-child { display: inline; }
.stat-top { display: flex; align-items: baseline; justify-content: center; margin-bottom: 0.6rem; }
.stat-card p {
  font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin: 0; text-align: center;
}

.stat-headline {
  font-size: 0.9rem; font-weight: 600; color: var(--heading); margin: 0.4rem 0 0.5rem; line-height: 1.4;
}
.stat-context {
  font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.6rem; flex-grow: 1;
}
.stat-source {
  font-size: 0.7rem; color: var(--faint); font-style: italic; margin: 0; padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-report-link {
  display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600;
  color: var(--blue); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.stat-report-link:hover { color: var(--purple); }
[data-theme="light"] .stat-headline { color: var(--card-heading); }
[data-theme="light"] .stat-context { color: var(--card-body); }
[data-theme="light"] .stat-source { color: var(--muted); border-top-color: var(--card-border); }

/* Light mode stat cards */
[data-theme="light"] .stat-card {
  background: var(--white); border-color: var(--card-border);
}
[data-theme="light"] .stat-card:hover {
  border-color: rgba(43,108,196,0.3); background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
[data-theme="light"] .stat-card p { color: var(--card-body); }

@media (max-width:900px) {
  .stat-cards.g4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width:600px) {
  .stat-cards.g4 { grid-template-columns: 1fr; }
}

/* ── BUILD SECTION (Accelerator — How We Build) ── */
.build-section {
  background: var(--surface-2); color: var(--body-text);
  position: relative;
}
[data-theme="light"] .build-section {
  background: var(--surface-2);
}
.build-section h2 { color: var(--heading); }

/* ── BUILD CARDS ── */
.build-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1.5rem; border-radius: 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}
.build-card:hover {
  transform: translateY(-4px); border-color: rgba(74,173,232,0.3);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.build-card .icon { stroke: var(--blue); margin-bottom: 0.6rem; }
.build-card h3 {
  font-size: 1.15rem; font-weight: 800; color: var(--heading);
  margin-bottom: 0.5rem;
}
.build-card p {
  font-size: 0.88rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 1.2rem; flex-grow: 1;
}
.build-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--faint); margin-bottom: 0.4rem;
}
.tech-stack {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem;
}
.tech-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--body-text);
}
.tech-badge img { width: 18px; height: 18px; flex-shrink: 0; }

/* Light mode build cards */
[data-theme="light"] .build-card {
  background: var(--white); border-color: var(--card-border);
}
[data-theme="light"] .build-card:hover {
  border-color: rgba(43,108,196,0.3); background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
[data-theme="light"] .build-card h3 { color: var(--card-heading); }
[data-theme="light"] .build-card p { color: var(--card-body); }
[data-theme="light"] .build-label { color: var(--muted); }
[data-theme="light"] .tech-badge {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08);
  color: var(--card-body);
}

/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Utilities, card variants, icons, a11y
   ══════════════════════════════════════════════════════════════ */

/* ── SECTION PADDING VARIANTS ── */
section.sec-sm { padding: var(--section-pad-sm); }

/* ── TEXT UTILITY CLASSES ── */
.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md  { font-size: var(--text-md); }
.text-lg  { font-size: var(--text-lg); }

.text-faint { color: var(--text-faint); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-mid   { color: var(--grey-body); }
.text-charcoal { color: var(--charcoal); }
.text-navy  { color: var(--navy); }
.text-blue  { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.lh-snug { line-height: 1.45; }
.lh-normal { line-height: 1.6; }
.lh-relaxed { line-height: 1.7; }

/* ── SPACING UTILITIES ── */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: 0.4rem; }
.mt-sm { margin-top: 0.8rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mt-xl { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 0.3rem; }
.mb-sm { margin-bottom: 0.6rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── MAX-WIDTH UTILITIES ── */
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 560px; }
.max-w-prose { max-width: 620px; }
.max-w-lg { max-width: 760px; }
.max-w-section { max-width: 800px; }

/* ── LAYOUT UTILITIES ── */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-col-center { display: flex; flex-direction: column; justify-content: center; }
.gap-sm { gap: 0.8rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 3rem; }

/* ── CARD VARIANTS ── */
.card-compact { padding: 1.2rem 1.4rem; }
.card-compact h3 { font-size: var(--text-base); }
.card-compact p { font-size: var(--text-sm); }

.card-stat {
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.card-stat .stat-num {
  font-size: 2.8rem; font-weight: 800; line-height: 1;
}
.card-stat .stat-label {
  font-size: var(--text-sm); color: var(--grey-mid); margin-top: 0.3rem;
}

.card-quote { padding: 2rem; }
.card-quote .quote-mark {
  font-size: 2rem; color: var(--blue); opacity: 0.3; font-family: Georgia, serif; line-height: 1;
}
.card-quote .quote-text {
  font-size: var(--text-base); color: var(--charcoal); line-height: 1.6;
  font-style: italic; margin-bottom: 1rem;
}
.card-quote .quote-name { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.card-quote .quote-role { font-size: var(--text-xs); color: var(--grey-mid); }

/* ── SVG ICON SYSTEM ── */
.icon {
  width: 32px; height: 32px; flex-shrink: 0; margin-bottom: 0.5rem;
  stroke: var(--blue); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 20px; height: 20px; margin-bottom: 0.3rem; }
.icon-lg { width: 40px; height: 40px; margin-bottom: 0.6rem; }

/* ── TWO-COLUMN SECTION LAYOUT ── */
.split-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start;
}
@media (max-width:800px) {
  .split-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.btn:focus-visible { outline-offset: 3px; }
a:focus-visible { outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 999;
  background: var(--blue); color: var(--white); padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px; font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── PROBLEM NUMBER (large decorative) ── */
.num-lg {
  font-size: 2.5rem; font-weight: 800; line-height: 1;
}
.num-xl {
  font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 0.6rem;
}

/* ── SUPERVISED AGENT HIGHLIGHT (Type 2 standout) ── */
.card-featured {
  border: 2px solid var(--blue);
  box-shadow: 0 0 40px rgba(74,173,232,0.1);
  position: relative;
}
.card-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple)); opacity: 1;
}
.card-featured:hover {
  box-shadow: 0 0 60px rgba(74,173,232,0.18);
}
.featured-badge {
  display: inline-flex; padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 1rem;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: var(--white);
}

/* ── PARTNER LOGOS (larger) ── */
.partner-row-lg img { height: 52px; opacity: 0.85; transition: 0.3s; }
.partner-row-lg img:hover { opacity: 1; }

/* ── PROJECT MODAL (about page) ── */
.projects-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 26, 46, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: modalFadeIn 0.3s ease;
}
.projects-modal-content {
  position: relative; max-width: 1080px; width: 100%;
  background: var(--card-bg); border-radius: 16px;
  padding: 2.5rem; box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  max-height: 85vh; overflow-y: auto;
  animation: modalSlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── FOOTER LOGO (larger) ── */
.ft-brand img { height: 36px; margin-bottom: 0.8rem; }

/* ── COHORT URGENCY BADGE ── */
.cohort-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: var(--text-sm); font-weight: 600;
  background: rgba(74,173,232,0.12); color: var(--blue);
  border: 1px solid rgba(74,173,232,0.2);
}

/* ── LEGAL / POLICY PAGES ── */
.legal-header {
  padding: 7.5rem 0 0.5rem; /* clears fixed nav */
  text-align: center;
}
.legal-header + section { padding-top: 1.5rem; }
.legal-header .tag-light { margin-bottom: 0.8rem; }
.legal-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--navy); line-height: 1.15; letter-spacing: -0.02em;
}

.legal-content {
  max-width: 720px; margin: 0 auto; padding: 0 2rem;
}
.legal-content h2 {
  font-size: 1.3rem; font-weight: 800; color: var(--navy);
  margin-top: 2.5rem; margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.legal-content h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-top: 2rem; margin-bottom: 0.5rem;
}
.legal-content p {
  font-size: 0.95rem; color: var(--charcoal); line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem;
}
.legal-content li {
  font-size: 0.95rem; color: var(--charcoal); line-height: 1.7;
  margin-bottom: 0.35rem;
}
.legal-content strong { color: var(--navy); }
.legal-content .legal-meta {
  font-size: 0.85rem; color: var(--grey-body); margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--card-border);
}
.legal-content .legal-meta p { font-size: 0.85rem; color: var(--grey-body); margin-bottom: 0.3rem; }

/* ══════════════════════════════════════════════════════════════
   ACCELERATOR PAGE — unique light-hero product landing feel
   ══════════════════════════════════════════════════════════════ */

/* Light hero — white/light bg, dark text, overrides the dark .hero defaults */
.hero-light {
  background: var(--surface-2); color: var(--card-body);
  padding: 9.5rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero-light .hero-mesh {
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(74,173,232,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(107,92,231,0.05) 0%, transparent 50%);
}
.hero-light .wrap { position: relative; z-index: 2; }
.hero-light h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15;
  color: var(--card-heading); letter-spacing: -0.02em; margin-bottom: 1.5rem;
}

/* Pillar cards — elevated, gradient bar always visible */
.card-pillar {
  background: var(--card-bg); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--card-border); position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}
.card-pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}
.card-pillar:hover {
  transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.card-pillar h3 { font-size: 1.05rem; font-weight: 700; color: var(--card-heading); margin-bottom: 0.4rem; }
.card-pillar p { font-size: var(--text-sm); color: var(--card-body); line-height: 1.55; }
.card-pillar .icon { stroke: var(--blue); margin-bottom: 0.6rem; }

/* Centred CTA in hero */
.hero-cta-center {
  display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Cohort badge on light bg */
.cohort-badge-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.1rem; border-radius: 100px;
  font-size: var(--text-sm); font-weight: 600;
  background: rgba(74,173,232,0.08); color: var(--blue);
  border: 1px solid rgba(74,173,232,0.18);
}

/* Timeline on dark (gives strong contrast after the light hero) */
.timeline-section {
  background: var(--section-dark-bg); color: var(--heading);
  padding: 5rem 0; position: relative; overflow: hidden;
}
.timeline-section .label { color: var(--blue); }
.timeline-section h2 { color: var(--heading); }
.timeline-section .tl-node h4 { color: var(--heading); }
.timeline-section .tl-node p { color: var(--body-text); }
.timeline-section .callout {
  background: var(--glass-bg);
  border-color: var(--border-accent);
}
.timeline-section .callout h3 { color: var(--heading); }
.timeline-section .callout p { color: var(--body-text); }

/* ── LIGHT THEME COMPONENT OVERRIDES ── */
[data-theme="light"] .card {
  background: var(--white);
  border-color: var(--card-border);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 16px 48px rgba(0,47,97,0.08);
}
[data-theme="light"] .btn-outline {
  border-color: rgba(0,47,97,0.2);
  color: var(--heading);
}
[data-theme="light"] .btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
[data-theme="light"] .btn-ghost {
  border-color: var(--card-border);
  color: var(--card-body);
}
[data-theme="light"] .tab {
  border-color: var(--card-border);
  color: var(--card-body);
}
[data-theme="light"] .tab.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
[data-theme="light"] .tags span {
  background: #EBF0F5;
  color: var(--card-heading);
}
[data-theme="light"] .tech-i {
  background: var(--white);
  border-color: var(--card-border);
}
[data-theme="light"] .tech-pill {
  background: #EBF0F5;
  color: var(--card-heading);
  border-color: var(--card-border);
}
[data-theme="light"] .int-tile {
  background: var(--white);
  border-color: var(--card-border);
}
[data-theme="light"] .note {
  background: #EBF0F5;
  border-left-color: var(--blue);
}
[data-theme="light"] .callout {
  background: rgba(43,108,196,0.06);
  border-color: rgba(43,108,196,0.15);
}
[data-theme="light"] .callout h3 { color: var(--card-heading); }
[data-theme="light"] .callout p { color: var(--card-body); }
[data-theme="light"] .del-item {
  background: var(--white);
  border-color: var(--card-border);
}
[data-theme="light"] .supervised-example {
  background: #EBF0F5;
}
[data-theme="light"] .cohort-badge-light {
  background: rgba(43,108,196,0.08);
  color: var(--blue);
  border-color: rgba(43,108,196,0.18);
}
[data-theme="light"] .agent-screenshot-frame {
  background: #EBF0F5;
  border-color: var(--card-border);
}
/* ── Light theme — hero, .dark, .cta-band all go white with dark text ── */
[data-theme="light"] .hero {
  background: var(--white);
  color: var(--card-body);
}
[data-theme="light"] .hero h1 { color: var(--card-heading); }
[data-theme="light"] .hero p,
[data-theme="light"] .hero .hero-split .hero-left p { color: var(--card-body); }
[data-theme="light"] .hero .tag {
  background: rgba(43,108,196,0.08);
  color: var(--blue);
  border-color: rgba(43,108,196,0.18);
}
/* .dark sections flip to white in light mode */
[data-theme="light"] .dark {
  background: var(--white);
  color: var(--card-body);
}
[data-theme="light"] .dark h2.sec { color: var(--card-heading); }
[data-theme="light"] .dark p { color: var(--card-body); }
[data-theme="light"] .dark .tag {
  background: rgba(43,108,196,0.08);
  color: var(--blue);
  border-color: rgba(43,108,196,0.18);
}
[data-theme="light"] .dark .glass {
  background: var(--white);
  border-color: var(--card-border);
}
[data-theme="light"] .dark .glass h3 { color: var(--card-heading); }
[data-theme="light"] .dark .glass p { color: var(--card-body); }
/* CTA band — keep dark navy for visual anchor */
[data-theme="light"] .cta-band {
  background: var(--brand-navy);
  color: #E8ECF1;
}
[data-theme="light"] .cta-band h2 { color: #E8ECF1; }
[data-theme="light"] .cta-band p { color: #B8C0CE; }
/* Timeline section — white */
[data-theme="light"] .timeline-section {
  background: var(--white);
  color: var(--card-body);
}
[data-theme="light"] .timeline-section h2 { color: var(--card-heading); }
[data-theme="light"] .timeline-section .tl-node h4 { color: var(--card-heading); }
[data-theme="light"] .timeline-section .tl-node p { color: var(--card-body); }
[data-theme="light"] .timeline-section .callout {
  background: rgba(43,108,196,0.06);
  border-color: rgba(43,108,196,0.15);
}
[data-theme="light"] .timeline-section .callout h3 { color: var(--card-heading); }
[data-theme="light"] .timeline-section .callout p { color: var(--card-body); }
/* Nav links — dark on white header */
[data-theme="light"] nav a { color: #3D4F65; }
[data-theme="light"] nav a:hover,
[data-theme="light"] nav a.on { color: var(--brand-navy); }
/* Alt sections — very subtle grey */
[data-theme="light"] .alt {
  background: #F7F8FA;
  color: var(--card-body);
}
[data-theme="light"] .alt h2.sec { color: var(--card-heading); }
[data-theme="light"] .alt p.intro { color: var(--card-body); }
/* Footer stays dark */
[data-theme="light"] footer {
  background: var(--brand-navy);
  color: #B8C0CE;
  border-top-color: rgba(255,255,255,0.08);
}
[data-theme="light"] footer h4 { color: #7EC8FF; }
[data-theme="light"] footer p { color: #9AAABB; }
[data-theme="light"] footer a { color: #9AAABB; }
[data-theme="light"] footer a:hover { color: #E8ECF1; }
[data-theme="light"] .ft-bottom p { color: rgba(255,255,255,0.65); }
/* Score bars on light */
[data-theme="light"] .sc-bar { background: #E2E6EC; }
[data-theme="light"] .sc-bar span { color: var(--card-heading); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.3s; padding: 0; color: rgba(255,255,255,0.5);
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.theme-toggle:hover svg { transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle {
  background: rgba(0,47,97,0.06);
  border-color: rgba(0,47,97,0.12);
  color: var(--brand-navy);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,47,97,0.10);
  color: var(--brand-navy);
}

/* ── LOGO SWAP ── */
.logo-colour { display: none; }
.logo-white { display: block; }
[data-theme="light"] .logo-colour { display: block; }
[data-theme="light"] .logo-white { display: none; }
/* Footer always shows white logo regardless of theme */
footer .logo-colour { display: none !important; }
footer .logo-white { display: block !important; }

/* ── LIGHT THEME — extra overrides ── */
/* Text-white utility — flip to dark navy inside flipped sections */
[data-theme="light"] .dark .text-white,
[data-theme="light"] .hero .text-white { color: var(--card-heading); }
[data-theme="light"] .dark .text-faint { color: var(--card-body); }
/* Team card tag inside .dark */
[data-theme="light"] .dark .tag {
  background: rgba(43,108,196,0.08);
  color: var(--blue);
  border-color: rgba(43,108,196,0.18);
}
/* Team avatar text colour */
[data-theme="light"] .avatar {
  border-color: var(--blue);
}
/* Suppress grain & mesh on white backgrounds (except CTA band which stays dark) */
[data-theme="light"] .grain::after { opacity: 0; }
[data-theme="light"] .cta-band.grain::after { opacity: 0.035; }
[data-theme="light"] .hero-mesh { opacity: 0; }
/* Buttons on white hero */
[data-theme="light"] .hero .btn-outline {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}
[data-theme="light"] .hero .btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
/* Carousel on white */
[data-theme="light"] .carousel-slide {
  background: #F7F8FA;
  border-color: var(--card-border);
}
[data-theme="light"] .carousel-slide h3 { color: var(--card-heading); }
[data-theme="light"] .carousel-slide p { color: var(--card-body); }
[data-theme="light"] .carousel-arrow {
  background: rgba(0,47,97,0.06);
  border-color: rgba(0,47,97,0.1);
  color: var(--brand-navy);
}
[data-theme="light"] .carousel-dot {
  background: rgba(0,47,97,0.15);
}
[data-theme="light"] .carousel-dot.active {
  background: var(--blue);
}
/* Team avatar rings */
[data-theme="light"] .avatar-circle {
  border-color: var(--blue);
}
/* Section headings on white */
[data-theme="light"] h2.sec { color: var(--card-heading); }
[data-theme="light"] p.intro { color: var(--card-body); }
/* Partner credential pills on white */
[data-theme="light"] .cred-pill {
  background: #F0F2F5;
  color: var(--card-heading);
  border-color: var(--card-border);
}
/* Agent type tags */
[data-theme="light"] .tag-light {
  background: rgba(43,108,196,0.08);
  color: var(--blue);
  border-color: rgba(43,108,196,0.18);
}
/* Stat cards (About page hero) */
[data-theme="light"] .stat-card {
  background: #F7F8FA;
  border-color: var(--card-border);
}
[data-theme="light"] .stat-card .stat-num { color: var(--blue); }
[data-theme="light"] .stat-card .stat-label { color: var(--card-body); }
/* Project cards */
[data-theme="light"] .proj {
  background: var(--white);
  border-color: var(--card-border);
}
/* Header border on white */
[data-theme="light"] .site-header {
  border-bottom-color: rgba(0,47,97,0.06);
}
/* CTA band stays dark — ensure buttons/text inside stay light */
[data-theme="light"] .cta-band .btn-glow { color: var(--white); }
[data-theme="light"] .cta-band .btn-outline {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
/* Numbered steps (Home/Agents pages) */
[data-theme="light"] .step-num {
  color: var(--blue);
}
/* Hero-light (Accelerator) */
[data-theme="light"] .hero-light {
  background: var(--white);
}
[data-theme="light"] .hero-light h1 { color: var(--card-heading); }
/* Card-pillars need visible borders on white bg */
[data-theme="light"] .card-pillar {
  background: var(--white);
  border: 1px solid #E2E6EC;
  box-shadow: 0 2px 12px rgba(0,47,97,0.06);
}
[data-theme="light"] .card-pillar:hover {
  box-shadow: 0 12px 36px rgba(0,47,97,0.10);
}
[data-theme="light"] .card-pillar h3 { color: var(--card-heading); }
[data-theme="light"] .card-pillar p { color: var(--card-body); }

/* ── SMOOTH THEME TRANSITION ── */
/* Applied via class so it only activates after first toggle, avoiding interference with page-load animations */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ══════════════════════════════════════════════════════════════
   AGENTS PAGE — Tabs, Video, Stats Strip
   ══════════════════════════════════════════════════════════════ */

/* ── AGENT TAB SECTION ── */
.agent-tabs-section {
  padding: 0 0 2rem;
  background: var(--section-alt-bg);
}

/* ── TAB BAR ── */
.agent-tab-bar {
  display: flex; gap: 0.6rem;
  padding: 1.2rem 0;
  margin-bottom: 0;
  justify-content: center;
}
.agent-tab {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  color: var(--muted);
  transition: all 0.3s ease;
}
.agent-tab:hover {
  color: var(--heading);
  border-color: rgba(53,135,246,0.3);
  background: rgba(53,135,246,0.06);
}
.agent-tab.active {
  color: var(--heading);
  background: rgba(53,135,246,0.1);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(53,135,246,0.1);
}
.agent-tab-num {
  font-size: 0.75rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: var(--muted);
  transition: all 0.3s;
}
.agent-tab.active .agent-tab-num {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

/* ── TAB PANELS ── */
.agent-tab-panels {
  position: relative;
}
.agent-tab-panel {
  display: none;
  padding: 3rem 0 1rem;
  animation: tabFadeIn 0.35s ease;
}
.agent-tab-panel.active {
  display: block;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Split layout inside panels */
.agent-tab-panel .split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
@media (max-width:800px) {
  .agent-tab-panel .split-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── LIGHT MODE: Tab bar ── */
[data-theme="light"] .agent-tab {
  background: rgba(0,47,97,0.03);
  border-color: rgba(0,47,97,0.1);
}
[data-theme="light"] .agent-tab:hover {
  background: rgba(43,108,196,0.06);
  border-color: rgba(43,108,196,0.25);
}
[data-theme="light"] .agent-tab.active {
  color: var(--card-heading);
  background: rgba(43,108,196,0.08);
  border-color: var(--blue);
}
[data-theme="light"] .agent-tab-num {
  background: rgba(0,47,97,0.06);
}

/* ── RESPONSIVE TABS → STACKED ON MOBILE ── */
@media (max-width:600px) {
  .agent-tab-bar {
    flex-direction: column;
    gap: 0.4rem;
  }
  .agent-tab {
    justify-content: flex-start;
    padding: 0.8rem 1.2rem;
    width: 100%;
  }
}

/* ── VIDEO SECTION ── */
.video-section {
  padding: 2rem 0 4rem;
  background: var(--section-alt-bg);
}
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── STATS STRIP ── */
.stats-strip {
  padding: 4rem 0;
  background: var(--section-dark-bg);
  border-top: 1px solid var(--border);
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stats-strip-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stats-strip-number {
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--grad-text-start), var(--grad-text-end));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.stats-strip-label {
  font-size: 0.88rem; color: var(--body-text); line-height: 1.5;
  margin-bottom: 0.5rem;
}
.stats-strip-source {
  font-size: 0.72rem; color: var(--faint); font-style: italic;
}

/* Light mode stats strip */
[data-theme="light"] .stats-strip {
  background: #F7F8FA;
  border-top-color: var(--card-border);
}
[data-theme="light"] .stats-strip-label { color: var(--card-body); }
[data-theme="light"] .stats-strip-source { color: var(--muted); }

@media (max-width:900px) {
  .stats-strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width:500px) {
  .stats-strip-grid { grid-template-columns: 1fr; }
  .stats-strip-number { font-size: 1.8rem; }
}

/* ── FEATURED BADGE (agents page) ── */
.featured-badge {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.9rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
}

/* ── CONTACT MODAL ── */
.contact-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.contact-modal-overlay.active { opacity: 1; visibility: visible; }
.contact-modal {
  position: relative; width: 90vw; max-width: 600px; height: 80vh; max-height: 700px;
  background: var(--surface-2); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; overflow: hidden;
  transform: translateY(20px); transition: transform 0.3s;
}
.contact-modal-overlay.active .contact-modal { transform: translateY(0); }
.contact-modal iframe { width: 100%; height: 100%; border: none; }
.contact-modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.contact-modal-close:hover { background: rgba(0,0,0,0.7); }
[data-theme="light"] .contact-modal {
  background: #fff; border-color: #E2E6EC;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
[data-theme="light"] .contact-modal-close {
  background: rgba(0,0,0,0.08); border-color: #E2E6EC; color: #3D4F65;
}
[data-theme="light"] .contact-modal-close:hover { background: rgba(0,0,0,0.15); }
