/* =====================================================================
   KJM Solusi — landing v2
   Light: white / navy / gold.  Dark: deep navy / navy / gold.
   Loaded after the legacy inline styles; overrides them via tokens.
   ===================================================================== */

:root {
    --navy: #1a1a2e;
    --navy-2: #22223d;
    --gold: #d4af37;
    --gold-hover: #e6c24d;
    --gold-ink: #8f6f0e;            /* gold for small text on light bg (AA contrast) */
    --gold-light: #fbf6e6;

    --bg-light: #ffffff;
    --bg-light-secondary: #f4f6fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #596177;
    --border-color: #e3e7ee;
    --primary: #d4af37;

    --nav-bg: rgba(255, 255, 255, .86);
    --grid-line: rgba(26, 26, 46, .055);
    --shadow-sm: 0 1px 2px rgba(26, 26, 46, .05), 0 4px 14px rgba(26, 26, 46, .05);
    --shadow-md: 0 8px 28px rgba(26, 26, 46, .09);
    --shadow-lg: 0 18px 44px rgba(26, 26, 46, .13);
    --radius: 18px;
}

html[data-theme="dark"] {
    --gold-ink: #e3c25a;
    --gold-light: rgba(212, 175, 55, .12);

    --bg-light: #0d0e1c;
    --bg-light-secondary: #131428;
    --bg-card: #1a1b31;
    --text-primary: #eef0f8;
    --text-secondary: #a4abc2;
    --border-color: #2a2c49;

    --nav-bg: rgba(13, 14, 28, .82);
    --grid-line: rgba(255, 255, 255, .045);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .4);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
    color-scheme: dark;
}

body {
    background: var(--bg-light);
    color: var(--text-primary);
    transition: background-color .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Section skins ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0 !important; position: relative; }
.sec-white { background: var(--bg-light) !important; }
.sec-alt { background: var(--bg-light-secondary) !important; }
.sec-dots {
    background-color: var(--bg-light-secondary) !important;
    background-image: radial-gradient(var(--grid-line) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
}

/* Navy band: re-scope tokens so every var-based child adapts */
.sec-navy, .footer {
    --text-primary: #ffffff;
    --text-secondary: #b4bad0;
    --bg-card: rgba(255, 255, 255, .05);
    --border-color: rgba(255, 255, 255, .12);
    --gold-ink: #e3c25a;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .35);
    background: var(--navy) !important;
    color: #fff;
}
html[data-theme="dark"] .sec-navy { background: #1b1c36 !important; border-block: 1px solid rgba(255, 255, 255, .06); }
.sec-navy .section-title, .sec-navy h3, .sec-navy h4 { color: #fff; }

/* Gold band */
.sec-gold {
    background: linear-gradient(120deg, #e2bd3f 0%, #d4af37 50%, #c79f26 100%) !important;
    color: var(--navy);
}
.sec-gold h2 { color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.sec-gold p { color: rgba(26, 26, 46, .8); }

/* ---------- Typography ---------- */
.section-title {
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: .6rem;
    display: block;
}
.section-title::after { display: none !important; }
.section-sub { color: var(--text-secondary); max-width: 640px; margin-left: auto; margin-right: auto; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.section-label {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: var(--gold-ink) !important;
    font-size: .74rem !important;
    letter-spacing: .16em !important;
    gap: .55rem !important;
    margin-bottom: .9rem !important;
}
.section-label::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
}
.section-label i { display: none; }

.hl {
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-size: 100% 6px;
    background-position: 0 92%;
    padding: 0 .08em;
}

/* ---------- Buttons ---------- */
.btn-gold {
    background: var(--gold) !important;
    background-image: linear-gradient(180deg, #e3bf45, #d4af37) !important;
    color: var(--navy) !important;
    font-weight: 700;
    border-radius: 999px;
    padding: .75rem 1.7rem;
    box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
    border: 0;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, .5); }
.btn-outline-gold {
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    background: var(--bg-card);
    border-radius: 999px;
    padding: .75rem 1.6rem;
    font-weight: 600;
}
.btn-outline-gold:hover {
    background: var(--bg-card) !important;
    border-color: var(--gold) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md);
}
.sec-navy .btn-outline-gold { background: transparent; }
.btn-navy {
    background: var(--navy); color: #fff !important; font-weight: 700; border-radius: 999px;
    padding: .8rem 1.8rem; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
    transition: all .25s; box-shadow: 0 8px 22px rgba(26, 26, 46, .3);
}
.btn-navy:hover { transform: translateY(-2px); background: #000; }

/* ---------- Navbar ---------- */
body .navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}
body .navbar.scrolled { box-shadow: var(--shadow-sm); }
body .nav-link { color: var(--text-secondary) !important; font-weight: 600; }
body .nav-link:hover, body .nav-link.active-link { color: var(--text-primary) !important; }
body .nav-link::after { background: var(--gold); }
.navbar-toggler { border-color: var(--border-color) !important; }
/* logo is dark on transparent: render as a white silhouette on dark surfaces */
html[data-theme="dark"] .navbar-brand img,
.footer img.mb-3 { filter: brightness(0) invert(1); }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-primary); display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; transition: all .25s; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-ink); }
.theme-toggle .bi-sun-fill { display: none; }
html[data-theme="dark"] .theme-toggle .bi-sun-fill { display: inline; }
html[data-theme="dark"] .theme-toggle .bi-moon-stars-fill { display: none; }

/* ---------- Hero ---------- */
.hero2 {
    position: relative;
    padding: 124px 0 56px;
    background-color: var(--bg-light);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 44px 44px;
    overflow: hidden;
}
.hero2::after {            /* fade the grid out toward the bottom */
    content: ''; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
    background: linear-gradient(transparent, var(--bg-light));
}
.hero2 > .container { position: relative; z-index: 1; }
.hero2-kicker {
    display: inline-flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1.1rem;
}
.hero2-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero2-title {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 1.2rem;
    color: var(--text-primary);
}
.hero2-sub { font-size: 1.08rem; color: var(--text-secondary); line-height: 1.7; max-width: 520px; margin-bottom: 1.4rem; }
.hero2-checks { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .5rem; }
.hero2-checks li { display: flex; gap: .6rem; align-items: center; font-size: .94rem; font-weight: 600; color: var(--text-primary); }
.hero2-checks i { color: var(--gold-ink); font-size: 1.05rem; }
.hero2-note { font-size: .8rem; color: var(--text-secondary); margin-top: .9rem; }

.mock-wrap { position: relative; padding: 0 0 48px; }
.mock-browser {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-light-secondary); border-bottom: 1px solid var(--border-color); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd2de; display: block; }
html[data-theme="dark"] .mock-bar i { background: #3a3d5c; }
.mock-url { flex: 1; height: 18px; border-radius: 9px; background: var(--border-color); margin-left: 10px; max-width: 60%; }
.mock-screen { aspect-ratio: 16 / 10; background: var(--bg-light-secondary); }
.mock-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mock-phone {
    position: absolute; right: -8px; bottom: 0; width: 28%; aspect-ratio: 9 / 18;
    background: var(--bg-card); border: 6px solid var(--navy); border-radius: 26px; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .mock-phone { border-color: #323559; }
.mock-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mock-float {
    position: absolute; left: -18px; bottom: 18px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow-md); display: flex; gap: .7rem; align-items: center; z-index: 2;
}
.mock-float i { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-light); color: var(--gold-ink); display: grid; place-items: center; font-size: 1.1rem; }
.mock-float strong { display: block; font-size: .95rem; line-height: 1.1; }
.mock-float span { font-size: .72rem; color: var(--text-secondary); }
@media (max-width: 991.98px) {
    .hero2 { padding-top: 104px; }
    .mock-wrap { margin-top: 2.5rem; }
    .mock-float { left: 8px; }
}


/* hero slider */
.mock-screen { position: relative; }
.mock-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.mock-slide.on { opacity: 1; }
.mock-float { text-decoration: none; color: inherit; min-width: 210px; }
.mock-float > div { position: relative; min-height: 36px; }
.mock-cap { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; display: flex; flex-direction: column; justify-content: center; }
.mock-cap.on { opacity: 1; position: relative; }
.mock-dots { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 8px; }
.mock-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--border-color); transition: all .3s; cursor: pointer; }
.mock-dots button.on { width: 24px; background: var(--gold); }

/* ---------- Trust strip ---------- */
.clients-strip { background: var(--bg-light) !important; border: 0 !important; border-block: 1px solid var(--border-color) !important; padding: 1.8rem 0 !important; }
.clients-label { letter-spacing: .16em !important; }
.clients-list span { color: var(--text-secondary) !important; opacity: .75; font-weight: 700; transition: opacity .2s; }
.clients-list span:hover { opacity: 1; }

/* ---------- Stats (navy band) ---------- */
.stats-section { padding: 3.2rem 0 !important; }
.stat-card { background: transparent !important; border: 0 !important; box-shadow: none !important; text-align: center; padding: .5rem; }
.stat-number { color: var(--gold) !important; font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4vw, 3rem) !important; }
.stat-label { color: var(--text-secondary) !important; font-weight: 600; font-size: .9rem; }

/* ---------- Cards ---------- */
.service-card, .why-card, .price-card, .step-card, .testi-card, .contact-info-card,
.portfolio-card, .blog-card, .quote-form-card, .testimonial-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-primary);
}
.service-card:hover, .why-card:hover, .price-card:hover, .step-card:hover, .testi-card:hover,
.contact-info-card:hover, .portfolio-card:hover, .blog-card:hover {
    border-color: var(--gold) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-4px);
}
.service-card::before { display: none; }
.service-icon, .why-icon, .step-icon, .contact-icon {
    width: 52px; height: 52px; border-radius: 14px; display: inline-grid !important; place-items: center;
    background: var(--gold-light); color: var(--gold-ink) !important; font-size: 1.5rem !important; margin-bottom: 1.1rem;
}
.service-card:hover .service-icon { transform: none; }
.service-title, .why-title, .step-title { font-weight: 700; letter-spacing: -.01em; color: var(--text-primary); }
.service-description, .why-desc, .step-desc { color: var(--text-secondary); }
.why-number { color: var(--gold) !important; opacity: .18; font-weight: 800; }
.step-num { background: var(--gold); color: var(--navy); }

.sec-navy .step-icon, .sec-navy .why-icon { background: rgba(212, 175, 55, .14); }

.service-link { color: var(--gold-ink); font-weight: 700; font-size: .86rem; text-decoration: none; padding-top: .6rem; }
.service-link i { transition: transform .2s; display: inline-block; }
.service-link:hover i { transform: translateX(4px); }

/* pricing */
.price-card.featured { border: 2px solid var(--gold) !important; box-shadow: var(--shadow-lg) !important; }
.price-badge { color: var(--navy); }
.price-amount { letter-spacing: -.03em; }
.price-list i { color: var(--gold-ink); }

/* portfolio */
.portfolio-body, .portfolio-title { color: var(--text-primary); }
.portfolio-category { color: var(--gold-ink) !important; }
.portfolio-desc { color: var(--text-secondary) !important; }
.tech-tag { background: var(--bg-light-secondary) !important; color: var(--text-secondary) !important; border: 1px solid var(--border-color); border-radius: 999px; }
.tech-badge-pos { background: rgba(26, 26, 46, .78); backdrop-filter: blur(4px); }
.filter-btn { background: var(--bg-card) !important; color: var(--text-secondary) !important; border: 1px solid var(--border-color) !important; border-radius: 999px !important; font-weight: 600; }
.filter-btn:hover { border-color: var(--gold) !important; color: var(--text-primary) !important; }
.filter-btn.active { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--navy) !important; }
.search-input-live { background: var(--bg-card) !important; color: var(--text-primary) !important; border-color: var(--border-color) !important; }
.search-icon-btn { background: var(--gold) !important; color: var(--navy) !important; }
.search-suggestions { background: var(--bg-card) !important; border-color: var(--border-color) !important; color: var(--text-primary); }
.suggestion-item:hover, .suggestion-item.active { background: var(--bg-light-secondary) !important; }
.pagination .page-link { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-color); }
.pagination .active .page-link { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* testimonials / blog */
.testi-quote { color: var(--text-secondary); }
.blog-body p, .blog-body li { color: var(--text-secondary) !important; }
.blog-body h2, .blog-title { color: var(--text-primary); }
.blog-more { color: var(--gold-ink); }
.blog-cta { background: var(--gold-light); border-color: rgba(212, 175, 55, .4); }
.blog-hero { background-image: radial-gradient(var(--grid-line) 1.2px, transparent 1.2px); background-size: 22px 22px; }

/* ---------- FAQ ---------- */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: transparent; }
.accordion-item { background: var(--bg-card) !important; border: 1px solid var(--border-color) !important; border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-button { background: var(--bg-card) !important; color: var(--text-primary) !important; font-weight: 700; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: var(--gold-light) !important; color: var(--text-primary) !important; }
.accordion-body { color: var(--text-secondary); background: var(--bg-card); }
html[data-theme="dark"] .accordion-button::after { filter: invert(1); }

/* ---------- Form ---------- */
.quote-form-card { padding: 2.2rem; box-shadow: var(--shadow-lg) !important; }
.quote-form-card .form-control, .quote-form-card .form-select {
    background-color: var(--bg-light) !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; border-radius: 12px;
}
.quote-form-card .form-control::placeholder { color: var(--text-secondary); opacity: .7; }
.quote-form-card .form-control:focus, .quote-form-card .form-select:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 .22rem rgba(212, 175, 55, .22); }
.quote-form-card label { color: var(--text-primary); }

/* ---------- Footer ---------- */
.footer { border-top: 0 !important; }
.footer-title { color: var(--gold) !important; }
.footer-links a, .footer p, .footer .text-secondary { color: #b4bad0 !important; }
.footer-links a:hover { color: var(--gold) !important; }
.footer .border-top, .footer hr { border-color: rgba(255, 255, 255, .1) !important; }

/* ---------- Misc ---------- */
.floating-wa-tip { background: var(--navy); }
html[data-theme="dark"] .floating-wa-tip { background: #2a2c49; }
.scroll-top { background: var(--bg-card); color: var(--gold-ink); border: 1px solid var(--border-color); }
html[data-theme="dark"] .lightbox { background: rgba(0, 0, 0, .92); }


/* ---------- Detail portfolio ---------- */
.detail-hero { background: var(--navy) !important; background-image: radial-gradient(rgba(255,255,255,.06) 1.2px, transparent 1.2px) !important; background-size: 22px 22px !important; min-height: 46vh !important; }
.detail-hero-overlay { background: linear-gradient(to bottom, rgba(26,26,46,.55) 0%, rgba(26,26,46,.95) 100%) !important; }
.detail-hero h1 { letter-spacing: -.03em; }
.content-card { border-radius: var(--radius) !important; border-color: var(--border-color) !important; background: var(--bg-card) !important; box-shadow: var(--shadow-sm); }
.content-card-header { background: transparent !important; border-bottom: 1px solid var(--border-color) !important; }
.content-card-header i, .info-icon { color: var(--gold-ink) !important; }
.related-card { background: var(--bg-card) !important; border-color: var(--border-color) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-sm); }
.detail-cta { margin-top: 1.2rem; padding: 1.6rem; border-radius: var(--radius); background: linear-gradient(135deg, #e2bd3f, #d4af37); color: var(--navy); }
.detail-cta h4 { font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; margin-bottom: .35rem; }
.detail-cta p { font-size: .88rem; color: rgba(26,26,46,.8); margin-bottom: 1rem; }
.detail-cta-wa { display: block; text-align: center; margin-top: .8rem; font-size: .85rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.detail-cta-wa:hover { text-decoration: underline; color: var(--navy); }


/* ---------- Studi kasus ---------- */
.case-study { display: grid; gap: 12px; margin-bottom: 1.5rem; }
.case-step { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.case-step:last-child { border-color: rgba(212, 175, 55, .55); background: linear-gradient(135deg, var(--gold-light), var(--bg-card)); }
.case-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-light); color: var(--gold-ink); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.case-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.case-step p { margin: 0; color: var(--text-primary); line-height: 1.7; font-size: .95rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
