:root {
  --navy: #2a1c68;
  --navy-2: #191776;
  --purple: #4b1fa8;
  --blue: #3aa9db;
  --gold: #f5b400;
  --ink: #1c1838;
  --muted: #5d5a73;
  --line: #e6e4ef;
  --tint: #f5f4fa;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(42, 28, 104, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: #1a1300; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(245, 180, 0, .35); }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); margin-left: 8px; }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); box-shadow: none; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 172px; height: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: var(--navy); border-bottom-color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, #6a2bd1 0%, transparent 60%), linear-gradient(120deg, var(--navy-2), var(--navy) 45%, var(--purple)); color: var(--white); padding: 64px 0 56px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.eyebrow a { color: inherit; }
.hero .eyebrow, .page-hero .eyebrow { color: #9fd8f2; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
.hl { color: var(--gold); }
.lead { font-size: 1.15rem; opacity: .92; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art img { border-radius: 28px; width: 100%; max-width: 460px; margin-left: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.value { display: flex; gap: 14px; align-items: center; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.value h2 { font-size: 1rem; margin: 0; }
.value p { margin: 0; font-size: .88rem; color: var(--muted); }
.ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #efeafd; color: var(--purple); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.h-xl { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--navy); }
.h-lg { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); }
.h-md { font-size: 1.5rem; color: var(--ink); }
.grad { background: linear-gradient(90deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); margin-bottom: 40px; }
.banner { display: block; margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; }
.page-hero { background: linear-gradient(120deg, var(--navy-2), var(--navy) 50%, var(--purple)); color: var(--white); padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .btn-light { color: var(--navy); }

.steps-head { margin-bottom: 32px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

.partners { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; margin-top: 28px; }
.partners img { height: 84px; width: auto; }

.band { background: linear-gradient(110deg, var(--blue), var(--navy) 75%); color: var(--white); padding: 64px 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 720px; margin: 0; }

.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.link { font-weight: 600; color: var(--purple); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card time { font-size: .82rem; color: var(--muted); }
.card h3 { font-size: 1.12rem; margin: 6px 0 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--purple); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.ccard { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.ccard:hover { box-shadow: var(--shadow); border-color: #d3cdef; }
.ccard .ico { margin-bottom: 16px; }
.ccard h3 { font-size: 1rem; margin-bottom: 4px; }
.ccard .big { font-weight: 600; color: var(--navy); margin: 0 0 4px; overflow-wrap: anywhere; }
.ccard p { color: var(--muted); font-size: .92rem; margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); }
.split-art img { border-radius: 24px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats div { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); line-height: 1.1; }
.stats span { color: var(--muted); }
.note { color: var(--muted); font-size: .85rem; margin-top: 16px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.features h3 { font-size: 1.05rem; color: var(--navy); }
.features p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Article */
.post-img { border-radius: var(--radius); margin: -40px 0 32px; position: relative; box-shadow: var(--shadow); width: 100%; }
.post .page-hero { padding-bottom: 88px; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.4rem; color: var(--navy); margin-top: 1.6em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--purple); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin: 48px 0 80px; padding-top: 24px; }
.post-nav a { text-decoration: none; color: var(--ink); font-weight: 600; max-width: 48%; }
.post-nav a.r { text-align: right; margin-left: auto; }
.post-nav small { display: block; color: var(--muted); font-weight: 400; }

/* Form */
.form { display: grid; gap: 16px; margin-top: 28px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfcbe0; border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--purple); outline: 3px solid rgba(75, 31, 168, .15); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-top: 20px; }
.alert.ok { background: #e6f6ed; color: #135c33; }
.alert.err { background: #fdecec; color: #8a1c1c; }

/* Footer */
.foot { background: #120d33; color: #c9c5e0; padding: 64px 0 24px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.foot-logo { background: var(--white); padding: 10px 14px; border-radius: 12px; width: 190px; margin-bottom: 16px; }
.foot h2 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: #c9c5e0; text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot-link { color: var(--gold) !important; font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social svg[fill="none"] { fill: none; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; font-size: .85rem; }

.banner img { width: 100%; }

/* ---------- Motion ---------- */
.nav { transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 8px 24px rgba(42, 28, 104, .1); background: rgba(255, 255, 255, .98); }
.nav-in { transition: height .3s; }
.nav.scrolled .nav-in { height: 64px; }
.menu a:not(.btn) { transition: color .2s, border-color .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(245, 180, 0, .55); } 70% { box-shadow: 0 0 0 16px rgba(245, 180, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0); } }
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: glow 9s ease-in-out infinite; }
.hero::before { width: 420px; height: 420px; right: -80px; top: -120px; background: #3aa9db; opacity: .55; }
.hero::after { width: 360px; height: 360px; left: -120px; bottom: -160px; background: #8a3ffc; animation-delay: -4s; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-art { animation: pop 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-art img { animation: float 6s 1.2s ease-in-out infinite; }
.hero .cta-row .btn:first-child { animation: pulse-ring 2.4s 1.5s infinite; }
.values .value { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; transition: transform .25s, box-shadow .25s; }
.values .value:nth-child(1) { animation-delay: .45s; }
.values .value:nth-child(2) { animation-delay: .55s; }
.values .value:nth-child(3) { animation-delay: .65s; }
.value:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.page-hero .wrap > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.page-hero, .band { background-size: 200% 200%; animation: drift 18s ease infinite; }

/* Scroll reveal (only when JS runs, so content never hides without it) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(.94); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hover lifts */
.steps li, .features div, .stats div, .ccard { transition: transform .3s, box-shadow .3s, border-color .3s; }
.steps li:hover, .features div:hover, .stats div:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d3cdef; }
.ccard:hover { transform: translateY(-6px); }
.ccard .ico, .steps span { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .3s, color .3s; }
.ccard:hover .ico { transform: scale(1.12) rotate(-6deg); background: var(--purple); color: var(--white); }
.steps li:hover span { transform: scale(1.15); background: var(--gold); color: #1a1300; }
.card-img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.06); }
.card { transition: box-shadow .3s, transform .3s; }
.card:hover { transform: translateY(-6px); }
.banner { transition: transform .5s, box-shadow .5s; }
.banner:hover { transform: scale(1.01); box-shadow: 0 24px 50px rgba(42, 28, 104, .18); }
.partners img { transition: transform .3s, filter .3s; filter: grayscale(.2); }
.partners img:hover { transform: scale(1.05); filter: none; }
.split-art img { transition: transform .6s; }
.split-art:hover img { transform: scale(1.02) rotate(-.5deg); }
.social a { transition: background .25s, transform .25s; }
.social a:hover { transform: translateY(-3px); }
.foot a { transition: color .2s; }
.link { position: relative; text-decoration: none; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .3s; }
.link:hover::after { transform: scaleX(1); }
.form input, .form textarea { transition: border-color .2s, box-shadow .2s; }
.alert { animation: rise .5s both; }

/* Back to top button */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(42, 28, 104, .3); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; z-index: 40; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--purple); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu { gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: 0 20px 30px rgba(0, 0, 0, .08); max-height: calc(100vh - 72px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu.open a { animation: rise .4s both; }
  .menu.open a:nth-child(2) { animation-delay: .04s; } .menu.open a:nth-child(3) { animation-delay: .08s; }
  .menu.open a:nth-child(4) { animation-delay: .12s; } .menu.open a:nth-child(5) { animation-delay: .16s; } .menu.open a:nth-child(6) { animation-delay: .2s; }
  .menu a[aria-current] { border-bottom-color: var(--line); color: var(--purple); }
  .menu .btn { margin-top: 16px; }
  .hero-in, .split { grid-template-columns: 1fr; }
  .hero-in { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-art img { max-width: 360px; margin: 0 auto; }
  .split { gap: 36px; }
  .split-art { order: -1; max-width: 520px; }
  .steps, .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ccards { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 14px; }
  .ccard { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; align-items: start; }
  .ccard .ico { grid-row: span 3; margin-bottom: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps li, .ccard, .stats div { padding: 22px; }
  .band-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .values, .steps, .ccards, .stats, .features { grid-template-columns: 1fr; }
  .values { margin-top: 36px; }
  .hero::before { width: 260px; height: 260px; }
  .hero::after { width: 240px; height: 240px; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 44px; }
  .page-hero { padding: 52px 0 44px; }
  .nav-in, .nav.scrolled .nav-in { height: 64px; }
  .brand img { width: 148px; }
  .menu { max-height: calc(100vh - 64px); }
  .hero-art img { max-width: 300px; }
  .cta-row .btn { flex: 1 1 100%; }
  .form .two, .foot-grid { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .partners { gap: 28px; }
  .partners img { height: 52px; }
  .btn-ghost-dark { margin: 10px 0 0; }
  .split .btn { width: 100%; }
  .band .btn { width: 100%; }
  .row-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .post-nav { flex-direction: column; }
  .post-nav a, .post-nav a.r { max-width: none; text-align: left; margin-left: 0; }
  .post-img { margin-top: -28px; }
  .foot-base { flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2rem; }
  .brand img { width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
