/* ==========================================================================
   SMART RW — LANDING PAGE THEME (DESIGN SYSTEM SPECIFICATION)
   Variables:
   --bg:#f7faf8; --surface:#ffffff; --border:#dbe9e0; --ink:#0f2a1d; --ink-soft:#4b6355; --ink-mute:#5f7468;
   --primary:#0e7a4b; --primary-dark:#0a5c38; --primary-soft:#e3f4ea;
   --accent:#f4a62a; --accent-soft:#fdf0d8; --danger:#e5483a; --info:#2a6fdb;
   ========================================================================== */

:root,
[data-bs-theme="light"],
[data-theme="light"] {
    color-scheme: light;
    --bg: #f7faf8;
    --surface: #ffffff;
    --surface-2: #f0f5f2;
    --border: #dbe9e0;
    --ink: #0f2a1d;
    --ink-soft: #4b6355;
    --ink-mute: #6f8578;
    --primary: #0e7a4b;
    --primary-dark: #0a5c38;
    --primary-soft: #e3f4ea;
    --accent: #b87106;
    --accent-soft: #fdf0d8;
    --danger: #e5483a;
    --danger-soft: #fdeeee;
    --info: #2a6fdb;
    --info-soft: #eaf1fc;
    --on-primary: #ffffff;
    --header-h: 74px;

    /* Semantic Compatibility */
    --page-bg: var(--bg);
    --card-surface: var(--surface);
    --border-color: var(--border);
    --border-subtle: #edf4f0;
    --main-text: var(--ink);
    --secondary-text: var(--ink-soft);
    --primary-green: var(--primary);
    --dark-green: var(--primary-dark);
    --soft-green: var(--primary-soft);
    --accent-gold: var(--accent);
    --nav-bg: rgba(255, 255, 255, 0.94);

    --radius-btn: 12px;
    --radius-card: 20px;
    --shadow-soft: 0 16px 36px rgba(15, 42, 29, 0.10);
    --shadow-hover: 0 20px 40px rgba(14, 122, 75, 0.15);

    /* Skala Lapisan (Z-Index) Global SMART RW */
    --z-base: 1;
    --z-topbar: 40;
    --z-wa: 50;
    --z-drawer-backdrop: 55;
    --z-drawer: 60;
    --z-modal-backdrop: 70;
    --z-modal: 80;
    --z-toast: 90;
    --toast-top: 76px;
}

[data-bs-theme="dark"],
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1511;
    --surface: #12201a;
    --surface-2: #172a21;
    --border: #223a2e;
    --ink: #eaf5ee;
    --ink-soft: #b7cbbf;
    --ink-mute: #8aa395;
    --primary: #2fbf7f;
    --primary-dark: #1db36f;
    --primary-soft: #143325;
    --accent: #f4b13f;
    --accent-soft: #3a2d12;
    --danger: #e5483a;
    --danger-soft: #3a1916;
    --info: #3d86f5;
    --info-soft: #14283d;
    --on-primary: #0b1511;

    --page-bg: var(--bg);
    --card-surface: var(--surface);
    --border-color: var(--border);
    --border-subtle: #192720;
    --main-text: var(--ink);
    --secondary-text: var(--ink-soft);
    --primary-green: var(--primary);
    --dark-green: var(--primary-dark);
    --soft-green: var(--primary-soft);
    --accent-gold: var(--accent);
    --nav-bg: rgba(18, 32, 26, 0.95);

    --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes flow {
    to { stroke-dashoffset: -28; }
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes cloudDrift {
    0% { transform: translateX(0); }
    50% { transform: translateX(18px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
}

section[id], [id] {
    scroll-margin-top: var(--header-h, 74px);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 15px;
    overflow-x: clip;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.drawer-open {
    overflow: hidden !important;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* ==========================================================================
   NAVBAR & MOBILE DRAWER
   ========================================================================== */
.landing-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-topbar, 40);
    transition: all 0.3s ease;
    padding-top: env(safe-area-inset-top, 0px);
}

.nav-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
}

.landing-hamburger-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.landing-hamburger-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}

.landing-drawer-theme-btn {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
}

.landing-drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0.85rem;
    list-style: none;
}

.d-desktop-only {
    display: inline-flex;
}

.nav-btn-compact {
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 13.5px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .nav-container {
        padding: 0 12px !important;
        height: 64px !important;
        min-height: 64px !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    .landing-hamburger-btn {
        display: inline-flex !important;
    }
    .d-desktop-only {
        display: none !important;
    }
    .brand-link {
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    .brand-title {
        font-size: 18px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        letter-spacing: -0.02em !important;
    }
    .nav-actions {
        gap: 6px !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
    .nav-btn-compact {
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 420px) {
    .nav-container {
        padding: 0 8px !important;
        gap: 6px !important;
    }
    .brand-link {
        gap: 6px !important;
    }
    .brand-title {
        font-size: 15px !important;
    }
    .brand-logo-img {
        width: 30px !important;
        height: 30px !important;
    }
    .nav-actions {
        gap: 5px !important;
    }
    .nav-btn-arrow {
        display: none !important;
    }
    .nav-btn-compact {
        padding: 0 8px !important;
        font-size: 12.5px !important;
        min-height: 38px !important;
        height: 38px !important;
    }
    .landing-hamburger-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 359.98px) {
    .nav-container {
        padding: 0 6px !important;
        gap: 4px !important;
    }
    .brand-link {
        gap: 4px !important;
    }
    .brand-title {
        font-size: 14px !important;
    }
    .brand-logo-img {
        width: 26px !important;
        height: 26px !important;
    }
    .nav-actions {
        gap: 4px !important;
    }
    .nav-btn-compact {
        padding: 0 6px !important;
        font-size: 11.5px !important;
        height: 36px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
    }
    .landing-hamburger-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
    }
}

.landing-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 42, 29, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-drawer-backdrop, 55);
    display: none;
}

.landing-drawer-backdrop.show {
    display: block;
}

.landing-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: var(--z-drawer, 60);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.landing-drawer.show {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(15, 42, 29, 0.4);
}

.landing-drawer-header {
    height: 64px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.landing-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.landing-drawer-menu {
    list-style: none;
    padding: 1rem 0.85rem;
    margin: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.landing-drawer-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-btn);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    min-height: 44px;
    transition: all 0.18s ease;
}

.landing-drawer-item:hover,
.landing-drawer-item:active {
    background: var(--primary-soft);
    color: var(--primary);
}

.landing-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand-title span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-menu a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.18s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.theme-toggle-pill {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle-pill:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   BUTTONS (min-height 44px, radius 12px, hover lift 2px)
   ========================================================================== */
.btn-saas-primary {
    background: var(--primary);
    color: #ffffff !important;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-btn);
    padding: 0.65rem 1.45rem;
    min-height: 44px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(14, 122, 75, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.btn-saas-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 122, 75, 0.38);
}

.btn-saas-primary:active {
    transform: translateY(0);
}

.btn-saas-outline {
    background: var(--surface);
    color: var(--ink) !important;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 0.65rem 1.45rem;
    min-height: 44px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 42, 29, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn-saas-outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 42, 29, 0.08);
}

.btn-saas-outline:active {
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: clamp(16px, 2.5vw, 36px);
    padding-bottom: clamp(24px, 4vw, 45px);
    min-height: auto !important;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.95rem 0.35rem 0.45rem;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
    box-shadow: 0 2px 8px rgba(15, 42, 29, 0.05);
}

.badge-gold {
    background: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.06em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

/* Green highlight with smoothly drawn underline */
.highlight-green {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight-underline-svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 12px;
    pointer-events: none;
}

.highlight-underline-svg path {
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: drawLine 1.4s ease forwards 0.4s;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 1.85rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.trust-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   HERO VISUAL PANEL & SVG COMMUNITY ILLUSTRATION
   ========================================================================== */
.hero-visual-wrapper {
    position: relative;
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s;
}

.hero-svg-frame {
    position: relative;
    background: #e3f4ea; /* Mint panel rounded */
    border: 1.5px solid var(--border);
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    overflow: visible;
}

.hero-illustration-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG Flow lines from houses to balai */
.flow-line {
    stroke: var(--primary);
    stroke-width: 2.4;
    stroke-dasharray: 6 6;
    animation: flow 1.2s linear infinite;
    fill: none;
}

/* Pulse dots at house doors */
.pulse-circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Cloud drift */
.cloud-drift {
    animation: cloudDrift 8s ease-in-out infinite;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 42, 29, 0.14);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
}

.floating-badge.top-badge {
    top: -18px;
    left: 16px;
    animation: bob 3.5s ease-in-out infinite;
}

.floating-badge.bottom-badge {
    bottom: -18px;
    right: 16px;
    animation: bob 4.2s ease-in-out 1.5s infinite; /* distinct delay */
}

.floating-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.floating-badge-icon.gold {
    background: var(--accent-soft);
    color: #a36209;
}

.floating-badge-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}

.floating-badge-sub {
    font-size: 0.75rem;
    color: var(--ink-soft);
}

/* ==========================================================================
   STATISTICS CARD (1 KARTU PUTIH 4 KOLOM DENGAN IKON DI KOTAK SOFT)
   ========================================================================== */
.stats-section {
    padding: 24px 0 50px;
}

.stats-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stats-grid-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 2rem 2.25rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both 0.25s;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* ==========================================================================
   SECTIONS: FITUR, LAYANAN, ROLE, CARA KERJA, KEAMANAN
   ========================================================================== */
.section-wrapper {
    padding: 75px 0;
}

.section-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* Fitur Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.feature-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.feature-card-desc {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

.feature-pill-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-pill {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
}

/* Layanan Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-badge-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.service-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.service-desc {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Role Cards Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

.role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.role-card.highlighted {
    border-color: var(--primary);
    box-shadow: 0 20px 45px rgba(14, 122, 75, 0.16);
}

.role-tag-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.role-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.role-subtitle {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.role-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.role-checklist li {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.role-checklist li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Steps Grid (Cara Kerja) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Security Box */
.security-box {
    background: linear-gradient(145deg, #0a5c38 0%, #0e7a4b 100%);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 24px 50px rgba(10, 92, 56, 0.25);
}

.security-box h2 {
    color: #ffffff;
}

.security-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
}

.security-item i {
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.security-item h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.security-item p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
    line-height: 1.55;
}

/* CTA Box */
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.landing-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2.5rem;
}

.footer-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-top: 1rem;
    line-height: 1.65;
    max-width: 320px;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--ink-mute);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   RESPONSIVENESS (1440, 1280, 768, 390)
   ========================================================================== */
@media (max-width: 1199.98px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023.98px) {
    :root {
        --header-h: 65px;
    }
    section[id], [id] {
        scroll-margin-top: 65px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: clamp(2rem, 5.5vw, 2.6rem);
    }
    .nav-menu {
        display: none !important;
    }
    .stats-grid-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .roles-grid {
        grid-template-columns: 1fr;
    }
    .security-box {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Requirement 3: Floating Badges below 1024px stay inside illustration column without absolute escape */
    .hero-visual-wrapper {
        width: 100%;
        max-width: 580px;
        margin: 0 auto;
    }
    .hero-svg-frame {
        position: relative !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 1.25rem !important;
    }
    .hero-illustration-svg {
        order: 1 !important;
        width: 100% !important;
        height: auto !important;
    }
    .floating-badge {
        position: static !important;
        animation: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 14px !important;
        box-shadow: var(--shadow-xs) !important;
        border: 1px solid var(--border) !important;
        background: var(--surface) !important;
        display: flex !important;
        align-items: center !important;
    }
    .floating-badge.top-badge {
        order: 2 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    .floating-badge.bottom-badge {
        order: 3 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

@media (min-width: 576px) and (max-width: 1023.98px) {
    /* Tablet 2-column layout for badges under illustration */
    .hero-svg-frame {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 1.5rem !important;
    }
    .hero-illustration-svg {
        grid-column: 1 / -1 !important;
        order: 1 !important;
    }
    .floating-badge.top-badge {
        grid-column: 1 !important;
        order: 2 !important;
    }
    .floating-badge.bottom-badge {
        grid-column: 2 !important;
        order: 3 !important;
    }
}

@media (max-width: 575.98px) {
    /* Requirement 2: Hero padding-top reduced on HP (<= 24px distance) */
    .hero-section {
        padding-top: 16px !important;
        padding-bottom: 24px !important;
    }
    .hero-container {
        padding: 0 1rem !important;
    }
    .hero-svg-frame {
        padding: 0.85rem !important;
        gap: 10px !important;
        border-radius: 20px !important;
    }
    .floating-badge {
        display: flex !important;
        padding: 0.65rem 0.85rem !important;
        gap: 0.65rem !important;
    }
    .floating-badge-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 1.05rem !important;
        border-radius: 10px !important;
    }
    .floating-badge-title {
        font-size: 0.82rem !important;
    }
    .floating-badge-sub {
        font-size: 0.72rem !important;
    }
    .hero-title { font-size: clamp(1.65rem, 6.8vw, 2.15rem); line-height: 1.25; }
    .hero-subtitle { font-size: 0.92rem; line-height: 1.6; }
    .hero-cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-cta-group .btn-saas-primary,
    .hero-cta-group .btn-saas-outline {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .hero-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    /* 2x2 grid stats on mobile as specified */
    .stats-grid-card {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 1.25rem 0.75rem !important;
    }
    .stat-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.45rem !important;
        min-width: 0 !important;
    }
    .stat-icon {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        font-size: 1.2rem !important;
        margin: 0 auto !important;
    }
    .stat-number {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
        line-height: 1.15 !important;
    }
    .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }
    .features-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}
