/* =========================================
           2. HEADER & MOBILE MENU TOGGLE
           ========================================= */
        header {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 74px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 11px;
            text-decoration: none;
            line-height: 1.15;
            flex-shrink: 0;
        }

        .brand-badge {
            width: 42px;
            height: 42px;
            border-radius: 11px;
            background: linear-gradient(145deg, #1644b8 0%, #0a1f52 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 14px rgba(15, 41, 100, 0.2);
            flex-shrink: 0;
        }

        .brand-text-stack {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .brand-name {
            font-weight: 800;
            font-size: 1.05rem;
            letter-spacing: 0.3px;
            color: #0f172a;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .brand-em {
            font-style: normal;
            color: #d97706; /* Biru royal, atau ganti #d97706 jika ingin aksen hangat */
        }

        .brand-domain {
            font-weight: 600;
            font-size: 0.78rem;
            color: #0f766e; /* Hijau teal kalem */
            letter-spacing: 0.1px;
            white-space: nowrap;
        }



        .brand-icon {
            width: 38px;
            height: 38px;
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 10px rgba(15, 41, 100, 0.12);
            flex-shrink: 0;
        }

        .nav-links {
            display: flex;
            gap: 24px;
            align-items: center;
        }

        .nav-links a {
            font-weight: 600;
            font-size: 0.92rem;
            color: var(--text-body);
            transition: color 0.25s ease;
        }

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

        .btn-nav {
            background: var(--primary);
            color: #fff !important;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.88rem !important;
            font-weight: 700 !important;
            transition: all 0.25s ease !important;
        }

        .btn-nav:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        /* Tombol Hamburger Mobile */
        .menu-toggle-btn {
            display: none;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            border: 1.5px solid var(--border-color);
            background: #ffffff;
            color: var(--primary);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 5px;
            transition: all 0.3s ease;
            z-index: 1100;
        }

        .menu-toggle-btn:hover {
            border-color: var(--primary);
            background: #f1f5f9;
        }

        .hamburger-line {
            width: 22px;
            height: 2.4px;
            background-color: var(--primary);
            border-radius: 4px;
            transition: transform 0.35s var(--ease-smooth), opacity 0.25s ease;
        }

        .menu-toggle-btn.active .hamburger-line:nth-child(1) {
            transform: translateY(7.4px) rotate(45deg);
        }

        .menu-toggle-btn.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle-btn.active .hamburger-line:nth-child(3) {
            transform: translateY(-7.4px) rotate(-45deg);
        }

        .mobile-drawer {
            display: none;
            background: #ffffff;
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
            padding: 16px 20px 24px;
        }

        .mobile-drawer.open {
            display: block;
            animation: slideDownMenu 0.35s var(--ease-smooth);
        }

        @keyframes slideDownMenu {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .mobile-drawer-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-drawer-links a {
            padding: 12px 14px;
            border-radius: 10px;
            font-weight: 600;
            color: var(--text-dark);
            background: #f8fafc;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-drawer-links a.mobile-cta-link {
            background: var(--primary);
            color: #ffffff;
            justify-content: center;
            font-weight: 700;
            margin-top: 4px;
        }

/* =========================================
           3. HERO SECTION & ANIMATIONS
           ========================================= */
        .hero {
            background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.18), transparent 45%),
            linear-gradient(135deg, #06122e 0%, #0f2964 58%, #1a3e8c 100%);
            color: #fff;
            padding: 72px 0 88px;
            position: relative;
            overflow: hidden;
        }

        .hero-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(55px);
            pointer-events: none;
            animation: orbDrift 11s ease-in-out infinite alternate;
        }

        .hero-orb-1 {
            width: 340px;
            height: 340px;
            background: rgba(56, 189, 248, 0.16);
            top: -80px;
            left: -80px;
        }

        .hero-orb-2 {
            width: 380px;
            height: 380px;
            background: rgba(245, 158, 11, 0.14);
            bottom: -110px;
            right: -60px;
            animation-delay: -4s;
        }

        @keyframes orbDrift {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(20px, -18px) scale(1.08); }
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.22fr 0.78fr;
            gap: 42px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .badge-jogja {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.22);
            padding: 7px 15px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #fde68a;
            margin-bottom: 18px;
            animation: heroFadeUp 1s var(--ease-smooth) both;
        }

        .hero h1 {
            font-size: clamp(2.05rem, 4.1vw, 3.05rem);
            font-weight: 800;
            line-height: 1.18;
            margin-bottom: 18px;
            animation: heroFadeUp 1.15s var(--ease-smooth) both;
        }

        .hero h1 span {
            color: var(--accent);
        }

        .hero p.hero-desc {
            font-size: 1.05rem;
            color: #cbd5e1;
            margin-bottom: 28px;
            max-width: 590px;
            animation: heroFadeUp 1.3s var(--ease-smooth) both;
        }

        .hero-cta-group {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-bottom: 30px;
        }

        @keyframes heroFadeUp {
            from { opacity: 0; transform: translateY(22px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Animasi Tombol Utama Hero: Reveal + Pulse */
        .btn-hero-pulse {
            opacity: 0;
            transform: scale(0.93);
            transition: opacity 1.05s var(--ease-smooth), transform 1.05s var(--ease-smooth), background 0.25s ease, color 0.25s ease;
        }

        .btn-hero-pulse.pulse-active {
            opacity: 1;
            transform: scale(1);
            animation: heroRevealPulse 3s ease-in-out infinite;
        }

        @keyframes heroRevealPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
            }
            50% {
                transform: scale(1.035);
                box-shadow: 0 14px 32px rgba(245, 158, 11, 0.5);
            }
        }

        .btn-primary {
            background: var(--accent);
            color: #0f172a;
            font-weight: 800;
            padding: 14px 26px;
            border-radius: 50px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .btn-primary:hover {
            background: var(--accent-hover);
            color: #ffffff;
        }

        /* Tombol "Konsultasi via WA" tanpa animasi reveal */
        .btn-outline-static {
            border: 1.5px solid rgba(255, 255, 255, 0.42);
            color: #fff;
            font-weight: 600;
            padding: 14px 24px;
            border-radius: 50px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.25s ease, border-color 0.25s ease;
        }

        .btn-outline-static:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: #fff;
        }

        .btn-outline-bounce {
            border: 1.5px solid rgba(255, 255, 255, 0.42);
            color: #fff;
            font-weight: 600;
            padding: 14px 24px;
            border-radius: 50px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            cursor: pointer;
            font-family: inherit;
        }

        .btn-outline-bounce:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: #fff;
        }

        .hero-trust {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            font-size: 0.9rem;
            color: #e2e8f0;
            animation: heroFadeUp 1.45s var(--ease-smooth) both;
        }

        .hero-trust div {
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .hero-card-visual {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 28px 24px;
            text-align: center;
            box-shadow: var(--shadow-lg);
            animation: cardFloat 5.5s ease-in-out infinite;
        }

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

        .cam-radar-wrap {
            width: 156px;
            height: 156px;
            margin: 0 auto 18px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .radar-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid rgba(56, 189, 248, 0.45);
            animation: radarPulse 3s cubic-bezier(0.24, 0, 0.38, 1) infinite;
        }

        .radar-ring-2 {
            animation-delay: 1.5s;
        }

        @keyframes radarPulse {
            0% { transform: scale(0.75); opacity: 0.85; }
            100% { transform: scale(1.22); opacity: 0; }
        }

        .cam-core {
            width: 124px;
            height: 124px;
            background: linear-gradient(165deg, #ffffff 0%, #e2e8f0 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 2;
        }

        .live-pill {
            position: absolute;
            top: 4px;
            right: -6px;
            background: #ef4444;
            color: #fff;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 3px 9px;
            border-radius: 20px;
            z-index: 3;
            animation: liveBlink 1.7s infinite;
        }

        @keyframes liveBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.55; }
        }

        .hero-brand-pills {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
            margin-top: 14px;
        }

        .hero-brand-pills span {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: #f1f5f9;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 6px;
        }

/* =========================================
           4. REVEAL ANIMATIONS (LAMBAT & SMOOTH)
           ========================================= */
        .reveal-smooth {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 1.15s var(--ease-smooth), transform 1.15s var(--ease-smooth);
        }

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

        /* Card di "Mengapa CCTV Jogja Vision": Left, Center, Right */
        .card-reveal-left {
            opacity: 0;
            transform: translateX(-44px);
            transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth), box-shadow 0.3s ease, background 0.3s ease;
        }

        .card-reveal-center {
            opacity: 0;
            transform: translateY(32px) scale(0.96);
            transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth), box-shadow 0.3s ease, background 0.3s ease;
        }

        .card-reveal-right {
            opacity: 0;
            transform: translateX(44px);
            transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth), box-shadow 0.3s ease, background 0.3s ease;
        }

        .card-reveal-left.is-visible,
        .card-reveal-center.is-visible,
        .card-reveal-right.is-visible {
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }

        /* Tombol Bounce In dari Bawah ke Atas */
        .btn-bounce-up {
            opacity: 0;
            transform: translateY(34px) scale(0.96);
        }

        .btn-bounce-up.is-bounced {
            animation: bounceInFromBottom 1.05s var(--ease-smooth) forwards;
        }

        @keyframes bounceInFromBottom {
            0% {
                opacity: 0;
                transform: translateY(34px) scale(0.96);
            }
            65% {
                opacity: 1;
                transform: translateY(-5px) scale(1.015);
            }
            85% {
                transform: translateY(2px) scale(0.995);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Tombol CTA Penutup: Muncul dari Kiri & Kanan */
        .cta-reveal-left {
            opacity: 0;
            transform: translateX(-52px);
            transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth), background 0.25s ease, color 0.25s ease;
        }

        .cta-reveal-right {
            opacity: 0;
            transform: translateX(52px);
            transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth), background 0.25s ease, border-color 0.25s ease;
        }

        .cta-reveal-left.is-visible,
        .cta-reveal-right.is-visible {
            opacity: 1;
            transform: translateX(0);
        }
