/* ==========================================================================
   Integrable Ghana — "Equatorial Intelligence" design system (see Design.md)
   ========================================================================== */
:root {
  /* Primary & accent */
  --primary: #082F32;
  --primary-container: #0E4B50;
  --primary-light: #14727A;
  --secondary: #0D9488;
  --secondary-hover: #0F766E;
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;

  /* Light surfaces */
  --surface: #FAF8FF;
  --surface-bright: #FFFFFF;
  --surface-container-low: #F2F3FF;
  --surface-container: #EAEBFC;
  --surface-container-high: #E1E4F5;
  --surface-container-highest: #D7DCF0;

  /* Dark surfaces */
  --surface-dark: #06181B;
  --surface-dark-card: #0C2428;
  --surface-dark-border: #153C42;
  --surface-dark-text: #F0FDFA;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-dark-secondary: #A7C4C2;

  /* Shape & elevation */
  --r-control: 8px;
  --r-card: 16px;
  --r-hero: 24px;
  --border: 1px solid rgba(8, 47, 50, 0.08);
  --border-dark: 1px solid rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 20px 25px -5px rgba(8, 47, 50, 0.04), 0 8px 10px -6px rgba(8, 47, 50, 0.02);

  /* Type */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text-secondary); background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--secondary-hover); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-primary); margin: 0 0 .5em; }
h1 { font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.body-lg { font-size: 1.125rem; line-height: 1.6; }
code { font-family: var(--font-mono); font-size: .8125rem; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-control); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(1280px, 100% - 64px); margin-inline: auto; }
.section { padding: 112px 0; }
.section.tint { background: var(--surface-container-low); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { font-size: 1.125rem; margin: 0; }

/* Overline */
.overline { display: block; font-size: .75rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--secondary); margin-bottom: 16px; }
.overline-dark { color: var(--accent-cyan); }

/* Icons (Phosphor, 256 viewBox, filled) */
.i { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--r-control); font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.5; border: 1.5px solid transparent; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn .i { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-container); color: var(--text-inverse); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--surface-container-low); color: var(--primary); }
.btn-accent { background: var(--secondary); color: var(--text-inverse); }
.btn-accent:hover { background: var(--secondary-hover); color: var(--text-inverse); box-shadow: 0 8px 20px -6px rgba(13, 148, 136, .5); }
.btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .24); color: var(--surface-dark-text); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-block { width: 100%; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.badge-dark { background: rgba(6, 182, 212, .1); color: #67E8F9; border: 1px solid rgba(6, 182, 212, .25); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: flex-end; gap: 10px; perspective: 600px; }
.brand-logo { height: 52px; width: auto; display: block; transition: transform 500ms var(--ease); transform-origin: left center; }
.brand:hover .brand-logo { transform: rotateY(-12deg) rotateX(5deg); }
.brand-sub { font-family: var(--font-display); font-weight: 700; font-size: .6875rem; letter-spacing: .32em; color: var(--primary-light); padding-bottom: 6px; }
.brand.light .brand-sub { color: var(--accent-cyan); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a:not(.btn) { color: var(--text-primary); font-size: .9375rem; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--secondary); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: var(--r-control); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--surface-dark); color: var(--text-dark-secondary); padding: 104px 0 112px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(800px 480px at 85% 10%, rgba(13, 148, 136, .22), transparent 70%),
  radial-gradient(600px 400px at 0% 100%, rgba(6, 182, 212, .10), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); }
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.hero h1 { color: var(--text-inverse); margin: 24px 0 24px; }
.hero .lead { font-size: 1.125rem; line-height: 1.6; max-width: 560px; color: var(--text-dark-secondary); margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-trust { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: var(--border-dark); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .875rem; font-weight: 500; color: var(--surface-dark-text); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .i { width: 16px; height: 16px; color: var(--accent-cyan); }

.hero-panel { background: rgba(255, 255, 255, .05); border: var(--border-dark); border-radius: var(--r-hero); padding: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .6); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--surface-dark-text); }
.panel-title .i { width: 20px; height: 20px; color: var(--accent-cyan); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; color: #6EE7B7; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .25); padding: 4px 10px; border-radius: 9999px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #34D399; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.panel-chart { background: var(--surface-dark-card); border: 1px solid var(--surface-dark-border); border-radius: var(--r-card); padding: 16px 0 0; height: 200px; overflow: hidden; }
.panel-chart svg { width: 100%; height: 100%; display: block; }
.gridlines path { stroke: rgba(255, 255, 255, .06); stroke-width: 1; fill: none; }
.panel-chart .line { fill: none; stroke: var(--accent-cyan); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s .2s var(--ease) forwards; }
.panel-chart .line-2 { fill: none; stroke: var(--secondary); stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; opacity: .8; }
.panel-chart .area { opacity: 0; animation: fade 1.2s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-card); padding: 16px; }
.stat-value { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--accent-cyan); letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 6px; font-size: .8125rem; line-height: 1.4; color: var(--text-dark-secondary); }
.panel-foot { margin-top: 16px; padding-top: 14px; border-top: var(--border-dark); }
.panel-foot code { color: var(--text-muted); }

/* ---------- Proof strip ---------- */
.proof { background: var(--surface-bright); border-bottom: var(--border); }
.proof-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0; }
.proof p { margin: 0; font-size: .9375rem; color: var(--text-secondary); }
.proof strong { color: var(--text-primary); font-weight: 600; }
.proof-links { display: flex; gap: 12px; flex-wrap: wrap; }
.proof-links a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: var(--border); border-radius: var(--r-control); background: var(--surface); color: var(--text-primary); font-weight: 600; font-size: .9375rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.proof-links a:hover { border-color: var(--secondary); box-shadow: var(--shadow-md); }
.proof-links .i { width: 20px; height: 20px; color: var(--secondary); }

/* ---------- Cards ---------- */
.card { background: var(--surface-bright); border: var(--border); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card h3 { margin: 20px 0 8px; }
.card p { margin: 0; font-size: .9375rem; line-height: 1.6; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(13, 148, 136, .25); }
.icon-tile { width: 44px; height: 44px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--surface-container-low); color: var(--secondary); flex-shrink: 0; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.icon-tile .i { width: 24px; height: 24px; }
.card-hover:hover .icon-tile { background: var(--secondary); color: #fff; }
.icon-tile.dark { background: rgba(6, 182, 212, .1); color: var(--accent-cyan); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.section.tint .card { box-shadow: var(--shadow-card); }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-copy p { max-width: 520px; }

/* ---------- Services ---------- */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-container); border-radius: 12px; margin-bottom: 40px; }
.seg { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; color: var(--text-secondary); background: transparent; border: 0; padding: 10px 20px; border-radius: var(--r-control); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.seg:hover { color: var(--text-primary); }
.seg.active { background: var(--surface-bright); color: var(--primary); box-shadow: var(--shadow-md); }
.tab-panel { animation: panelIn 400ms var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Products (dark) ---------- */
.section.dark { background: var(--surface-dark); color: var(--text-dark-secondary); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--text-inverse); }
.section.dark .overline { color: var(--accent-cyan); }
.feature-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: var(--surface-dark-text); font-size: .9375rem; }
.feature-list .i { width: 18px; height: 18px; color: var(--accent-cyan); }
.spec { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.spec code { padding: 4px 10px; border-radius: 6px; background: var(--surface-dark-card); border: 1px solid var(--surface-dark-border); color: #99F6E4; }
.mock { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F5F9; font-size: .75rem; color: var(--text-secondary); font-family: var(--font-mono); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 22px; }
.mock-profile { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan)); flex-shrink: 0; }
.lines { flex: 1; }
.lines b, .lines s { display: block; height: 10px; border-radius: 6px; background: #E2E8F0; margin-bottom: 7px; }
.lines b { background: var(--text-primary); width: 60%; height: 12px; }
.lines .short { width: 45%; }
.mock-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mock-metrics div { background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; padding: 10px; }
.mock-metrics strong { display: block; font-size: .6875rem; color: var(--text-secondary); font-weight: 600; }
.mock-metrics em { display: block; height: 12px; width: 50%; margin-top: 6px; border-radius: 4px; background: var(--secondary); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mock-chart span { flex: 1; background: linear-gradient(to top, var(--secondary), var(--accent-cyan)); border-radius: 4px 4px 0 0; }
.chat .mock-body { display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.bubble { padding: 10px 14px; border-radius: 12px; font-size: .875rem; max-width: 85%; line-height: 1.45; }
.bubble.bot { background: #F1F5F9; color: var(--text-primary); border-bottom-left-radius: 4px; }
.bubble.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; background: #F1F5F9; border-radius: 12px; width: fit-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
/* Sliding flyer panel */
.flyer-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.flyer-head .section-head { margin-bottom: 0; }
.flyer-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.flyer-count { font-family: var(--font-mono); font-size: .875rem; color: var(--text-muted); margin-right: 8px; }
.flyer-count b { color: var(--text-inverse); font-weight: 500; }
.flyer-arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-control); border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--text-inverse); cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.flyer-arrow:hover { background: rgba(255, 255, 255, .08); border-color: var(--accent-cyan); }
.flyer-arrow:active { transform: scale(.96); }
.flyer-arrow .i { width: 18px; height: 18px; }

.flyer { position: relative; }
.flyer-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-hero); }
.flyer-track::-webkit-scrollbar { display: none; }
.flyer-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; min-height: 560px; padding: 56px; border-radius: var(--r-hero); border: 1px solid var(--surface-dark-border); }
.flyer-slide::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 68%); }
.flyer-slide::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 35%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); }
.theme-pine { background: linear-gradient(135deg, var(--primary-container) 0%, var(--surface-dark-card) 62%); --glow: rgba(13, 148, 136, .35); }
.theme-cyan { background: linear-gradient(135deg, #0B3A45 0%, var(--surface-dark-card) 62%); --glow: rgba(6, 182, 212, .32); }
.theme-teal { background: linear-gradient(135deg, #0F5A57 0%, var(--surface-dark-card) 62%); --glow: rgba(45, 212, 191, .28); }

.flyer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.state.live { color: #6EE7B7; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .28); }
.state.dev { color: #FCD34D; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); }
.kind { font-size: .875rem; font-weight: 500; color: var(--text-dark-secondary); }
.flyer-title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; color: var(--text-inverse); }
.flyer-product { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--accent-cyan); margin-bottom: 16px; }
.dark .flyer-copy > p:not(.flyer-product) { max-width: 520px; color: var(--text-dark-secondary); }
.flyer-copy .feature-list { margin: 24px 0 0; }
.flyer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.flyer-actions .spec { margin: 0; }
.flyer-visual { display: grid; place-items: center; min-height: 380px; }

/* Slide entrance (only once JS has initialised the carousel) */
.flyer.ready .flyer-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.flyer.ready .flyer-visual > * { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity 700ms var(--ease) 150ms, transform 700ms var(--ease) 150ms; }
.flyer.ready .is-active .flyer-copy > *, .flyer.ready .is-active .flyer-visual > * { opacity: 1; transform: none; }
.flyer.ready .is-active .flyer-copy > :nth-child(2) { transition-delay: 60ms; }
.flyer.ready .is-active .flyer-copy > :nth-child(3) { transition-delay: 120ms; }
.flyer.ready .is-active .flyer-copy > :nth-child(4) { transition-delay: 180ms; }
.flyer.ready .is-active .flyer-copy > :nth-child(5) { transition-delay: 240ms; }
.flyer.ready .is-active .flyer-copy > :nth-child(6) { transition-delay: 300ms; }

/* Progress dots */
.flyer-dots { display: flex; gap: 8px; margin-top: 28px; }
.flyer-dot { position: relative; width: 56px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.flyer-dot::before, .flyer-dot::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 9999px; }
.flyer-dot::before { background: rgba(255, 255, 255, .16); transition: background var(--dur) var(--ease); }
.flyer-dot:hover::before { background: rgba(255, 255, 255, .3); }
.flyer-dot::after { background: var(--accent-cyan); transform: scaleX(0); transform-origin: left; }
.flyer-dot.active::after { transform: scaleX(1); }
.flyer.autoplay .flyer-dot.active::after { animation: flyerProgress var(--flyer-interval, 7000ms) linear forwards; }
.flyer.paused .flyer-dot.active::after { animation-play-state: paused; }
@keyframes flyerProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Sector flyer (light theme) */
.flyer-light .flyer-count b { color: var(--text-primary); }
.flyer-light .flyer-arrow { color: var(--text-primary); border-color: rgba(8, 47, 50, .16); background: var(--surface-bright); }
.flyer-light .flyer-arrow:hover { background: var(--surface-container-low); border-color: var(--secondary); }
.sector-slide { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0; align-items: stretch; min-height: 540px; padding: 12px; background: var(--surface-bright); border: var(--border); border-radius: var(--r-hero); box-shadow: var(--shadow-card); }
.sector-slide::before, .sector-slide::after { content: none; }
.sector-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 48px 40px 36px; }
.sector-title { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 24px 0 12px; }
.sector-line { font-size: 1.125rem; line-height: 1.55; color: var(--text-secondary); max-width: 420px; margin: 0; }
.sector-list { list-style: none; padding: 24px 0 0; margin: 24px 0 32px; border-top: var(--border); display: grid; gap: 12px; width: 100%; }
.sector-list li { display: flex; align-items: center; gap: 12px; color: var(--text-primary); font-weight: 500; font-size: .9375rem; }
.sector-list .i { width: 18px; height: 18px; color: var(--secondary); }
.sector-media { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-dark); min-height: 360px; }
.sector-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1200ms var(--ease); }
.is-active .sector-media img { transform: scale(1); }
.media-chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; background: rgba(6, 24, 27, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--surface-dark-text); font-size: .8125rem; font-weight: 600; }
.flyer.ready .sector-slide .sector-media { opacity: 1; transform: none; }

/* Sector tabs: icon + name, doubling as autoplay progress */
.sector-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.flyer-tab { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; border-radius: 12px; border: var(--border); background: var(--surface-bright); color: var(--text-secondary); font-family: var(--font-body); font-size: .8125rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.flyer-tab .i { width: 22px; height: 22px; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.flyer-tab:hover { color: var(--text-primary); border-color: rgba(13, 148, 136, .3); }
.flyer-tab.active { color: var(--primary); border-color: var(--secondary); box-shadow: var(--shadow-md); }
.flyer-tab.active .i { color: var(--secondary); }
.flyer-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--secondary); transform: scaleX(0); transform-origin: left; }
.flyer-tab.active::after { transform: scaleX(1); }
.flyer.autoplay .flyer-tab.active::after { animation: flyerProgress var(--flyer-interval, 7000ms) linear forwards; }
.flyer.paused .flyer-tab.active::after { animation-play-state: paused; }

/* Mock: academic advisor */
.mock-label { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; }
.mock-label .i { width: 18px; height: 18px; color: var(--secondary); }
.path-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #EEF2F7; }
.path-row .lines b, .path-row .lines s { margin-bottom: 6px; }
.path-row .lines s:last-child { margin-bottom: 0; }
.path-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CBD5E1; flex-shrink: 0; }
.path-dot.done { border-color: var(--secondary); background: var(--secondary); box-shadow: inset 0 0 0 2px #fff; }
.match { display: block; width: 72px; height: 6px; border-radius: 9999px; background: #E2E8F0; position: relative; overflow: hidden; flex-shrink: 0; }
.match::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--secondary), var(--accent-cyan)); border-radius: inherit; }

/* Mock: document extraction */
.doc-flow { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 480px; }
.doc-page { flex: 0 0 42%; aspect-ratio: 3 / 4; background: #fff; border-radius: 10px; padding: 18px 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 9px; transform: rotate(-3deg); }
.doc-page s, .doc-page .hl { display: block; height: 8px; border-radius: 4px; background: #E2E8F0; }
.doc-page .short { width: 60%; }
.doc-page .hl { height: 12px; background: rgba(6, 182, 212, .25); outline: 1.5px solid rgba(6, 182, 212, .7); outline-offset: 2px; }
.doc-page .hl.short { width: 55%; }
.doc-arrow { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); color: #fff; box-shadow: 0 0 0 6px rgba(13, 148, 136, .2); }
.doc-arrow .i { width: 18px; height: 18px; }
.doc-table { flex: 1; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.doc-th { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #F1F5F9; font-size: .75rem; font-weight: 600; color: var(--text-primary); }
.doc-th .i { width: 16px; height: 16px; color: var(--secondary); }
.doc-tr { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid #EEF2F7; }
.doc-tr span { font-size: .6875rem; font-weight: 600; color: var(--text-secondary); }
.doc-tr em { display: block; height: 8px; width: 78%; border-radius: 4px; background: var(--secondary); opacity: .85; }

/* Mock: insight dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis div { background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; padding: 10px; }
.kpis strong { display: block; font-size: .6875rem; font-weight: 600; color: var(--text-secondary); }
.kpis em { display: block; height: 12px; width: 58%; margin-top: 6px; border-radius: 4px; background: var(--primary); }
.mini-line { display: block; width: 100%; height: 90px; margin-bottom: 12px; }
.mini-line path { fill: none; stroke: var(--accent-cyan); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mini-line .base { stroke: #CBD5E1; stroke-dasharray: 4 5; stroke-width: 1.5; }
.mock-chart.short { height: 64px; }

/* ---------- Academy ---------- */
.academy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.academy-layout .body-lg { margin-bottom: 32px; max-width: 500px; }
.course-card { background: var(--surface-bright); border: var(--border); border-radius: var(--r-hero); padding: 32px; box-shadow: var(--shadow-card); }
.course-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; border-bottom: var(--border); }
.course-head h3 { margin: 0 0 4px; }
.course-head p { margin: 0; font-size: .875rem; }
.course-list { list-style: none; padding: 0; margin: 8px 0 0; }
.course-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: var(--border); font-weight: 500; color: var(--text-primary); }
.course-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.course-list .i { width: 18px; height: 18px; color: var(--secondary); }

/* ---------- Approach ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; padding: 28px 24px; background: var(--surface-bright); border: var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.steps li::after { content: ""; position: absolute; top: 44px; right: -25px; width: 26px; height: 1.5px; background: var(--surface-container-highest); }
.steps li:last-child::after { display: none; }
.step-num { display: inline-block; font-family: var(--font-mono); font-size: .8125rem; color: var(--secondary); background: var(--surface-container-low); padding: 3px 8px; border-radius: 6px; }
.steps h3 { margin: 16px 0 8px; font-size: 1.125rem; }
.steps p { margin: 0; font-size: .875rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq { background: var(--surface-bright); border: var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 8px 28px; }
details + details { border-top: var(--border); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); transition: color var(--dur) var(--ease); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--secondary); }
summary .i { width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
details[open] summary .i { transform: rotate(180deg); color: var(--secondary); }
details p { margin: 0; padding: 0 40px 20px 0; font-size: .9375rem; }

/* ---------- Contact ---------- */
.contact { background: var(--surface-dark); color: var(--text-dark-secondary); position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 420px at 10% 100%, rgba(13, 148, 136, .2), transparent 70%); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.contact-info h2 { color: var(--text-inverse); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; color: var(--surface-dark-text); font-size: .9375rem; }
.contact-list small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-list a { color: var(--surface-dark-text); }
.contact-list a:hover { color: var(--accent-cyan); }
.contact-form { background: var(--surface-bright); border-radius: var(--r-hero); padding: 40px; box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .5); }
.contact-form h3 { margin-bottom: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .875rem; font-weight: 500; color: var(--text-primary); margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-size: .9375rem; color: var(--text-primary); background: var(--surface); border: 1px solid var(--surface-container-highest); border-radius: var(--r-control); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border: 1.5px solid var(--secondary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.contact-form .invalid { border-color: #DC2626; }
.form-note { margin: 12px 0 0; font-size: .875rem; text-align: center; min-height: 1.3em; }
.form-note.ok { color: var(--secondary-hover); } .form-note.err { color: #DC2626; }

/* ---------- Footer ---------- */
.site-footer { background: #041113; color: var(--text-muted); padding: 72px 0 32px; border-top: 1px solid var(--surface-dark-border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: .9375rem; }
.footer-grid h4 { color: var(--text-inverse); font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-grid > div > a { display: block; color: var(--text-muted); font-size: .9375rem; margin-bottom: 12px; }
.footer-grid > div > a:hover { color: var(--accent-cyan); }
.footer-addr { font-size: .9375rem; line-height: 1.9; }
.footer-addr a { color: var(--accent-cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--surface-dark-border); font-size: .875rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-cyan); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .panel-chart .line { stroke-dashoffset: 0; }
  .panel-chart .area { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-layout, .about-layout, .academy-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { max-width: 640px; }
  .flyer-slide { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 44px; }
  .flyer-visual { min-height: 0; }
  .sector-slide { grid-template-columns: 1fr; min-height: 0; padding: 10px; }
  .sector-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .sector-copy { padding: 28px 24px 24px; }
  .sector-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sector-tabs::-webkit-scrollbar { display: none; }
  .flyer-tab { flex: 0 0 auto; min-width: 116px; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 80px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; background: var(--surface); border-bottom: var(--border); box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: var(--border); }
  .main-nav .btn { margin-top: 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .nav-wrap { height: 68px; }
  .main-nav { top: 68px; padding: 8px 16px 20px; }
  .brand-logo { height: 42px; }
  .brand-sub { font-size: .5625rem; padding-bottom: 5px; }
  .hero { padding: 64px 0 72px; }
  .panel-stats { grid-template-columns: 1fr 1fr; }
  .panel-stats .stat:last-child { grid-column: span 2; }
  .stat-value { font-size: 1.625rem; }
  .card-grid-2, .card-grid-3, .card-grid-4, .contact-form .row, .footer-grid { grid-template-columns: 1fr; }
  .segmented { display: flex; flex-direction: column; width: 100%; }
  .seg { text-align: left; }
  .contact-form { padding: 24px; }
  .faq { padding: 4px 20px; }
  details p { padding-right: 0; }
  .proof-inner { flex-direction: column; align-items: flex-start; }
  .flyer-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .flyer-slide { padding: 28px 22px; gap: 32px; }
  .sector-slide { padding: 8px; gap: 0; }
  .sector-copy { padding: 24px 16px 16px; }
  .flyer-title { font-size: 1.875rem; }
  .flyer-dot { width: 40px; }
  .doc-flow { gap: 12px; }
  .doc-arrow { width: 32px; height: 32px; }
  .doc-tr { grid-template-columns: 64px 1fr; }
}
