﻿/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a120e;
    --color-bg-secondary: #101b15;
    --color-bg-card: #172b20;
    --color-bg-card-hover: #1d3428;
    --color-border: #314438;
    --color-border-light: #5a526b;
    --color-text: #eef2e8;
    --color-text-secondary: #b8bdb2;
    --color-text-muted: #8f998e;
    --color-primary: #e09a22;
    --color-primary-light: #f0b94b;
    --color-primary-dark: #b86e05;
    --color-accent: #7ad8be;
    --color-accent-light: #a4ecd8;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #e09a22 0%, #7ad8be 100%);
    --gradient-text: linear-gradient(135deg, #f0b94b 0%, #7ad8be 55%, #f6f2d5 100%);
    --gradient-bg: linear-gradient(180deg, #0a120e 0%, #101b15 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(224, 154, 34, 0.18);
    --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;
}

.store-link-mini,
.store-link-large {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.store-link-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.store-link-icons svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    stroke: none;
}

.store-link-large .store-link-icons svg {
    width: 20px;
    height: 20px;
}

.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-family: 'Aptos Display', 'Segoe UI Variable Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.04;
    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);
}

/* ===== 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;
        margin-left: auto;
        position: fixed;
        top: 14px;
        right: 18px;
        z-index: 1001;
    }

    .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;
    }
}

/* ===== 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);
}

/* ===== CoreNode Reader Customizations ===== */
.nav-logo-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 15px;
}

.nav-logo-name {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.05;
}

.nav-logo-name span:first-child {
    color: var(--color-text);
    font-weight: 800;
    font-size: 1.42rem;
    letter-spacing: 0;
}

.nav-logo-name span:last-child {
    color: var(--color-primary-light);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

.app-showcase {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.device-frame {
    position: relative;
    border: 1px solid rgba(240, 185, 75, 0.32);
    background: linear-gradient(145deg, rgba(23, 43, 32, 0.96), rgba(8, 17, 13, 0.98));
    box-shadow: var(--shadow-lg), 0 0 80px rgba(224, 154, 34, 0.12);
    overflow: hidden;
}

.device-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.device-ipad {
    width: min(560px, 92vw);
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    padding: 14px;
}

.device-iphone {
    position: absolute;
    width: min(190px, 34vw);
    aspect-ratio: 9 / 19.5;
    right: 0;
    bottom: 18px;
    border-radius: 32px;
    padding: 9px;
}

.screenshot-collage {
    min-height: 650px;
    isolation: isolate;
}

.screenshot-frame {
    position: absolute;
    margin: 0;
    border: 1px solid rgba(240, 185, 75, 0.32);
    border-radius: 22px;
    background: #0a120e;
    box-shadow: var(--shadow-lg), 0 0 70px rgba(224, 154, 34, 0.14);
    overflow: hidden;
}

.screenshot-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-main {
    position: relative;
    width: min(520px, 84vw);
    aspect-ratio: 2 / 3;
    z-index: 2;
}

.screenshot-reader {
    width: 300px;
    aspect-ratio: 2 / 3;
    right: -18px;
    top: 52px;
    z-index: 3;
    transform: rotate(3deg);
}

.screenshot-metadata {
    width: 250px;
    aspect-ratio: 2 / 3;
    left: -34px;
    bottom: 34px;
    z-index: 4;
    transform: rotate(-4deg);
}

.screenshot-bookmark {
    width: 210px;
    aspect-ratio: 2 / 3;
    right: 70px;
    bottom: -8px;
    z-index: 5;
    transform: rotate(5deg);
}

.app-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.app-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    font-weight: 700;
}

.app-pill strong {
    color: var(--color-primary-light);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.store-card {
    position: relative;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    min-height: 250px;
}

.store-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #0a120e;
    background: var(--gradient-primary);
    margin-bottom: 20px;
}

.store-icon-brand svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    stroke: none;
}

.store-card h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.store-card p {
    color: var(--color-text-secondary);
    margin-bottom: 22px;
}

.store-coming {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(224, 154, 34, 0.45);
    color: var(--color-primary-light);
    background: rgba(224, 154, 34, 0.1);
    font-weight: 800;
    letter-spacing: 0;
}

.reader-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.reader-step {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(23, 43, 32, 0.76);
    padding: 24px;
}

.reader-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #0a120e;
    font-weight: 900;
    margin-bottom: 14px;
}

.reader-step h3 {
    margin-bottom: 8px;
}

.reader-step p {
    color: var(--color-text-secondary);
}

.privacy-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.privacy-summary div {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.privacy-summary h4 {
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.privacy-summary p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        position: fixed;
        top: 14px;
        right: 18px;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 18, 14, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        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;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 12px 0;
        justify-content: center;
    }

    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 260px;
    }

    .app-showcase {
        min-height: 780px;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-content,
    .hero-visual {
        min-width: 0;
        width: 100%;
    }

    .platform-grid,
    .reader-flow,
    .privacy-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .screenshot-collage {
        min-height: 820px;
        justify-items: center;
        align-items: start;
        padding-top: 16px;
    }

    .screenshot-main {
        width: min(420px, calc(100vw - 56px));
    }

    .screenshot-reader {
        width: min(210px, 48vw);
        right: 16px;
        top: 260px;
    }

    .screenshot-metadata {
        width: min(190px, 44vw);
        left: 12px;
        bottom: 70px;
    }

    .screenshot-bookmark {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-logo-name span:last-child {
        display: inline;
        font-size: 0.78rem;
    }

    .nav-logo-name span:first-child {
        font-size: 1.18rem;
    }

    .nav-logo-img {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .device-iphone {
        right: 10px;
        width: 145px;
    }

    .hero-content h1 {
        font-size: 2.7rem;
        line-height: 1.08;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-subtitle {
        font-size: 1.02rem;
        max-width: 100%;
    }

    .hero-actions {
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-content,
    .hero-subtitle,
    .hero-actions,
    .hero-stats {
        max-width: 342px;
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 20px;
    }

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

    .hero-stat-number {
        font-size: 1.35rem;
    }

    .screenshot-collage {
        min-height: 710px;
    }

    .screenshot-main {
        width: calc(100vw - 48px);
        border-radius: 18px;
    }

    .screenshot-reader {
        width: 150px;
        right: 8px;
        top: 300px;
        border-radius: 16px;
    }

    .screenshot-metadata {
        width: 142px;
        left: 8px;
        bottom: 36px;
        border-radius: 16px;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-height: 104px;
    }

    .nav-container {
        flex-wrap: wrap;
        align-content: center;
        gap: 8px 12px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex: 1 1 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        background: transparent;
        border: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links a {
        padding: 6px 10px;
    }

    .store-link-mini {
        font-size: 0.76rem !important;
        padding: 6px 10px !important;
    }
}

/* CoreNode Reader Store Badges */
.store-badges {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-store-badges {
    flex: 0 1 auto;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    min-height: 70px;
    padding: 10px 18px 10px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    color: #ffffff;
    background: #050706;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42), 0 0 0 4px rgba(224, 154, 34, 0.16);
}

.store-badge-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
}

.store-badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: none;
}

.google-play-mark svg {
    fill: none;
}

.store-badge-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
    text-align: left;
}

.store-badge-kicker {
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.9);
}

.store-badge-title {
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #ffffff;
}

.store-badge-google .store-badge-title {
    font-size: 1.52rem;
}

.store-badge-grid {
    align-items: stretch;
}

.store-card-badge {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.store-card-badge .store-badge {
    align-self: flex-start;
}

.store-card-badge p {
    margin: 0;
}

.store-badge-large {
    min-width: 236px;
}

@media (max-width: 768px) {
    .hero-store-badges,
    .store-badges {
        width: 100%;
    }

    .store-badge {
        width: 100%;
        max-width: 292px;
        min-width: 0;
        min-height: 66px;
    }

    .store-badge-title {
        font-size: 1.52rem;
    }

    .store-badge-google .store-badge-title {
        font-size: 1.36rem;
    }

    .store-card-badge .store-badge {
        align-self: stretch;
    }
}

@media (max-width: 430px) {
    .store-badge {
        max-width: none;
        gap: 10px;
        padding: 10px 14px 10px 12px;
    }

    .store-badge-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .store-badge-title {
        font-size: 1.36rem;
    }

    .store-badge-google .store-badge-title {
        font-size: 1.22rem;
    }
}


/* CoreNode Reader Nav Store Badges */
.nav-store-badges {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.nav-links .store-badge-nav {
    min-width: 132px;
    min-height: 42px;
    gap: 8px;
    padding: 6px 10px 6px 9px;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-links .store-badge-nav .store-badge-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

.nav-links .store-badge-nav .store-badge-kicker {
    font-size: 0.58rem;
    font-weight: 700;
}

.nav-links .store-badge-nav .store-badge-title {
    font-size: 1rem;
    font-weight: 800;
}

.nav-links .store-badge-nav.store-badge-google .store-badge-title {
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .nav-store-badges {
        flex-wrap: wrap;
        gap: 8px;
        margin-left: 0;
    }

    .nav-links .store-badge-nav {
        min-width: 126px;
    }
}

@media (max-width: 430px) {
    .nav-store-badges {
        width: 100%;
    }

    .nav-links .store-badge-nav {
        flex: 1 1 132px;
        min-width: 0;
        max-width: none;
    }
}
