:root {
    --bg-dark: #0d0b1a;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-blue: #818cf8;
    --accent-cyan: #22d3ee;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    --cursor-size: 20px;
    --border-light: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    background: radial-gradient(circle at 50% 0%, #1a1625 0%, #0d0b1a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   PARTICLE CANVAS & CURSOR (Preserved)
   ========================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.custom-cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(168, 85, 247, 0.2);
    border-color: transparent;
}

.cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out;
}

@media (hover: none) {

    .custom-cursor,
    .cursor-trail {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 11, 26, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   HERO PRODUCT SECTION
   ========================================== */
.hero-product {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #e9d5ff;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* ==========================================
   MAC MOCKUP & KEYBOARD DEMO
   ========================================== */
.product-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1500px;
}

.mac-frame {
    width: 600px;
    height: 450px;
    background: #0f0f11;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

.hero-product:hover .mac-frame {
    transform: rotateY(-2deg) rotateX(2deg);
}

.mac-header {
    height: 36px;
    background: #202023;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #333;
    position: relative;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.light.red {
    background: #ff5f56;
}

.light.yellow {
    background: #ffbd2e;
}

.light.green {
    background: #27c93f;
}

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

.mac-screen {
    flex: 1;
    background: #18181b;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Chat UI in Mac */
.chat-interface {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
}

.chat-message {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message.received {
    background: #27272a;
    color: #e4e4e7;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-message.sent {
    background: var(--accent-purple);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Virtual Keyboard UI */
.virtual-keyboard {
    background: #202023;
    padding: 8px 4px 24px 4px;
    border-top: 1px solid #333;
}

.keyboard-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 0 12px 8px 12px;
    color: #a1a1aa;
}

.tool-btn {
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tool-btn.active {
    background: #3f3f46;
    color: white;
}

.tool-btn.ai-trigger {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.key {
    width: 28px;
    height: 38px;
    background: #454548;
    border-radius: 5px;
    color: white;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.05s, background 0.1s;
    font-family: system-ui;
}

.key:active,
.key.pressed {
    transform: scale(0.9);
    background: #606063;
}

.key.shift,
.key.backspace {
    width: 36px;
    background: #353538;
    font-size: 0.9rem;
}

.key.space {
    width: 140px;
    font-size: 0.8rem;
}

.key.return {
    width: 44px;
    background: var(--accent-purple);
    font-size: 0.8rem;
}

.key.num,
.key.globe {
    width: 32px;
    background: #353538;
    font-size: 0.8rem;
}

/* Floating Info Cards */
.floating-info {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    top: 20%;
    right: -20px;
    transform: translateZ(50px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 5s ease-in-out infinite;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-text strong {
    display: block;
    font-size: 0.9rem;
}

.info-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================
   FEATURE SECTIONS
   ========================================== */
.feature-section {
    padding: 120px 0;
    position: relative;
}

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

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.right-align .feature-container {
    direction: ltr;
    /* Default */
}

.left-align .feature-container {
    /* Swap columns visually */
}

/* Feature Content */
.feature-tag {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-tag.purple {
    color: var(--accent-purple);
}

.feature-section h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.feature-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.check-icon {
    color: #4ade80;
    font-weight: bold;
}

/* Code Visual */
.code-block-visual {
    background: #1e1e24;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.code-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.code-block-visual pre {
    padding: 24px;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Shield Visual */
.shield-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.shield-icon-large {
    width: 200px;
    height: 200px;
    position: relative;
    color: var(--accent-purple);
}

.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
    animation: pulseGlow 4s infinite ease-in-out;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    background: var(--surface-glass);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   BUTTONS
   ========================================== */
.glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-btn>* {
    pointer-events: none;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }

    .primary-btn {
        background: var(--primary-gradient);
        color: white;
        box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    }

    .primary-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 15px 35px rgba(124, 58, 237, 0.5);
    }

    .secondary-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-light);
        color: white;
    }

    .secondary-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* ==========================================
   REVIEWS
   ========================================== */
    .reviews-section {
        padding: 100px 0;
    }

    .section-title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 60px;
    }

    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .review-card {
        background: var(--surface-glass);
        border: 1px solid var(--border-light);
        padding: 32px;
        border-radius: 24px;
        position: relative;
        overflow: hidden;
    }

    .review-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .avatar {
        width: 48px;
        height: 48px;
        background: #2a2a2e;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .reviewer-info strong {
        display: block;
    }

    .reviewer-info span {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    /* ==========================================
   DOWNLOAD
   ========================================== */
    .download {
        margin-bottom: 80px;
    }

    .download-card {
        background: linear-gradient(180deg, rgba(20, 20, 30, 0.8) 0%, rgba(13, 11, 26, 0.9) 100%);
        border: 1px solid var(--border-light);
        border-radius: 32px;
        padding: 80px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .download-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-top: 40px;
    }

    .release-info {
        color: var(--text-secondary);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .separator {
        opacity: 0.3;
    }

    /* ==========================================
   ANIMATIONS & HELPERS
   ========================================== */
    @keyframes float {

        0%,
        100% {
            transform: translateY(0) translateZ(50px);
        }

        50% {
            transform: translateY(-10px) translateZ(50px);
        }
    }

    @keyframes pulseGlow {

        0%,
        100% {
            filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.3));
        }

        50% {
            filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
        }
    }

    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    /* Footer & Help Btn */
    footer {
        border-top: 1px solid var(--border-light);
        padding: 40px 0;
        text-align: center;
    }

    .copyright {
        color: var(--text-secondary);
    }

    .help-btn {
        position: fixed;
        bottom: 24px;
        left: 24px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #27272a;
        border: 1px solid var(--border-light);
        color: white;
        cursor: pointer;
        z-index: 100;
        transition: transform 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .help-btn:hover {
        transform: scale(1.1);
    }

    @media (max-width: 900px) {

        .hero-split,
        .feature-container {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .hero-product {
            text-align: center;
            padding-top: 100px;
        }

        .hero-split {
            justify-items: center;
        }

        .subtitle {
            margin: 0 auto 40px auto;
        }

        .cta-group {
            justify-content: center;
        }

        .reviews-grid {
            grid-template-columns: 1fr;
        }
    }