*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f5fa;
    --surface: #ffffff;
    --teal-light: #a4dbe1;
    --teal: #3ed7c1;
    --teal-deep: #1db8a0;
    --ink: #1a1a2e;
    --ink-muted: #5a5a7a;
    --ink-faint: #9898b8;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --font-display: 'Bebas Neue', sans-serif;
    --font-accent: 'Caveat Brush', cursive;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


/* =====================
   GLOBAL ANIMATION
   ===================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--stagger, 0s);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.reveal-fade {
    opacity: 0;
    animation: revealFade 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealFade {
    to {
        opacity: 1;
    }
}


/* =====================
   GLOBAL COMPONENTS
   ===================== */

.section {
    padding: 100px 24px;
    max-width: 960px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 20px;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.card-3d:hover {
    box-shadow: 0 20px 48px rgba(30, 184, 160, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-3d-dark {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.card-3d-dark:hover {
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(62, 215, 193, 0.15);
}

.btn-primary {
    background: var(--teal);
    color: var(--ink);
    border: none;
    padding: 15px 34px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--teal-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62, 215, 193, 0.28);
}

.btn-primary:active {
    transform: scale(0.97);
}


/* =====================
   NAVBAR (DESKTOP BASE)
   ===================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 64px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    overflow: hidden;
    transition:
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

nav.scrolled {
    height: 64px;
    padding: 12px 40px;
    background: rgba(245, 245, 250, 0.033);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 1px 0 rgba(164, 219, 225, 0.3), 0 4px 24px rgba(26, 26, 46, 0.06);
}

/* Logo wrapper */
.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Icon (Hanya Muncul saat Scrolled) */
.logo-icon {
    display: none;
    height: 50px;
    width: auto;
    margin-right: 12px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
}

nav.scrolled .logo-icon {
    display: inline-block;
    opacity: 1;
}

/* Teks panjang sebelum scroll */
.logo-full {
    display: inline;
    font-family: var(--font-display);
    padding-top: 30px;
    font-size: 95px !important;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
    text-transform: none;
    opacity: 1;
    transition:
        opacity 0.25s ease,
        font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-full span {
    color: var(--teal-deep);
}

/* Teks pendek setelah scroll */
.logo-short {
    display: none;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    -webkit-text-stroke: 0.01px rgba(0, 0, 0, 0.247);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
}

.logo-short span {
    color: var(--teal-deep);
    -webkit-text-stroke: 0;
}

/* State: scrolled, swap logo */
nav.scrolled .logo-full {
    display: none;
    opacity: 0;
}

nav.scrolled .logo-short {
    display: inline;
    opacity: 1;
    font-size: 56px !important;
}

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    transition: padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled .nav-right {
    padding-top: 0;
}

/* CTA button */
.nav-cta {
    position: relative;
    background: transparent;
    color: var(--ink);
    border: none;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.15s ease;
}

.nav-cta::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: -2%;
    width: 104%;
    height: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 12" preserveAspectRatio="none"><path d="M1 8.5 C 12 3, 24 3, 33 5.5 C 45 9, 58 9, 68 7 C 78 5, 88 5, 99 6 C 88 7.5, 78 8.2, 68 9.5 C 58 11.5, 45 11.5, 33 8.5 C 24 6.5, 12 7.5, 1 8.5 Z" fill="%233ed7c1"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transform-origin: left center;
}

.nav-cta:hover {
    color: var(--teal-deep);
}

.nav-cta:hover::after {
    transform: scaleX(1.06) translateY(1px);
}

.nav-cta:active {
    transform: scale(0.97);
}

/* Lang toggle (Desktop) */
.lang-toggle {
    position: relative;
    display: inline-flex;
    background: rgba(26, 26, 46, 0.02);
    border: 1px solid rgba(26, 26, 46, 0.15);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-toggle:hover {
    border-color: rgba(62, 215, 193, 0.6);
    box-shadow: 0 0 10px rgba(62, 215, 193, 0.1);
}

.lang-option {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lang-option.active {
    color: var(--teal-deep);
    text-shadow: 0 0 8px rgba(62, 215, 193, 0.3);
}

.lang-toggle-slider {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    border: 1px solid var(--teal);
    background: rgba(62, 215, 193, 0.05);
    box-shadow: 0 0 6px rgba(62, 215, 193, 0.25);
    border-radius: 2px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lang-toggle.lang-en .lang-toggle-slider {
    transform: translateX(100%);
}

.lang-option:hover {
    color: var(--ink);
}


/* ==========================================================================
   1. TRANSISI LAPTOP KECIL / TABLET LANDSCAPE (851px - 1024px)
   Kondisi Awal: Logo dipaksa tetap SEBARIS, font diperkecil agar tidak numpuk.
   ========================================================================== */
@media (min-width: 851px) and (max-width: 1130px) {
    nav {
        padding: 20px 40px;
        /* Melonggarkan space horizontal */
        height: 110px;
    }

    /* Kunci teks logo tetap satu baris lurus */
    .logo-full {
        font-size: 46px !important;
        padding-top: 14px;
        white-space: nowrap;
        display: inline-block;
        flex-direction: row;
        max-width: none;
    }

    .logo-full span,
    .logo-full span span {
        display: inline;
        /* Mengembalikan span agar tidak pecah baris */
    }

    .nav-right {
        padding-top: 6px;
    }
}

/* ==========================================================================
   2. BERLAKU UNTUK TABLET PORTRAIT (601px - 850px)
   Kondisi Awal: Mulai pecah jadi 3 baris tapi font diset bold dominan (44px).
   ========================================================================== */
@media (max-width: 850px) {

    /* Pengaturan Tinggi & Alignment Navbar */
    nav {
        height: auto;
        min-height: 110px;
        padding: 24px 32px 15px 32px;
        background: transparent;
        display: flex;
        align-items: flex-start;
        /* Toggle bahasa mepet ke atas */
    }

    nav.scrolled {
        height: 56px;
        min-height: unset;
        padding: 10px 32px;
        align-items: center;
        /* Rata tengah saat di-scroll */
        background: rgba(245, 245, 250, 0.3);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        box-shadow: 0 1px 0 rgba(164, 219, 225, 0.2), 0 4px 20px rgba(26, 26, 46, 0.04);
    }

    /* Hapus Tombol CTA */
    .nav-cta {
        display: none !important;
    }

    .nav-right {
        padding-top: 6px;
        gap: 0;
    }

    /* Modifikasi Logo 3 Baris Proporsional Tablet */
    .logo-full {
        font-size: 44px !important;
        padding-top: 0;
        line-height: 0.95;
        letter-spacing: -0.03em;
        display: flex;
        flex-direction: column;
        max-width: 210px;
        word-break: break-word;
    }

    .logo-full span {
        display: block;
    }

    .logo-full span span {
        display: block;
    }

    /* Ukuran Huruf & Icon Setelah Scroll */
    nav.scrolled .logo-short {
        font-size: 22px !important;
    }

    nav.scrolled .logo-icon {
        display: inline-block;
        height: 26px;
        margin-right: 8px;
        opacity: 1;
    }

    /* Desain Language Toggle Minimalis Elegan */
    .lang-toggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        gap: 8px;
    }

    .lang-toggle-slider {
        display: none !important;
    }

    .lang-option {
        font-size: 12px;
        padding: 4px 2px;
        color: rgba(26, 26, 46, 0.3) !important;
        text-shadow: none !important;
        transition: color 0.2s ease;
    }

    .lang-option.active {
        color: var(--teal-deep) !important;
        font-weight: 800;
        text-shadow: none !important;
    }
}

/* ==========================================================================
   3. KHUSUS MODE HP STANDAR (481px - 600px)
   Kondisi Awal: Logo 3 Baris disesuaikan skalanya agar pas di genggaman ponsel.
   ========================================================================== */
@media (max-width: 600px) {
    nav {
        padding: 24px 20px 15px 20px;
    }

    nav.scrolled {
        padding: 10px 20px;
    }

    .logo-full {
        font-size: 38px !important;
        max-width: 180px;
    }

    nav.scrolled .logo-short {
        font-size: 20px !important;
    }

    nav.scrolled .logo-icon {
        height: 24px;
    }

    .lang-option {
        font-size: 11px;
    }
}

/* ==========================================================================
   4. KHUSUS SMARTPHONE KECIL / IPHONE MINI (Di bawah 480px)
   Mencegah font kebesaran di layar super sempit.
   ========================================================================== */
@media (max-width: 480px) {
    .logo-full {
        font-size: 34px !important;
        max-width: 160px;
    }

    nav.scrolled .logo-short {
        font-size: 19px !important;
    }
}

/* =====================
   HERO
   ===================== */

.hero-card-wrapper {
    margin: 150px 60px 20px 60px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 16px 48px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    padding: 140px 24px 80px;
    position: relative;
    background:
        linear-gradient(to bottom,
            rgba(10, 10, 20, 0.62) 0%,
            rgba(10, 10, 20, 0.55) 60%,
            rgba(10, 10, 20, 0.72) 100%),
        url('images/hero-bg.png') center center / cover no-repeat;
}

.hero-blob {
    display: none;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(56px, 9vw, 108px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.98;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 860px;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal);
    font-weight: 700;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin-bottom: 44px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 16px;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(44px, 12vw, 72px);
    }

    .hero-card-wrapper {
        margin: 150px 16px 20px 16px;
    }
}


/* ==========================================================================
   PROBLEM SECTION (BASE / DESKTOP > 800px)
   ========================================================================== */

.problem-section {
    background: var(--bg);
    width: 100%;
}

.problem-content {
    padding-bottom: 60px;
}

.problem-hook {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 36px;
    max-width: 100%;
}

.problem-hook strong {
    color: var(--teal-deep);
}

.problem-body-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.problem-body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.75;
    font-weight: 400;
}

/* Setup Desktop: Full width, melintang horizontal */
.problem-video-block {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.problem-video-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* DESKTOP GRADIENT: Ditambah 2 step ekstra di batas atas agar makin smooth */
.problem-video-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
            /* --- KALIBRASI ULANG: AREA KRITIS ULTRA SMOOTH 0% - 14% --- */
            rgba(245, 245, 250, 1.00) 0%,
            rgba(245, 245, 250, 0.99) 2%,
            /* Turun super tipis */
            rgba(245, 245, 250, 0.96) 5%,
            /* Menjaga kepekatan awal */
            rgba(245, 245, 250, 0.90) 8%,
            /* Melandai halus */
            rgba(245, 245, 250, 0.82) 11%,
            /* Transisi transparan mulai masuk */
            rgba(245, 245, 250, 0.72) 14%,
            /* Di titik 14% sekarang dapet blend yang smooth banget */

            /* Sisa pudar ke tengah desktop */
            rgba(245, 245, 250, 0.45) 20%,
            rgba(245, 245, 250, 0.15) 26%,
            rgba(245, 245, 250, 0.00) 32%,

            /* Area Tengah */
            rgba(255, 255, 255, 0.00) 70%,

            /* Batas Bawah Desktop (Udah Perfect) */
            rgba(255, 255, 255, 0.10) 77%,
            rgba(255, 255, 255, 0.35) 83%,
            rgba(255, 255, 255, 0.60) 88%,
            rgba(255, 255, 255, 0.80) 92%,
            rgba(255, 255, 255, 0.95) 96%,
            rgba(255, 255, 255, 1.00) 100%);
}


/* ==========================================================================
   RESPONSIVE: DI BAWAH 800px (TABLET & HP) - REAL FULL WIDTH & SMOOTH GRADIENT
   ========================================================================== */
@media (max-width: 800px) {
    .problem-body-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-video-block {
        aspect-ratio: 16 / 9;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        border-radius: 0;
    }

    .problem-video-block video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    /* MOBILE GRADIENT: Ditambah 2 step ekstra di batas atas & area pudar dilonggarkan */
    .problem-video-gradient {
        border-radius: 0;
        background: linear-gradient(to bottom,
                /* --- KALIBRASI ULANG: AREA KRITIS ULTRA SMOOTH 0% - 14% MOBILE --- */
                rgba(245, 245, 250, 1.00) 0%,
                rgba(245, 245, 250, 0.98) 2%,
                rgba(245, 245, 250, 0.94) 5%,
                rgba(245, 245, 250, 0.88) 8%,
                rgba(245, 245, 250, 0.80) 11%,
                rgba(245, 245, 250, 0.70) 14%,
                /* Kunci kehalusan di 14% layar HP */

                /* Sisa pudar ke tengah mobile */
                rgba(245, 245, 250, 0.40) 22%,
                rgba(245, 245, 250, 0.15) 32%,
                rgba(245, 245, 250, 0.00) 42%,

                /* Area Tengah Mobile */
                rgba(255, 255, 255, 0.00) 65%,

                /* Batas Bawah Mobile (Udah Perfect) */
                rgba(255, 255, 255, 0.30) 80%,
                rgba(255, 255, 255, 0.70) 92%,
                rgba(255, 255, 255, 1.00) 100%) !important;
    }
}


/* ==========================================================================
   KHUSUS SMARTPHONE KECIL (DI BAWAH 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .problem-video-block {
        width: 100% !important;
    }
}


/* =====================
   STATS
   ===================== */

.stats-section {
    padding: 100px 24px;
    background: var(--surface);
}

.stats-inner {
    max-width: 960px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 0.1px solid rgba(0, 0, 0, 0);
    box-shadow: none;
    transition: border-color 0.2s;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 50%;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 16px 32px rgba(15, 110, 86, 0.15);
    z-index: -1;
    pointer-events: none;
}

.stat-card:hover {
    border-color: rgba(15, 110, 86, 0.32);
}

.stat-card:hover::after {
    box-shadow: 0 20px 36px rgba(15, 110, 86, 0.20);
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 800;
    color: var(--teal-deep);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.stat-num span {
    font-size: 0.65em;
    font-weight: 600;
}

.stat-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.65;
    font-weight: 400;
    flex: 1;
    margin-bottom: 0;
}

.stat-viz {
    margin: 14px 0;
}

/* --- Viz: bars (card 2) --- */
.stat-viz--bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 64px;
}

.viz-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.viz-bar-label {
    font-size: 9px;
    color: var(--ink-muted);
    text-align: center;
}

.viz-bar-track {
    flex: 1;
    width: 100%;
    background: var(--teal-light);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
}

.viz-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.viz-bar-val {
    font-size: 9px;
    font-weight: 700;
}

/* --- Viz: timeline (card 3) --- */
.stat-viz--timeline {
    position: relative;
    padding: 14px 0 6px;
}

.viz-timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal-light);
    transform: translateY(-50%);
}

.viz-timeline-fill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 75%;
    height: 2px;
    background: var(--teal);
    transform: translateY(-50%);
}

.viz-timeline-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.viz-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.viz-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    display: block;
}

.viz-dot::after {
    content: attr(data-label);
    font-size: 8px;
    color: var(--ink-muted);
    white-space: nowrap;
}

.viz-dot--active::before {
    width: 14px;
    height: 14px;
    background: var(--teal-deep);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--teal-deep);
}

.viz-dot--active::after {
    color: var(--teal-deep);
    font-weight: 700;
}

.viz-dot--dim::before {
    background: #e5e7eb;
}

.viz-dot--dim::after {
    color: #d1d5db;
}

/* --- Viz: before/after (card 4) --- */
.stat-viz--before-after {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.viz-ba-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.viz-ba-label {
    font-size: 9px;
    color: var(--ink-muted);
    width: 46px;
    text-align: right;
    flex-shrink: 0;
}

.viz-ba-label.active {
    color: var(--teal-deep);
    font-weight: 600;
}

.viz-ba-track {
    flex: 1;
    background: var(--teal-light);
    border-radius: 3px;
    height: 10px;
    overflow: hidden;
}

.viz-ba-fill {
    height: 100%;
    border-radius: 3px;
}

.viz-ba-val {
    font-size: 9px;
    color: var(--ink-muted);
    width: 28px;
}

.viz-ba-val.active {
    color: var(--teal-deep);
    font-weight: 700;
}

.viz-ba-note {
    font-size: 9px;
    color: var(--ink-muted);
    margin: 0;
    padding-left: 54px;
}

/* --- Source link --- */
.stat-src {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--teal-deep);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-top: auto;
    padding-top: 12px;
}

.stat-src:hover {
    opacity: 1;
}

.stat-src svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* --- Closing statement --- */
.stats-closing {
    text-align: center;
    padding: 48px 24px 8px;
}

.closing-rule {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    opacity: 0.22;
}

.closing-rule::before,
.closing-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--teal-deep), transparent);
}


.closing-text {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.7;
    letter-spacing: -0.01em;
    max-width: 620px;
    margin: 0 auto;
}

.closing-text em {
    font-style: normal;
    font-weight: 700;
    color: var(--teal-deep);
}


/* =====================
   HOW IT WORKS
   ===================== */

.how-section {
    padding: 100px 24px;
    background: var(--surface);
}

.how-inner {
    max-width: 960px;
    margin: 0 auto;
}

.how-header {
    margin-bottom: 72px;
}

.how-title {
    font-family: var(--font-accent);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.1;
}

.how-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink-muted);
    max-width: 520px;
    line-height: 1.65;
}

.how-sub a {
    color: var(--teal-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tl-outer {
    position: relative;
}

.tl-line-bg {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(15, 110, 86, 0.12);
    z-index: 0;
}

.tl-line-fill {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--teal), var(--teal-deep));
    z-index: 1;
}

.tl-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.tl-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dot-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.dot-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
}

.dot-num {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--teal-deep);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg);
}

.tl-pin {
    width: 2px;
    background: linear-gradient(to bottom, var(--teal), transparent);
    flex-shrink: 0;
    margin-left: 17px;
    height: 32px;
}

.s2 .tl-pin {
    height: 48px;
}

.s3 .tl-pin {
    height: 24px;
}

.s4 .tl-pin {
    height: 40px;
}

.step-content {
    width: 100%;
    padding: 0 6px;
    text-align: left;
}

.step-icon {
    margin-bottom: 10px;
    display: block;
}

.step-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.05em;
    color: var(--ink);
    line-height: 1;
    display: inline-block;
}

.step-label::after {
    content: '';
    display: block;
    margin-top: 5px;
    height: 3px;
    border-radius: 2px;
}

.s1 .step-label::after {
    background: linear-gradient(to right, var(--teal), transparent);
    width: 80%;
}

.s2 .step-label::after {
    background: linear-gradient(to right, var(--teal), transparent);
    width: 60%;
}

.s3 .step-label::after {
    background: linear-gradient(to right, var(--teal), transparent);
    width: 90%;
}

.s4 .step-label::after {
    background: linear-gradient(to right, var(--teal), transparent);
    width: 70%;
}

.step-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 14px;
}

.step-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.7;
}

@media (max-width: 640px) {

    .tl-line-bg,
    .tl-line-fill {
        display: none;
    }

    .tl-row {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .dot-wrap,
    .tl-pin {
        display: none;
    }
}


/* =====================
   DIFFERENTIATOR
   ===================== */

.diff-section {
    position: relative;
    overflow: hidden;
}

/* img sizer: nentuin tinggi section ngikutin rasio foto asli */
.diff-bg-sizer {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

/* crossfade bg */
.diff-section::before,
.diff-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.diff-section::before {
    background-image: url('images/kata.png');
    animation: diffFade1 12s ease-in-out infinite;
}

.diff-section::after {
    background-image: url('images/kata1.png');
    animation: diffFade2 12s ease-in-out infinite;
}

@keyframes diffFade1 {

    0%,
    42% {
        opacity: 1;
    }

    50%,
    92% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes diffFade2 {

    0%,
    42% {
        opacity: 0;
    }

    50%,
    92% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* konten nempel di atas sizer */
.diff-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* dari flex-end */
    padding: 48px;
}

.diff-line {
    font-family: var(--font-display);
    font-size: clamp(32px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 0.93;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;

    /* Tambahan shadow hitam ringan per huruf */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.diff-attribution {
    margin-top: 36px;
    padding-top: 14px;
    border-top: 1px solid rgba(62, 215, 193, 0.3);
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 180px;
}

.diff-attr-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--teal);
}

.diff-attr-role {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(62, 215, 193, 0.5);
}

/* ---- responsive ---- */

@media (max-width: 860px) {
    .diff-content {
        padding: 36px 28px;
    }
}

/* TARGET BARU: Mengamankan display teks 3 baris di bawah 800px */
@media (max-width: 800px) {
    .diff-line {
        /* Memperkecil font secara dinamis agar pas dalam 1 baris per kalimat */
        font-size: clamp(22px, 4.5vw, 42px);
        line-height: 1.1;
        /* Sedikit dilonggarkan agar tidak menumpuk saat mengecil */

        /* Memaksa text tidak membungkus jadi baris baru per kalimatnya (tetap 1 kalimat = 1 baris) */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Jaga-jaga jika layar terlalu ekstrem kecilnya */
    }
}

@media (max-width: 600px) {
    .diff-content {
        padding: 24px 16px;
        /* Memperkecil padding samping agar ruang teks lebih luas */
    }

    .diff-line {
        /* Ukuran khusus layar HP agar teks tetap muat melintang */
        font-size: clamp(16px, 5.2vw, 24px);
        line-height: 1.1;
    }

    .diff-attribution {
        margin-top: 20px;
        padding-top: 10px;
    }

    .diff-attr-name {
        font-size: 11px;
    }

    .diff-attr-role {
        font-size: 8px;
    }
}

/* =====================
   EARLY ACCESS
   ===================== */

.access-section {
    padding: 100px 24px;
    background: url('assets/access-section-bg.jpg') center center / cover no-repeat;
    position: relative;
}

.access-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(245, 245, 250, 1.00) 0%,
            rgba(245, 245, 250, 0.98) 5%,
            rgba(245, 245, 250, 0.90) 10%,
            rgba(245, 245, 250, 0.72) 16%,
            rgba(245, 245, 250, 0.50) 22%,
            rgba(245, 245, 250, 0.28) 29%,
            rgba(245, 245, 250, 0.10) 36%,
            rgba(245, 245, 250, 0.00) 40%,
            rgba(245, 245, 250, 0.00) 100%);
    z-index: 0;
}

.access-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.access-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.0;
    color: var(--ink);
    margin-bottom: 16px;
}

.access-title em {
    font-style: normal;
    color: var(--teal-deep);
}

.access-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink-muted);
    font-weight: 400;
    margin-bottom: 44px;
    line-height: 1.6;
}


/* =====================
   MAIL ENVELOPE COMPONENT
   ===================== */

.mail-wrap {
    max-width: 420px;
    margin: 0 auto;
}

.mail__trigger {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 5;
    transform: rotate(-1.4deg);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.mail-wrap.is-open .mail__trigger {
    transform: rotate(0deg);
}

.mail__trigger:focus-visible {
    outline: 2px solid var(--teal-deep);
    outline-offset: 8px;
}

.mail__envelope {
    position: relative;
    height: clamp(150px, 30vw, 196px);
    perspective: 1400px;
}

.mail__body {
    position: absolute;
    inset: 0;
    background: var(--bg);
    border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
    box-shadow: 6px 6px 0 0 color-mix(in srgb, var(--ink) 88%, transparent);
    transition: box-shadow .5s cubic-bezier(.22, 1, .36, 1);
}

.mail-wrap.is-open .mail__body {
    box-shadow: 9px 9px 0 0 color-mix(in srgb, var(--ink) 88%, transparent);
}

.mail__postage {
    position: absolute;
    top: 66%;
    right: 8%;
    width: 34px;
    height: 42px;
    background: repeating-linear-gradient(45deg,
            color-mix(in srgb, var(--ink-muted) 70%, transparent) 0 1px, transparent 1px 6px);
    border: 1.5px dashed color-mix(in srgb, var(--ink) 38%, transparent);
    transform: rotate(-5deg);
}

.mail__seal {
    position: absolute;
    top: calc(58% - 19px);
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--teal-deep);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mail__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 58%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: var(--bg);
    border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
    border-bottom: 0;
    transform-origin: top center;
    transition: transform .65s cubic-bezier(.65, 0, .35, 1), opacity .45s ease .12s;
}

.mail-wrap.is-open .mail__flap {
    transform: rotateX(-176deg);
    opacity: 0;
}

.mail__hint {
    display: block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink-muted);
    transition: opacity .35s ease, transform .35s ease;
}

.mail-wrap.is-open .mail__hint {
    opacity: 0;
    transform: translateY(4px);
}

.mail__letter {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .75s cubic-bezier(.22, 1, .36, 1);
}

.mail-wrap.is-open .mail__letter {
    grid-template-rows: 1fr;
}

.mail__letter-track {
    overflow: hidden;
    min-height: 0;
    padding: 24px 32px 32px;
}

.mail__letter-sheet {
    position: relative;
    margin-top: -100px;
    background: var(--surface);
    border: 0.5px solid color-mix(in srgb, var(--teal-deep) 20%, transparent);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 12px color-mix(in srgb, var(--ink) 6%, transparent);
    padding: 36px 22px 22px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease .2s, transform .55s cubic-bezier(.22, 1, .36, 1) .2s,
        box-shadow .5s cubic-bezier(.22, 1, .36, 1) .2s;
}

.mail-wrap.is-open .mail__letter-sheet {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
        0 0 32px color-mix(in srgb, var(--ink) 14%, transparent),
        0 0 10px color-mix(in srgb, var(--teal-deep) 10%, transparent);
}

.mail__letter-kicker {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 18px;
    text-align: left;
}


.mail__letter-sheet .tally-wrap {
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: 14px;
}

.mail__letter-sheet .tally-wrap iframe {
    border-radius: 4px;
    display: block;
}

@media (prefers-reduced-motion: reduce) {

    .mail__trigger,
    .mail__flap,
    .mail__body,
    .mail__hint,
    .mail__letter,
    .mail__letter-sheet {
        transition-duration: .01ms !important;
    }
}

@media (max-width: 480px) {
    .mail__envelope {
        height: 152px;
    }

    .mail__seal {
        width: 32px;
        height: 32px;
        font-size: 13px;
        top: calc(58% - 16px);
    }
}


/* =====================
   FOOTER
   ===================== */

.site-footer {
    padding: 13px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(164, 219, 225, 0.25);
    background: var(--bg);
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* Wrapper text untuk mengunci inline elements tetap satu baris lurus center */
.footer-text-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* Biar aman kalau layar luar biasa sempit */
    gap: 5px;
    /* Jarak proporsional antar kata */
}

/* Base style tulisan footer (Ukuran font TIDAK ada yang diubah) */
.footer-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
}

/* Styling Khusus Link Portofolio Abda */
.footer-author-link {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-block;
}

.footer-author-link.abda-breath {
    color: var(--teal-deep);
    /* Warna menonjol */
    position: relative;
    /* Menjalankan animasi breathing secara infinite */
    animation: abdaBreathAnimation 2.5s ease-in-out infinite;
}

/* Warna untuk Arifin tetap teal sesuai span bawaan lo lama */
.author-arifin {
    color: var(--teal-deep);
}

/* Styling Icon LinkedIn */
/* Styling Icon LinkedIn (SEBELUM & SESUDAH HOVER TETAP BIRU ORIGINAL) */
.linkedin-footer-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    /* Jarak aman di sebelah kanan kata arifin */
    transition: transform 0.2s ease;
    /* Transisi fokus ke efek gerak saja */
}

.linkedin-footer-icon svg {
    fill: #0077b5;
    /* LANGSUNG BIRU LINKEDIN ORIGINAL DARI AWAL */
    transition: fill 0.2s ease;
}

/* Efek Hover LinkedIn */
.linkedin-footer-icon:hover {
    transform: scale(1.18);
    /* Tetap membesar sedikit pas di-hover biar interaktif */
}

.linkedin-footer-icon:hover svg {
    fill: #005582;
    /* Pas di-hover warnanya berubah jadi biru agak gelap/deep biar responsif */
}

/* ==========================================================================
   ANIMASI BREATHING (MENONJOL & BERDENYUT HALUS)
   ========================================================================== */
@keyframes abdaBreathAnimation {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(164, 219, 225, 0);
    }

    50% {
        transform: scale(1.06);
        /* Menonjol sedikit tanpa merusak layout */
        text-shadow: 0 0 8px rgba(164, 219, 225, 0.6);
        /* Efek glow tipis pas nge-breath */
        color: #167a85;
        /* Sedikit variasi warna saat di puncak denyut */
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(164, 219, 225, 0);
    }
}

/* Responsive Mobile Query */
@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-text-wrap {
        gap: 4px;
        /* Makin rapat di screen kecil agar tetep satu baris cantik */
    }
}


/* =====================
   REDUCED MOTION
   ===================== */

@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }

    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .reveal-up,
    .reveal-fade {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .card-3d,
    .card-3d-dark {
        transition: none;
    }
}