/* MaduraCBT landing page (maduracbt.web.id). Tokens mirror resources/css/tokens (Nila + neutral, brand navy #073774). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  --brand: #073774; --brand-deep: #04244f; --brand-ink: #021633;
  --nila-50: #f1f5ff; --nila-100: #e3ebff; --nila-200: #c9d9ff; --nila-300: #a2bcff; --nila-400: #7495f8;
  --nila-500: #4b6ee9; --nila-600: #3453d3; --nila-700: #2840b0; --nila-800: #1e3288;
  --glow-a: #16b3eb; --glow-b: #6977f0;
  --warn-500: #f49f1e; --warn-100: #feedc9; --warn-800: #8a4b00;
  --ok-600: #1c8742; --ok-50: #e7f7ec; --danger-600: #cc2827; --danger-50: #fdecec;

  --bg: #ffffff; --bg-tint: #f6f8fc; --surface: #ffffff; --surface-2: #f3f4f7;
  --fg: #17191f; --fg-muted: #535863; --fg-soft: #6f757f;
  --border: #e5e8ed; --border-strong: #d1d4db;
  --primary: var(--nila-600); --primary-hover: var(--nila-700); --primary-subtle: var(--nila-50); --primary-subtle-fg: var(--nila-700);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --shadow-lg: 0 24px 48px -12px rgb(2 22 51 / .22), 0 8px 16px -8px rgb(2 22 51 / .12);
  --radius: 16px; --radius-lg: 24px;
  --font-sans: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-tint: #10131a; --surface: #141821; --surface-2: #1b202b;
    --fg: #eef0f4; --fg-muted: #a9afbb; --fg-soft: #8a909c;
    --border: #252a35; --border-strong: #323846;
    --primary: var(--nila-400); --primary-hover: var(--nila-300); --primary-subtle: #172248; --primary-subtle-fg: var(--nila-200);
    --ok-50: #0f2a1a; --ok-fg: #5ee39b; --danger-50: #33140f; --warn-100: #3a2a0b; --warn-800: #f8c46a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ok-50: #0f2a1a; --ok-fg: #5ee39b; --danger-50: #33140f; --warn-100: #3a2a0b; --warn-800: #f8c46a;
  --bg: #0b0d12; --bg-tint: #10131a; --surface: #141821; --surface-2: #1b202b;
  --fg: #eef0f4; --fg-muted: #a9afbb; --fg-soft: #8a909c; --border: #252a35; --border-strong: #323846;
  --primary: var(--nila-400); --primary-hover: var(--nila-300); --primary-subtle: #172248; --primary-subtle-fg: var(--nila-200);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: 'cv05' 1, 'ss02' 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
:focus-visible { outline: 3px solid var(--nila-400); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--brand); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn--light { background: #fff; color: var(--brand); box-shadow: 0 8px 24px -8px rgb(0 0 0 / .35); }
.btn--light:hover { background: var(--nila-50); }
.btn--ghost { color: #fff; border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .45); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(4 36 79 / .72); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgb(255 255 255 / .08); color: #fff; transition: background-color .3s; }
.nav.is-scrolled { background: rgb(4 36 79 / .92); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: rgb(255 255 255 / .82); text-decoration: none; transition: color .2s, background-color .2s; }
.nav__links a:not(.btn):hover { color: #fff; background: rgb(255 255 255 / .08); }
.nav__cta-mobile, .nav__toggle { display: none; }
.nav__toggle { margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); cursor: pointer; }
.nav__toggle .ic--close { display: none; }
.nav__toggle[aria-expanded="true"] .ic--open { display: none; }
.nav__toggle[aria-expanded="true"] .ic--close { display: block; }
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: #04244f; border-bottom: 1px solid rgb(255 255 255 / .1); box-shadow: 0 24px 40px -12px rgb(0 0 0 / .5);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav__cta-mobile { display: inline-flex; margin-top: 10px; }
  .no-js .nav__links { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--brand); margin-top: -68px; padding: 148px 0 104px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgb(36 102 195 / .9), transparent 65%), linear-gradient(180deg, transparent 60%, rgb(2 22 51 / .35)); }
.hero__grid { position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%); }
.glow { position: absolute; border-radius: 50%; filter: blur(64px); animation: drift 18s ease-in-out infinite alternate; }
.glow--a { width: 34rem; height: 34rem; left: -10rem; top: -10rem; background: rgb(22 179 235 / .35); }
.glow--b { width: 38rem; height: 38rem; right: -12rem; bottom: -14rem; background: rgb(105 119 240 / .4); animation-duration: 24s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3rem, 2rem, 0) scale(1.08); } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18);
  background: rgb(255 255 255 / .08); font-size: 13.5px; font-weight: 500; color: rgb(255 255 255 / .9); backdrop-filter: blur(6px); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee39b; box-shadow: 0 0 0 4px rgb(94 227 155 / .2); }
.hero h1 { margin-top: 22px; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.35rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hl { background: linear-gradient(90deg, #9fe3ff, #c9d9ff 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); line-height: 1.65; color: rgb(255 255 255 / .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: rgb(255 255 255 / .78); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks .ic { width: 16px; height: 16px; color: #5ee39b; stroke-width: 2.6; }
.hero__visual { position: relative; padding: 88px 0 44px; }

/* Exam preview */
.exam { position: relative; z-index: 2; border-radius: 20px; background: #fff; color: #17191f; box-shadow: 0 40px 80px -24px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .12);
  overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.hero__visual:hover .exam { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.exam__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e5e8ed; background: #f9fafb; }
.exam__title { display: grid; min-width: 0; }
.exam__subject { font-size: 11.5px; font-weight: 600; color: #6f757f; text-transform: uppercase; letter-spacing: .06em; }
.exam__name { font: 700 15px/1.3 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam__meta { display: flex; align-items: center; gap: 8px; flex: none; }
.save { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: background-color .25s, color .25s; }
.save .ic { width: 15px; height: 15px; }
.save--ok { background: #e7f7ec; color: #17703a; }
.save--busy { background: #e6f1fd; color: #1d5fb5; }
.save--busy .ic { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.timer { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: #17191f; color: #fff;
  font: 600 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.timer .ic { width: 15px; height: 15px; }
.exam__body { display: grid; grid-template-columns: minmax(0, 1fr) 168px; }
.exam__q { padding: 20px 20px 18px; }
.exam__qhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.exam__no { font: 700 14px/1 var(--font-display); }
.exam__no span { color: #6f757f; font-weight: 500; }
.tag { padding: 4px 9px; border-radius: 999px; background: #f1f5ff; color: #2840b0; font-size: 11.5px; font-weight: 600; }
.exam__stem { margin-top: 14px; font-size: 15px; line-height: 1.55; }
.opts { display: grid; gap: 8px; margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1.5px solid #e5e8ed; background: #fff;
  font-size: 14.5px; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.opt:hover { border-color: #a2bcff; background: #f8faff; }
.opt__k { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid #d1d4db; font-weight: 700; font-size: 13px; color: #3e424c; transition: inherit; }
.opt.is-on { border-color: var(--nila-600); background: #f1f5ff; box-shadow: 0 0 0 3px rgb(52 83 211 / .12); }
.opt.is-on .opt__k { background: var(--nila-600); border-color: var(--nila-600); color: #fff; }
.exam__foot { display: flex; gap: 8px; margin-top: 16px; }
.ghostbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; white-space: nowrap; border-radius: 10px; border: 1px solid #e5e8ed; font-size: 13px; font-weight: 600; color: #3e424c; }
.ghostbtn .ic { width: 14px; height: 14px; }
.ghostbtn--flag { color: #8a4b00; background: #fff8e8; border-color: #f7d48f; }
.ghostbtn--primary { margin-left: auto; background: var(--nila-600); border-color: var(--nila-600); color: #fff; }
.exam__nav { padding: 20px 16px; border-left: 1px solid #e5e8ed; background: #fbfcfd; }
.exam__navtitle { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6f757f; }
.grid20 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 12px; }
.grid20 i, .legend i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; border: 1.5px solid #c4c8d0; background: #fff; font: 600 11px/1 var(--font-sans); font-style: normal; color: #17191f; position: relative; }
.grid20 i.a, .legend i.a { background: var(--nila-600); border-color: var(--nila-600); color: #fff; }
.grid20 i.f, .legend i.f { background: var(--warn-100); border-color: #b86a00; color: #6b3a00; }
.grid20 i.f::after { content: ''; position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; border-radius: 0 6px 0 4px; background: var(--warn-500); }
.grid20 i.c { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #17191f; }
.legend { display: grid; gap: 7px; margin-top: 16px; font-size: 11.5px; color: #535863; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }

.float { position: absolute; z-index: 3; border-radius: 16px; background: rgb(255 255 255 / .96); color: #17191f; box-shadow: 0 24px 48px -16px rgb(0 0 0 / .5); backdrop-filter: blur(8px);
  animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.float--monitor { right: -30px; bottom: 6px; width: 200px; padding: 14px 16px; animation-delay: -2s; }
.float__head { display: flex; align-items: center; gap: 8px; font: 700 13.5px/1.2 var(--font-display); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgb(229 72 77 / .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(229 72 77 / 0); } 100% { box-shadow: 0 0 0 0 rgb(229 72 77 / 0); } }
.float__sub { margin-top: 3px; font-size: 12px; color: #6f757f; }
.stack { display: grid; gap: 7px; margin-top: 12px; font-size: 12.5px; }
.stack__row { display: flex; justify-content: space-between; color: #3e424c; }
.stack__row b { font-variant-numeric: tabular-nums; color: #17191f; }
.bar { height: 6px; border-radius: 99px; background: #e5e8ed; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nila-500), var(--glow-a)); }
.bar__fill--87 { width: 87%; }
.float--offline { left: -30px; top: 0; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 12px 16px; }
.float--offline > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--warn-100); color: #8a4b00; }
.float--offline b { display: block; font-size: 13.5px; }
.float--offline span { display: block; font-size: 12px; color: #535863; line-height: 1.35; }

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__ticks { justify-content: center; }
  .hero__visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .exam { transform: none; }
  .hero__visual:hover .exam { transform: none; }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 72px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .exam__body { grid-template-columns: 1fr; }
  .exam__nav { border-left: 0; border-top: 1px solid #e5e8ed; }
  .grid20 { grid-template-columns: repeat(10, 1fr); }
  .legend { display: flex; flex-wrap: wrap; gap: 12px; }
  .exam__name { font-size: 14px; }
  .hero__visual { padding: 0; }
  .float { display: none; }
  .save [data-save-text] { display: none; }
}

/* ---------- Principles ---------- */
.principles { position: relative; z-index: 2; margin-top: -44px; }
.principles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.principle { display: flex; gap: 14px; padding: 26px 24px; border-left: 1px solid var(--border); }
.principle:first-child { border-left: 0; }
.principle__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-subtle); color: var(--primary); }
.principle__ic .ic { width: 21px; height: 21px; }
.principle h2 { font-size: 16px; letter-spacing: -0.01em; }
.principle p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
@media (max-width: 1000px) {
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principle { border-left: 0; }
  .principle:nth-child(n+2) { border-top: 1px solid var(--border); }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--border); }
@media (max-width: 640px) { .section { padding: 76px 0; } }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head--left { margin-inline: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.eyebrow--light { color: #9fe3ff; }
.head h2, .split h2, .infra h2 { margin-top: 12px; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.head > p:last-child, .split__copy > p:not(.eyebrow), .infra__copy > p:not(.eyebrow) { margin-top: 16px; font-size: 17.5px; line-height: 1.65; color: var(--fg-muted); text-wrap: pretty; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-subtle); color: var(--primary); }
.card h3 { margin-top: 18px; font-size: 19px; letter-spacing: -0.015em; }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--fg-muted); }
.card--wide { grid-column: span 3; }
.card--feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 36px;
  background: radial-gradient(80% 120% at 100% 0%, var(--primary-subtle), transparent 60%), var(--surface); }
.card--feature h3 { font-size: 24px; }
.card--feature p { font-size: 16px; }
.timeline { position: relative; display: grid; gap: 10px; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--border); }
.tl { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tl__dot { position: relative; z-index: 1; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.tl b { display: block; font-size: 14px; }
.tl span { display: block; font-size: 13px; color: var(--fg-soft); }
.tl--ok .tl__dot { background: var(--ok-600); box-shadow: 0 0 0 4px var(--ok-50); }
.tl--wait .tl__dot { background: var(--warn-500); box-shadow: 0 0 0 4px var(--warn-100); animation: pulse 1.6s ease-in-out infinite; }
.tl--wait { border-style: dashed; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .card--feature { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card, .card--feature { padding: 24px; }
}

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--nila-200), var(--nila-400), var(--nila-200)); opacity: .7; }
.step { position: relative; text-align: center; }
.step__n { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary);
  color: var(--primary); font: 800 18px/1 var(--font-display); box-shadow: 0 0 0 6px var(--bg-tint); }
.step h3 { margin-top: 18px; font-size: 17px; }
.step p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--nila-200), var(--nila-400), var(--nila-200)); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; text-align: left; padding-bottom: 26px; }
  .step__n { grid-row: span 2; }
  .step h3 { margin-top: 10px; }
  .step p { margin-top: 4px; }
}

/* Question types */
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 64px; }
.type { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.type h3 { margin-top: 16px; font-size: 15.5px; letter-spacing: -0.01em; }
.type p { margin-top: 4px; font-size: 13.5px; color: var(--fg-muted); }
.type__art { display: grid; gap: 6px; height: 84px; padding: 12px; border-radius: 12px; background: var(--bg-tint); border: 1px solid var(--border); align-content: center; }
.type__art--pg i, .type__art--pgk i { display: block; height: 10px; border-radius: 99px; background: var(--border-strong); position: relative; margin-left: 18px; }
.type__art--pg i::before, .type__art--pgk i::before { content: ''; position: absolute; left: -18px; top: -1px; width: 12px; height: 12px; border: 2px solid var(--border-strong); background: var(--surface); }
.type__art--pg i::before { border-radius: 50%; }
.type__art--pgk i::before { border-radius: 3px; }
.type__art i.on { background: var(--nila-300); }
.type__art i.on::before { background: var(--nila-600); border-color: var(--nila-600); }
.type__art--match { grid-template-columns: 1fr 40px 1fr; align-items: center; }
.type__art--match span { display: grid; gap: 8px; }
.type__art--match span i { display: block; height: 12px; border-radius: 4px; background: var(--border-strong); }
.type__art--match span:last-child i { background: var(--nila-200); }
.type__art--match svg { width: 40px; height: 48px; fill: none; stroke: var(--nila-500); stroke-width: 2; stroke-linecap: round; }
.type__art--short { place-items: center; }
.type__art--short span { display: inline-flex; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--nila-500); background: var(--surface); font: 600 14px/1 var(--font-sans); color: var(--fg); }
.type__art--short b { width: 2px; height: 16px; background: var(--fg); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.type__art--essay i { display: block; height: 8px; border-radius: 99px; background: var(--border-strong); }
.type__art--essay i.s { width: 55%; }
@media (max-width: 1080px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .types { grid-template-columns: repeat(2, 1fr); gap: 12px; } .type { padding: 16px; } }

/* Split / monitor */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--fg-muted); }
.checks b { color: var(--fg); font-weight: 600; }
.checks .ic { margin-top: 2px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok-50); color: var(--ok-600); stroke-width: 3; }
.monitor { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.monitor__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.monitor__top b { display: block; font: 700 16px/1.3 var(--font-display); }
.monitor__top span { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-soft); }
.token { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 6px 10px; border-radius: 10px; background: var(--brand); color: rgb(255 255 255 / .7) !important; font-size: 11px !important; font-weight: 600; letter-spacing: .08em; }
.token .ic { width: 14px; height: 14px; color: #9fe3ff; }
.token b { display: inline !important; color: #fff; font: 700 14px/1 ui-monospace, 'JetBrains Mono', monospace !important; letter-spacing: .14em; }
.monitor__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.monitor__stats div { padding: 12px; border-radius: 12px; background: var(--bg-tint); border: 1px solid var(--border); }
.monitor__stats b { display: block; font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.monitor__stats span { display: block; margin-top: 6px; font-size: 12px; color: var(--fg-soft); }
.rows { display: grid; gap: 8px; margin-top: 16px; }
.row { display: grid; grid-template-columns: 34px 1fr auto 96px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; }
.row--alert { border-color: rgb(204 40 39 / .35); background: var(--danger-50); }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-subtle); color: var(--primary-subtle-fg); font-size: 12px; font-weight: 700; }
.nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st--run { background: var(--primary-subtle); color: var(--primary-subtle-fg); }
.st--done { background: var(--ok-50); color: var(--ok-fg, var(--ok-600)); }
.st--lock { background: var(--danger-600); color: #fff; }
.st--warn { background: var(--warn-100); color: var(--warn-800); }
.pg { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.pg i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.pg .w100 { width: 100%; background: var(--ok-600); } .pg .w72 { width: 72%; } .pg .w55 { width: 55%; } .pg .w40 { width: 40%; }
.act { justify-self: end; padding: 6px 10px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 520px) {
  .monitor { padding: 16px; }
  .monitor__stats { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 30px 1fr auto; }
  .row .pg, .row .act { display: none; }
  .av { width: 30px; height: 30px; }
}

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mod { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--nila-200); }
.mod__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--nila-500), var(--brand)); box-shadow: 0 8px 16px -8px rgb(7 55 116 / .6); }
.mod h3 { margin-top: 18px; font-size: 17px; }
.mod p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
@media (max-width: 1080px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.role { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg-tint)); }
.role__tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--primary-subtle); color: var(--primary-subtle-fg); font-size: 13px; font-weight: 700; }
.role p { margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
@media (max-width: 1080px) { .roles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .roles { grid-template-columns: 1fr; } }

/* Infra (dark) */
.section--dark { position: relative; overflow: hidden; background: var(--brand-ink); color: #fff; }
.section--dark::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 0% 0%, rgb(36 102 195 / .45), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgb(105 119 240 / .25), transparent 60%); }
.infra { position: relative; display: grid; grid-template-columns: .9fr 1.4fr; gap: 64px; align-items: start; }
.infra__copy { position: sticky; top: 110px; }
.infra__copy > p:not(.eyebrow) { color: rgb(255 255 255 / .72); }
.infra__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ifeat { padding: 24px; border-radius: var(--radius); background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); transition: background-color .3s, border-color .3s; }
.ifeat:hover { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .2); }
.ifeat .ic { width: 26px; height: 26px; color: #9fe3ff; }
.ifeat h3 { margin-top: 16px; font-size: 16.5px; }
.ifeat p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: rgb(255 255 255 / .68); }
@media (max-width: 980px) { .infra { grid-template-columns: 1fr; gap: 40px; } .infra__copy { position: static; } }
@media (max-width: 560px) { .infra__grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--nila-200); box-shadow: var(--shadow-sm); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font: 600 16px/1.4 var(--font-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { color: var(--fg-soft); transition: transform .25s var(--ease); }
.qa[open] summary .ic { transform: rotate(180deg); color: var(--primary); }
.qa p { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: var(--fg-muted); }
@media (max-width: 980px) { .faq { grid-template-columns: 1fr; gap: 32px; } .faq .head { position: static; } }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0; background: var(--brand); color: #fff; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(100% 90% at 50% 100%, rgb(36 102 195 / .85), transparent 70%); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__mark { width: 72px; height: auto; opacity: .95; }
.cta h2 { margin-top: 24px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.cta p { margin: 14px 0 32px; font-size: 18px; color: rgb(255 255 255 / .8); }

/* Footer */
.foot { background: var(--brand-ink); color: rgb(255 255 255 / .72); padding: 56px 0 28px; font-size: 14.5px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot__brand img { height: 34px; width: auto; }
.foot__brand p { margin-top: 14px; max-width: 22rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-self: center; }
.foot__links a { text-decoration: none; transition: color .2s; }
.foot__links a:hover { color: #fff; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13.5px; color: rgb(255 255 255 / .5); }

/* Reveal on scroll (enabled by JS only, so content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .exam, .hero__visual:hover .exam { transform: none; }
}

/* ---------- Error pages (404.html, 50x.html) ---------- */
.errpage { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--brand-ink); }
.errpage .nav { background: rgb(4 36 79 / .55); }
.err__navcta { margin-left: auto; }
.err { position: relative; isolation: isolate; overflow: hidden; flex: 1; display: grid; place-items: center; margin-top: -68px; padding: 128px 0 88px;
  background: var(--brand); color: #fff; text-align: center; }
.err__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgb(36 102 195 / .9), transparent 65%), linear-gradient(180deg, transparent 55%, rgb(2 22 51 / .5)); }
.err__inner { display: flex; flex-direction: column; align-items: center; }
.pill__dot--warn { background: var(--warn-500); box-shadow: 0 0 0 4px rgb(244 159 30 / .22); }
.pill__dot--danger { background: #ff7a6b; box-shadow: 0 0 0 4px rgb(255 122 107 / .22); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(255 122 107 / .08); } }

.err__code { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.5vw, 16px); margin-top: 28px;
  font: 800 clamp(6.5rem, 3rem + 15vw, 12.5rem)/.9 var(--font-display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.err__code > span:not(.err__orb) { background: linear-gradient(180deg, #fff 35%, rgb(255 255 255 / .28)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 20px 60px rgb(2 22 51 / .25); }
.err__orb { position: relative; display: grid; place-items: center; width: .8em; height: .8em; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .32), rgb(255 255 255 / .07) 58%, rgb(255 255 255 / .03));
  border: 1px solid rgb(255 255 255 / .32);
  box-shadow: 0 0 0 12px rgb(255 255 255 / .035), 0 0 90px rgb(22 179 235 / .5), inset 0 0 40px rgb(255 255 255 / .1);
  animation: bob 6s ease-in-out infinite; }
.err__orb img { width: 44%; height: auto; filter: drop-shadow(0 6px 18px rgb(2 22 51 / .35)); }
.err__orb::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgb(255 255 255 / .28); animation: spin 48s linear infinite; }
.err__orb::after { content: ''; position: absolute; top: -23px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #7fd3f5; box-shadow: 0 0 14px #16b3eb; transform-origin: 5px calc(.4em + 23px); animation: spin 9s linear infinite; }
.err__orb--alert { box-shadow: 0 0 0 12px rgb(255 255 255 / .035), 0 0 90px rgb(255 122 107 / .38), inset 0 0 40px rgb(255 255 255 / .1); }
.err__orb--alert::after { background: #ffb4a8; box-shadow: 0 0 14px #ff7a6b; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.err h1 { margin-top: 32px; max-width: 20ch; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.err__lead { margin-top: 16px; max-width: 36rem; font-size: 18px; line-height: 1.6; color: rgb(255 255 255 / .8); text-wrap: pretty; }
.err__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.err__status { margin-top: 16px; min-height: 1.6em; font-size: 14px; color: rgb(255 255 255 / .72); font-variant-numeric: tabular-nums; }
.err__ref { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; padding: 8px 8px 8px 14px; border-radius: 12px;
  border: 1px dashed rgb(255 255 255 / .26); font-size: 13px; color: rgb(255 255 255 / .66); }
.err__ref code { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff; word-break: break-all; }
.err__ref button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .1); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.err__ref button:hover { background: rgb(255 255 255 / .18); }
.err__ref:has(code:empty) { display: none; }

.err__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 940px; margin-top: 64px; text-align: left; }
.err__link { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); border: 1px solid rgb(255 255 255 / .14);
  background: rgb(255 255 255 / .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.err__link:hover { background: rgb(255 255 255 / .11); border-color: rgb(255 255 255 / .3); transform: translateY(-3px); }
.err__link .ic { width: 22px; height: 22px; color: #7fd3f5; }
.err__link strong { margin-top: 8px; font: 700 15.5px/1.3 var(--font-display); }
.err__link span { font-size: 13.5px; line-height: 1.5; color: rgb(255 255 255 / .68); }
@media (max-width: 860px) { .err__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .err { padding: 112px 0 64px; }
  .err__links { grid-template-columns: 1fr; margin-top: 48px; }
  .err__actions { width: 100%; flex-direction: column; }
  .err__actions .btn { width: 100%; }
  .err__lead { font-size: 16.5px; }
}
.foot--slim { padding: 0 0 24px; }
.foot--slim .foot__base { margin-top: 0; }
