@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green: #10b981;
  --green-dark: #059669;
  --green-deep: #065f46;
  --mint: #d1fae5;
  --mint-soft: #f0fdf4;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --sun: #f59e0b;
  --heat: #ea580c;
  --navy: #0b1426;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; color: var(--ink); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.serif { font-family: 'Fraunces', Georgia, serif; }

/* ---------- NAV ---------- */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: padding .3s, box-shadow .3s; padding: 14px 0; }
.navbar.on-dark { background: rgba(11,20,38,.35); border-bottom-color: rgba(255,255,255,.12); }
.navbar.on-dark .brand, .navbar.on-dark .nav-links a { color: #fff; }
.navbar.on-dark .nav-links a.active, .navbar.on-dark .nav-links a:hover { color: #6ee7b7; }
.navbar.scrolled { padding: 9px 0; box-shadow: 0 6px 20px rgba(15,23,42,.08); background: rgba(255,255,255,.97); border-bottom-color: var(--line); }
.navbar.scrolled .brand, .navbar.scrolled .nav-links a { color: var(--ink); }
.navbar.scrolled .nav-links a.active, .navbar.scrolled .nav-links a:hover { color: var(--green-dark); }
.nav-inner { width: 90%; max-width: 1240px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: .5px; color: var(--ink); }
.brand img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; transition: height .3s, width .3s; }
.navbar.scrolled .brand img { height: 40px; width: 40px; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--body); transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--green); transition: width .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 10px; transition: .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.menu-btn span { display: block; height: 2px; margin: 6px 8px; background: currentColor; border-radius: 2px; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; transition: .25s; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(16,185,129,.35); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- SECTIONS ---------- */
section { position: relative; }
.wrap { width: 90%; max-width: 1200px; margin: 0 auto; }
.pad { padding: 110px 0; }
.bg-mint { background: linear-gradient(180deg, var(--mint-soft) 0%, #fff 100%); }
.bg-soft { background: #f8fafc; }
.bg-navy { background: var(--navy); color: #fff; }
.label { display: inline-block; background: var(--mint); color: var(--green-deep); font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; padding: 7px 16px; border-radius: 30px; margin-bottom: 18px; }
.label.heat { background: #ffedd5; color: #9a3412; }
.label.on-dark { background: rgba(110,231,183,.15); color: #6ee7b7; }
h1, h2, h3 { letter-spacing: -.5px; line-height: 1.15; }
.h-xl { font-family: 'Fraunces', Georgia, serif; font-size: clamp(40px, 6vw, 76px); font-weight: 800; }
.h-lg { font-family: 'Fraunces', Georgia, serif; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; margin-bottom: 18px; }
.h-md { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--body); max-width: 720px; line-height: 1.75; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.accent { color: var(--green); }
.accent-heat { color: var(--heat); }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { padding: 170px 0 110px; color: #fff; overflow: hidden; }
.page-hero .lead { color: rgba(255,255,255,.88); }
.page-hero .h-xl { margin-bottom: 22px; max-width: 900px; }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .wrap { position: relative; z-index: 2; }
.hero-research { background: radial-gradient(ellipse at 75% 30%, #065f46 0%, #0b1426 60%); }
.hero-edu { background: linear-gradient(160deg, #7c2d12 0%, #b45309 35%, #065f46 100%); }
.hero-join { background: radial-gradient(ellipse at 30% 20%, #10b981 0%, #065f46 45%, #0b1426 100%); }

/* ---------- CARDS ---------- */
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; transition: transform .35s, box-shadow .35s, border-color .35s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 18px 40px rgba(16,185,129,.14); }
.card p { color: var(--body); font-size: 16px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--green-deep); background: var(--mint); padding: 6px 12px; border-radius: 20px; margin-bottom: 16px; }
.tag.soon { background: #fef3c7; color: #92400e; }
.card-link { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--green-dark); text-decoration: none; transition: transform .2s; }
.card-link:hover { transform: translateX(4px); }
.icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--green), var(--green-dark)); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sector cards on home */
.sector { border-radius: 24px; overflow: hidden; position: relative; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; color: #fff; text-decoration: none; transition: transform .4s, box-shadow .4s; }
.sector:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(15,23,42,.25); }
.sector .art { position: absolute; inset: 0; z-index: 0; transition: transform 1.2s ease; }
.sector:hover .art { transform: scale(1.06); }
.sector::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%); z-index: 1; }
.sector > *:not(.art) { position: relative; z-index: 2; }
.sector h3 { font-family: 'Fraunces', Georgia, serif; font-size: 36px; margin-bottom: 12px; }
.sector p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 20px; max-width: 460px; }
.sector .go { font-weight: 800; }
.sector ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sector li { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 20px; backdrop-filter: blur(6px); }

/* ---------- STATS ---------- */
.stat { text-align: left; }
.stat .num { font-family: 'Fraunces', Georgia, serif; font-size: clamp(42px, 5vw, 64px); font-weight: 800; line-height: 1; margin-bottom: 10px; }
.stat .cap { font-weight: 600; color: var(--body); font-size: 16px; }
.bg-navy .stat .cap { color: rgba(255,255,255,.75); }
.source { font-size: 13px; color: var(--muted); margin-top: 28px; }
.source a { color: inherit; }

/* exam funnel bars */
.bars { display: grid; gap: 18px; margin-top: 10px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 110px; align-items: center; gap: 18px; }
.bar-row .name { font-weight: 700; }
.bar-track { height: 18px; background: #f1f5f9; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--sun), var(--heat)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.bar-fill.green { background: linear-gradient(90deg, #6ee7b7, var(--green)); }
.bar-row .val { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- PHOTO SLOTS ---------- */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #ecfdf5, #fef3c7); aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.photo:hover img { transform: scale(1.05); }
.photo .ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--green-deep); border: 2px dashed #a7f3d0; border-radius: var(--radius); }
.photo.missing .ph { display: flex; }
.photo.missing img { display: none; }
.photo .ph svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.6; margin-bottom: 10px; opacity: .7; }
.photo .ph b { font-size: 15px; }
.photo .ph code { font-size: 12px; background: rgba(255,255,255,.7); padding: 3px 8px; border-radius: 6px; margin-top: 6px; }
.photo figcaption, .photo-cap { margin-top: 14px; }
.photo-cap b { display: block; font-size: 18px; }
.photo-cap span { color: var(--body); font-size: 15px; }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split.rev > :first-child { order: 2; }
.checklist { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--body); }
.checklist li::before { content: ''; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* compare panel */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.compare .side { border-radius: var(--radius); padding: 34px; }
.compare .side h4 { font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 14px; }
.compare .side ul { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.compare .rigor { background: #fff7ed; border: 1px solid #fed7aa; }
.compare .rigor h4 { color: #9a3412; }
.compare .create { background: var(--mint-soft); border: 1px solid #a7f3d0; }
.compare .create h4 { color: var(--green-deep); }
.compare .plus { display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 48px; font-weight: 800; color: var(--green); }

/* timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; transition: .35s; }
.step:hover { border-color: var(--green); transform: translateY(-5px); }
.step::before { counter-increment: s; content: '0' counter(s); font-family: 'Fraunces', serif; font-weight: 800; font-size: 36px; color: var(--mint); display: block; margin-bottom: 8px; -webkit-text-stroke: 1px var(--green); }
.step h4 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--body); font-size: 15px; }

/* partners */
.partner { display: flex; gap: 18px; align-items: center; padding: 24px 26px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.partner .mono { flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink); font-size: 15px; }
.partner b { display: block; }
.partner span { color: var(--body); font-size: 14px; }

/* quote band */
.quote { font-family: 'Fraunces', Georgia, serif; font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; line-height: 1.3; max-width: 980px; }
.quote em { color: #6ee7b7; font-style: normal; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 60%, var(--green-deep) 100%); color: #fff; border-radius: 28px; padding: 70px 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; position: relative; }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; top: -160px; animation: drift 14s ease-in-out infinite; }
.cta-band h2 { font-family: 'Fraunces', serif; font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 10px; }
.cta-band p { opacity: .92; font-size: 18px; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--green-deep); flex-shrink: 0; position: relative; }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 30px); } }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding: 80px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; margin-bottom: 50px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 24px; color: #fff; margin-bottom: 14px; }
.foot-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer p { font-size: 15px; line-height: 1.7; color: #94a3b8; }
.footer h4 { color: #6ee7b7; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: #cbd5e1; text-decoration: none; font-size: 15px; transition: color .2s; }
.footer a:hover { color: #6ee7b7; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--green); border-color: var(--green); }
.socials svg { width: 18px; height: 18px; fill: #e2e8f0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; font-size: 14px; color: #64748b; flex-wrap: wrap; gap: 10px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .g2 { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; } .compare .plus { font-size: 36px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 50px 34px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; color: inherit; }
  .navbar .nav-cta { display: none; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s; }
  .nav-links.open { max-height: 320px; }
  .nav-links a { display: block; padding: 16px 5%; color: var(--ink) !important; }
  .g3, .g4, .steps, .foot-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 90px; } .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .pad { padding: 80px 0; }
  .sector { min-height: 400px; padding: 32px; }
}
.navbar.on-dark .menu-btn { color: #fff; }
.navbar.scrolled .menu-btn { color: var(--ink); }
