/* =====================================================================
   Banaspati - design system halaman publik
   Dipakai bersama oleh landing page (/) dan halaman produk (/user/product)
   supaya keduanya terlihat sebagai satu produk, bukan dua halaman berbeda.

   Ditulis sebagai file terpisah (bukan <style> di dalam blade) karena
   sebelumnya CSS yang hampir sama disalin di dua blade dan sudah mulai
   berbeda satu sama lain.
   ===================================================================== */

:root {
    /* Warna - versi gelap, selaras dengan dashboard. Token di-mapping per PERAN
       (bukan diganti nama), jadi --ink-900 yang tadinya teks tergelap tetap
       berperan sebagai teks paling menonjol - cuma sekarang nilainya terang,
       karena latar belakangnya sudah gelap. Lihat
       design-system/banaspati-auto-trading-bot/MASTER.md untuk sumber palet. */
    --ink-900: #f8fafc;
    --ink-800: #e2e8f0;
    --ink-600: #cbd5e1;
    --ink-500: #94a3b8;
    --ink-400: #64748b;

    --surface: #1a2234;
    --surface-2: #1e293b;
    --bg: #0f172a;
    --line: #334155;

    --brand-50: rgba(245, 158, 11, .12);
    --brand-100: rgba(245, 158, 11, .22);
    --brand-600: #f59e0b;
    --brand-700: #d97706;
    --accent-600: #8b5cf6;

    --success-50: rgba(16, 185, 129, .14);
    --success-600: #10b981;
    --warn-50: rgba(245, 158, 11, .12);
    --warn-500: #f59e0b;
    --warn-800: #fcd34d;
    --danger-500: #ef4444;
    --danger-600: #f87171;

    --gradient: linear-gradient(135deg, #f59e0b 0%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(245, 158, 11, .16) 0%, rgba(139, 92, 246, .16) 100%);

    /* Bentuk */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .5);

    /* Kompatibilitas dengan markup lama yang masih memakai nama ini */
    --primary: var(--brand-600);
    --primary-dark: var(--brand-700);
    --secondary: var(--warn-500);
    --dark: var(--ink-800);
    --light: var(--surface-2);

    /* Beberapa tempat masih memakai kelas Bootstrap polos (text-primary,
       btn-light text-primary di hero) - ditimpa juga supaya tidak biru default
       Bootstrap di tengah halaman yang sudah emas/ungu. */
    --bs-primary: var(--brand-600);
    --bs-primary-rgb: 245, 158, 11;
}

/* ---------------------------------------------------------------- dasar */

html {
    scroll-behavior: smooth;
    /* navbar sticky menutupi target anchor kalau tidak diberi offset */
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink-800);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: var(--ink-900);
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: var(--brand-600); }
a:hover { color: var(--brand-700); }

.text-muted { color: var(--ink-500) !important; }

/* -------------------------------------------------------------- navbar */

.site-nav {
    padding: 14px 0;
    background-color: rgba(15, 23, 42, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.site-nav.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.site-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink-900) !important;
    letter-spacing: -0.02em;
}

.site-nav .navbar-brand img { transition: transform .3s; }
.site-nav .navbar-brand:hover img { transform: rotate(-8deg) scale(1.05); }

.site-nav .nav-link {
    font-weight: 500;
    color: var(--ink-600);
    margin: 0 4px;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: color .2s, background-color .2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--brand-700);
    background-color: var(--brand-50);
}

/* -------------------------------------------------------------- tombol */

.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--gradient);
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .34);
}

.btn-outline-brand {
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink-800);
}

.btn-outline-brand:hover {
    border-color: var(--brand-600);
    color: var(--brand-700);
    background: var(--brand-50);
}

.btn-lg-cta { padding: 14px 28px; font-size: 1.02rem; }

.btn-whatsapp {
    background-color: #25d366;
    border: none;
    color: #fff;
    padding: 13px 24px;
}

.btn-whatsapp:hover { background-color: #1ebe5a; color: #fff; }

/* ------------------------------------------------------------- section */

.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--surface); }

.section-head {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--ink-500);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* --------------------------------------------------------------- chips */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .86rem;
    font-weight: 500;
    color: var(--ink-600);
    box-shadow: var(--shadow-xs);
}

.chip i { color: var(--success-600); }

.chip-on-dark {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    box-shadow: none;
}

.chip-on-dark i { color: #86efac; }

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    /* Oranye meluruh ke hitam - bukan gradient brand penuh (--gradient, emas-ungu)
       supaya tidak menyilaukan dibanding sisa halaman yang gelap, dan sesuai
       permintaan kombinasi warna oranye-hitam untuk hero. */
    background: linear-gradient(135deg, #f59e0b 0%, #451a03 45%, #05070d 100%);
    color: #fff;
    padding: 96px 0 84px;
    overflow: hidden;
}

.hero::after {
    /* cahaya lembut di kanan atas supaya gradient tidak terasa datar */
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, transparent 62%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    line-height: 1.16;
    margin-bottom: 18px;
}

.hero .hero-lead {
    color: rgba(255, 255, 255, .9);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-visual {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(6px);
}

.hero-stat {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .78);
}

/* --------------------------------------------------------- kartu umum */

.card-soft {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}

.feature-tile { padding: 28px 26px; }

.feature-tile .tile-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gradient-soft);
    color: var(--brand-600);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.feature-tile h5 {
    font-size: 1.06rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-tile p {
    color: var(--ink-500);
    font-size: .93rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* --------------------------------------------------------- kartu paket */

.plan-grid {
    display: grid;
    /* 320px x 3 + 2 gap = 1012px, jadi tiga paket muat sebaris di layar lebar
       dan turun jadi dua/satu kolom sendirinya di layar sempit. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    /* start (bukan stretch): kalau salah satu kartu membuka spesifikasi lengkap,
       stretch membuat kartu sebelahnya ikut memanjang dan menyisakan area kosong. */
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}

.plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.plan.is-featured {
    border-color: var(--brand-600);
    box-shadow: var(--shadow-lg);
}

.plan-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--gradient);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 13px;
}

.plan-head {
    padding: 30px 28px 0;
}

.plan-kicker {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 8px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-tagline {
    color: var(--ink-500);
    font-size: .93rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.plan-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex-grow: 1; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }

.price-now {
    font-size: 2.05rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.1;
}

.price-was {
    font-size: .98rem;
    color: var(--ink-400);
    text-decoration: line-through;
}

.price-off {
    background: rgba(239, 68, 68, .15);
    color: var(--danger-600);
    font-size: .78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}

.price-note {
    display: block;
    font-size: .82rem;
    color: var(--ink-500);
    margin-top: 6px;
}

.plan-cta { margin: 20px 0 6px; }

.buy-hint {
    display: block;
    text-align: center;
    font-size: .8rem;
    color: var(--ink-500);
}

.owned-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--success-50);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* daftar sorotan singkat di kartu paket */
.plan-highlights {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.plan-highlights li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ink-600);
    padding: 7px 0;
}

.plan-highlights li i {
    color: var(--success-600);
    font-size: .85rem;
    margin-top: 5px;
    flex-shrink: 0;
}

/* tombol buka detail spesifikasi */
.spec-toggle {
    width: 100%;
    margin-top: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-600);
    font-size: .9rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.spec-toggle:hover { border-color: var(--brand-600); color: var(--brand-700); }
.spec-toggle .chev { transition: transform .25s ease; }
.spec-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.spec-group-title {
    margin: 20px 0 2px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 0;
    font-size: .89rem;
    line-height: 1.6;
    color: var(--ink-600);
    border-bottom: 1px solid var(--surface-2);
}

.spec-list li:last-child { border-bottom: none; }
.spec-list .spec-icon { flex-shrink: 0; }

.note {
    background: var(--warn-50);
    border: 1px solid rgba(245, 158, 11, .35);
    border-left: 3px solid var(--warn-500);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: .84rem;
    color: var(--warn-800);
    line-height: 1.6;
    margin-top: 14px;
}

/* ------------------------------------------------------ tabel banding */

.compare-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.compare {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    margin: 0;
}

.compare th,
.compare td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    vertical-align: top;
}

.compare thead th {
    background: var(--surface-2);
    font-weight: 700;
    color: var(--ink-900);
    white-space: nowrap;
}

.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; color: var(--ink-800); width: 30%; }
.compare .yes { color: var(--success-600); font-weight: 600; }
.compare .no { color: var(--ink-400); }

/* -------------------------------------------------------------- langkah */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    counter-reset: step;
}

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 14px;
}

.step h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 7px;
}

.step p {
    color: var(--ink-500);
    font-size: .89rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ----------------------------------------------------------------- FAQ */

.faq .accordion-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq .accordion-button {
    font-weight: 600;
    color: var(--ink-900);
    background: var(--surface);
    padding: 18px 20px;
    box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
    color: var(--brand-700);
    background: var(--brand-50);
}

.faq .accordion-button:focus { box-shadow: none; border-color: var(--line); }

.faq .accordion-body {
    color: var(--ink-600);
    font-size: .94rem;
    line-height: 1.75;
    padding: 4px 20px 20px;
}

/* ------------------------------------------------------------ CTA blok */

.cta-band {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 46px 44px;
    box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; font-weight: 700; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-bottom: 0; }

/* --------------------------------------------------------- form order */

.order-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 34px;
}

.order-panel .form-label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--ink-800);
    margin-bottom: 6px;
}

.order-panel .form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .95rem;
}

.order-panel .form-control:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px var(--brand-50);
}

/* -------------------------------------------------------------- footer */

.site-footer {
    /* SENGAJA bukan var(--ink-900) - token itu sekarang berarti "teks paling
       terang" (dipakai h1-h5, dst), bukan lagi "warna paling gelap". Footer
       butuh warna gelap sungguhan sebagai latar, terlepas dari makna ink-900
       di tempat lain. Dulu baris ini pernah memakai var(--ink-900) ketika
       token itu masih berarti gelap, lalu ikut rusak saat token-nya di-flip
       ke mode gelap tanpa baris ini ikut disesuaikan. */
    background: #05080f;
    color: #cbd5e1;
    padding: 64px 0 26px;
    margin-top: 60px;
}

.site-footer h5 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.site-footer p { color: #94a3b8; font-size: .92rem; line-height: 1.7; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; font-size: .92rem; color: #94a3b8; }

.footer-links a,
.footer-links a:visited {
    color: #cbd5e1;
    transition: color .2s, padding-left .2s;
}

.footer-links a:hover { color: #fff; padding-left: 4px; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, .08);
    border-radius: 50%;
    margin-right: 9px;
    color: #fff;
    transition: background-color .25s, transform .25s;
}

.social-icons a:hover { background-color: var(--brand-600); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 22px;
    margin-top: 42px;
    color: #94a3b8;
    font-size: .86rem;
}

.risk-disclaimer {
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: .82rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-top: 26px;
}

/* -------------------------------------------------------------- responsif */

@media (max-width: 991.98px) {
    .section { padding: 56px 0; }
    .hero { padding: 68px 0 60px; }
    .cta-band { padding: 34px 26px; text-align: center; }
}

@media (max-width: 575.98px) {
    .plan-head { padding: 24px 20px 0; }
    .plan-body { padding: 18px 20px 24px; }
    .order-panel { padding: 24px 20px; }
    .price-now { font-size: 1.8rem; }
    .site-footer { padding: 48px 0 22px; }
}

/* Hormati preferensi pengguna yang mematikan animasi */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
