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

:root {
    --primary: #0066FF;
    --primary-light: #E8F0FE;
    --primary-dark: #0047CC;
    --secondary: #6C5CE7;
    --gradient-primary: linear-gradient(135deg, #0066FF, #6C5CE7);
    --gradient-hero: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);

    --bg: #FFFFFF;
    --bg-secondary: #F8FAFD;
    --bg-card: #FFFFFF;
    --bg-dark: #0A0A1A;

    --text: #1A1A2E;
    --text-secondary: #4A4A6A;
    --text-light: #8888A8;
    --text-white: #FFFFFF;

    --border: #E8ECF4;
    --border-light: #F0F4FC;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 102, 255, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 102, 255, 0.12);
    --shadow-xl: 0 40px 80px rgba(0, 102, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
    --bg: #0A0A1A;
    --bg-secondary: #111128;
    --bg-card: #161638;
    --text: #FFFFFF;
    --text-secondary: #B0B0D0;
    --text-light: #6A6A8A;
    --border: #2A2A4A;
    --border-light: #1E1E3A;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.6);
    --gradient-hero: linear-gradient(135deg, #0A0A1A 0%, #111128 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* ============================================================
   LOADING SCREEN - OPTIMIZED
   ============================================================ */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader {
    text-align: center;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
.loader p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
    background: var(--text);
    color: white;
}

.btn-large {
    padding: 18px 44px;
    font-size: 1.05rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
}
[data-theme="dark"] .navbar {
    background: rgba(10, 10, 26, 0.8);
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}
.logo img {
    height: 40px;
    width: auto;
    border-radius: 10px;
}
.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}
.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.5;
    transition: all var(--transition);
    color: var(--text);
}
.lang-btn.active {
    opacity: 1;
    background: var(--gradient-primary);
    color: white;
}

.theme-toggle,
.menu-toggle {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px 10px;
    border-radius: var(--radius-full);
    transition: background var(--transition);
}
.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--bg-secondary);
}
.menu-toggle {
    display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 8px 20px 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 8px;
}
.hero-stats-item {
    display: flex;
    flex-direction: column;
}
.hero-stats-item .number {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}
.hero-illustration img {
    width: 100%;
    border-radius: var(--radius-md);
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    animation: float 5s ease-in-out infinite;
    backdrop-filter: blur(12px);
}
[data-theme="dark"] .floating-card {
    background: rgba(22, 22, 56, 0.9);
}
.floating-card i {
    font-size: 1.2rem;
    color: var(--primary);
}
.floating-card .emoji {
    font-size: 1.4rem;
}

.card-1 {
    top: 5%;
    left: -10%;
    animation-delay: 0s;
}
.card-2 {
    bottom: 15%;
    right: -10%;
    animation-delay: 1.5s;
}
.card-3 {
    bottom: 0%;
    left: 8%;
    animation-delay: 3s;
}

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

/* ============================================================
   SECTION
   ============================================================ */
.section {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}
.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}
[data-theme="dark"] .section-tag {
    background: rgba(0, 102, 255, 0.15);
}
.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 12px;
    line-height: 1.8;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.about-content .section-tag {
    margin-bottom: 8px;
}
.about-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-top: 24px;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}
.about-features li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.service-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: inline-block;
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius-md);
    color: var(--primary);
    transition: all var(--transition);
}
[data-theme="dark"] .service-icon {
    background: rgba(0, 102, 255, 0.15);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-4deg);
}
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-lg);
}
.solution-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.solution-item:hover::before {
    opacity: 0.05;
}

.solution-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .solution-icon {
    background: rgba(0, 102, 255, 0.15);
}
.solution-item:hover .solution-icon {
    transform: scale(1.1) rotate(-4deg);
    background: var(--gradient-primary);
    color: white;
}

.solution-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.solution-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.solution-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 14px;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .solution-tag {
    background: rgba(0, 102, 255, 0.15);
}
.solution-item:hover .solution-tag {
    background: var(--gradient-primary);
    color: white;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-item {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.why-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.why-item .icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all var(--transition);
}
[data-theme="dark"] .why-item .icon-wrap {
    background: rgba(0, 102, 255, 0.15);
}
.why-item:hover .icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}
.why-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.why-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
    background: var(--gradient-primary);
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}
.cta-box * {
    position: relative;
    z-index: 1;
}
.cta-box h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.cta-box p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-box .btn-white:hover {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    font-size: 1.3rem;
}
.footer-brand .logo img {
    height: 38px;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 12px 0 16px;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text-secondary);
}
.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links ul li a:hover {
    color: var(--primary);
}
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.footer-contact p i {
    width: 20px;
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ============================================================
   FLOATING WA & BACK TO TOP
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
    transition: all var(--transition);
    z-index: 999;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.45);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    background: var(--bg-card);
    color: var(--text);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
}
.page-hero-content {
    text-align: center;
}
.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 16px 0;
}
.page-hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   DEMO PREVIEW
   ============================================================ */
.demo-preview {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.demo-preview .demo-header {
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.demo-preview .demo-dots {
    display: flex;
    gap: 8px;
}
.demo-preview .demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.demo-preview .demo-dots .red {
    background: #ff5f57;
}
.demo-preview .demo-dots .yellow {
    background: #ffbd2e;
}
.demo-preview .demo-dots .green {
    background: #28c840;
}
.demo-preview .demo-url {
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.demo-preview .demo-body {
    padding: 40px;
    background: var(--bg-secondary);
    min-height: 400px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up,
.fade-left,
.fade-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-left {
    transform: translateX(-40px);
}
.fade-right {
    transform: translateX(40px);
}
.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-desc {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-illustration {
        max-width: 420px;
        margin: 0 auto;
    }
    .floating-card {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-features {
        justify-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.95);
    }
    [data-theme="dark"] .nav-menu {
        background: rgba(10, 10, 26, 0.95);
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .menu-toggle {
        display: inline-block;
    }

    .hero {
        padding: 120px 0 60px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 24px;
    }
    .cta-box h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact p {
        justify-content: center;
    }

    .wa-float {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .page-hero {
        padding: 120px 0 40px;
    }
    .page-hero-content h1 {
        font-size: 2.2rem;
    }

    .demo-preview .demo-body {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats-item .number {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .solution-item {
        padding: 24px 16px;
    }
    .service-card {
        padding: 24px 16px;
    }
    .why-item {
        padding: 24px 16px;
    }

    .cta-box {
        padding: 32px 16px;
    }
    .cta-box h2 {
        font-size: 1.6rem;
    }
    .cta-box p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    .btn-large {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .page-hero-content h1 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}
.mt-8 {
    margin-top: 8px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-24 {
    margin-top: 24px;
}
.mt-32 {
    margin-top: 32px;
}
.mt-48 {
    margin-top: 48px;
}
.mt-64 {
    margin-top: 64px;
}

.mb-0 {
    margin-bottom: 0;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-24 {
    margin-bottom: 24px;
}
.mb-32 {
    margin-bottom: 32px;
}
.mb-48 {
    margin-bottom: 48px;
}
.mb-64 {
    margin-bottom: 64px;
}

.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.gap-8 {
    gap: 8px;
}
.gap-12 {
    gap: 12px;
}
.gap-16 {
    gap: 16px;
}
.gap-24 {
    gap: 24px;
}
.gap-32 {
    gap: 32px;
}

/* ============================================================
   NAVBAR - ACTIVE MENU STYLING (TAMBAHKAN)
   ============================================================ */
.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
    padding-bottom: 4px;
}

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

.nav-menu a.active {
    color: var(--text);
    font-weight: 600;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: activeLine 0.3s ease forwards;
}

@keyframes activeLine {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Dark mode active menu */
[data-theme="dark"] .nav-menu a.active {
    color: #FFFFFF;
}

[data-theme="dark"] .nav-menu a.active::after {
    background: var(--gradient-primary);
}
