/* ==========================================================================
   RaesyaStudio — design system
   Palet: Deep Navy #101B35 · Electric Blue #4169E1 · Soft Blue #EAF0FF
          Off White #F8F9FC · White #FFFFFF · Charcoal #202534
   ========================================================================== */

:root {
  --navy: #101B35;
  --blue: #4169E1;
  --blue-deep: #2F50C4;
  --blue-light: #9DB3F7;
  --soft: #EAF0FF;
  --off: #F8F9FC;
  --white: #FFFFFF;
  --char: #202534;
  --muted: #586075;
  --line: rgba(16, 27, 53, .11);
  --line-strong: rgba(16, 27, 53, .22);

  --f-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --hdr: 72px;
  --r: 24px;
  --r-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 53, .05), 0 6px 18px -6px rgba(16, 27, 53, .08);
  --shadow: 0 2px 4px rgba(16, 27, 53, .04), 0 24px 48px -16px rgba(16, 27, 53, .2);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--off); color: var(--char);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--hdr) + 24px); }
main:focus { outline: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

/* Loading bar + transisi halaman */
.load-bar { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--blue); z-index: 300; opacity: 0; }
.load-bar.run { opacity: 1; animation: load 1.6s var(--ease) forwards; }
@keyframes load { to { width: 82%; } }
main { animation: pageIn .55s var(--ease) both; }
.is-leaving main { opacity: 0; transition: opacity .16s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.035em; line-height: 1.05; font-weight: 700; color: var(--navy); }
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--blue); }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.02; max-width: 18ch; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: var(--blue-light); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-deep); margin-top: 14px; }
.link-arrow:hover { gap: 12px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1; border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn .btn-ico { transition: transform .25s var(--ease); }
.btn:hover .btn-ico { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(65, 105, 225, .75); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--char); }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; padding-block: 17px; }

/* ---------- Status badge ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; font: 500 .74rem/1 var(--f-mono); letter-spacing: .04em; background: #fff; border: 1px solid var(--line); color: var(--char); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-dev { color: #14804a; background: #eaf7f0; border-color: #c4e8d4; }
.st-wip { color: #9a5b00; background: #fff4e0; border-color: #f4dcae; }
.st-proto { color: var(--blue-deep); background: var(--soft); border-color: #cfdcff; }
.st-concept { color: #5b6478; background: #eef0f5; border-color: #dde1ea; }
.status.st-dev, .status.st-wip, .status.st-proto, .status.st-concept { color: inherit; }
.st-dev { color: #14804a !important; } .st-wip { color: #9a5b00 !important; } .st-proto { color: var(--blue-deep) !important; } .st-concept { color: #5b6478 !important; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 249, 252, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(16, 27, 53, .25); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font: 800 1.28rem/1 var(--f-display); letter-spacing: -.04em; flex-shrink: 0; }
.logo span { color: var(--navy); }
.logo-light span { color: #fff; }
.logo-light { color: var(--blue-light); }
.nav-desktop { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-desktop > a, .nav-dd > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--char); position: relative; transition: background .2s, color .2s; }
.nav-desktop > a:hover, .nav-dd > a:hover { background: var(--soft); }
.nav-desktop .is-active { color: var(--blue-deep); }
.nav-desktop .is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.nav-dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px); width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-panel a { display: flex; gap: 14px; padding: 12px 14px; border-radius: 14px; align-items: flex-start; }
.dd-panel a:hover { background: var(--soft); }
.dd-panel svg { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.dd-panel b { display: block; font: 600 .95rem var(--f-display); color: var(--navy); letter-spacing: -.01em; }
.dd-panel em { display: block; font-style: normal; font-size: .82rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.hdr-cta .btn { padding: 12px 20px; font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; align-items: center; justify-content: center; }
.menu-btn .mi-close { display: none; }
.menu-open .menu-btn .mi-open { display: none; }
.menu-open .menu-btn .mi-close { display: block; }
.mobile-menu { position: fixed; inset: var(--hdr) 0 0 0; background: var(--off); padding: 24px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 700 2rem/1 var(--f-display); letter-spacing: -.04em; color: var(--navy); animation: rise-s .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.mobile-menu nav a small { font: 500 .75rem var(--f-mono); color: var(--blue); letter-spacing: .1em; }
.mobile-menu nav a.is-active { color: var(--blue); }
.mm-foot { display: grid; gap: 14px; margin-top: 28px; }
.mm-foot p { color: var(--muted); font-size: .9rem; text-align: center; }
@keyframes rise-s { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d2ea; padding: clamp(56px, 8vw, 96px) 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(157, 179, 247, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 179, 247, .07) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); pointer-events: none; }
.site-footer .wrap { position: relative; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: clamp(28px, 4vw, 56px); }
.ft-brand p { margin-top: 18px; max-width: 34ch; font-size: .95rem; }
.ft-brand .ft-motto { font: 500 .8rem var(--f-mono); color: var(--blue-light); letter-spacing: .06em; }
.site-footer h3 { font: 500 .75rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ft-contact svg { margin-top: 4px; color: var(--blue-light); flex-shrink: 0; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(157, 179, 247, .18); font-size: .88rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-light); }

/* WhatsApp floating */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 0; padding: 14px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 12px 30px -8px rgba(16, 27, 53, .55); transition: gap .3s var(--ease), padding .3s var(--ease), transform .25s; overflow: hidden; }
.wa-float::after { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #34d27b; border: 2px solid var(--navy); }
.wa-float span { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 600; font-size: .9rem; transition: max-width .35s var(--ease), opacity .25s; }
.wa-float:hover, .wa-float:focus-visible { gap: 10px; padding-right: 22px; transform: translateY(-2px); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 160px; opacity: 1; }

/* ---------- Section dasar ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-more { margin-top: 36px; display: flex; justify-content: center; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding-block: 16px; }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq-row { display: flex; }
.mq-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 clamp(1.1rem, 2vw, 1.5rem) var(--f-display); letter-spacing: -.03em; color: var(--navy); white-space: nowrap; }
.mq-item b { color: var(--blue); font-weight: 400; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Pembatas kreatif */
.divider { display: flex; align-items: center; gap: 14px; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); color: var(--line-strong); }
.dv-line { flex: 1; height: 1px; background: currentColor; }
.dv-tick { width: 9px; height: 9px; border: 1.5px solid var(--blue); transform: rotate(45deg); flex-shrink: 0; }
.dv-label { font: 500 .72rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: #fff; padding-block: clamp(72px, 10vw, 130px); overflow: hidden; isolation: isolate; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 5.4vw, 4.6rem); max-width: 16ch; line-height: 1; }
.cta-band p { max-width: 52ch; margin-top: 22px; color: #c9d2ea; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(157, 179, 247, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 179, 247, .1) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(60% 90% at 90% 10%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 90% at 90% 10%, #000, transparent 75%); }
.cta-band::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(65, 105, 225, .55), transparent 65%); z-index: 0; }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 100% at 100% 0, #000, transparent 70%); -webkit-mask-image: radial-gradient(70% 100% at 100% 0, #000, transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.ph-title { font-size: clamp(2.4rem, 6.2vw, 5.6rem); line-height: .98; letter-spacing: -.045em; max-width: 16ch; font-weight: 800; }
.ph-lead { margin-top: 26px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }

/* ---------- HERO (Home) ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(36px, 6vw, 84px); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(80% 90% at 80% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 90% at 80% 20%, #000, transparent 75%); pointer-events: none; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(65, 105, 225, .2), transparent 65%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "eyebrow eyebrow" "title title" "lead vis" "cta vis"; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(20px, 3vw, 32px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-copy { display: contents; }
.hero-copy > .eyebrow { grid-area: eyebrow; margin-bottom: 0; }
.hero-title { grid-area: title; font-size: clamp(2.5rem, 7.1vw, 6.9rem); line-height: .94; letter-spacing: -.05em; font-weight: 800; color: var(--navy); }
.hero-title .serif-i { font-size: 1.06em; letter-spacing: -.02em; }
.ln { display: block; overflow: hidden; padding: .02em 0 .1em; }
.ln > span { display: inline-block; animation: rise .95s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .09s; } .ln:nth-child(3) > span { animation-delay: .18s; } .ln:nth-child(4) > span { animation-delay: .27s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-lead { grid-area: lead; align-self: start; max-width: 38ch; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); animation: fadeUp .8s .45s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy .hero-cta { grid-area: cta; align-self: start; margin-top: 0; animation: fadeUp .8s .55s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Visual hero (komposisi CSS) */
.hv { grid-area: vis; align-self: start; position: relative; aspect-ratio: 1.22 / 1; width: 100%; animation: fadeUp 1s .35s var(--ease) both; }
.hv-ring { position: absolute; width: 74%; aspect-ratio: 1; right: -4%; top: -6%; border-radius: 50%; border: 1.5px dashed rgba(65, 105, 225, .35); animation: spin 60s linear infinite; }
.hv-dots { position: absolute; left: -2%; bottom: 10%; width: 90px; height: 90px; background-image: radial-gradient(var(--blue) 1.5px, transparent 1.5px); background-size: 14px 14px; opacity: .45; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hv-browser { left: 0; top: 7%; width: 64%; animation: float 7s ease-in-out infinite; }
.hv-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--off); border-bottom: 1px solid var(--line); }
.hv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cfd6e8; }
.hv-bar span { margin-left: 8px; font: 10px var(--f-mono); color: var(--muted); }
.hv-page { padding: 14px; display: grid; gap: 12px; }
.hv-hero { border-radius: 12px; padding: 22px 18px; background: linear-gradient(135deg, var(--navy), #1d3166); display: grid; gap: 9px; }
.hv-hero b { display: block; height: 10px; width: 78%; border-radius: 6px; background: #fff; }
.hv-hero b.s { width: 50%; background: rgba(255, 255, 255, .45); height: 7px; }
.hv-hero .pill { width: 70px; height: 22px; border-radius: 999px; background: var(--blue); margin-top: 6px; }
.hv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hv-tiles span { height: 46px; border-radius: 10px; background: var(--soft); }
.hv-dash { right: 0; top: 0; width: 40%; padding: 14px; animation: float 8s -2s ease-in-out infinite; }
.hv-dash-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; }
.hv-dash-top b { font-family: var(--f-display); color: var(--navy); }
.hv-dash-top em { font: 9px var(--f-mono); color: var(--muted); font-style: normal; }
.hv-bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin: 12px 0; }
.hv-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--soft); }
.hv-bars i:nth-child(even) { background: var(--blue); }
.hv-dash-row { display: grid; gap: 6px; }
.hv-dash-row span { height: 7px; border-radius: 4px; background: var(--soft); }
.hv-dash-row span:last-child { width: 60%; }
.hv-chat { left: 9%; bottom: 0; width: 42%; padding: 12px; display: grid; gap: 7px; animation: float 9s -4s ease-in-out infinite; }
.hv-code { right: 2%; bottom: 8%; width: 46%; background: var(--navy); border-color: rgba(255, 255, 255, .08); padding: 14px 16px; animation: float 8s -1s ease-in-out infinite; }
.hv-code code { font: 400 .72rem/1.7 var(--f-mono); color: #c9d2ea; white-space: nowrap; }
.hv-code .k { color: #8fb0ff; } .hv-code .f { color: #7fe3b0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Bubble chat (dipakai banyak mockup) */
.bub { font-size: .72rem; line-height: 1.35; padding: 8px 11px; border-radius: 12px; max-width: 88%; }
.bub.in { background: var(--off); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; color: var(--char); }
.bub.out { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.bub.ok { background: var(--soft); color: var(--blue-deep); border-color: #cfdcff; font-weight: 600; }

/* ---------- Services overview (bento) ---------- */
.sec-services { background: var(--white); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bt { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); background: var(--off); border: 1px solid var(--line); min-height: 230px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, background .3s; }
.bt:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-light); background: #fff; }
.bt-1 { grid-column: 1 / 8; grid-row: 1 / 3; background: var(--soft); }
.bt-2 { grid-column: 8 / 13; } .bt-3 { grid-column: 8 / 13; }
.bt-4 { grid-column: 1 / 6; } .bt-5 { grid-column: 6 / 13; }
.bt.dark { background: var(--navy); color: #c9d2ea; border-color: var(--navy); }
.bt.dark:hover { background: #162654; }
.bt.dark h3 { color: #fff; }
.bt.dark .bt-chips em { background: rgba(255, 255, 255, .08); color: #c9d2ea; border-color: rgba(255, 255, 255, .12); }
.bt-top { display: flex; justify-content: space-between; align-items: center; color: var(--blue); }
.bt-top small { font: 500 .78rem var(--f-mono); letter-spacing: .1em; }
.bt.dark .bt-top { color: var(--blue-light); }
.bt h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.bt-1 h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.bt p { margin-top: 10px; color: var(--muted); max-width: 40ch; font-size: .98rem; }
.bt.dark p { color: #aab6d6; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.bt-chips em { font-style: normal; font-size: .76rem; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--char); }
.bt-go { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; opacity: 0; transform: translate(-6px, 6px); transition: all .3s var(--ease); }
.bt.dark .bt-go { background: var(--blue); }
.bt:hover .bt-go { opacity: 1; transform: none; }
.bt-vis { display: block; flex: 1; min-height: 120px; position: relative; }
.mini-b { position: absolute; left: 0; right: 0; top: 4px; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); padding: 34px 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: 8px; }
.mini-b i { position: absolute; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #cfd6e8; }
.mini-b i:nth-child(1) { left: 14px; } .mini-b i:nth-child(2) { left: 28px; } .mini-b i:nth-child(3) { left: 42px; }
.mini-b b { grid-column: 1 / -1; display: block; height: 14px; width: 60%; border-radius: 7px; background: var(--navy); }
.mini-b b.s { height: 9px; width: 38%; background: var(--blue-light); }
.mini-b span { height: 54px; border-radius: 10px; background: var(--soft); }

/* ---------- Selected projects: galeri horizontal ---------- */
.sec-work { padding-bottom: clamp(60px, 8vw, 110px); }
.gal-ctrl { display: flex; gap: 10px; }
.gal-ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; transition: all .25s var(--ease); }
.gal-ctrl button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); padding: 8px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 28px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; outline-offset: -4px; }
.gal-track { display: flex; gap: 20px; width: max-content; }
.gal-item { flex: 0 0 min(82vw, 540px); scroll-snap-align: start; display: block; }
.gal-all { display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border-radius: var(--r); background: var(--navy); color: #fff; min-height: 420px; transition: background .3s; }
.gal-all:hover { background: var(--blue-deep); }
.gal-all span { font: 500 .78rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.gal-all b { font: 800 clamp(5rem, 12vw, 9rem)/.9 var(--f-display); letter-spacing: -.06em; }
.gal-all em { font-style: normal; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }

/* Kartu proyek */
.pcard { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.pc-link { display: flex; flex-direction: column; height: 100%; }
.pc-media { position: relative; height: clamp(220px, 22vw, 290px); background: linear-gradient(135deg, var(--soft), #f6f8ff); overflow: hidden; }
.pc-media.is-shot { padding: 22px 22px 0; }
.pc-tag { position: absolute; left: 14px; top: 14px; z-index: 2; font: 500 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--muted); border: 1px solid var(--line); }
.is-shot .bframe { border-bottom: 0; border-radius: 12px 12px 0 0; height: 100%; transition: transform .6s var(--ease); }
.pcard:hover .is-shot .bframe { transform: translateY(-6px); }
.pc-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pc-num { font: 500 .8rem var(--f-mono); color: var(--muted); letter-spacing: .1em; }
.pc-body h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); }
.pc-cat { font: 500 .78rem var(--f-mono); color: var(--blue-deep); letter-spacing: .02em; }
.pc-sum { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.pc-more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.pcard:hover .pc-more { color: var(--blue); gap: 12px; }

/* Browser frame */
.bframe { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.bf-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--off); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.bf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6e8; }
.bf-bar span { margin-left: 10px; font: 11px var(--f-mono); color: var(--muted); }
.bf-body { flex: 1; min-height: 0; position: relative; background: #fff; }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top left; background: var(--soft); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-head { position: sticky; top: calc(var(--hdr) + 32px); }
.why-head .muted { margin-top: 24px; max-width: 42ch; }
.why-list li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 32px 0; border-top: 1px solid var(--line-strong); }
.why-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.why-n { font: 400 2.6rem/1 var(--f-serif); font-style: italic; color: var(--blue); }
.why-list h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.why-list p { margin-top: 10px; color: var(--muted); max-width: 52ch; }

/* ---------- Approach ---------- */
.sec-approach { background: var(--navy); color: #c9d2ea; position: relative; overflow: hidden; }
.sec-approach h2 { color: #fff; }
.approach { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid rgba(157, 179, 247, .25); }
.approach li { border-left: 1px solid rgba(157, 179, 247, .2); }
.approach li:last-child { border-right: 1px solid rgba(157, 179, 247, .2); }
.approach a { display: block; padding: 22px 16px 28px; height: 100%; transition: background .3s; }
.approach a:hover { background: rgba(65, 105, 225, .22); }
.approach small { font: 500 .78rem var(--f-mono); color: var(--blue-light); letter-spacing: .1em; }
.approach h3 { color: #fff; font-size: 1.2rem; margin: 40px 0 10px; }
.approach p { font-size: .85rem; line-height: 1.5; color: #aab6d6; }

/* ---------- Stats ---------- */
.sec-stats { padding-block: clamp(64px, 8vw, 110px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.stats > div { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: 24px; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font: 800 clamp(3.4rem, 8vw, 6.4rem)/1 var(--f-display); letter-spacing: -.06em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.stats-note { margin-top: 28px; font: 400 .8rem var(--f-mono); color: var(--muted); letter-spacing: .02em; }

/* ---------- Responsif: dasar ---------- */
@media (max-width: 1100px) {
  .approach { grid-template-columns: repeat(4, 1fr); }
  .approach li { border-bottom: 1px solid rgba(157, 179, 247, .2); }
}
@media (max-width: 960px) {
  .nav-desktop, .hdr-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "eyebrow" "title" "lead" "cta" "vis"; }
  .hero-lead { max-width: 46ch; }
  .hv { max-width: 640px; margin: 24px auto 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bt-1 { grid-column: 1 / -1; grid-row: auto; }
  .bt-2, .bt-3, .bt-4 { grid-column: auto; }
  .bt-5 { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; }
  .why-head { position: static; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bt-1, .bt-2, .bt-3, .bt-4, .bt-5 { grid-column: 1 / -1; }
  .approach { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .why-list li { grid-template-columns: 52px 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hv-code code { font-size: .62rem; }
  .wa-float { right: 14px; bottom: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mq-track { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Slot iklan (di atas footer) ---------- */
.ad-slot { padding: 28px 0; background: var(--off); border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.ad-slot .wrap { display: grid; justify-items: center; gap: 8px; }
.ad-label { font: 500 .68rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-slot [id^="container-"] { max-width: 100%; min-height: 0; }

/* ---------- Kelas Python & AI (awal homepage) ---------- */
.hero-class { display: inline-flex; align-items: center; gap: 6px; align-self: center; padding: 10px 4px; font-weight: 600; font-size: .95rem; color: var(--blue-deep); border-bottom: 1.5px solid var(--blue-light); transition: border-color .25s, gap .25s var(--ease); }
.hero-class:hover { border-color: var(--blue); gap: 10px; }
.sec-class { background: var(--navy); color: #c9d2ea; padding: clamp(56px, 8vw, 104px) 0; position: relative; overflow: hidden; scroll-margin-top: 72px; }
.sec-class::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.cl-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sec-class .eyebrow, .sec-class [class*="eyebrow"] { color: var(--blue-light); }
.cl-title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; margin-top: 14px; }
.cl-title em { color: #9db6ff; }
.cl-lead { margin-top: 18px; max-width: 52ch; font-size: 1.05rem; color: #b7c3e3; }
.cl-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; max-width: 560px; }
.cl-points li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.cl-points li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.cl-points b { color: #fff; font-size: 1.05rem; font-weight: 600; }
.cl-points span { color: #a9b6d9; font-size: .95rem; }
.cl-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0; }
.cl-facts dt { font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8fa2d6; }
.cl-facts dd { margin: 2px 0 0; color: #fff; font-weight: 600; }
.cl-note { margin-top: 22px; font-size: .88rem; color: #8fa2d6; max-width: 52ch; }
.cl-card { background: #fff; color: var(--char); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); }
.cl-card h3 { font-size: 1.4rem; margin-bottom: 18px; color: var(--navy); }
.cl-card .f { margin-bottom: 14px; }
.cl-card .f-row { margin-bottom: 0; }
.cl-submit { width: 100%; justify-content: center; margin-top: 6px; }
@media (max-width: 900px) { .cl-grid { grid-template-columns: minmax(0, 1fr); } }

.cl-poster { margin: 34px 0 0; max-width: 380px; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); background: #fff; }
.cl-poster img { display: block; width: 100%; height: auto; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.testi { margin: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.testi blockquote { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.6; }
.testi figcaption { display: grid; gap: 2px; font-size: .9rem; }
.testi figcaption span { color: var(--muted); }
@media (min-width: 901px) { .cl-card { position: sticky; top: 96px; } }
.testi-poster { padding: 0; overflow: hidden; max-width: 640px; box-shadow: 0 24px 60px -30px rgba(16,27,53,.35); }
.testi-poster img { display: block; width: 100%; height: auto; }

/* Poster + testimoni bergambar sejajar (kolom sama dengan form di atasnya) */
.cl-extra { margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.cl-extra .cl-poster { margin: 0; justify-self: start; width: 100%; max-width: 460px; }
.cl-testi { margin: 0; width: 100%; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.cl-testi img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .cl-extra .cl-poster { justify-self: center; } }
@media (min-width: 901px) {
  .cl-extra { grid-template-columns: 460px minmax(0, 520px); justify-content: center; gap: 40px; align-items: center; }
  .cl-extra .cl-poster { justify-self: stretch; }
}
@media (max-width: 900px) { .cl-extra { gap: 24px; } }
