/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: #16161f;
    --color-bg-card-hover: #1c1c28;
    --color-border: #2a2a3a;
    --color-border-light: #3a3a4a;
    --color-text: #e4e4ed;
    --color-text-secondary: #9595a8;
    --color-text-muted: #6b6b7f;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 50%, #818cf8 100%);
    --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --container-max: 1200px;
    --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* ===== Utility ===== */
.hidden {
    display: none !important;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--color-text);
}

.nav-logo-img {
    width: 225px;
    height: 66px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 6px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-md) !important;
}

.nav-cta:hover {
    opacity: 0.9;
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Nav Dropdowns ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px !important;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    border-radius: 0 !important;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ===== Section Shared ===== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent-light);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Code Window */
.code-window {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--color-border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #28c840; }

.code-title {
    margin-left: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--color-text-secondary);
}

.code-body code {
    font-size: inherit;
}

.code-keyword { color: #c792ea; }
.code-type { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-number { color: #f78c6c; }
.code-method { color: #82aaff; }
.code-comment { color: #546e7a; }

.code-window-sm .code-body {
    font-size: 0.8125rem;
    padding: 16px;
}

/* ===== Social Proof ===== */
.social-proof {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.social-proof-text {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

/* ===== Features ===== */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary-light);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== Architecture ===== */
.architecture {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.arch-diagram {
    max-width: 700px;
    margin: 0 auto 60px;
}

.arch-layer {
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.arch-layer h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary-light);
}

.arch-items {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.arch-item {
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

.arch-features {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.arch-features span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    color: var(--color-accent-light);
}

.arch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    color: var(--color-text-muted);
}

.arch-arrow svg {
    width: 24px;
    height: 36px;
    color: var(--color-border-light);
}

.arch-arrow span {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.arch-server {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.arch-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.arch-highlight {
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.arch-highlight h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.arch-highlight p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== Drivers ===== */
.drivers {
    padding: 120px 0;
}

.driver-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.driver-tab {
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.driver-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.driver-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.driver-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.driver-panel.active {
    display: grid;
}

.driver-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.driver-info p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.driver-features {
    list-style: none;
    margin-bottom: 24px;
}

.driver-features li {
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.driver-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light);
    flex-shrink: 0;
}

.driver-features li code {
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-primary-light);
    font-size: 0.8125rem;
}

.driver-install {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.driver-install code {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--color-accent-light);
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--color-text);
}

/* ===== Security ===== */
.security {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.security-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.security-highlight {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.08);
}

.security-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.security-card ul {
    list-style: none;
}

.security-card li {
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}

/* ===== Deployment ===== */
.deployment {
    padding: 120px 0;
}

.deploy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.deploy-card {
    padding: 32px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.deploy-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.deploy-icon {
    margin-bottom: 20px;
    color: var(--color-primary-light);
}

.deploy-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.deploy-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.deploy-card code {
    display: block;
    padding: 10px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-accent-light);
    word-break: break-all;
}

/* ===== Quick Start ===== */
.quickstart {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content > p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* ===== Documentation ===== */
.docs {
    padding: 120px 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.doc-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.doc-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.doc-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.doc-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-topics span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    color: var(--color-primary-light);
}

.config-reference {
    max-width: 700px;
    margin: 0 auto;
}

.config-reference h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== Compatibility ===== */
.compatibility {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.compat-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.compat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.compat-table thead {
    background: var(--color-bg-card);
}

.compat-table th {
    padding: 14px 20px;
    font-weight: 600;
    text-align: left;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.compat-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.compat-table tr:last-child td {
    border-bottom: none;
}

.compat-table tbody tr {
    transition: background 0.2s;
}

.compat-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.compat-table code {
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: var(--color-primary-light);
    font-size: 0.8125rem;
}

.status-full,
.status-partial,
.status-no {
    display: inline-block;
    padding: 2px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
}

.status-full {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-partial {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-no {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== Trial Request ===== */
.trial-request {
    padding: 120px 0;
}

.trial-form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.trial-form-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.trial-form-card-header {
    margin-bottom: 32px;
}

.trial-form-card-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.trial-form-card-header p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.trial-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.trial-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trial-field-full {
    margin-bottom: 24px;
}

.trial-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.trial-required {
    color: var(--color-error);
}

.trial-input {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.trial-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.trial-input::placeholder {
    color: var(--color-text-muted);
}

.trial-input.trial-input-error {
    border-color: var(--color-error);
}

.trial-input.trial-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.trial-input-mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.trial-field-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.trial-field-hint code {
    padding: 1px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: var(--color-primary-light);
    font-size: 0.75rem;
}

.trial-field-error {
    font-size: 0.75rem;
    color: var(--color-error);
    min-height: 1em;
}

.trial-field-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.trial-form-footer {
    text-align: center;
    padding-top: 8px;
}

.trial-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s, transform 0.2s;
}

.trial-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.trial-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.trial-spinner {
    animation: trial-spin 0.8s linear infinite;
}

@keyframes trial-spin {
    to { transform: rotate(360deg); }
}

.trial-form-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.trial-form-note a {
    color: var(--color-primary-light);
}

.trial-success {
    text-align: center;
    padding: 48px 24px;
}

.trial-success-icon {
    color: var(--color-success);
    margin-bottom: 20px;
}

.trial-success h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.trial-success p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.trial-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.trial-error-icon {
    color: var(--color-error);
    flex-shrink: 0;
}

.trial-error p {
    font-size: 0.875rem;
    color: var(--color-error);
    margin: 0;
}

.trial-benefits {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.trial-benefits h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.trial-benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trial-benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.trial-benefits-list li svg {
    color: var(--color-success);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .trial-form-wrapper {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .trial-form-grid {
        grid-template-columns: 1fr;
    }

    .trial-form-card {
        padding: 28px 24px;
    }

    .trial-benefits {
        position: static;
    }
}

/* ===== Hardware-ID Modal ===== */
.hwid-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hwid-modal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.hwid-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hwid-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.hwid-modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.hwid-modal-close:hover {
    color: var(--color-text);
}

.hwid-modal-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hwid-modal-desc code {
    padding: 1px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.hwid-modal-footer {
    margin-top: 24px;
}

/* ===== Checkout Success Banner ===== */
.checkout-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-size: 0.9375rem;
    max-width: var(--container-max);
    margin: 0 auto 32px;
}

.checkout-success-banner svg {
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq {
    padding: 120px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-question:hover {
    color: var(--color-primary-light);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-answer code {
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: var(--color-primary-light);
    font-size: 0.8125rem;
}

/* ===== CTA ===== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.cta-feature svg {
    color: var(--color-success);
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 225px;
    height: 66px;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    padding: 4px 0;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-highlights {
        grid-template-columns: 1fr;
    }

    .driver-panel.active {
        grid-template-columns: 1fr;
    }

    .deploy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    /* Mobile dropdowns — inline expand instead of absolute popup */
    .nav-dropdown-toggle {
        width: 100%;
        padding: 12px 0;
        font-size: 0.9375rem;
        justify-content: space-between;
        appearance: none;
        -webkit-appearance: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        min-width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 4px 16px;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 300px;
    }

    .nav-dropdown-menu li {
        list-style: none;
    }

    .nav-dropdown-menu a {
        padding: 10px 0 !important;
        font-size: 0.875rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .nav-cta {
        display: inline-block !important;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding: calc(var(--nav-height) + 20px) 0 40px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .deploy-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .driver-tabs {
        gap: 6px;
    }

    .driver-tab {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .compat-table th,
    .compat-table td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .code-body {
        font-size: 0.75rem;
        padding: 12px;
    }

    .feature-card {
        padding: 24px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Clickable Doc Topic Badges ===== */
.doc-topic-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-sans);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    color: var(--color-primary-light);
    cursor: pointer;
    transition: all 0.2s;
}

.doc-topic-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--color-accent-light);
    transform: translateY(-1px);
}

.doc-topic-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Doc Topic Detail Panels */
.doc-topic-details {
    margin-top: 0;
    overflow: hidden;
}

.doc-topic-detail {
    display: none;
    padding: 16px 20px;
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    animation: fadeInDetail 0.25s ease;
}

.doc-topic-detail.active {
    display: block;
}

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-topic-detail h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-accent-light);
    margin-bottom: 8px;
}

.doc-topic-detail p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.doc-topic-detail code {
    padding: 1px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: var(--color-primary-light);
    font-size: 0.8125rem;
}

.doc-detail-code {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow-x: auto;
}

.doc-detail-code code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-light);
    background: none;
    padding: 0;
    line-height: 1.8;
}

/* ===== Config Settings Grid (replaces JSON) ===== */
.config-ref-desc {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.config-ref-desc code {
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: var(--color-primary-light);
    font-size: 0.8125rem;
}

.config-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.config-setting {
    padding: 20px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.config-setting h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 12px;
}

.config-setting ul {
    list-style: none;
}

.config-setting li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.config-setting li:last-child {
    border-bottom: none;
}

.config-setting li code {
    font-family: var(--font-mono);
    color: var(--color-accent-light);
    font-size: 0.75rem;
}

.config-setting li span {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* Responsive: config grid */
@media (max-width: 768px) {
    .config-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Pricing ===== */
.pricing {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.pricing-card {
    position: relative;
    padding: 32px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
    transform: scale(1.03);
    z-index: 1;
}

.pricing-featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
}

.pricing-badge-ribbon {
    position: absolute;
    top: -1px;
    right: 16px;
    padding: 4px 14px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--color-text);
}

.pricing-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.price-period {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 7px 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li.included {
    color: var(--color-text-secondary);
}

.pricing-features li.excluded {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.pricing-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features li.included::before {
    background: rgba(34, 197, 94, 0.15);
    box-shadow: inset 0 0 0 1.5px rgba(34, 197, 94, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 12 10 16 18 8'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-features li.excluded::before {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, 0.25);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='7' y1='7' x2='17' y2='17'/%3E%3Cline x1='17' y1='7' x2='7' y2='17'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

.pricing-oem .price-amount {
    font-size: 1.75rem;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-b2b-notice {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 12px auto 0;
    line-height: 1.6;
    font-style: italic;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

/* Responsive: pricing grid */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Use Cases Section ===== */
.use-cases {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    padding: 36px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.use-case-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.use-case-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--color-primary-light);
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.use-case-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.use-case-tags span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
}

@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Why On-Premise Section ===== */
.why-onprem {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.why-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.why-card-cloud {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.15);
}

.why-card-onprem {
    background: rgba(34, 197, 94, 0.03);
    border-color: rgba(34, 197, 94, 0.15);
}

.why-card-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.why-card-cloud .why-card-label {
    color: #f87171;
}

.why-card-onprem .why-card-label {
    color: #4ade80;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.why-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.why-con svg {
    color: #f87171;
}

.why-pro svg {
    color: #4ade80;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

/* ===== Downloads Section ===== */
.downloads {
    padding: 120px 0;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.download-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(99, 102, 241, 0.04);
}

.download-os-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.download-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.download-card-body {
    padding: 8px 0;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    transition: background 0.2s;
}

.download-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

.download-item + .download-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.download-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.download-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.download-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.download-item-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.download-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    white-space: nowrap;
}

.download-badge-alt {
    color: var(--color-accent);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.download-resources {
    margin-top: 24px;
}

.download-card-wide {
    width: 100%;
}

.download-resources-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
}

.download-resources-body .download-item {
    padding: 20px 28px;
}

.download-resources-body .download-item + .download-item {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

/* Responsive: downloads grid */
@media (max-width: 1024px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-item {
        padding: 12px 20px;
    }

    .download-card-header {
        padding: 20px;
    }

    .download-resources {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-resources-body {
        grid-template-columns: 1fr;
    }

    .download-resources-body .download-item + .download-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }
}

/* ===== Legal / Privacy Page ===== */
.legal-page {
    padding: 140px 0 80px;
    background: var(--color-bg);
}

.legal-container {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.legal-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 12px 0 20px 24px;
    list-style: disc;
}

.legal-content ul li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--color-primary-light);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-address {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 16px 0 24px;
}

.legal-address p {
    margin-bottom: 4px;
    font-size: 0.9375rem;
}

.legal-address strong {
    color: var(--color-text);
}

.legal-credit {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
    border-color: var(--color-border-light);
    color: var(--color-text);
}

.lang-btn.active {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.lang-btn .flag {
    font-size: 1.25rem;
}

/* Legal page utility classes */
.legal-canvas {
    display: block;
    max-width: 100%;
}

.lang-hidden {
    display: none;
}

.legal-back-btn {
    font-size: 0.8125rem;
    padding: 6px 16px;
}

.legal-footer-bottom {
    border-top: none;
    padding-top: 0;
}

.footer-muted-link {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-muted-link:hover {
    color: var(--color-text-secondary);
}

.legal-odr-link {
    color: var(--color-primary-light);
}
