/* JARI landing — Panduan Jenama: Biru Akademik + maroon & emas UTM */
:root {
  --ink: #0B1220; --blue: #2F6BFF; --blue-t: #1F55D6; --cyan: #22C4E8; --maroon: #7A1230; --gold: #C9A227; --amber: #F4C24D;
  --paper: #F5F7FB; --white: #FFFFFF; --soft: #C3CCE0; --mist: #7C879C; --navy2: #121C33; --navy3: #1A2747;
  --glow: linear-gradient(45deg, #0E2A8C 0%, #2F6BFF 55%, #22C4E8 100%);
  --bg: var(--paper); --bg-alt: var(--white); --card: var(--white); --line: #DFE4EE; --t1: var(--ink); --t2: #4A5568; --eb: var(--blue-t);
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px rgba(11,18,32,.06);
}
:root[data-theme="dark"] {
  --bg: #0B1220; --bg-alt: #0E1628; --card: #121C33; --line: #22304F; --t1: #FFFFFF; --t2: #C3CCE0; --eb: #8FB0FF;
  --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 16px/1.6 Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Outfit, Roboto, sans-serif; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sp { width: 10px; height: 10px; fill: var(--amber); flex: none; }
.sp.gold { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font: 700 26px/1 Outfit, sans-serif; letter-spacing: .03em; color: #fff; }
.utm-pill { font: 700 10px/1 "JetBrains Mono", monospace; letter-spacing: .12em; color: #fff; background: var(--maroon); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 8px; }
.brand-sm .brand-name { font-size: 20px; }
.brand-sm img { width: 30px; height: 30px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: 999px; font: 500 16px Roboto, sans-serif; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--glow); color: #fff; box-shadow: 0 8px 24px rgba(47,107,255,.35); }
.btn-pri:hover { box-shadow: 0 10px 30px rgba(47,107,255,.5); }
.btn-ghost { color: #fff; border: 1.2px solid #3B4A6B; background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #16213b; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3B4A6B; background: transparent; color: var(--soft); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: #fff; border-color: var(--cyan); }
.lang { display: inline-flex; border: 1px solid #3B4A6B; border-radius: 9px; padding: 3px; gap: 2px; }
.lang button { border: 0; background: transparent; color: var(--mist); font: 400 11px "JetBrains Mono", monospace; padding: 5px 7px; border-radius: 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(47,107,255,.25); color: #fff; font-weight: 700; }

/* ---------- eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 700 11px/1 "JetBrains Mono", monospace; letter-spacing: .16em; color: var(--eb); background: rgba(47,107,255,.10); border: 1px solid rgba(47,107,255,.35); }
.eyebrow-dark { color: var(--cyan); background: rgba(47,107,255,.14); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-bottom: 96px; }
.hero-pattern { position: absolute; inset: 0 0 0 53%; background: url("corak-nod.svg") center/cover no-repeat; opacity: .9; }
.hero-pattern::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(11,18,32,.35) 40%, rgba(20,39,90,.55) 100%); }
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.nav-links { display: flex; gap: 36px; font-size: 15px; color: var(--soft); }
.nav-links a:hover { color: #fff; }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 540px; gap: 60px; align-items: center; padding-top: 56px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.12; margin: 26px 0 22px; }
.cyan { color: var(--cyan); }
.lead { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 600px; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.tagline { margin-top: 48px; color: var(--mist); font: 400 14px/1.7 Outfit, sans-serif; }

/* console */
.console { background: var(--navy2); border: 1px solid #2A3A60; border-radius: 20px; box-shadow: 0 0 0 2px rgba(47,107,255,.25), 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid #2A3A60; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.console-bar b { margin-left: 10px; font: 500 13px Roboto, sans-serif; }
.run-pill { margin-left: auto; font: 700 10px "JetBrains Mono", monospace; letter-spacing: .1em; color: var(--cyan); border: 1px solid rgba(34,196,232,.5); background: rgba(34,196,232,.12); padding: 5px 10px 5px 20px; border-radius: 999px; position: relative; }
.run-pill::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.steps { list-style: none; margin: 0; padding: 14px 20px; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; }
.steps li b { display: block; font: 500 14.5px Roboto, sans-serif; }
.steps li small { font: 400 12px "JetBrains Mono", monospace; }
.steps .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.steps .dot .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.steps .ok .dot { color: #34D399; background: rgba(52,211,153,.16); border: 1px solid rgba(52,211,153,.6); }
.steps .ok small { color: #34D399; }
.steps .run { background: var(--navy3); border: 1px solid rgba(34,196,232,.5); }
.steps .run .dot { color: var(--cyan); background: rgba(34,196,232,.16); border: 1px solid rgba(34,196,232,.6); }
.steps .run small { color: var(--cyan); }
.steps .wait { color: #9AA8C7; }
.steps .wait .dot { color: #4B5B80; background: rgba(75,91,128,.16); border: 1px solid rgba(75,91,128,.6); }
.steps .wait small { color: #62719A; }
.bar { margin-left: auto; width: 110px; height: 6px; border-radius: 3px; background: #2A3A60; overflow: hidden; }
.bar i { display: block; height: 100%; width: 66%; background: var(--glow); border-radius: 3px; animation: grow 3s ease-in-out infinite alternate; }
@keyframes grow { from { width: 40%; } to { width: 78%; } }
.console-log { border-top: 1px solid #2A3A60; padding: 14px 24px 18px; font: 400 11.5px/2 "JetBrains Mono", monospace; color: var(--soft); }
.console-log p { margin: 0; display: flex; gap: 14px; }
.console-log time { color: #62719A; }
.console-log em { font-style: normal; font-weight: 700; width: 36px; }
.console-log .w { color: var(--amber); } .console-log .o { color: #34D399; } .console-log .i { color: var(--cyan); }

/* ---------- sections ---------- */
.sec { padding: 110px 0; background: var(--bg); }
.sec-alt { background: var(--bg-alt); }
.sec h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; margin: 26px 0 14px; max-width: 820px; }
.center h2, .center .sub { margin-inline: auto; }
.sub { color: var(--t2); font-size: 18px; max-width: 820px; margin: 0 0 54px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 23px; margin: 18px 0 10px; }
.card p { color: var(--t2); font-size: 15.5px; margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.letter { min-height: 300px; }
.L { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; font: 700 54px/1 Outfit, sans-serif; color: #fff; }
.L.g { background: var(--glow); }
.L.d { background: var(--ink); }
:root[data-theme="dark"] .L.d { background: #0B1220; border: 1px solid #2E3D61; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.flow::before { content: ""; position: absolute; top: 40px; left: 12%; right: 12%; border-top: 2px dashed var(--blue); opacity: .7; }
.flow li { position: relative; }
.node { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: var(--glow); color: #fff; box-shadow: 0 0 0 8px var(--bg-alt), 0 0 0 10px var(--blue); }
.node .ic { width: 28px; height: 28px; }
.node b { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--maroon); font: 700 13px/26px "JetBrains Mono", monospace; }
.flow h3 { font-size: 22px; margin-bottom: 8px; }
.flow p { color: var(--t2); font-size: 15px; margin: 0 auto; max-width: 270px; }
.feat { min-height: 210px; }
.fi { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(47,107,255,.12); color: var(--blue); }
.fi .ic { width: 24px; height: 24px; }
.feat h3 { font-size: 21px; margin-top: 22px; }

.sec-dark { background: var(--ink); color: #fff; }
.sec-dark .sub { color: var(--soft); }
.arch { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; max-width: 1040px; margin: 0 auto; text-align: left; }
.arch-box { background: var(--navy2); border: 1px solid rgba(47,107,255,.6); border-radius: 22px; padding: 30px; }
.arch-box.cyanb { border-color: rgba(34,196,232,.6); }
.arch-box h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.arch-box h3 .ic { width: 26px; height: 26px; color: #8FB0FF; }
.arch-box.cyanb h3 .ic { color: var(--cyan); }
.arch-box small { display: block; margin: 12px 0 18px; font: 700 11px "JetBrains Mono", monospace; letter-spacing: .14em; color: #8FB0FF; }
.arch-box.cyanb small { color: var(--cyan); }
.arch-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--soft); }
.arch-box li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 12px; vertical-align: middle; }
.arch-link { position: relative; height: 2px; background: var(--cyan); margin: 0 6px; }
.arch-link span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font: 700 11px "JetBrains Mono", monospace; color: var(--cyan); }
.arch-link::before, .arch-link::after { content: ""; position: absolute; top: -5px; border: 6px solid transparent; }
.arch-link::before { left: -6px; border-right-color: var(--cyan); }
.arch-link::after { right: -6px; border-left-color: var(--cyan); }
.secg h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin: 34px 0 10px; }
.secg h3 .ic { width: 26px; height: 26px; color: var(--blue); }
.secg p { color: var(--t2); font-size: 15px; margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); padding: 40px 0 34px; color: var(--mist); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--glow); border-radius: 26px; padding: 40px 60px; color: #fff; }
.cta-band h2 { font-size: 32px; }
.cta-band p { margin: 6px 0 0; color: #E5ECFF; }
.foot-row { display: flex; align-items: center; gap: 40px; margin-top: 30px; }
.foot-text p { margin: 0; font-size: 13px; line-height: 1.8; }
.foot-text p + p { color: #5D6B88; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--card); color: var(--t1); border: 1px solid var(--line); border-left: 4px solid var(--blue); padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 14px; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .hero-pattern { inset: 60% 0 0 0; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { height: 72px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy2); border: 1px solid #2A3A60; border-radius: 16px; padding: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-tools .btn-sm, .nav-tools .lang { display: none; }
  .nav-links.open ~ .nav-tools .lang { display: inline-flex; }
  .menu-btn { display: inline-grid; }
  .brand-name { font-size: 22px; }
  .brand img { width: 34px; height: 34px; }
  .hero-inner { padding-top: 24px; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 15.5px; }
  .cta .btn { width: 100%; height: 52px; }
  .console { display: none; }
  .sec { padding: 70px 0; }
  .sub { font-size: 16px; margin-bottom: 34px; }
  .grid4, .grid3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid3 { grid-template-columns: 1fr; }
  .letter { min-height: 0; padding: 16px; }
  .letter .L { width: 50px; height: 50px; font-size: 32px; border-radius: 13px; }
  .letter h3 { font-size: 17px; margin-top: 14px; }
  .letter p { font-size: 13px; }
  .flow { grid-template-columns: 1fr; text-align: left; gap: 28px; }
  .flow::before { top: 30px; bottom: 30px; left: 30px; right: auto; border-top: 0; border-left: 2px dashed var(--blue); }
  .flow li { display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .node { width: 60px; height: 60px; margin: 0; grid-row: span 2; }
  .flow p { margin: 0; max-width: none; }
  .arch { grid-template-columns: 1fr; gap: 18px; }
  .arch-link { width: 2px; height: 40px; margin: 0 auto; }
  .arch-link::before, .arch-link::after { display: none; }
  .arch-link span { top: 50%; left: 14px; transform: translateY(-50%); }
  .secg { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .cta-band h2 { font-size: 24px; }
  .cta-band .btn { width: 100%; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
