/* =========================================================================
   BIJAK STYLES — "marketing control room". Mobile-first:
   base = phone, ≥720px tablet, ≥960px desktop. All values from tokens.css.
   Dark sections use glass panels; light sections stay clean for reading.
   ========================================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-3)); background: var(--c-void); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-text); background: var(--c-paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; padding-bottom: 84px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--c-swoosh); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-swoosh); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--c-paper); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); }
.skip-link:focus { left: var(--s-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--mist { background: var(--c-mist); }

/* Dark "night" sections: navy with a faint blueprint grid and a top glow */
.section--night { background: var(--c-night); color: var(--c-on-dark); isolation: isolate; overflow: hidden; }
.section--night::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.35; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
.section--night::after { content: ""; position: absolute; z-index: -1; top: -240px; left: 50%; width: 720px; height: 480px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(30, 139, 255, 0.28), transparent); pointer-events: none; }
.section--night + .section--night { padding-top: 0; }
.section--night + .section--night::after { display: none; }

/* ---------- Section heading ---------- */
.section-head { max-width: var(--measure); margin-bottom: var(--s-6); }
.section-head h2 { font-size: var(--fs-h2); font-weight: var(--fw-heavy); line-height: var(--lh-heading); letter-spacing: var(--tracking-heading); }
.section-head .lede { margin-top: var(--s-3); font-size: var(--fs-lead); color: var(--c-text-muted); }
.section--night .lede { color: var(--c-on-dark-muted); }
.sub-head { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin-bottom: var(--s-4); letter-spacing: -0.01em; }
.block-gap { margin-top: var(--s-7); }

/* ---------- Glass panel (dark sections) + gradient border + pointer glow ---------- */
.glass { position: relative; background: linear-gradient(180deg, var(--c-glass-strong), var(--c-glass)); border: 1px solid var(--c-glass-line); border-radius: var(--r-lg); } /* no backdrop blur: panels sit on solid dark, blur only costs phone GPU */
.glass--edge { border-color: transparent; }
.glass--edge::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad-border); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@media (hover: hover) {
  .glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 139, 255, 0.16), transparent 65%); opacity: 0; transition: opacity var(--dur-base) var(--ease); pointer-events: none; }
  .glass:hover::after { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-md); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { font-weight: var(--fw-medium); opacity: 0.8; }
.btn--wa { background: var(--c-wa); color: var(--c-ink); box-shadow: var(--glow-wa); }
.btn--wa:hover { background: var(--c-wa-hover); }
.btn--primary { background: var(--c-blue); color: var(--c-on-dark); }
.btn--primary:hover { background: var(--c-blue-deep); }
.btn--outline { background: var(--c-paper); border-color: var(--c-line); color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-swoosh); box-shadow: 0 0 0 3px rgba(30, 139, 255, 0.12); }
.btn--glass { background: var(--c-glass-strong); border-color: var(--c-glass-line); color: var(--c-on-dark); }
.btn--glass:hover { border-color: rgba(148, 197, 255, 0.45); background: rgba(255, 255, 255, 0.12); }
.btn--block { width: 100%; }

/* ---------- Header (dark glass, sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(4, 11, 24, 0.72); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.site-header.is-scrolled { background: rgba(4, 11, 24, 0.9); border-bottom-color: var(--c-glass-line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-on-dark); text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand-name { font-size: 1.02rem; font-weight: var(--fw-heavy); letter-spacing: 0.18em; line-height: 1; }
.brand-name small { display: block; margin-top: 4px; font-size: 0.6rem; font-weight: var(--fw-medium); letter-spacing: 0.02em; color: var(--c-on-dark-muted); }
.menu-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--c-glass-line); border-radius: var(--r-md); background: var(--c-glass); color: var(--c-on-dark); font-size: var(--fs-sm); font-weight: var(--fw-bold); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; padding: var(--s-2) var(--gutter) var(--s-5); background: rgba(4, 11, 24, 0.97); border-bottom: 1px solid var(--c-glass-line); box-shadow: var(--shadow-float); }
.nav-links.is-open { display: flex; }
.nav-links a { padding: 14px 0; border-bottom: 1px solid var(--c-line-dark); color: var(--c-on-dark); font-weight: var(--fw-medium); text-decoration: none; }
.nav-links .btn { margin-top: var(--s-4); padding: 12px 22px; border-bottom: 0; color: var(--c-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-6) var(--s-8); background: var(--c-void); color: var(--c-on-dark); }
.hero::before { content: ""; position: absolute; z-index: -1; top: -30%; right: -45%; width: 130vw; height: 130vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(closest-side, rgba(30, 139, 255, 0.42), rgba(30, 139, 255, 0.08) 55%, transparent); }
.hero-glow { position: absolute; z-index: -1; bottom: -20%; left: -30%; width: 90vw; height: 90vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, rgba(34, 181, 227, 0.22), transparent); pointer-events: none; }
.hero-grid { position: absolute; z-index: -1; left: -50%; right: -50%; bottom: -6%; height: 46%; background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%); pointer-events: none; }
.hero-layout { display: grid; gap: var(--s-7); }
.kicker { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px 6px 8px; border: 1px solid var(--c-glass-line); border-radius: var(--r-pill); background: var(--c-glass); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-on-dark-muted); }
.kicker img { width: 18px; height: auto; }
.hero h1 { margin-top: var(--s-5); max-width: 16ch; font-size: var(--fs-display); font-weight: var(--fw-heavy); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { max-width: 44ch; margin-top: var(--s-4); font-size: 1.1rem; color: var(--c-on-dark-muted); }
.hero-ctas { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.built-for { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.built-for::-webkit-scrollbar { display: none; }
.built-for > span { flex: none; font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.built-for li { flex: none; padding: 6px 12px; border: 1px solid var(--c-glass-line); border-radius: var(--r-pill); background: var(--c-glass); font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; }
.built-for ul { display: flex; gap: var(--s-2); }
.proof { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); text-decoration: none; color: var(--c-on-dark); }
.logo-stack { display: flex; }
.logo-stack img { width: 36px; height: 36px; margin-left: -10px; padding: 3px; border-radius: 50%; border: 2px solid var(--c-void); background: var(--c-paper); object-fit: contain; }
.logo-stack img:first-child { margin-left: 0; }
.proof span { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.proof:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Dashboard visual */
.dash-stage { position: relative; padding-block: 30px 34px; }
.dash { padding: var(--s-5); border-radius: var(--r-lg); box-shadow: var(--glow-blue); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.dash-title { display: flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-bold); }
.dash-title img { width: 20px; }
.dash-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(34, 181, 227, 0.14); color: var(--c-signal); font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; }
.dash-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-signal); }
.dash-period { margin-top: 2px; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-4); }
.metric { padding: var(--s-3); border: 1px solid var(--c-line-dark); border-radius: var(--r-md); background: rgba(4, 11, 24, 0.45); min-width: 0; }
.metric-plat { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-signal); }
.metric-val { margin-top: 4px; font-size: clamp(1.05rem, 4.6vw, 1.45rem); font-weight: var(--fw-heavy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-lbl { margin-top: 4px; font-size: 0.68rem; line-height: 1.3; color: var(--c-on-dark-muted); }
.dash-chart { margin-top: var(--s-3); padding: var(--s-3); border: 1px solid var(--c-line-dark); border-radius: var(--r-md); background: rgba(4, 11, 24, 0.45); }
.dash-chart-head { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.dash-chart-head b { color: var(--c-wa); font-weight: var(--fw-bold); }
.dash-chart svg { display: block; width: 100%; height: auto; margin-top: var(--s-2); }
.dash-chart .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1400ms var(--ease) 500ms forwards; }
.dash-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.dash-foot b { font-size: 1.15rem; color: var(--c-on-dark); font-variant-numeric: tabular-nums; }
.dash-caption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.toast { position: absolute; z-index: 2; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-2); align-items: center; width: min(232px, 70%); padding: 9px 12px; border: 1px solid rgba(37, 211, 102, 0.35); border-radius: var(--r-md); background: rgba(7, 22, 48, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-float); opacity: 0; animation: pop 500ms var(--ease) forwards; }
.toast-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-wa); color: var(--c-ink); }
.toast-ico svg { width: 18px; height: 18px; }
.toast b { display: block; font-size: var(--fs-sm); line-height: 1.2; }
.toast small { display: block; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.toast:nth-child(1) { top: 0; right: -4px; animation-delay: 1100ms; }
.toast:nth-child(2) { bottom: 0; left: -4px; animation-delay: 1900ms; }
.toast:nth-child(3) { display: none; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-7); }
.stat { padding: var(--s-4); border: 1px solid var(--c-glass-line); border-radius: var(--r-md); background: var(--c-glass); }
.stat-value { font-size: 1.8rem; font-weight: var(--fw-heavy); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-on-dark-muted); }

.hero .enter { opacity: 0; animation: rise var(--dur-enter) var(--ease) forwards; }
.hero .enter:nth-child(2) { animation-delay: 70ms; }
.hero .enter:nth-child(3) { animation-delay: 140ms; }
.hero .enter:nth-child(4) { animation-delay: 210ms; }
.hero .enter:nth-child(5) { animation-delay: 280ms; }
.hero .enter:nth-child(6) { animation-delay: 350ms; }
.dash-wrap.enter { animation-delay: 300ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Icon list (light) ---------- */
.icon-list { display: grid; gap: var(--s-3); }
.icon-item { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-paper); transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--c-swoosh), var(--c-blue)); color: var(--c-on-dark); box-shadow: 0 8px 20px -10px rgba(30, 139, 255, 0.8); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-item h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.3; }
.icon-item p { margin-top: var(--s-1); color: var(--c-text-muted); }
@media (hover: hover) { .icon-item:hover { border-color: rgba(30, 139, 255, 0.45); box-shadow: var(--shadow-lift); transform: translateY(-2px); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { padding: 7px 14px; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-paper); font-size: var(--fs-sm); font-weight: var(--fw-medium); }

/* ---------- Benchmarks (dark data section) ---------- */
.bench-grid { display: grid; gap: var(--s-6); }
.bench-grid > *, .two-col > *, .case > *, .perdana-grid > *, .contact-grid > *, .hero-layout > *, .tab-panel, .tiers > * { min-width: 0; }
.ranges { display: grid; gap: var(--s-5); padding: var(--s-5); }
.range { display: grid; gap: var(--s-2); }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.range-name { font-weight: var(--fw-bold); }
.range-inc { display: block; font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.range-val { flex: none; font-weight: var(--fw-heavy); color: var(--c-signal); font-variant-numeric: tabular-nums; }
.range-track { position: relative; height: 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.07); }
.range-fill { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); border-radius: var(--r-pill); background: linear-gradient(90deg, var(--c-swoosh), var(--c-signal)); box-shadow: 0 0 16px rgba(34, 181, 227, 0.55); }
.range-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.panel { padding: var(--s-5); }
.funnel { display: grid; gap: var(--s-2); }
.funnel-row { display: grid; grid-template-columns: 78px 1fr 62px; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.funnel-bar { height: 22px; width: calc(var(--w) * 1%); min-width: 12%; border-radius: 6px; background: linear-gradient(90deg, var(--c-signal), var(--c-swoosh)); box-shadow: 0 0 14px rgba(30, 139, 255, 0.45); }
.funnel-val { text-align: right; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.steps-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; height: 120px; margin-top: var(--s-4); }
.steps-bar li { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.steps-col { height: calc(var(--h) * 1%); min-height: 8px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--c-signal), rgba(30, 139, 255, 0.35)); }
.steps-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: var(--s-2); font-size: 0.68rem; color: var(--c-on-dark-muted); text-align: center; }
.steps-labels b { display: block; font-size: var(--fs-sm); color: var(--c-on-dark); }

/* ---------- Who we serve ---------- */
.types { display: grid; gap: var(--s-3); }
.type { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: linear-gradient(135deg, var(--c-night), var(--c-blue)); color: var(--c-on-dark); }
.type strong { font-size: var(--fs-h3); }
.type span { font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.two-col { display: grid; gap: var(--s-7); }
.journey { display: grid; gap: var(--s-2); }
.journey li { display: grid; grid-template-columns: 92px 18px 1fr; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); }
.journey li:nth-child(2) { margin-right: 6%; }
.journey li:nth-child(3) { margin-right: 12%; }
.journey li:nth-child(4) { margin-right: 18%; border-color: transparent; background: var(--c-night); color: var(--c-on-dark); box-shadow: var(--glow-blue); }
.journey svg { width: 16px; height: 16px; color: var(--c-swoosh); }
.market li { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--c-line); }
.market li span { color: var(--c-text-muted); text-align: right; }

/* ---------- Numbered timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--s-5); }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 17px; width: 2px; background: linear-gradient(180deg, var(--c-swoosh), var(--c-line)); }
.t-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: var(--s-4); }
.t-num { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--c-swoosh), var(--c-blue)); color: var(--c-on-dark); font-weight: var(--fw-heavy); font-size: var(--fs-sm); box-shadow: 0 0 0 5px var(--c-mist); }
.section:not(.section--mist) .t-num { box-shadow: 0 0 0 5px var(--c-paper); }
.t-step h3 { padding-top: 6px; font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.3; }
.t-step p { margin-top: var(--s-1); color: var(--c-text-muted); }
.timeline--compact .t-num { background: var(--c-paper); color: var(--c-blue); border: 2px solid var(--c-swoosh); }

/* ---------- Results (night) ---------- */
.case { display: grid; gap: var(--s-6); }
.case-label { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(34, 181, 227, 0.14); color: var(--c-signal); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.case-summary { margin-top: var(--s-4); max-width: 52ch; font-size: var(--fs-lead); color: var(--c-on-dark-muted); }
.chart { padding: var(--s-5); }
.chart h3 { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-on-dark-muted); }
.chart svg { display: block; width: 100%; height: auto; margin-top: var(--s-3); }
.chart .draw { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset var(--dur-slow) var(--ease); }
.chart.is-drawn .draw { stroke-dashoffset: 0; }
.chart-note { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.years { display: grid; gap: var(--s-3); }
.year { padding: var(--s-4) var(--s-5); }
.year h3 { font-size: var(--fs-h3); color: var(--c-signal); }
.year dl { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.year dt { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-on-dark-muted); }
.year dd { font-size: var(--fs-sm); }
.cta-band { display: grid; gap: var(--s-4); margin-top: var(--s-7); padding: var(--s-5); }
.cta-band p { font-size: var(--fs-lead); }

/* ---------- Platform snapshot (night, continues results) ---------- */
.seg-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: var(--s-4); border: 1px solid var(--c-glass-line); border-radius: var(--r-md); background: var(--c-glass); }
.seg-control button { min-height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-on-dark-muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); cursor: pointer; }
.seg-control button[aria-selected="true"] { background: var(--c-swoosh); color: var(--c-on-dark); box-shadow: 0 6px 18px -6px rgba(30, 139, 255, 0.8); }
.plats { display: grid; gap: var(--s-4); }
.plat { padding: var(--s-5); }
.plat[hidden] { display: none; }
.plat-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.plat-head h3 { font-size: var(--fs-h3); font-weight: var(--fw-heavy); }
.plat-tag { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(34, 181, 227, 0.14); color: var(--c-signal); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.plat dl div { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: 10px; border-bottom: 1px solid var(--c-line-dark); font-size: var(--fs-sm); }
.plat dl div:last-child { border-bottom: 0; }
.plat dt { color: var(--c-on-dark-muted); }
.plat dd { font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; }
.note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-text-muted); }
.section--night .note { color: var(--c-on-dark-muted); }

/* ---------- Clients (light) ---------- */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-3); }
.client img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
@media (hover: hover) { .client:hover img { transform: translateY(-3px); border-color: rgba(30, 139, 255, 0.45); box-shadow: var(--shadow-lift); } }
.client-name { margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.3; }
.client-svc { font-size: var(--fs-xs); color: var(--c-blue); }

/* ---------- Testimonials (night, swipe on phone) ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-3); scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.swipe-hint { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-text-muted); }
.section--night .swipe-hint { color: var(--c-on-dark-muted); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5); padding: var(--s-5); }
.quote blockquote { font-size: var(--fs-lead); line-height: 1.6; }
.quote blockquote::before { content: "\201C"; display: block; height: 30px; font-size: 3.2rem; line-height: 1; background: var(--grad-border); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--c-line-dark); }
.quote figcaption img { width: 44px; height: 44px; padding: 3px; border-radius: var(--r-sm); background: var(--c-paper); object-fit: contain; }
.quote-org { font-weight: var(--fw-bold); }
.quote-role { font-size: var(--fs-sm); color: var(--c-on-dark-muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.gallery figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.gallery figcaption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ---------- Packages (light) ---------- */
.tabs { display: flex; gap: var(--s-2); overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-2); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); text-align: left; cursor: pointer; transition: border-color var(--dur-fast) var(--ease); }
.tab:hover { border-color: var(--c-swoosh); }
.tab b { font-size: var(--fs-sm); }
.tab span { font-size: var(--fs-xs); color: var(--c-text-muted); }
.tab[aria-selected="true"] { border-color: transparent; background: linear-gradient(135deg, var(--c-night), var(--c-blue)); color: var(--c-on-dark); box-shadow: 0 10px 24px -12px rgba(27, 85, 134, 0.9); }
.tab[aria-selected="true"] span { color: var(--c-on-dark-muted); }
.tab-panel { margin-top: var(--s-5); }
.tab-panel[hidden] { display: none; }
.tab-summary { max-width: var(--measure); color: var(--c-text-muted); }
.tier-note { margin-top: var(--s-1); font-size: var(--fs-sm); font-style: italic; color: var(--c-text-muted); }
.tiers { margin-top: var(--s-5); }
.tier { position: relative; display: flex; flex-direction: column; padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-paper); transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.tier::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--c-swoosh), var(--c-signal)); }
@media (hover: hover) { .tier:hover { border-color: rgba(30, 139, 255, 0.45); box-shadow: var(--shadow-lift); } }
.tier h3 { font-size: 1.35rem; font-weight: var(--fw-heavy); letter-spacing: -0.01em; }
.tier-role { margin-top: 2px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-top: var(--s-4); }
.tier-price .amt { font-size: 2rem; font-weight: var(--fw-heavy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--c-blue); }
.tier-price .per { color: var(--c-text-muted); font-size: var(--fs-sm); }
.tier-bill { font-size: var(--fs-xs); color: var(--c-text-muted); }
.tier-feats { display: grid; flex: 1; margin-block: var(--s-4) var(--s-5); }
.tier-feats li { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--c-mist); font-size: var(--fs-sm); }
.tier-feats li span { color: var(--c-text-muted); font-size: var(--fs-xs); }
.tier-feats li strong { font-weight: var(--fw-bold); }
.tier-feats li.is-off strong { font-weight: var(--fw-regular); color: var(--c-text-muted); }
.callouts { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.callout { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-mist); font-size: var(--fs-sm); }
.callout--accent { background: linear-gradient(135deg, var(--c-night), var(--c-blue)); color: var(--c-on-dark); }
.callout--accent a { color: var(--c-signal); font-weight: var(--fw-bold); }
.fine { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-text-muted); }

/* ---------- PERDANA (night) ---------- */
.perdana-grid { display: grid; gap: var(--s-6); }
.price-panel { padding: var(--s-6) var(--s-5); box-shadow: var(--glow-blue); }
.price-panel .pill { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(34, 181, 227, 0.14); color: var(--c-signal); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.price-panel h2 { margin-top: var(--s-3); font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: 0.02em; }
.price-panel .tagline { margin-top: var(--s-2); color: var(--c-on-dark-muted); }
.big-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: var(--s-5); }
.big-price .amt { font-size: clamp(2.8rem, 12vw, 4rem); font-weight: var(--fw-heavy); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #FFFFFF, var(--c-signal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-price .per { font-size: var(--fs-lead); color: var(--c-on-dark-muted); }
.price-note { margin-top: var(--s-2); }
.price-panel .btn { margin-top: var(--s-5); }
.includes { display: grid; gap: var(--s-2); }
.includes li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; padding-block: var(--s-2); }
.includes svg, .ticks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--c-signal); }
.includes small { display: block; font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); padding-block: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-glass-line); border-radius: var(--r-lg); background: var(--c-glass); }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-sm); }
.cmp th:first-child { width: 33%; }
.cmp th, .cmp td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line-dark); overflow-wrap: break-word; hyphens: auto; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-on-dark-muted); }
.cmp tbody th { font-weight: var(--fw-medium); color: var(--c-on-dark-muted); }
.cmp .hl { color: var(--c-signal); font-weight: var(--fw-bold); }
.choose { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.choose div { padding: var(--s-4); border: 1px solid var(--c-line-dark); border-radius: var(--r-md); background: var(--c-glass); font-size: var(--fs-sm); }
.choose b { display: block; margin-bottom: 2px; color: var(--c-signal); }
.why3 { padding: var(--s-5); border-left: 3px solid var(--c-signal); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--c-glass); }
.why3 p { margin-top: var(--s-2); color: var(--c-on-dark-muted); }
.roadmap { display: grid; gap: var(--s-3); }
.phase { padding: var(--s-5); }
.phase-when { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-signal); }
.phase h4 { margin-top: 2px; font-size: var(--fs-h3); }
.phase ul { display: grid; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.phase li { position: relative; padding-left: 14px; }
.phase li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-signal); box-shadow: 0 0 8px var(--c-signal); }
.section--night .fine { color: var(--c-on-dark-muted); }

/* ---------- FAQ (light) ---------- */
.faq { max-width: 760px; }
.faq details { margin-bottom: var(--s-2); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); transition: border-color var(--dur-base) var(--ease); }
.faq details[open] { border-color: rgba(30, 139, 255, 0.45); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-weight: var(--fw-bold); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--c-swoosh); transition: transform var(--dur-base) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-5) var(--s-4); max-width: var(--measure); color: var(--c-text-muted); }

/* ---------- Contact (light) ---------- */
.contact-grid { display: grid; gap: var(--s-7); }
.form { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-paper); box-shadow: var(--shadow-lift); }
.form h3 { font-size: var(--fs-h3); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.field label .opt { font-weight: var(--fw-regular); color: var(--c-text-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-swoosh); box-shadow: 0 0 0 3px rgba(30, 139, 255, 0.2); }
.field.has-error input { border-color: var(--c-danger); }
.field-error { font-size: var(--fs-sm); color: var(--c-danger); }
.form-status { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-blue); }
.direct a, .direct .row { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); align-items: center; padding-block: var(--s-3); border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.direct small { display: block; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-text-muted); }
.direct span { font-weight: var(--fw-bold); overflow-wrap: anywhere; }
.team { display: grid; gap: var(--s-3); }
.member { display: grid; grid-template-columns: 52px 1fr; gap: var(--s-3); align-items: center; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--c-swoosh), var(--c-blue)); color: var(--c-on-dark); font-weight: var(--fw-heavy); object-fit: cover; }
.member small { display: block; font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ---------- Footer (void) ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-7) var(--s-6); background: var(--c-void); color: var(--c-on-dark-muted); text-align: center; }
.site-footer::before { content: ""; position: absolute; z-index: -1; top: -200px; left: 50%; width: 640px; height: 400px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(30, 139, 255, 0.3), transparent); }
.site-footer img { width: 150px; margin-inline: auto; }
.footer-motto { margin-top: var(--s-4); font-style: italic; color: var(--c-on-dark); }
.footer-fine { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.7; }

/* ---------- Sticky WhatsApp ---------- */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(4, 11, 24, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--c-glass-line); transition: transform var(--dur-base) var(--ease); }
.cta-bar.is-hidden { transform: translateY(110%); }
.cta-bar .btn { width: 100%; }
.wa-fab { display: none; }

/* =========================================================================
   TABLET ≥ 720px
   ========================================================================= */
@media (min-width: 720px) {
  .hero-ctas { grid-auto-flow: column; justify-content: start; }
  .built-for { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .built-for ul { flex-wrap: wrap; }
  .toast:nth-child(3) { display: grid; top: 61%; right: -18px; animation-delay: 2700ms; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .types { grid-template-columns: repeat(3, 1fr); }
  .type { flex-direction: column; gap: 2px; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; }
  .years { grid-template-columns: repeat(3, 1fr); }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .choose { grid-template-columns: 1fr 1fr; }
  .scroller { grid-auto-columns: 46%; }
  .icon-list--2 { grid-template-columns: 1fr 1fr; }
  .tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); }
  .tier { scroll-snap-align: start; }
}

/* =========================================================================
   DESKTOP ≥ 960px
   ========================================================================= */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .menu-btn { display: none; }
  .nav-links { position: static; display: flex; flex-direction: row; align-items: center; gap: var(--s-5); padding: 0; border: 0; background: none; box-shadow: none; }
  .nav-links a { padding: 0; border: 0; font-size: var(--fs-sm); color: var(--c-on-dark-muted); transition: color var(--dur-fast) var(--ease); }
  .nav-links a:hover { color: var(--c-on-dark); }
  .nav-links .btn { margin-top: 0; min-height: 42px; padding: 8px 18px; color: var(--c-ink); }

  .hero { padding-block: var(--s-8) var(--s-9); }
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--s-8); }
  .hero::before { top: -40%; right: -20%; }
  .dash-stage { padding-block: 40px; }
  .toast:nth-child(1) { top: 0; right: -28px; }
  .toast:nth-child(2) { bottom: 6px; left: -44px; }
  .toast:nth-child(3) { top: 61%; right: -52px; }
  .stats { margin-top: var(--s-8); }

  .icon-list--3 { grid-template-columns: repeat(3, 1fr); }
  .icon-list--3 .icon-item { grid-template-columns: 1fr; }
  .icon-list--2 { grid-template-columns: repeat(3, 1fr); }
  .bench-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .timeline--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
  .timeline--4::before { top: 17px; bottom: auto; left: 18px; right: 18px; width: auto; height: 2px; background: linear-gradient(90deg, var(--c-swoosh), var(--c-line)); }
  .timeline--4 .t-step { grid-template-columns: 1fr; gap: var(--s-3); }
  .timeline--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .timeline--3::before { display: none; }

  .case { grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s-7); }
  .seg-control { display: none; }
  .plats { grid-template-columns: repeat(3, 1fr); }
  .plat[hidden] { display: block; }
  .clients { grid-template-columns: repeat(5, 1fr); gap: var(--s-5) var(--s-4); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; }
  .swipe-hint { display: none; }
  .tiers { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 3), 1fr); grid-auto-columns: auto; overflow: visible; padding-bottom: 0; }
  .callouts { grid-template-columns: 1fr 1fr; }
  .perdana-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: var(--s-7); }
  .roadmap { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: var(--s-8); }

  .cta-bar { display: none; }
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: var(--z-bar); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--c-wa); color: var(--c-ink); box-shadow: var(--glow-wa); transition: transform var(--dur-fast) var(--ease); }
  .wa-fab:hover { transform: scale(1.06); }
  .wa-fab svg { width: 28px; height: 28px; }
}

/* ---------- Phone tier scroller ---------- */
@media (max-width: 719.98px) {
  .tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-3); }
  .tier { scroll-snap-align: start; }
}
@media (max-width: 419.98px) {
  .cmp { font-size: var(--fs-xs); }
  .cmp th, .cmp td { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .enter, .toast { opacity: 1; }
  .chart .draw, .dash-chart .draw { stroke-dashoffset: 0; }
}
