/* ==========================================================================
   MemberFlow — Landing Page
   Palet brand: cyan #06b6d4 → biru #2563eb → violet #7c3aed (dari logo).
   Background: light. Ikon: FontAwesome. Tanpa CDN runtime.
   ========================================================================== */

:root {
    --c-cyan: #06b6d4;
    --c-blue: #2563eb;
    --c-violet: #7c3aed;
    --brand-grad: linear-gradient(135deg, #06b6d4 0%, #2563eb 50%, #7c3aed 100%);

    --ink: #0b1220;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e6e9f0;
    --line-2: #eef1f6;

    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-tint: #f0f7ff;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 18px 40px -12px rgba(37, 99, 235, .18);

    --container: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
    font-family: var(--font);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.text-grad {
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- section heading ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--primary); background: var(--bg-tint);
    border: 1px solid #dbeafe; border-radius: 999px; padding: 6px 14px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 18px 0 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 12px;
    border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn i { font-size: 14px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: #c9d3e3; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- navbar ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 80px; overflow: hidden; background: var(--bg); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 50% at 80% -10%, rgba(124, 58, 237, .10), transparent 60%),
        radial-gradient(50% 45% at 10% 0%, rgba(6, 182, 212, .10), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 22px 0 20px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 660px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
    display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
    margin-top: 40px; color: var(--muted); font-size: 14.5px; font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--c-cyan); }

/* ---------- VSL ---------- */
.vsl { padding-top: 0; }
.vsl-frame {
    position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0b1220, #1e293b);
}
.vsl-frame .thumb-overlay { background: linear-gradient(135deg, rgba(6,182,212,.22), rgba(124,58,237,.30)); }
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; color: var(--primary); font-size: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.vsl-frame:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.play-btn i { margin-left: 5px; }
.vsl-label { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 15px; opacity: .9; }

/* ---------- thumb (generic placeholder) ---------- */
.thumb {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
    overflow: hidden; cursor: pointer; border: 1px solid var(--line);
    background: var(--bg-soft); transition: box-shadow .2s, transform .2s;
}
.thumb:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.thumb .thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(6,182,212,.10), rgba(124,58,237,.14));
    display: grid; place-items: center;
}
.thumb .thumb-overlay i.bg-icon { font-size: 46px; color: #cbd5e1; }
.thumb .play-sm {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92);
    display: grid; place-items: center; color: var(--primary); font-size: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s;
}
.thumb:hover .play-sm { transform: translate(-50%, -50%) scale(1.1); }
.thumb .play-sm i { margin-left: 3px; }
.thumb .thumb-tag {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    background: rgba(255,255,255,.92); color: var(--ink); font-size: 12.5px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
}
.thumb .thumb-tag i { color: var(--primary); }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.intro-grid h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 18px; }
.intro-grid p { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.intro-points { margin-top: 26px; display: grid; gap: 16px; }
.intro-points li { display: flex; gap: 14px; align-items: flex-start; }
.intro-points .ic {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: var(--bg-tint); color: var(--primary); font-size: 16px; border: 1px solid #dbeafe;
}
.intro-points strong { color: var(--ink); display: block; font-size: 15.5px; }
.intro-points span { font-size: 14.5px; color: var(--muted); }
.intro-visual {
    border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
    box-shadow: var(--shadow); background: var(--bg-soft);
}

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 34px 28px; box-shadow: var(--shadow-sm); position: relative; transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
    width: 46px; height: 46px; border-radius: 12px; background: var(--brand-grad); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 19px; margin-bottom: 20px;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--muted); }
.step-card .step-ic { position: absolute; top: 30px; right: 30px; font-size: 22px; color: #dbe3f0; }

/* ---------- features (sticky sidebar) ---------- */
.features-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.features-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.features-nav .fn-title { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 14px 10px; }
.features-nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s;
    border: 1px solid transparent;
}
.features-nav a i { width: 18px; text-align: center; color: var(--muted); font-size: 15px; transition: color .15s; }
.features-nav a:hover { background: var(--bg-soft); }
.features-nav a.active { background: var(--bg-tint); color: var(--primary); border-color: #dbeafe; }
.features-nav a.active i { color: var(--primary); }

.features-content { display: grid; gap: 28px; }
.feature-block {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 34px; box-shadow: var(--shadow-sm); scroll-margin-top: 96px;
}
.feature-block .fb-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.feature-block .fb-ic {
    width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    background: var(--bg-tint); color: var(--primary); font-size: 19px; border: 1px solid #dbeafe; flex: 0 0 auto;
}
.feature-block h3 { font-size: 22px; }
.feature-block > p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.feature-block .fb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 24px; }
.feature-block .fb-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.feature-block .fb-list i { color: var(--c-cyan); font-size: 13px; margin-top: 5px; flex: 0 0 auto; }

/* ---------- benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-card .b-ic {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--brand-grad); color: #fff; font-size: 20px;
}
.benefit-card h3 { font-size: 18px; margin-bottom: 8px; }
.benefit-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.price-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 34px;
    box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--c-blue); box-shadow: var(--shadow-lg); }
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand-grad); color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 6px 16px; border-radius: 999px; letter-spacing: .02em;
}
.price-name { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.price-tag { margin: 14px 0 6px; }
.price-tag .amount { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-tag .per { font-size: 15px; color: var(--muted); }
.price-card .price-desc { font-size: 14.5px; color: var(--muted); margin-bottom: 24px; min-height: 44px; }
.price-features { display: grid; gap: 13px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.price-features i { color: var(--c-cyan); font-size: 14px; margin-top: 4px; flex: 0 0 auto; }
.price-features li.muted { color: var(--muted); }
.price-features li.muted i { color: #cbd5e1; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: inherit;
}
.faq-q i { color: var(--primary); font-size: 15px; transition: transform .25s ease; flex: 0 0 auto; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing-card {
    position: relative; overflow: hidden; border-radius: 26px; padding: 70px 32px;
    background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-lg);
}
.closing-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(50% 80% at 50% 0%, rgba(255,255,255,.18), transparent 60%);
}
.closing-card > * { position: relative; z-index: 1; }
.closing-card h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.closing-card p { color: rgba(255,255,255,.92); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.closing-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.closing-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.closing-card .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer img { height: 26px; }
.footer p { font-size: 14px; color: var(--muted); }
.footer .foot-links { display: flex; gap: 24px; }
.footer .foot-links a { font-size: 14px; color: var(--muted); font-weight: 600; }
.footer .foot-links a:hover { color: var(--primary); }

/* ---------- video modal ---------- */
.modal {
    position: fixed; inset: 0; z-index: 100; display: none;
    background: rgba(2, 6, 23, .8); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 920px; aspect-ratio: 16 / 9; }
.modal-box iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #000; }
.modal-close {
    position: absolute; top: -46px; right: 0; background: none; border: none; color: #fff;
    font-size: 26px; cursor: pointer; opacity: .85; transition: opacity .15s;
}
.modal-close:hover { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .intro-grid { grid-template-columns: 1fr; gap: 36px; }
    .steps-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .features-layout { grid-template-columns: 1fr; gap: 24px; }
    .features-nav {
        position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .features-nav .fn-title { display: none; }
    .features-nav a { white-space: nowrap; flex: 0 0 auto; }
    .feature-block .fb-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .section { padding: 68px 0; }
    .nav-links { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: block; }
    .nav.menu-open .nav-links {
        display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
        background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 18px; box-shadow: var(--shadow);
    }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 124px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
[x-cloak] { display: none !important; }
