/* ==========================================================================
   ERP Mini Pro — Landing Page Styles + Light/Dark Theme
   ========================================================================== */

:root,
[data-theme="dark"] {
    --lp-bg: #030303;
    --lp-bg-2: #050505;
    --lp-bg-3: #020202;
    --lp-surface: #0a0a0a;
    --lp-surface-2: #111111;
    --lp-text: #ffffff;
    --lp-text-muted: #9ca3af;
    --lp-text-subtle: #6b7280;
    --lp-border: rgba(255, 255, 255, 0.08);
    --lp-border-strong: rgba(55, 65, 81, 1);
    --lp-nav-bg: rgba(3, 3, 3, 0.4);
    --lp-nav-bg-scrolled: rgba(3, 3, 3, 0.85);
    --lp-nav-shadow: rgba(0, 0, 0, 0.8);
    --lp-grid-line: rgba(255, 255, 255, 0.03);
    --lp-particle: 255, 255, 255;
    --lp-card-gradient-start: rgba(20, 20, 20, 0.8);
    --lp-card-gradient-end: rgba(10, 10, 10, 0.8);
    --lp-mobile-menu-bg: rgba(3, 3, 3, 0.95);
    --lp-text-gradient-start: #ffffff;
    --lp-text-gradient-end: #a3a3a3;
    --lp-scrollbar-track: #030303;
    --lp-scrollbar-thumb: #222;
    --lp-glow-opacity: 1;
}

[data-theme="light"] {
    --lp-bg: #f8fafc;
    --lp-bg-2: #f1f5f9;
    --lp-bg-3: #e2e8f0;
    --lp-surface: #ffffff;
    --lp-surface-2: #f1f5f9;
    --lp-text: #0f172a;
    --lp-text-muted: #64748b;
    --lp-text-subtle: #94a3b8;
    --lp-border: rgba(15, 23, 42, 0.1);
    --lp-border-strong: rgba(203, 213, 225, 1);
    --lp-nav-bg: rgba(248, 250, 252, 0.85);
    --lp-nav-bg-scrolled: rgba(248, 250, 252, 0.95);
    --lp-nav-shadow: rgba(15, 23, 42, 0.08);
    --lp-grid-line: rgba(15, 23, 42, 0.06);
    --lp-particle: 15, 23, 42;
    --lp-card-gradient-start: rgba(255, 255, 255, 0.95);
    --lp-card-gradient-end: rgba(241, 245, 249, 0.95);
    --lp-mobile-menu-bg: rgba(248, 250, 252, 0.98);
    --lp-text-gradient-start: #0f172a;
    --lp-text-gradient-end: #475569;
    --lp-scrollbar-track: #f1f5f9;
    --lp-scrollbar-thumb: #cbd5e1;
    --lp-glow-opacity: 0.35;
}

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

/* Nav links — scrollspy & hover */
.nav-link {
    color: var(--lp-text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--lp-text);
}

.nav-link-active {
    color: var(--lp-text) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.nav-link-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #ff6b00;
    border-radius: 2px;
}

.nav-brand {
    text-decoration: none;
}

.nav-brand.nav-link-active::after {
    display: none;
}

[data-theme="light"] .nav-link-active {
    color: #0f172a !important;
}

/* Secondary button — hero & outline actions */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--lp-border-strong);
    color: var(--lp-text);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.45);
    color: var(--lp-text);
}

[data-theme="light"] .btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
    background: #fff7ed;
    border-color: #ff6b00;
}

/* Billing toggle */
.billing-toggle-btn {
    border: none;
    cursor: pointer;
    outline: none;
}

.billing-active {
    background-color: #334155 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.billing-inactive {
    background-color: transparent !important;
    color: var(--lp-text-muted) !important;
}

.billing-inactive:hover {
    color: var(--lp-text) !important;
}

[data-theme="light"] .billing-active {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

[data-theme="light"] .billing-inactive {
    color: #64748b !important;
}

[data-theme="light"] .billing-inactive:hover {
    color: #0f172a !important;
}

/* Warna aksen semantik — jangan tabrakan dengan override tema */
.text-brand-orange,
.text-green-400, .text-green-500,
.text-blue-400, .text-blue-500, .text-blue-600,
.text-red-400, .text-red-500,
.text-purple-400, .text-purple-500,
.text-yellow-400, .text-yellow-500,
.text-emerald-400 {
    /* preserve Tailwind semantic colors */
}

[data-theme="light"] .text-brand-orange { color: #ea580c !important; }
[data-theme="light"] .text-green-400 { color: #16a34a !important; }
[data-theme="light"] .text-green-500 { color: #15803d !important; }
[data-theme="light"] .text-blue-400 { color: #2563eb !important; }
[data-theme="light"] .text-blue-500 { color: #1d4ed8 !important; }
[data-theme="light"] .text-red-400 { color: #dc2626 !important; }
[data-theme="light"] .text-purple-400 { color: #9333ea !important; }
[data-theme="light"] .text-purple-500 { color: #7e22ce !important; }
[data-theme="light"] .text-yellow-400 { color: #ca8a04 !important; }
[data-theme="light"] .text-yellow-500 { color: #a16207 !important; }

/* Heading & body copy readability */
h1, h2, h3, h4, h5, h6 {
    color: var(--lp-text);
    line-height: 1.2;
}

p, li {
    color: inherit;
}

.lp-lead {
    color: var(--lp-text-muted);
}

/* Hero badge — kontras jelas di kedua tema */
.hero-badge {
    border-color: var(--lp-border) !important;
    background: rgba(255, 255, 255, 0.05);
    color: var(--lp-text-muted);
}

[data-theme="light"] .hero-badge {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .hero-badge .group-hover\:text-white:hover {
    color: #0f172a !important;
}

/* Ticker — lebih terbaca */
[data-theme="light"] .ticker-wrap {
    opacity: 0.65 !important;
}

[data-theme="light"] .ticker-wrap:hover {
    opacity: 1 !important;
}

[data-theme="light"] .ticker .text-gray-400 {
    color: #475569 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lp-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--lp-scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b00;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--lp-text-gradient-start) 0%, var(--lp-text-gradient-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #ff8a00 0%, #ff4500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tech Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--lp-grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Smart Navbar */
.glass-nav {
    background: var(--lp-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.glass-nav.nav-scrolled {
    background: var(--lp-nav-bg-scrolled);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 10px 40px -10px var(--lp-nav-shadow);
}

/* Theme toggle button */
.theme-toggle-btn {
    border-color: var(--lp-border-strong);
    color: var(--lp-text-muted);
}

.theme-toggle-btn:hover {
    color: var(--lp-text);
}

[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* Logo — mix-blend only on dark */
.logo-img {
    mix-blend-mode: screen;
}

/* Bento Cards & Spotlight */
.bento-card {
    background: linear-gradient(145deg, var(--lp-card-gradient-start) 0%, var(--lp-card-gradient-end) 100%);
    border: 1px solid var(--border-color, var(--lp-border));
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 107, 0, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover::before {
    opacity: 1;
}

/* Animated Border for Pricing */
.animated-border-box {
    position: relative;
    border-radius: 24px;
    background: var(--lp-surface);
    padding: 1px;
    overflow: hidden;
}

.animated-border-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 107, 0, 0.1), #ff6b00, transparent 30%);
    animation: spin 4s linear infinite;
}

.animated-border-inner {
    background: var(--lp-surface);
    border-radius: 23px;
    height: 100%;
    position: relative;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6b00, #e63900);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Marquee */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    animation: ticker 40s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* TAB SHOWCASE MODUL */
.tab-btn {
    transition: all 0.3s ease;
    color: var(--lp-text-muted);
    border: 1px solid transparent;
}

.tab-btn:hover {
    color: var(--lp-text);
}

.tab-btn.active {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.5);
    color: var(--lp-text);
    box-shadow: inset 2px 0 0 #ff6b00;
}

[data-theme="light"] .tab-btn.active {
    background: rgba(255, 107, 0, 0.12);
    color: #0f172a;
}

.tab-content {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* INTEGRASI EKOSISTEM — Premium orbit animation */
.ecosystem-section {
    --eco-purple: rgba(168, 85, 247, 0.45);
    --eco-orange: rgba(255, 107, 0, 0.35);
    --orbit-ring-lg: 280px;
    --orbit-ring-md: 210px;
    --orbit-ring-sm: 140px;
    --orbit-stage-h: 460px;
    padding-bottom: 5rem;
}

@media (min-width: 640px) {
    .ecosystem-section {
        --orbit-ring-lg: 320px;
        --orbit-ring-md: 250px;
        --orbit-ring-sm: 170px;
        --orbit-stage-h: 520px;
        padding-bottom: 6rem;
    }
}

@media (min-width: 768px) {
    .ecosystem-section {
        --orbit-ring-lg: 360px;
        --orbit-ring-md: 280px;
        --orbit-ring-sm: 190px;
        --orbit-stage-h: 580px;
        padding-bottom: 7rem;
    }
}

.ecosystem-ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 55%, rgba(168, 85, 247, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 30% 40%, rgba(255, 107, 0, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: ecosystem-ambient-shift 12s ease-in-out infinite alternate;
}

.ecosystem-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, black 20%, transparent 75%);
}

.ecosystem-badge {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
}

.ecosystem-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
    animation: ecosystem-pulse-dot 2s ease-in-out infinite;
}

.orbit-ring {
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-ring-sm { width: var(--orbit-ring-sm); height: var(--orbit-ring-sm); }
.orbit-ring-md { width: var(--orbit-ring-md); height: var(--orbit-ring-md); }
.orbit-ring-lg { width: var(--orbit-ring-lg); height: var(--orbit-ring-lg); }

.orbit-ring-trace-sm { width: var(--orbit-ring-sm); height: var(--orbit-ring-sm); animation-delay: 0s; }
.orbit-ring-trace-md { width: var(--orbit-ring-md); height: var(--orbit-ring-md); animation-delay: -1.3s; }
.orbit-ring-trace-lg { width: var(--orbit-ring-lg); height: var(--orbit-ring-lg); animation-delay: -2.6s; }

.orbit-ring-trace {
    border: 1px dashed rgba(168, 85, 247, 0.2);
    animation: orbit-trace-pulse 4s ease-in-out infinite;
}

.orbit-ring-trace::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(255, 107, 0, 0.55);
    border-right-color: rgba(168, 85, 247, 0.35);
    animation: orbit-ring-sweep 6s linear infinite;
}

.orbit-ring-live {
    z-index: 12;
    border: 1px dashed rgba(168, 85, 247, 0.35);
    pointer-events: none;
}

.orbit-arm {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    will-change: transform;
    /* Rotasi di-drive oleh landing.js — lebih andal daripada CSS var animation */
}

.orbit-arm-reverse {
    /* arah dibalik di JS */
}

.orbit-node {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.integration-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1.125rem;
    transform-origin: center center;
    will-change: transform;
    transition: box-shadow 0.35s ease, filter 0.35s ease;
    pointer-events: auto;
    cursor: default;
    position: relative;
    z-index: 16;
}

.integration-chip i {
    color: inherit;
}

/* Warna chip orbit — eksplisit di CSS (tidak bergantung Tailwind build) */
.chip-wa {
    background-color: #22c55e;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.45);
}

.chip-windows {
    background-color: #2563eb;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.45);
}

.chip-excel {
    background-color: #15803d;
    box-shadow: 0 0 20px rgba(21, 128, 61, 0.4);
}

.chip-store {
    background-color: #4f46e5;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
}

.chip-bank {
    background-color: #334155;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

.chip-iot {
    background-color: #9333ea;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.45);
}

.chip-api {
    background-color: #f97316;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.45);
}

.integration-chip-sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

@media (min-width: 768px) {
    .integration-chip {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        border-radius: 0.875rem;
    }

    .integration-chip-sm {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }
}

.integration-chip:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.35);
    z-index: 40;
}

.eco-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.ecosystem-hub {
    animation: ecosystem-hub-breathe 4s ease-in-out infinite;
}

.ecosystem-hub-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(168, 85, 247, 0.7);
    border-bottom-color: rgba(255, 107, 0, 0.5);
    animation: orbit-ring-sweep 3s linear infinite;
}

.ecosystem-core-glow {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(255, 107, 0, 0.08) 45%, transparent 70%);
    animation: ecosystem-glow-pulse 5s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

.hub-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.25);
    pointer-events: none;
    animation: hub-pulse-expand 4s ease-out infinite;
}

.hub-pulse-1 { width: 120px; height: 120px; animation-delay: 0s; }
.hub-pulse-2 { width: 120px; height: 120px; animation-delay: -1.3s; }
.hub-pulse-3 { width: 120px; height: 120px; animation-delay: -2.6s; }

.eco-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
    animation: eco-particle-float 8s ease-in-out infinite;
}

.eco-particles span:nth-child(1) { top: 18%; left: 22%; animation-delay: 0s; }
.eco-particles span:nth-child(2) { top: 72%; left: 18%; animation-delay: -2s; background: rgba(255, 107, 0, 0.7); box-shadow: 0 0 6px rgba(255, 107, 0, 0.8); }
.eco-particles span:nth-child(3) { top: 28%; right: 20%; animation-delay: -4s; }
.eco-particles span:nth-child(4) { bottom: 22%; right: 28%; animation-delay: -1s; background: rgba(59, 130, 246, 0.7); box-shadow: 0 0 6px rgba(59, 130, 246, 0.8); }
.eco-particles span:nth-child(5) { top: 45%; left: 8%; animation-delay: -3s; width: 3px; height: 3px; }
.eco-particles span:nth-child(6) { bottom: 35%; left: 42%; animation-delay: -5s; width: 5px; height: 5px; background: rgba(255, 107, 0, 0.5); }

@keyframes orbit-arm-spin {
    100% { transform: rotate(360deg); }
}

@keyframes orbit-node-counter {
    100% { transform: rotate(-360deg); }
}

@keyframes orbit-ring-sweep {
    100% { transform: rotate(360deg); }
}

@keyframes orbit-trace-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

@keyframes hub-pulse-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

@keyframes ecosystem-hub-breathe {
    0%, 100% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.35), 0 0 80px rgba(255, 107, 0, 0.08);
    }
    50% {
        box-shadow: 0 0 55px rgba(168, 85, 247, 0.5), 0 0 100px rgba(255, 107, 0, 0.15);
    }
}

@keyframes ecosystem-glow-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes ecosystem-ambient-shift {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

@keyframes ecosystem-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes eco-particle-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    25% { transform: translate(8px, -12px); opacity: 0.9; }
    50% { transform: translate(-6px, -20px); opacity: 0.6; }
    75% { transform: translate(10px, -8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-ring-trace,
    .orbit-ring-trace::after,
    .hub-pulse,
    .ecosystem-hub-ring,
    .ecosystem-core-glow,
    .ecosystem-ambient,
    .eco-particles span,
    .ecosystem-badge-dot {
        animation: none !important;
    }
}

/* Legacy orbit (unused) — kept for reference */
.orbit-icon {
    position: absolute;
    transform-origin: center;
}

@keyframes orbit-spin {
    100% { transform: rotate(360deg); }
}

@keyframes orbit-counter-spin {
    100% { transform: rotate(-360deg); }
}

/* FAQ ACCORDION */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #ff6b00;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--lp-mobile-menu-bg);
    backdrop-filter: blur(10px);
    z-index: 60;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.open {
    transform: translateY(0);
}

/* Hero ambient glows — softer in light mode */
[data-theme="light"] #hero .bg-brand-orange\/20,
[data-theme="light"] #hero .bg-blue-600\/10 {
    opacity: calc(var(--lp-glow-opacity) * 0.5);
}

[data-theme="light"] #stardust {
    opacity: 0.35 !important;
}

[data-theme="light"] .logo-img {
    mix-blend-mode: normal;
    filter: brightness(1.05) contrast(1.1);
}

[data-theme="light"] .logo-wrap {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .center-node.bg-\[\#030303\] {
    background-color: #1e293b !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
}

/* Orbit stage — cukup ruang agar ikon tidak terpotong & tidak menabrak header */
.orbit-stage {
    position: relative;
    z-index: 1;
    isolation: isolate;
    height: var(--orbit-stage-h);
    min-height: var(--orbit-stage-h);
    margin-top: 0.5rem;
}

.orbit-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 2.5rem;
    bottom: 2.5rem;
    overflow: visible;
    will-change: transform;
}

@media (min-width: 768px) {
    .orbit-container {
        top: 3rem;
        bottom: 3rem;
    }
}

.ecosystem-header {
    isolation: isolate;
    position: relative;
    z-index: 40;
}

[data-theme="light"] .ecosystem-section .ecosystem-header h3 {
    color: #0f172a !important;
}

[data-theme="light"] .ecosystem-section .ecosystem-header p {
    color: #64748b !important;
}

[data-theme="light"] .ecosystem-badge {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #7c3aed;
}

[data-theme="light"] .ecosystem-ambient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 55%, rgba(168, 85, 247, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 30% 40%, rgba(255, 107, 0, 0.06) 0%, transparent 55%);
}

[data-theme="light"] .ecosystem-grid {
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .ecosystem-section .integration-chip,
[data-theme="light"] .ecosystem-section .integration-chip i {
    color: #ffffff !important;
}

[data-theme="light"] .orbit-ring-trace,
[data-theme="light"] .orbit-ring-live {
    border-color: rgba(168, 85, 247, 0.45);
}

[data-theme="light"] .hub-pulse {
    border-color: rgba(168, 85, 247, 0.35);
}

.billing-toggle-wrap {
    overflow: visible;
}

/* Hero float cards — selalu gelap (bagian mockup dashboard) */
.hero-float-card.theme-locked-dark {
    background: rgba(26, 26, 26, 0.95) !important;
    border-color: #374151 !important;
}

.hero-float-card.theme-locked-dark .text-white {
    color: #ffffff !important;
}

.hero-float-card.theme-locked-dark .text-gray-400,
.hero-float-card.theme-locked-dark .text-gray-500 {
    color: #9ca3af !important;
}

/* Showcase panel — selalu dark UI */
.showcase-panel-shell {
    background: #0a0a0a !important;
    border-color: #1f2937 !important;
}

[data-theme="light"] .showcase-panel-shell {
    background: #0a0a0a !important;
    border-color: #1f2937 !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15) !important;
}

/* Bottom CTA — kontras tinggi di kedua tema */
.cta-bottom-section {
    background: #030303 !important;
}

.cta-bottom-glow {
    background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.22) 0%, rgba(3, 3, 3, 0.95) 55%, #030303 100%);
}

.cta-bottom-title {
    color: #ffffff !important;
}

.cta-bottom-subtitle {
    color: #cbd5e1 !important;
}

[data-theme="light"] .cta-bottom-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
}

[data-theme="light"] .cta-bottom-glow {
    background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.18) 0%, rgba(15, 23, 42, 0.92) 55%, #0f172a 100%);
}

[data-theme="light"] .cta-bottom-title {
    color: #ffffff !important;
}

[data-theme="light"] .cta-bottom-subtitle {
    color: #e2e8f0 !important;
}

/* Lead magnet — kontras teks & form jelas */
.lead-magnet-section {
    background: linear-gradient(135deg, #111111 0%, #050505 100%);
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.05);
    overflow: hidden;
}

.lead-magnet-glow {
    background: rgba(255, 107, 0, 0.12);
    filter: blur(80px);
    transform: translate(20%, -20%);
}

.lead-magnet-title {
    color: #ffffff;
}

.lead-magnet-desc {
    color: #cbd5e1;
}

.lead-magnet-list {
    color: #e2e8f0;
}

.lead-magnet-form-card {
    background: #0a0a0a;
    border-color: #374151;
}

.lead-magnet-form-title {
    color: #ffffff;
}

.lead-magnet-input {
    background: #111111;
    border-color: #374151;
    color: #ffffff;
}

.lead-magnet-input::placeholder {
    color: #6b7280;
}

[data-theme="light"] .lead-magnet-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(255, 107, 0, 0.25) !important;
}

[data-theme="light"] .lead-magnet-title {
    color: #ffffff !important;
}

[data-theme="light"] .lead-magnet-desc,
[data-theme="light"] .lead-magnet-list {
    color: #e2e8f0 !important;
}

[data-theme="light"] .lead-magnet-form-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .lead-magnet-form-title {
    color: #0f172a !important;
}

[data-theme="light"] .lead-magnet-input {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .lead-magnet-input::placeholder {
    color: #64748b !important;
}

[data-theme="light"] .lead-magnet-form-card .text-gray-600,
[data-theme="light"] .lead-magnet-form-card .text-gray-500 {
    color: #64748b !important;
}

/* Stats grid — divider rapi di mobile & desktop */
.stats-grid > div {
    position: relative;
}

@media (min-width: 768px) {
    .stats-grid > div:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: var(--lp-border-strong);
    }
}

@media (max-width: 767px) {
    .stats-grid > div {
        padding-bottom: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .stats-grid > div:nth-child(odd)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: var(--lp-border-strong);
    }

    .stats-grid > div:nth-child(1)::before,
    .stats-grid > div:nth-child(2)::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 1px;
        background: var(--lp-border-strong);
    }
}

/* Floating cards di hero & mobile — mockup float selalu gelap via theme-locked-dark */
[data-theme="light"] .mobile-float-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: var(--lp-border-strong) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .mobile-float-card .text-white {
    color: var(--lp-text) !important;
}

[data-theme="dark"] .mobile-float-card {
    background: rgba(26, 26, 26, 0.92) !important;
}

/* Mockup produk — tetap dark UI di light mode */
[data-theme="light"] .theme-locked-dark .bg-\[\#030303\] { background-color: #030303 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#050505\] { background-color: #050505 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#080808\] { background-color: #080808 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#0a0a0a\] { background-color: #0a0a0a !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#0a0a0a\]\/90 { background-color: rgba(10, 10, 10, 0.9) !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#111\] { background-color: #111111 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#1a1a1a\] { background-color: #1a1a1a !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#1f1f1f\] { background-color: #1f1f1f !important; }
[data-theme="light"] .theme-locked-dark .from-\[\#030303\] { --tw-gradient-from: #030303 var(--tw-gradient-from-position) !important; }
[data-theme="light"] .theme-locked-dark .from-\[\#111\] { --tw-gradient-from: #111111 var(--tw-gradient-from-position) !important; }
[data-theme="light"] .theme-locked-dark .to-\[\#0a0a0a\] { --tw-gradient-to: #0a0a0a var(--tw-gradient-to-position) !important; }

[data-theme="light"] .theme-locked-dark .text-white { color: #ffffff !important; }
[data-theme="light"] .theme-locked-dark .text-gray-300 { color: #d1d5db !important; }
[data-theme="light"] .theme-locked-dark .text-gray-400 { color: #9ca3af !important; }
[data-theme="light"] .theme-locked-dark .text-gray-500 { color: #6b7280 !important; }
[data-theme="light"] .theme-locked-dark .text-gray-600 { color: #4b5563 !important; }

[data-theme="light"] .theme-locked-dark .border-gray-800,
[data-theme="light"] .theme-locked-dark .border-gray-800\/50,
[data-theme="light"] .theme-locked-dark .border-gray-800\/60,
[data-theme="light"] .theme-locked-dark .border-gray-800\/80 { border-color: #1f2937 !important; }
[data-theme="light"] .theme-locked-dark .border-gray-700 { border-color: #374151 !important; }
[data-theme="light"] .theme-locked-dark .border-white\/5,
[data-theme="light"] .theme-locked-dark .border-white\/10 { border-color: rgba(255, 255, 255, 0.08) !important; }

[data-theme="light"] .theme-locked-dark .hover\:border-gray-600:hover { border-color: #4b5563 !important; }
[data-theme="light"] .theme-locked-dark .group-hover\:bg-\[\#080808\]:hover { background-color: #080808 !important; }
[data-theme="light"] .theme-locked-dark .bg-gray-800 { background-color: #1f2937 !important; }
[data-theme="light"] .theme-locked-dark .bg-gray-700 { background-color: #374151 !important; }
[data-theme="light"] .theme-locked-dark .hover\:bg-gray-600:hover { background-color: #4b5563 !important; }

/* ==========================================================================
   Light mode overrides for hardcoded Tailwind classes in index.html
   ========================================================================== */

[data-theme="light"] .text-white {
    color: var(--lp-text) !important;
}

/* Teks putih pada elemen aksen — jangan di-override */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary *,
[data-theme="light"] .bg-brand-orange,
[data-theme="light"] .bg-brand-orange *,
[data-theme="light"] .bg-green-500.text-white,
[data-theme="light"] .bg-green-500.text-white *,
[data-theme="light"] .bg-green-600.text-white,
[data-theme="light"] .bg-green-600.text-white *,
[data-theme="light"] .bg-green-700.text-white,
[data-theme="light"] .bg-green-700.text-white *,
[data-theme="light"] .bg-blue-600.text-white,
[data-theme="light"] .bg-blue-600.text-white *,
[data-theme="light"] .bg-purple-600.text-white,
[data-theme="light"] .bg-purple-600.text-white *,
[data-theme="light"] button.bg-gray-800.text-white,
[data-theme="light"] .bg-\[\#25D366\],
[data-theme="light"] .bg-\[\#25D366\] *,
[data-theme="light"] .fab.fa-whatsapp {
    color: #ffffff !important;
}

[data-theme="light"] .text-black {
    color: #000000 !important;
}

[data-theme="light"] .text-gray-300 {
    color: #475569 !important;
}

[data-theme="light"] .text-gray-400 {
    color: var(--lp-text-muted) !important;
}

[data-theme="light"] .text-gray-500 {
    color: #64748b !important;
}

[data-theme="light"] .text-gray-600 {
    color: #94a3b8 !important;
}

[data-theme="light"] .text-gray-700 {
    color: #64748b !important;
}

[data-theme="light"] .text-gray-800 {
    color: #475569 !important;
}

[data-theme="light"] .bg-\[\#030303\],
[data-theme="light"] .bg-\[\#020202\],
[data-theme="light"] .bg-brand-black {
    background-color: var(--lp-bg) !important;
}

[data-theme="light"] .bg-\[\#050505\],
[data-theme="light"] .bg-\[\#050505\]\/80 {
    background-color: var(--lp-bg-2) !important;
}

[data-theme="light"] .bg-\[\#0a0a0a\],
[data-theme="light"] .bg-\[\#0a0a0a\]\/90 {
    background-color: var(--lp-surface) !important;
}

[data-theme="light"] .bg-\[\#111\],
[data-theme="light"] .bg-\[\#1a1a1a\] {
    background-color: var(--lp-surface-2) !important;
}

[data-theme="light"] .bg-\[\#080808\] {
    background-color: var(--lp-bg-2) !important;
}

[data-theme="light"] .bg-\[\#1f1f1f\] {
    background-color: #e2e8f0 !important;
}

[data-theme="light"] .bg-gray-800 {
    background-color: #334155 !important;
}

[data-theme="light"] .hover\:bg-gray-800:hover {
    background-color: #475569 !important;
}

[data-theme="light"] .from-\[\#111\] {
    --tw-gradient-from: var(--lp-surface-2) var(--tw-gradient-from-position) !important;
}

[data-theme="light"] .to-\[\#0a0a0a\] {
    --tw-gradient-to: var(--lp-surface) var(--tw-gradient-to-position) !important;
}

[data-theme="light"] .from-\[\#030303\] {
    --tw-gradient-from: var(--lp-bg) var(--tw-gradient-from-position) !important;
}

[data-theme="light"] .border-gray-800,
[data-theme="light"] .border-gray-800\/50,
[data-theme="light"] .border-gray-800\/60,
[data-theme="light"] .border-gray-800\/80 {
    border-color: var(--lp-border-strong) !important;
}

[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-900 {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .border-white\/5,
[data-theme="light"] .border-white\/10 {
    border-color: var(--lp-border) !important;
}

[data-theme="light"] .divide-gray-800\/50 > :not([hidden]) ~ :not([hidden]) {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .bg-white\/5 {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .hover\:bg-white\/5:hover,
[data-theme="light"] .hover\:bg-white\/10:hover {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .hover\:text-white:hover {
    color: var(--lp-text) !important;
}

[data-theme="light"] .shadow-\[0_20px_70px_rgba\(0\,0\,0\,0\.8\)\] {
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .glass-nav a.hover\:text-white:hover {
    color: var(--lp-text) !important;
}

/* Brand title di navbar — gradient tetap, teks "ERP" mengikuti tema */
[data-theme="light"] #navbar > div > a > span.text-white {
    color: #0f172a !important;
}

[data-theme="light"] #navbar .text-gray-300 {
    color: #475569 !important;
}

[data-theme="light"] #navbar .text-gray-400,
[data-theme="light"] .nav-link {
    color: #64748b !important;
}

[data-theme="light"] .nav-link:hover {
    color: #0f172a !important;
}

[data-theme="light"] .nav-link-active {
    color: #0f172a !important;
}

[data-theme="light"] .faq-item.bg-\[\#0a0a0a\] {
    background-color: var(--lp-surface) !important;
}

[data-theme="light"] .faq-answer.bg-\[\#050505\] {
    background-color: var(--lp-bg-2) !important;
}

[data-theme="light"] input.bg-\[\#111\]:not(.lead-magnet-input) {
    background-color: var(--lp-surface-2) !important;
    color: var(--lp-text) !important;
}

[data-theme="light"] input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .tab-btn.bg-\[\#0a0a0a\] {
    background-color: var(--lp-surface) !important;
}

[data-theme="light"] .tab-btn.hover\:bg-\[\#111\]:hover {
    background-color: var(--lp-surface-2) !important;
}

/* Jangan override panel showcase yang theme-locked-dark */
[data-theme="light"] .showcase-panel-shell.bg-\[\#0a0a0a\],
[data-theme="light"] .tab-content.theme-locked-dark.bg-\[\#111\] {
    background-color: #111111 !important;
}

[data-theme="light"] .mobile-link.text-gray-300 {
    color: #334155 !important;
}

[data-theme="light"] .mobile-menu-overlay .bg-gray-800 {
    background-color: #cbd5e1 !important;
}

/* Section spacing & card polish */
section {
    scroll-margin-top: 5rem;
}

.bento-card,
.faq-item {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bento-card,
[data-theme="light"] .faq-item {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .animated-border-inner {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Tab panel — tinggi konsisten saat switch */
.tab-content.active {
    min-height: 400px;
}

/* Pricing card badge tidak terpotong */
.animated-border-inner {
    overflow: visible;
}

/* Focus ring — aksesibilitas keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

/* Footer copyright — kontras cukup */
[data-theme="light"] footer .text-gray-700,
[data-theme="light"] footer .text-gray-800 {
    color: #64748b !important;
}

/* Showcase tab shell — border jelas di light mode (handled by showcase-panel-shell) */

/* FAQ — teks jawaban terbaca */
.faq-item .faq-answer p {
    color: var(--lp-text-muted);
    line-height: 1.7;
}

[data-theme="light"] .faq-item h4 {
    color: #0f172a !important;
}

/* Pricing cards — teks harga jelas */
[data-theme="light"] #pricing .text-4xl.text-white {
    color: #0f172a !important;
}

/* Mobile menu links */
.mobile-menu-overlay .mobile-link {
    color: var(--lp-text-muted);
}

.mobile-menu-overlay .mobile-link:hover {
    color: #ff6b00;
}

[data-theme="light"] .mobile-menu-overlay .mobile-link {
    color: #334155 !important;
}

/* ==========================================================================
   Final cascade — mockup gelap, CTA & lead magnet (menang atas override global)
   ========================================================================== */

[data-theme="light"] .theme-locked-dark,
[data-theme="light"] .theme-locked-dark .bg-\[\#030303\] { background-color: #030303 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#050505\] { background-color: #050505 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#080808\] { background-color: #080808 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#0a0a0a\],
[data-theme="light"] .theme-locked-dark.bg-\[\#0a0a0a\],
[data-theme="light"] .showcase-panel-shell.bg-\[\#0a0a0a\] { background-color: #0a0a0a !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#0a0a0a\]\/90,
[data-theme="light"] .theme-locked-dark.bg-\[\#0a0a0a\]\/90 { background-color: rgba(10, 10, 10, 0.9) !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#111\],
[data-theme="light"] .theme-locked-dark.bg-\[\#111\],
[data-theme="light"] .tab-content.theme-locked-dark.bg-\[\#111\] { background-color: #111111 !important; }
[data-theme="light"] .theme-locked-dark .bg-\[\#1a1a1a\],
[data-theme="light"] .theme-locked-dark.bg-\[\#1a1a1a\],
[data-theme="light"] .hero-float-card.theme-locked-dark { background-color: #1a1a1a !important; }

[data-theme="light"] .theme-locked-dark .text-white,
[data-theme="light"] .hero-float-card.theme-locked-dark .text-white { color: #ffffff !important; }
[data-theme="light"] .theme-locked-dark .text-gray-300 { color: #d1d5db !important; }
[data-theme="light"] .theme-locked-dark .text-gray-400,
[data-theme="light"] .hero-float-card.theme-locked-dark .text-gray-400 { color: #9ca3af !important; }
[data-theme="light"] .theme-locked-dark .text-gray-500,
[data-theme="light"] .hero-float-card.theme-locked-dark .text-gray-500 { color: #6b7280 !important; }

[data-theme="light"] .cta-bottom-title,
[data-theme="light"] .cta-bottom-section h2 { color: #ffffff !important; }
[data-theme="light"] .cta-bottom-subtitle,
[data-theme="light"] .cta-bottom-section p { color: #e2e8f0 !important; }

[data-theme="light"] .lead-magnet-title { color: #ffffff !important; }
[data-theme="light"] .lead-magnet-desc,
[data-theme="light"] .lead-magnet-list,
[data-theme="light"] .lead-magnet-list li { color: #e2e8f0 !important; }
[data-theme="light"] .lead-magnet-form-title { color: #0f172a !important; }
[data-theme="light"] .lead-magnet-input {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .ecosystem-section.bg-\[\#0a0a0a\] {
    background-color: var(--lp-bg-2) !important;
}
