@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --primary-950: #071d46;
  --primary-900: #0b2f6b;
  --primary-800: #16418b;
  --primary-700: #1e40af;
  --primary-50: #eff6ff;
  --accent: #22c55e;
  --accent-ink: #052e16;
  --surface: #fff;
  --surface-muted: #f8fafc;
  --ink: #10213d;
  --muted: #526079;
  --border: #c9d8ee;
  --focus: #f6b91f;
  --shadow-sm: 0 1px 2px rgba(7, 29, 70, .06);
  --shadow-md: 0 16px 44px rgba(7, 29, 70, .10);
  --radius-sm: .65rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1rem/1.65 "Work Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: "Outfit", ui-sans-serif, system-ui, sans-serif; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .7rem 1rem; border: 2px solid var(--focus); border-radius: var(--radius-sm); background: var(--surface); color: var(--primary-950); font-weight: 700; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(201,216,238,.85); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav-shell, .section-shell, .hero-shell { width: min(var(--shell), calc(100% - 2rem)); margin-inline: auto; }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { display: grid; line-height: 1.18; }
.brand strong { color: var(--primary-950); font: 700 1rem/1.2 "Outfit", sans-serif; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.nav-shell nav { display: flex; align-items: center; gap: .35rem; }
.nav-shell nav > a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; padding: .65rem .8rem; border-radius: .55rem; color: #30425f; font-weight: 600; text-decoration: none; }
.nav-shell nav > a:not(.button):hover { background: var(--primary-50); color: var(--primary-900); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .78rem 1.15rem; border: 2px solid transparent; border-radius: .7rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.button-compact { min-height: 42px; padding: .62rem 1rem; }
.button-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(22,163,74,.18); }
.button-primary:hover { background: #4ade80; }
.button-secondary { border-color: var(--primary-700); background: var(--surface); color: var(--primary-800); }
.button-secondary:hover { background: var(--primary-50); }
.button-secondary-inverse { border-color: rgba(255,255,255,.65); color: #fff; }
.button-secondary-inverse:hover { border-color: #fff; background: rgba(255,255,255,.1); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 12%, rgba(59,130,246,.18), transparent 31rem), linear-gradient(135deg,#f8fbff 0%,#eef6ff 48%,#f8fafc 100%); }
.hero::after { position: absolute; right: -10rem; bottom: -16rem; width: 34rem; height: 34rem; border: 1px solid rgba(30,64,175,.14); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(30,64,175,.035), 0 0 0 10rem rgba(30,64,175,.025); content: ""; }
.hero-shell { position: relative; z-index: 1; min-height: 650px; padding-block: clamp(4rem,9vw,7.5rem); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); align-items: center; gap: clamp(2.5rem,7vw,6rem); }
.eyebrow, .card-kicker, .availability { margin: 0 0 .65rem; color: var(--primary-700); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; color: var(--primary-950); font-size: clamp(2.45rem,6vw,4.75rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 680px; margin: 1.5rem 0 0; color: #41516b; font-size: clamp(1.05rem,2vw,1.25rem); line-height: 1.65; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-list { margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; list-style: none; }
.trust-list li { display: inline-flex; align-items: center; gap: .5rem; color: #34445f; font-size: .9rem; font-weight: 600; }
.trust-list svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: #137237; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }

.gateway-card { padding: clamp(1.35rem,4vw,2rem); border: 1px solid rgba(191,219,254,.9); border-radius: var(--radius-lg); background: rgba(255,255,255,.9); box-shadow: var(--shadow-md); }
.gateway-card h2 { margin: 0 0 1.25rem; color: var(--primary-950); font-size: clamp(1.45rem,3vw,2rem); line-height: 1.15; }
.gateway-list { display: grid; gap: .65rem; }
.gateway-list > a { min-height: 82px; display: grid; grid-template-columns: 44px minmax(0,1fr) 20px; align-items: center; gap: .85rem; padding: .9rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.gateway-list > a:hover { border-color: #8bb2e6; background: #f8fbff; box-shadow: var(--shadow-sm); }
.gateway-list strong, .gateway-list small { display: block; }
.gateway-list strong { color: var(--primary-950); font-family: "Outfit", sans-serif; font-size: 1rem; }
.gateway-list small { margin-top: .2rem; color: var(--muted); line-height: 1.45; }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: .7rem; background: var(--primary-50); color: var(--primary-700); }
.icon-box svg, .arrow, .text-link svg, .institution-note > svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-box svg { width: 24px; height: 24px; }
.arrow { width: 20px; height: 20px; color: #64748b; }

.trust-band { border-block: 1px solid #e3ecf8; background: var(--surface); }
.logo-row { padding-block: 1.2rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
.logo-row > p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.program-logo-grid { display: grid; grid-template-columns: repeat(4,minmax(120px,1fr)); align-items: center; gap: clamp(.75rem,3vw,2rem); }
.program-logo { position: relative; min-width: 0; height: 108px; display: grid; place-items: center; overflow: hidden; }
.program-logo img { position: absolute; top: 50%; width: 400%; max-width: none; height: auto; transform: translateY(-50%); }
.logo-edutechno img { left: 0; }
.logo-adikara img { left: -100%; }
.logo-yess img { left: -200%; }
.logo-kemendes img { left: -300%; }

.section { padding-block: clamp(4rem,8vw,7rem); }
.section-heading { margin-bottom: 2rem; display: grid; grid-template-columns: minmax(0,.9fr) minmax(300px,.65fr); align-items: end; gap: 2rem; }
.section-heading h2, .cta-card h2 { margin: 0; color: var(--primary-950); font-size: clamp(2rem,4vw,3.35rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.section-heading > p { max-width: 590px; margin: 0; color: var(--muted); }
.compact-heading { grid-template-columns: 1fr; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.category-card { min-height: 330px; padding: 1.4rem; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.category-featured { border-color: #82aee7; background: linear-gradient(180deg,#f7fbff,#fff); box-shadow: 0 16px 44px rgba(30,64,175,.09); }
.category-code { width: 44px; height: 44px; display: grid; place-items: center; border-radius: .7rem; background: var(--primary-900); color: #fff; font: 700 1.1rem/1 "Outfit", sans-serif; }
.category-card > div { margin-top: 2.1rem; }
.category-card h3 { margin: 0; color: var(--primary-950); font-size: 1.45rem; }
.category-card p:not(.availability) { margin: .65rem 0 0; color: var(--muted); }
.availability { color: #137237; }
.availability-muted { color: #64748b; }
.text-link, .coming-soon { margin-top: auto; padding-top: 1.5rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-700); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25rem; }
.text-link svg { width: 20px; height: 20px; }
.coming-soon { color: #64748b; font-size: .9rem; }
.institution-note { margin-top: 1rem; padding: 1.15rem 1.25rem; display: grid; grid-template-columns: 28px 1fr; gap: .9rem; border: 1px solid #d6e2f2; border-radius: .8rem; background: var(--surface-muted); }
.institution-note > svg { width: 28px; height: 28px; color: var(--primary-700); }
.institution-note strong { color: var(--primary-950); }
.institution-note p { margin: .15rem 0 0; color: var(--muted); }

.section-process { background: var(--primary-50); }
.process-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; list-style: none; }
.process-grid li { padding: 1.25rem; border-top: 3px solid var(--primary-700); background: var(--surface); }
.process-grid li > span { color: var(--primary-700); font: 700 .78rem/1 "Outfit", sans-serif; letter-spacing: .12em; }
.process-grid h3 { margin: 1.2rem 0 .45rem; color: var(--primary-950); font-size: 1.12rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: .93rem; }

.cta-card { padding: clamp(2rem,5vw,4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-radius: var(--radius-lg); background: var(--primary-950); color: #fff; }
.cta-card h2, .cta-card .eyebrow { color: #fff; }
.cta-card p:not(.eyebrow) { max-width: 640px; margin: .75rem 0 0; color: #cedcf0; }
.cta-card .hero-actions { margin: 0; flex: 0 0 auto; }
footer { border-top: 1px solid #e2e8f0; background: var(--surface-muted); }
.footer-inner { min-height: 160px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-inner > p { color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner nav a { color: var(--primary-800); font-weight: 600; }

@media (max-width: 900px) {
  .nav-shell nav > a:not(.button) { display: none; }
  .hero-shell { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: 760px; }
  .gateway-card { max-width: 680px; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-featured { grid-column: 1/-1; min-height: 280px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 2rem; }
  .footer-inner > p { grid-column: 1/-1; grid-row: 2; margin: 0; }
}

@media (max-width: 620px) {
  .nav-shell, .section-shell, .hero-shell { width: min(100% - 1.25rem,var(--shell)); }
  .nav-shell { min-height: 68px; }
  .brand img { width: 42px; height: 42px; }
  .hero-shell { padding-block: 3.5rem; }
  .hero h1 { font-size: clamp(2.35rem,13vw,3.45rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .trust-list { display: grid; }
  .gateway-card { padding: 1rem; }
  .gateway-list > a { grid-template-columns: 44px minmax(0,1fr); }
  .gateway-list .arrow { display: none; }
  .logo-row { grid-template-columns: 1fr; gap: .75rem; }
  .program-logo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
  .program-logo { height: 108px; }
  .section { padding-block: 4rem; }
  .category-grid, .process-grid { grid-template-columns: 1fr; }
  .category-featured { grid-column: auto; }
  .category-card { min-height: 285px; }
  .institution-note { grid-template-columns: 1fr; }
  .cta-card { border-radius: 1rem; }
  .cta-card .hero-actions, .cta-card .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner > p { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
