/* Global Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing Grid */
    --grid-unit: 8px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 48px;
    --space-2xl: 96px;

    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* ---------------------------------------------------- */
    /* Dark Theme (Default) - Midnight Blue Tech Aesthetic   */
    /* ---------------------------------------------------- */
    --bg-canvas: #090e1a;
    --bg-surface: rgba(13, 22, 42, 0.65);
    --bg-card: rgba(22, 33, 59, 0.45);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active: rgba(56, 189, 248, 0.45); /* Glowing Sky Blue */
    
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    
    --accent-primary: #38bdf8;   /* Electric Sky Blue */
    --accent-secondary: #a855f7; /* Purple Violet */
    --accent-glow: rgba(56, 189, 248, 0.15);
    
    --orb-1-color: rgba(56, 189, 248, 0.15);
    --orb-2-color: rgba(168, 85, 247, 0.15);
    --tech-grid-color: rgba(255, 255, 255, 0.02);

    --shadow-depth: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="light"] {
    /* ---------------------------------------------------- */
    /* Light Theme - Clean Alabaster & Sleek Slate Grey      */
    /* ---------------------------------------------------- */
    --bg-canvas: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-card: rgba(241, 245, 249, 0.75);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-active: rgba(37, 99, 235, 0.4); /* Deep Royal Blue */
    
    --text-primary: #0f172a;
    --text-muted: #475569;
    
    --accent-primary: #2563eb;   /* Royal Blue */
    --accent-secondary: #7c3aed; /* Violet */
    --accent-glow: rgba(37, 99, 235, 0.08);

    --orb-1-color: rgba(37, 99, 235, 0.05);
    --orb-2-color: rgba(124, 58, 237, 0.05);
    --tech-grid-color: rgba(15, 23, 42, 0.015);

    --shadow-depth: 0 20px 40px rgba(15, 23, 42, 0.05), inset 0 0 0 1px rgba(15, 23, 42, 0.01);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Interactive Cursor (Desktop Only) */
.custom-cursor {
    display: none;
}

@media (pointer: fine) {
    .custom-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 2px solid var(--accent-primary);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9999;
        transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    }
    
    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background-color: var(--accent-secondary);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 10000;
    }

    .custom-cursor.hovering {
        width: 60px;
        height: 60px;
        border-color: var(--accent-secondary);
        background-color: rgba(168, 85, 247, 0.05);
    }
}

/* Subtle Tech Grid Background Pattern */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--tech-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    pointer-events: none;
}

/* Background Ambient Glowing Orbs */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.8;
    animation: floatOrb 20s ease-in-out infinite alternate;
    transition: background 0.4s ease;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--orb-1-color);
    top: -10%;
    left: 10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--orb-2-color);
    bottom: -15%;
    right: 10%;
    animation-duration: 30s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, -5%) scale(1.08); }
    100% { transform: translate(-5%, 6%) scale(0.96); }
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

section {
    position: relative;
    z-index: 1;
}

/* Navigation Menu */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.unified-theme-widget {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 8px 16px;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-depth);
}

.unified-theme-widget:hover {
    border-color: var(--border-active);
}

.unified-theme-widget .color-picker-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.widget-separator {
    width: 1px;
    height: 16px;
    background: var(--border-glass);
    margin: 0 4px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .unified-theme-widget {
        bottom: var(--space-md);
        right: var(--space-md);
        padding: 6px 12px;
        gap: var(--space-xs);
    }
}

.sun-icon { display: none; }
.moon-icon { display: block; }

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Menu */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-depth);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav a {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* Typography Scale */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-depth);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--space-2xl) * 1.3);
    padding-bottom: var(--space-2xl);
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: var(--space-xl);
}

.hero-content {
    max-width: 100%;
    margin: 0;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(56, 189, 248, 0.15), inset 0 0 0 1px var(--border-active);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-title {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 70%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
}

/* Premium Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-depth);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--border-active);
}

/* Bento Card Icon */
.bento-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.bento-icon svg {
    width: 28px;
    height: 28px;
}

/* Bento Spans */
.bento-col-2 {
    grid-column: span 2;
}

.bento-row-2 {
    grid-row: span 2;
}

/* Testimonial Author card style */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-secondary);
}

.author-meta strong {
    display: block;
    color: var(--text-primary);
}

.author-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(22, 33, 59, 0.8) 0%, rgba(13, 22, 42, 0.8) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-depth);
    backdrop-filter: blur(20px);
}

.cta-title {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-sub {
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
}

/* Premium Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    padding: var(--space-xl) 0 var(--space-md) 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-glass);
}

/* Scroll-triggered Reveals */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsiveness overrides */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-col-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-row-2 {
        grid-row: span 1;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

/* ---------------------------------------------------- */
/* dLocal Inspired Visual Extensions                    */
/* ---------------------------------------------------- */

/* Marquee Section */
.marquee-section {
    padding: var(--space-md) 0;
    background: rgba(13, 22, 42, 0.35);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

.marquee-container {
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-canvas), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-canvas), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    gap: var(--space-xl);
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.marquee-item i {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--accent-primary);
}
.marquee-item:hover i {
    color: var(--accent-primary);
}

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

/* Animated Light Paths */
.light-paths {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3; /* Placed exactly on top of grid-bg, behind cards */
    pointer-events: none;
}

.light-path-svg {
    width: 100%;
    height: 100%;
}

.flow-line {
    fill: none;
    stroke-width: 1px;
    stroke-linecap: round;
    opacity: 0.15;
    stroke-dasharray: 80 400; /* Short moving light segment */
    stroke-dashoffset: 0;
    animation: moveFlow 8s linear infinite;
    transition: stroke 0.4s ease;
}

.flow-line-1 {
    stroke: var(--accent-primary);
    animation-duration: 9s;
}

.flow-line-2 {
    stroke: var(--accent-secondary);
    animation-duration: 12s;
}

.flow-line-3 {
    stroke: var(--accent-primary);
    animation-duration: 15s;
    animation-delay: 2s;
}

@keyframes moveFlow {
    0% { stroke-dashoffset: 480; }
    100% { stroke-dashoffset: 0; }
}

/* Bento Stats Widget */
.bento-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-glass);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ---------------------------------------------------- */
/* Interactive Demo Section                             */
/* ---------------------------------------------------- */
.demo-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-depth);
    backdrop-filter: blur(20px);
    margin-top: var(--space-xl);
    text-align: left;
}

.demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.demo-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    padding: var(--space-md);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-tab i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.demo-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-glass);
}

.demo-tab.active {
    color: var(--accent-primary);
    background: var(--bg-card);
    border-color: var(--border-glass);
    box-shadow: inset 3px 0 0 var(--accent-primary);
}

.demo-tab.active i {
    color: var(--accent-primary);
}

.demo-viewport {
    background: rgba(10, 16, 30, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .demo-viewport {
    background: rgba(248, 250, 252, 0.95);
}

.demo-window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.window-dots {
    display: flex;
    gap: var(--space-xs);
}

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

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #eab308; }
.window-dot.green { background-color: #22c55e; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.window-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.demo-tab-content {
    display: none;
    flex: 1;
    padding: var(--space-md);
}

.demo-tab-content.active {
    display: flex;
    flex-direction: column;
}

.dashboard-mock {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-depth);
    object-fit: cover;
    max-height: 350px;
}

.glass-overlay-card {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    background: rgba(13, 22, 42, 0.85);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 210px;
    text-align: left;
}

[data-theme="light"] .glass-overlay-card {
    background: rgba(255, 255, 255, 0.9);
}

.glass-overlay-card h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.telemetry-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.telemetry-trend {
    font-size: 0.75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.telemetry-trend svg {
    width: 12px;
    height: 12px;
}

/* Automation & Security Mockup Placeholders */
.mockup-bg-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(13, 22, 42, 0.4);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border: 1px dashed var(--border-glass);
}

.large-icon-glow {
    width: 64px;
    height: 64px;
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 15px var(--accent-secondary));
    margin-bottom: var(--space-md);
}

.automation-flow-graph {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    position: relative;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    min-width: 100px;
    z-index: 2;
    text-align: center;
}

.flow-node.completed {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.flow-node.processing {
    border-color: var(--accent-secondary);
    animation: pulseBorder 1.5s infinite alternate;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 4px rgba(168, 85, 247, 0.2); }
    100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.5); }
}

.flow-node svg {
    width: 20px;
    height: 20px;
    margin-bottom: var(--space-xs);
}

.flow-node.completed svg { color: var(--accent-primary); }
.flow-node.processing svg { color: var(--accent-secondary); }

.flow-node span {
    font-size: 0.75rem;
    font-weight: 600;
}

.flow-line-active {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    z-index: 1;
    margin: 0 -5px;
    background-size: 200% 200%;
    animation: flowProgress 3s linear infinite;
}

.flow-line-pending {
    flex: 1;
    height: 2px;
    background: var(--border-glass);
    z-index: 1;
    margin: 0 -5px;
}

@keyframes flowProgress {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.automation-console-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 450px;
    border-left: 3px solid var(--accent-secondary);
    text-align: left;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-md);
    width: 100%;
    align-items: center;
}

.security-radar {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    margin: 0 auto;
    background: radial-gradient(circle, transparent 30%, rgba(56, 189, 248, 0.02) 70%, rgba(56, 189, 248, 0.05) 100%);
    overflow: hidden;
}

.security-radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.15);
    transform: translate(-50%, -50%);
}

.radar-line {
    position: absolute;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, rgba(56, 189, 248, 0.25), transparent);
    top: 0;
    left: 50%;
    transform-origin: 0% 100%;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.security-logs {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    text-align: left;
    height: 180px;
    overflow-y: auto;
}

.log-time { color: var(--text-muted); }
.log-success { color: #22c55e; font-weight: bold; }
.log-info { color: var(--accent-primary); font-weight: bold; }
.log-warning { color: #f59e0b; font-weight: bold; }


/* ---------------------------------------------------- */
/* Workflow Timeline Section                            */
/* ---------------------------------------------------- */
.workflow-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-xl);
    text-align: left;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--border-glass);
    z-index: 1;
}

.workflow-step {
    display: flex;
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.workflow-step:not(.active) {
    opacity: 0.5;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.workflow-step.active .step-num {
    background: var(--bg-canvas);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.step-info {
    padding-top: var(--space-xs);
}

.step-info h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.workflow-step.active .step-info h3 {
    color: var(--accent-primary);
}

.workflow-visual {
    display: flex;
    justify-content: center;
}

.workflow-frame {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-depth);
    backdrop-filter: blur(20px);
    width: 100%;
}

.workflow-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
}


/* ---------------------------------------------------- */
/* Pricing Section                                      */
/* ---------------------------------------------------- */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.toggle-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--text-primary);
}

.billing-toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    cursor: pointer;
    outline: none;
    box-shadow: var(--shadow-depth);
    transition: all 0.3s ease;
}

.billing-toggle-switch:hover {
    border-color: var(--border-active);
}

.toggle-slider {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.billing-toggle-switch.yearly .toggle-slider {
    transform: translateX(28px);
}

.discount-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 0.75rem;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(34, 197, 94, 0.25);
    margin-left: var(--space-xs);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
    margin-top: var(--space-xl);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-depth);
    backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-active);
}

.pricing-card.pricing-popular {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.15);
}

.pricing-card.pricing-popular:hover {
    box-shadow: 0 30px 60px rgba(56, 189, 248, 0.25);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px var(--space-lg);
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.pricing-header p {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--space-xl);
}

.currency {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.price-value.changing {
    opacity: 0;
    transform: translateY(-10px);
}

.billing-period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.feature-check {
    color: #22c55e;
    width: 18px;
    height: 18px;
}

.feature-x {
    color: #ef4444;
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.pricing-btn {
    width: 100%;
}


/* ---------------------------------------------------- */
/* FAQ Accordion Section                                */
/* ---------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: var(--space-xl) auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-depth);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: var(--border-active);
}

/* Hide default disclosure summary triangle */
.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    outline: none;
    list-style: none;
}

.faq-trigger::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-panel {
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
    animation: slideDownFaq 0.3s ease-out;
}

.faq-panel p {
    font-size: 0.95rem;
    line-height: 1.6;
}

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


/* ---------------------------------------------------- */
/* Mobile Responsiveness Overrides                      */
/* ---------------------------------------------------- */
@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }
    .demo-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        border-bottom: 1px solid var(--border-glass);
    }
    .demo-tab {
        flex-shrink: 0;
        padding: var(--space-sm) var(--space-md);
    }
    .demo-tab.active {
        box-shadow: inset 0 -3px 0 var(--accent-primary);
    }
}

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .workflow-steps::before {
        display: none;
    }
    .workflow-step {
        gap: var(--space-md);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        padding: var(--space-lg);
    }
    .pricing-card.pricing-popular {
        transform: scale(1);
    }
    .security-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ---------------------------------------------------- */
/* Accent Color Themes & Color Scheme Picker            */
/* ---------------------------------------------------- */
.color-dot-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: var(--theme-dot-color);
    cursor: pointer;
    outline: none;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-dot-btn:hover {
    transform: scale(1.3);
}

.color-dot-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--theme-dot-color);
}

.site-version {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: var(--space-md);
    padding: 2px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* Color Accent Overrides */
[data-accent="emerald"] {
    --accent-primary: #10b981;
    --accent-secondary: #06b6d4;
    --border-active: rgba(16, 185, 129, 0.45);
    --orb-1-color: rgba(16, 185, 129, 0.15);
    --orb-2-color: rgba(6, 182, 212, 0.15);
}
[data-theme="light"][data-accent="emerald"] {
    --accent-primary: #059669;
    --accent-secondary: #0891b2;
    --border-active: rgba(5, 150, 105, 0.45);
    --orb-1-color: rgba(5, 150, 105, 0.05);
    --orb-2-color: rgba(8, 145, 178, 0.05);
}

[data-accent="purple"] {
    --accent-primary: #d946ef;
    --accent-secondary: #8b5cf6;
    --border-active: rgba(217, 70, 239, 0.45);
    --orb-1-color: rgba(217, 70, 239, 0.15);
    --orb-2-color: rgba(139, 92, 246, 0.15);
}
[data-theme="light"][data-accent="purple"] {
    --accent-primary: #c026d3;
    --accent-secondary: #6d28d9;
    --border-active: rgba(192, 38, 211, 0.45);
    --orb-1-color: rgba(192, 38, 211, 0.05);
    --orb-2-color: rgba(109, 40, 217, 0.05);
}

[data-accent="amber"] {
    --accent-primary: #fbbf24;
    --accent-secondary: #f97316;
    --border-active: rgba(251, 191, 36, 0.45);
    --orb-1-color: rgba(251, 191, 36, 0.15);
    --orb-2-color: rgba(249, 115, 22, 0.15);
}
[data-theme="light"][data-accent="amber"] {
    --accent-primary: #d97706;
    --accent-secondary: #ea580c;
    --border-active: rgba(217, 119, 6, 0.45);
    --orb-1-color: rgba(217, 119, 6, 0.05);
    --orb-2-color: rgba(234, 88, 12, 0.05);
}

[data-accent="rose"] {
    --accent-primary: #f43f5e;
    --accent-secondary: #ec4899;
    --border-active: rgba(244, 63, 94, 0.45);
    --orb-1-color: rgba(244, 63, 94, 0.15);
    --orb-2-color: rgba(236, 72, 153, 0.15);
}
[data-theme="light"][data-accent="rose"] {
    --accent-primary: #e11d48;
    --accent-secondary: #db2777;
    --border-active: rgba(225, 29, 72, 0.45);
    --orb-1-color: rgba(225, 29, 72, 0.05);
    --orb-2-color: rgba(219, 39, 119, 0.05);
}



