:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-hover: rgba(31, 41, 55, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(99, 102, 241, 0.4);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 90% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 35%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #10b981; }
    50% { transform: scale(1.3); opacity: 0.85; box-shadow: 0 0 18px #10b981; }
}

@keyframes floatGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.1); }
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Badges */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.87em;
    background: rgba(99, 102, 241, 0.14);
    color: #c7d2fe;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    word-break: break-word;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    border: none;
    font-size: inherit;
    word-break: normal;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cyan-text {
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 18px;
    max-width: 100%;
    line-height: 1.4;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
    flex-shrink: 0;
}

/* Navbar */
body.menu-open {
    overflow: hidden;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    position: relative;
    z-index: 1002;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1003;
}

.logo span {
    color: var(--accent-color);
}

.nav-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Nav Item Dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-dropdown-trigger:hover,
.nav-item-dropdown:hover .nav-dropdown-trigger {
    color: var(--text-primary);
}

.nav-dropdown-trigger .dropdown-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 320px;
    background: #090e1c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(99, 102, 241, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
    z-index: 1002;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease;
}

.dropdown-link:hover {
    background: rgba(99, 102, 241, 0.14);
}

.dropdown-icon {
    font-size: 1.2rem;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-link-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #ffffff;
}

.dropdown-link-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Hamburger & Mobile Nav */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 64px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 350px;
    background: var(--accent-gradient);
    opacity: 0.22;
    filter: blur(120px);
    pointer-events: none;
    border-radius: 50%;
    animation: floatGlow 8s infinite ease-in-out;
}

.hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.85rem);
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Stats Counter Grid */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 60px 0 100px;
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features & Tech Grid */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Generic Cards & Utility Grids for Solution/Comparison Pages */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 14px 32px -8px rgba(99, 102, 241, 0.2);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 28px 0;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    animation: fadeIn 0.25s ease-in-out;
}

.footer-brand-col {
    grid-column: span 1;
}

/* Code Playground Section */
.code-window {
    background: #060913;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.code-header {
    background: #0d1222;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    max-width: 100%;
}

.code-tabs::-webkit-scrollbar {
    display: none;
}

.code-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.code-tab.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

.code-body {
    padding: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e5e7eb;
    max-width: 100%;
}

.code-body pre {
    white-space: pre;
    word-break: normal;
    margin: 0;
}

/* Benchmark Comparison Table */
.table-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    letter-spacing: 0.02em;
}

@media (max-width: 800px) {
    .table-scroll-hint {
        display: block;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    scrollbar-width: thin;
}

.comparison-table {
    min-width: 700px;
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(13, 18, 34, 0.9);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-col {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
    background: rgba(17, 24, 39, 0.9);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 24px 0 32px;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding: 9px 0 9px 24px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 9px;
    color: #10b981;
    font-weight: 800;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-highlight);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 14px;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    background: #070a12;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.25fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #060913;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-color);
}

/* Card micro-interactions */
.feature-card, .pricing-card, .dashboard-card, .stat-card {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover, .pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 14px 32px -8px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    box-shadow: 0 0 35px -5px rgba(99, 102, 241, 0.25);
}

/* Mobile Media Queries */
@media (max-width: 900px) {
    .nav-collapse {
        display: none;
    }

    .nav-links, .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 1002;
    }

    .mobile-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(99, 102, 241, 0.4);
    }

    /* Backdrop blur overlay behind mobile drawer */
    .nav-backdrop {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.menu-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* Modern unified mobile drawer - single scroll container */
    .nav-container.mobile-open .nav-collapse {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        background: rgba(9, 14, 28, 0.99);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        padding: 16px 20px 36px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        z-index: 1001;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
        animation: slideDown 0.25s ease-out;
    }

    .nav-container.mobile-open .nav-collapse::-webkit-scrollbar {
        display: none;
    }

    .nav-container.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        align-items: stretch;
        text-align: left;
    }

    .nav-container.mobile-open .nav-item-dropdown {
        width: 100%;
        display: block;
        margin-bottom: 8px;
    }

    .nav-container.mobile-open .nav-dropdown-trigger {
        width: 100%;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #818cf8;
        padding: 10px 4px 6px 4px;
        pointer-events: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
    }

    .nav-container.mobile-open .nav-dropdown-trigger .dropdown-chevron {
        display: none;
    }

    .nav-container.mobile-open .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 4px 0 8px 0;
        border-radius: 0;
    }

    .nav-container.mobile-open .dropdown-link {
        padding: 10px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .nav-container.mobile-open .dropdown-link-desc {
        display: none;
    }

    .nav-container.mobile-open .nav-links > a {
        font-size: 1rem;
        font-weight: 600;
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: var(--text-primary);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    /* Actions flow naturally below links - NEVER overlap with fixed positioning! */
    .nav-container.mobile-open .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 18px;
        border-top: 1px solid var(--border-color);
        width: 100%;
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 0;
        padding-right: 0;
    }

    .nav-container.mobile-open .nav-actions .btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
        font-weight: 600;
    }

    /* Fallback in case nav-collapse is not present */
    .nav-container.mobile-open > .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        background: rgba(9, 14, 28, 0.98);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        padding: 20px 20px 140px 20px;
        overflow-y: auto;
        z-index: 1000;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .badge {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .hero {
        padding: 44px 0 36px;
    }

    .hero-title {
        font-size: 1.95rem;
        line-height: 1.18;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .btn-large {
        padding: 13px 18px;
        font-size: 0.96rem;
    }

    .hero-sandbox-card {
        padding: 18px 16px;
        margin-bottom: 32px;
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .card {
        padding: 24px 18px !important;
    }

    .code-header {
        padding: 10px 14px;
    }

    .code-body {
        padding: 16px;
        font-size: 0.8rem;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 20px 16px;
        gap: 16px;
        margin: 32px 0 44px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 28px 22px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .modal-card {
        padding: 24px 18px;
        margin: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Hero Live Sandbox Widget */
.hero-sandbox-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px -12px rgba(99, 102, 241, 0.28);
    max-width: 860px;
    margin: 0 auto 48px;
    padding: 24px;
    text-align: left;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-sandbox-card:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 30px 70px -10px rgba(99, 102, 241, 0.35);
}

.sandbox-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sandbox-url-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #060913;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px 14px;
    transition: border-color 0.2s;
}

.sandbox-url-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.sandbox-protocol {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.9rem;
    user-select: none;
    flex-shrink: 0;
}

.sandbox-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.95rem;
    padding: 12px 8px;
}

.sandbox-submit-btn {
    white-space: nowrap;
    padding: 14px 24px;
    font-weight: 700;
}

.sandbox-quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.sandbox-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sandbox-tag:hover, .sandbox-tag.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.sandbox-result-box {
    margin-top: 18px;
    background: #050811;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 16px;
    animation: fadeInCard 0.3s ease;
}

.sandbox-status-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.sandbox-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid #10b981;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
}

.sandbox-terminal {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a5b4fc;
    line-height: 1.6;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Dashboard Mobile Horizontal Tab Bar */
.dashboard-mobile-nav {
    display: none;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    background: #090e1c;
    border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dashboard-mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-nav-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 850px) {
    .dashboard-layout {
        grid-template-columns: 1fr !important;
    }
    .sidebar {
        display: none !important;
    }
    .dashboard-mobile-nav {
        display: flex;
    }
    .main-content {
        padding: 20px 16px;
    }
    .sandbox-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .sandbox-submit-btn {
        width: 100%;
    }
}

/* Hero Promo Video (Seamless Borderless Blend) */
.hero-promo-seamless-wrap {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ambient glow behind video matching video colors */
.promo-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 108%;
    height: 118%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(6, 182, 212, 0.16) 42%, transparent 72%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
}

.promo-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0f19;
    box-shadow: 0 0 60px 25px #0b0f19, 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-video-container:hover {
    box-shadow: 0 0 70px 30px #0b0f19, 0 30px 70px rgba(99, 102, 241, 0.15);
}

/* Smooth vignette overlay that transitions video edges to site background */
.promo-edge-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 45px 18px #0b0f19;
    border-radius: 20px;
    z-index: 2;
}

.hero-promo-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Center Feedback Animation (Play/Pause) */
.promo-center-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1.5px solid rgba(99, 102, 241, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    backdrop-filter: blur(12px);
    z-index: 5;
}

.promo-center-feedback.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Floating Controls Dock */
.promo-controls-floating-wrap {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 15, 25, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
}

.promo-controls-floating-wrap:hover {
    background: rgba(11, 15, 25, 0.92);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(99, 102, 241, 0.4);
}

.promo-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.promo-ctrl-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(129, 140, 248, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.promo-ctrl-btn:active {
    transform: translateY(1px);
}

.promo-play-btn {
    padding: 7px 11px;
}

.ctrl-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Sound button special states */
.promo-sound-toggle-btn.unmuted {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

.promo-sound-toggle-btn:not(.unmuted) {
    animation: soundPulseHint 2.4s ease-in-out infinite;
}

@keyframes soundPulseHint {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(99, 102, 241, 0.3);
        border-color: rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6), 0 0 22px rgba(99, 102, 241, 0.7);
        border-color: #a855f7;
    }
}

/* Fullscreen button styling */
.promo-fullscreen-btn:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: rgba(6, 182, 212, 0.6);
}

/* Progress bar */
.promo-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 4;
}

.promo-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px #a855f7;
    transition: width 0.1s linear;
}

/* Fullscreen Mode Styles (Separated Vendor Rules to avoid syntax discard) */
#promoVideoContainer.is-fullscreen,
#promoVideoContainer.is-fullscreen-fallback {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
    z-index: 999999 !important;
}

#promoVideoContainer:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
}

#promoVideoContainer:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
}

/* Video inside Fullscreen: strict 16:9 contain, never scale/crop */
#promoVideoContainer.is-fullscreen .hero-promo-video,
#promoVideoContainer.is-fullscreen-fallback .hero-promo-video,
#promoVideoContainer:fullscreen .hero-promo-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}

#promoVideoContainer:-webkit-full-screen .hero-promo-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}

/* Portrait / Vertical Phone mode: DO NOT SCALE, keep 16:9 width with auto height */
@media (orientation: portrait) {
    #promoVideoContainer.is-fullscreen .hero-promo-video,
    #promoVideoContainer.is-fullscreen-fallback .hero-promo-video,
    #promoVideoContainer:fullscreen .hero-promo-video {
        width: 100% !important;
        height: auto !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important;
        margin: auto !important;
    }

    #promoVideoContainer:-webkit-full-screen .hero-promo-video {
        width: 100% !important;
        height: auto !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important;
        margin: auto !important;
    }
}

/* Hide ambient glows and edge vignettes in fullscreen */
#promoVideoContainer.is-fullscreen .promo-edge-vignette,
#promoVideoContainer.is-fullscreen-fallback .promo-edge-vignette,
#promoVideoContainer:fullscreen .promo-edge-vignette {
    display: none !important;
}
#promoVideoContainer:-webkit-full-screen .promo-edge-vignette {
    display: none !important;
}

#promoVideoContainer.is-fullscreen .promo-ambient-glow,
#promoVideoContainer.is-fullscreen-fallback .promo-ambient-glow,
#promoVideoContainer:fullscreen .promo-ambient-glow {
    display: none !important;
}
#promoVideoContainer:-webkit-full-screen .promo-ambient-glow {
    display: none !important;
}

#promoVideoContainer.is-fullscreen .promo-controls-floating-wrap,
#promoVideoContainer.is-fullscreen-fallback .promo-controls-floating-wrap,
#promoVideoContainer:fullscreen .promo-controls-floating-wrap {
    bottom: 32px !important;
    z-index: 2147483647 !important;
}
#promoVideoContainer:-webkit-full-screen .promo-controls-floating-wrap {
    bottom: 32px !important;
    z-index: 2147483647 !important;
}

/* Responsive sizing for promo video */
@media (max-width: 992px) {
    .hero-promo-seamless-wrap {
        max-width: 100%;
        margin: 0 auto 28px;
    }
}

@media (max-width: 768px) {
    .hero-promo-seamless-wrap {
        max-width: 100%;
        width: 100%;
        margin: 0 auto 20px;
    }
    .promo-video-container {
        border-radius: 14px;
        box-shadow: 0 0 35px 15px #0b0f19;
    }
    .promo-edge-vignette {
        box-shadow: inset 0 0 25px 10px #0b0f19;
        border-radius: 14px;
    }
    .promo-ambient-glow {
        filter: blur(25px);
    }
    .promo-controls-floating-wrap {
        bottom: 10px;
        padding: 4px 8px;
        gap: 5px;
    }
    .promo-ctrl-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
        gap: 5px;
    }
    .promo-ctrl-btn svg {
        width: 13px;
        height: 13px;
    }
    .promo-play-btn {
        padding: 5px 8px;
    }
}

@media (max-width: 420px) {
    .sound-text-label,
    .fullscreen-text-label {
        font-size: 0.7rem;
    }
}

