/* =====================================================================
 *  Smart Family Finance — Landing Page
 *  Selaras dengan itomjie.com: dark glassmorphism, Plus Jakarta Sans,
 *  gradien ungu → indigo, kartu kaca sudut membulat besar.
 * ===================================================================== */

:root {
    --bg: #0b0b16;
    --violet: #7c3aed; --violet-2: #8b5cf6; --indigo: #4f46e5;
    --blue: #3b82f6; --sky: #38bdf8; --pink: #ec4899; --accent: #a78bfa;
    --text: #ffffff; --muted: rgba(255, 255, 255, .64); --muted-2: rgba(255, 255, 255, .40);
    --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .09);
    --stroke: rgba(255, 255, 255, .12); --stroke-soft: rgba(255, 255, 255, .06);
    --radius: 26px; --radius-lg: 40px; --radius-sm: 16px;
    --shadow: 0 30px 80px rgba(0, 0, 0, .55);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --grad: linear-gradient(135deg, var(--violet), var(--indigo));
    --grad-2: linear-gradient(135deg, #c4b5fd, #818cf8);
    --grad-3: linear-gradient(135deg, #34d399, #38bdf8);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* Cahaya latar (glow) khas itomjie */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(124, 58, 237, .32), transparent 60%),
        radial-gradient(50% 45% at 90% 5%, rgba(59, 130, 246, .22), transparent 60%),
        radial-gradient(45% 40% at 80% 90%, rgba(236, 72, 153, .16), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.grad-text { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.section { padding: 84px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent); padding: 7px 14px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--stroke); margin-bottom: 18px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------------------------- Buttons ------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; padding: 13px 22px; border-radius: 999px;
    border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(99, 76, 224, .45); }
.btn-grad:hover { box-shadow: 0 18px 40px rgba(99, 76, 224, .6); }
.btn-glass { background: var(--glass-2); color: #fff; border-color: var(--stroke); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------------------------- Header -------------------------------- */
.lp-header { position: sticky; top: 0; z-index: 50; }
.lp-header .bar { margin-top: 14px; display: flex; align-items: center; gap: 18px;
    padding: 12px 14px 12px 20px; border-radius: 999px;
    background: rgba(15, 15, 26, .55); border: 1px solid var(--stroke); backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
    background: var(--grad); box-shadow: 0 8px 20px rgba(99, 76, 224, .5); }
.lp-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.lp-nav a.navlink { color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s; }
.lp-nav a.navlink:hover { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ----------------------------- Hero --------------------------------- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.hero-trust b { color: #fff; font-weight: 700; }

/* Kartu preview aplikasi (mock) */
.preview { position: relative; }
.glass { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
    backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.preview-card { padding: 22px; }
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pc-top .who { display: flex; align-items: center; gap: 11px; }
.pc-av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-2); display: grid; place-items: center; font-weight: 800; color: #1e1b4b; }
.pc-balance { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--grad); box-shadow: 0 16px 40px rgba(99, 76, 224, .45); margin-bottom: 14px; }
.pc-balance .lbl { color: rgba(255, 255, 255, .8); font-size: 13px; }
.pc-balance .val { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pc-stat { padding: 13px 15px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid var(--stroke-soft); }
.pc-stat .lbl { font-size: 12px; color: var(--muted); }
.pc-stat .val { font-size: 17px; font-weight: 800; margin-top: 2px; }
.pc-stat.inc .val { color: #34d399; } .pc-stat.exp .val { color: #fb7185; }
.pc-bars { display: flex; align-items: flex-end; gap: 8px; height: 78px; padding-top: 6px; }
.pc-bars span { flex: 1; border-radius: 7px 7px 3px 3px; background: var(--grad-2); opacity: .9; }
.floaty { position: absolute; padding: 12px 15px; border-radius: 16px; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.floaty.one { top: -18px; right: -10px; background: rgba(52, 211, 153, .16); border: 1px solid rgba(52, 211, 153, .35); color: #6ee7b7; }
.floaty.two { bottom: -16px; left: -16px; background: rgba(167, 139, 250, .16); border: 1px solid rgba(167, 139, 250, .4); color: #c4b5fd; }

/* -------------------------- Feature grid ---------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke);
    transition: transform .3s var(--ease), border-color .3s, background .3s; }
.feat-card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .5); background: var(--glass-2); }
.feat-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 25px;
    background: var(--grad); box-shadow: 0 10px 24px rgba(99, 76, 224, .4); margin-bottom: 16px; }
.feat-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 14.5px; }

/* ----------------------------- Tips --------------------------------- */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tip { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); }
.tip .num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    font-weight: 800; font-size: 17px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--accent); }
.tip h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; }
.tip p { color: var(--muted); font-size: 14px; }

/* -------------------------- Calculator ------------------------------ */
.calc-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center;
    padding: 34px; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--stroke); }
.calc-wrap h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.calc-wrap p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.calc-input label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 8px; }
.calc-field { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--stroke);
    border-radius: 14px; padding: 4px 16px; }
.calc-field span { color: var(--muted); font-weight: 700; }
.calc-field input { flex: 1; background: none; border: none; outline: none; color: #fff; font-family: inherit;
    font-size: 22px; font-weight: 800; padding: 12px 0; }
.calc-out { display: grid; gap: 12px; }
.calc-bar { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--stroke-soft); position: relative; overflow: hidden; }
.calc-bar .top { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 2; }
.calc-bar .name { font-weight: 700; font-size: 14.5px; } .calc-bar .pct { color: var(--muted); font-size: 12.5px; }
.calc-bar .amt { font-size: 20px; font-weight: 800; margin-top: 4px; position: relative; z-index: 2; }
.calc-bar .fill { position: absolute; inset: 0; opacity: .18; }
.calc-bar.need .fill { background: var(--grad); } .calc-bar.want .fill { background: var(--grad-2); } .calc-bar.save .fill { background: var(--grad-3); }

/* --------------------------- Articles ------------------------------- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art-card { border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--stroke);
    cursor: pointer; transition: transform .3s var(--ease), border-color .3s; display: flex; flex-direction: column; }
.art-card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .5); }
.art-cover { height: 130px; display: grid; place-items: center; font-size: 46px; }
.art-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.art-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.art-card h3 { font-size: 17.5px; font-weight: 700; margin: 8px 0; line-height: 1.3; }
.art-card p { color: var(--muted); font-size: 14px; flex: 1; }
.art-more { margin-top: 14px; font-weight: 700; font-size: 14px; color: #fff; display: inline-flex; gap: 6px; }

/* --------------------------- Berita (news) -------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--stroke); transition: transform .3s var(--ease), border-color .3s; }
.news-card:hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, .5); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.news-src { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--accent);
    background: var(--glass-2); border: 1px solid var(--stroke); padding: 4px 11px; border-radius: 999px; }
.news-time { font-size: 12px; color: var(--muted-2); }
.news-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin-bottom: 9px; }
.news-card h3 a { color: #fff; transition: color .2s; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.news-card .read { margin-top: 15px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.news-loading, .news-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 34px; }
.news-note { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 940px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .news-grid { grid-template-columns: 1fr; } }

/* ----------------------- Cookie consent banner --------------------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
    transform: translateY(180%); transition: transform .45s var(--ease); }
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
    padding: 16px 20px; border-radius: 20px; background: rgba(18, 18, 31, .94); border: 1px solid var(--stroke);
    backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.cookie-text { flex: 1; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cookie-text a { color: var(--accent); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 680px) {
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-actions .btn { flex: 1; }
}

/* --------------------------- Halaman legal -------------------------- */
.legal { max-width: 880px; margin: 0 auto; }
.legal-head { padding: 56px 0 22px; }
.legal-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -1px; }
.legal-head .upd { color: var(--muted-2); font-size: 14px; margin-top: 12px; }
.legal-card { padding: 40px; border-radius: var(--radius-lg); background: var(--glass);
    border: 1px solid var(--stroke); box-shadow: var(--shadow); margin-bottom: 40px; }
.legal-card h2 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; color: #fff; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.legal-card ul { margin: 0 0 14px; padding-left: 20px; }
.legal-card li { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 7px; }
.legal-card b, .legal-card strong { color: #fff; font-weight: 700; }
.legal-card a { color: var(--accent); font-weight: 600; }
.legal-note { padding: 16px 20px; border-radius: 16px; background: rgba(245, 158, 11, .10);
    border: 1px solid rgba(245, 158, 11, .3); color: #fcd34d; font-size: 13.5px; margin-top: 8px; }
@media (max-width: 680px) { .legal-card { padding: 26px 22px; } }

/* ---------------------------- CTA band ------------------------------ */
.cta-band { text-align: center; padding: 60px 30px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, .28), rgba(79, 70, 229, .22)); border: 1px solid var(--stroke); }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 14px auto 28px; max-width: 520px; }
.cta-band .hero-cta { justify-content: center; }

/* ----------------------------- Footer ------------------------------- */
.lp-footer { border-top: 1px solid var(--stroke-soft); padding: 50px 0 34px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.foot-grid a:hover { color: #fff; }
.foot-about p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
    padding-top: 22px; border-top: 1px solid var(--stroke-soft); color: var(--muted-2); font-size: 13.5px; }
.foot-bottom a { color: var(--accent); font-weight: 600; }

/* ----------------------------- Modal -------------------------------- */
.lp-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center;
    padding: 40px 18px; overflow-y: auto; background: rgba(6, 6, 14, .72); backdrop-filter: blur(6px); }
.lp-modal.open { display: flex; }
.lp-modal .box { max-width: 680px; width: 100%; padding: 34px; border-radius: var(--radius); background: #12121f;
    border: 1px solid var(--stroke); box-shadow: var(--shadow); margin: auto 0; }
.lp-modal .box .art-tag { display: block; margin-bottom: 8px; }
.lp-modal .box h2 { font-size: 27px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.lp-modal .meta { color: var(--muted-2); font-size: 13px; margin-bottom: 20px; }
.lp-modal .box p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.lp-modal .box h4 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; color: #fff; }
.lp-modal .close { float: right; background: var(--glass-2); border: 1px solid var(--stroke); color: #fff;
    width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }

/* --------------------------- Responsive ----------------------------- */
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .preview { max-width: 420px; margin: 0 auto; }
    .feature-grid, .art-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .lp-nav { display: none; }
    .menu-toggle { display: block; }
    .lp-nav.open { display: flex; position: absolute; top: 72px; left: 14px; right: 14px; flex-direction: column;
        align-items: flex-start; gap: 6px; padding: 16px; border-radius: 22px; background: #12121f; border: 1px solid var(--stroke); }
    .lp-nav.open a.navlink { padding: 8px 4px; }
    .section { padding: 60px 0; }
    .feature-grid, .tips-grid, .art-grid, .foot-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; } .hero-cta .btn { width: 100%; }
    .header-cta .btn-glass { display: none; }
}
