/* ═══════════════════════════════════════════════════════════════════════════════
   QANTUM PRIME - MAIN STYLESHEET
   v27.1.0 IMMORTAL Edition
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Backgrounds */
    --bg-darker: #020617;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.8);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.4) 100%);
    
    /* Borders */
    --border-color: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max: 1400px;
    --section-padding: 6rem 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════════ */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    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: 50px 50px;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(2, 6, 23, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(99, 102, 241, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .version {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    margin-left: 0.5rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    vertical-align: super;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.hero.compact-hero {
    min-height: auto;
    padding: 6rem 2rem 2rem;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.compact-hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compact-hero .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    min-height: 1.5em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.install-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    margin-top: 1rem;
}

.install-box code {
    color: var(--success);
    font-size: 1rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    max-width: 800px;
}

.hero-stats.compact-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    gap: 1rem;
    max-width: 500px;
}

.compact-stats .stat-value {
    font-size: 1.5rem;
}

.compact-stats .stat-label {
    font-size: 0.75rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.stat-value .unit {
    font-size: 1.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TERMINAL SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.terminal-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.terminal {
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-red { background: #ff5f57; }
.btn-yellow { background: #febc2e; }
.btn-green { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--success);
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 350px;
    max-height: 450px;
    overflow-y: auto;
    line-height: 1.8;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.features {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15),
                0 0 40px rgba(99, 102, 241, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Colored feature icon variants */
.feature-icon.icon-cyan { background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.3); }
.feature-icon.icon-cyan svg { stroke: #06b6d4; }
.feature-card:hover .feature-icon.icon-cyan { box-shadow: 0 0 30px rgba(6, 182, 212, 0.4); }

.feature-icon.icon-green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.feature-icon.icon-green svg { stroke: #10b981; }
.feature-card:hover .feature-icon.icon-green { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }

.feature-icon.icon-purple { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.feature-icon.icon-purple svg { stroke: #8b5cf6; }
.feature-card:hover .feature-icon.icon-purple { box-shadow: 0 0 30px rgba(139, 92, 246, 0.4); }

.feature-icon.icon-indigo { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.3); }
.feature-icon.icon-indigo svg { stroke: #6366f1; }
.feature-card:hover .feature-icon.icon-indigo { box-shadow: 0 0 30px rgba(99, 102, 241, 0.4); }

.feature-icon.icon-amber { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.feature-icon.icon-amber svg { stroke: #f59e0b; }
.feature-card:hover .feature-icon.icon-amber { box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }

.feature-icon.icon-rose { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.3); }
.feature-icon.icon-rose svg { stroke: #f43f5e; }
.feature-card:hover .feature-icon.icon-rose { box-shadow: 0 0 30px rgba(244, 63, 94, 0.4); }

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ARCHITECTURE SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.architecture {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.arch-diagram {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.arch-layer:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.layer-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
}

.layer-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.layer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.layer-5 { border-left: 4px solid #ef4444; }
.layer-4 { border-left: 4px solid #10b981; }
.layer-3 { border-left: 4px solid #f59e0b; }
.layer-2 { border-left: 4px solid #06b6d4; }
.layer-1 { border-left: 4px solid #8b5cf6; }

/* ═══════════════════════════════════════════════════════════════════════════════
   CODE DEMO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.code-demo {
    padding: var(--section-padding);
}

.code-block {
    max-width: 900px;
    margin: 0 auto;
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-filename {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copy-code {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
    margin: 0;
}

.code-content .keyword { color: #ff79c6; }
.code-content .string { color: #f1fa8c; }
.code-content .comment { color: #6272a4; }
.code-content .function { color: #50fa7b; }
.code-content .property { color: #8be9fd; }
.code-content .boolean { color: #bd93f9; }
.code-content .number { color: #bd93f9; }

/* ═══════════════════════════════════════════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════════════════════════════════════════ */

.social-proof {
    padding: 4rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.proof-item {
    text-align: center;
}

.proof-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.cta {
    padding: var(--section-padding);
    background: 
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

footer {
    padding: 4rem 2rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-location {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-quote {
    font-style: italic;
    margin-top: 0.5rem !important;
    color: var(--primary-light) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .proof-stats {
        gap: 3rem;
    }
    
    .proof-value {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .arch-layer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .install-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════════
   2-COLUMN DUAL LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */

.dual-section {
    padding: 2rem 2rem;
}

.dual-section.dark-bg {
    background: var(--bg-dark);
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: var(--container-max);
    margin: 0 auto;
}

.dual-left, .dual-right {
    min-width: 0;
}

/* Compact Title */
.compact-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

/* Compact Features List */
.compact-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   INTERACTIVE FEATURE BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-btn.active {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fb-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.feature-btn:hover .fb-icon {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.feature-btn.active .fb-icon {
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.fb-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fb-status {
    font-size: 0.65rem;
    color: var(--success);
    font-family: var(--font-mono);
}

/* Feature Demo Panel */
.feature-demo-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.fdp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.fdp-title {
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fdp-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.fdp-badge.live {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.fdp-content {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fdp-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fdp-value {
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.fdp-visual {
    padding: 1rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

/* Ghost Visual */
.ghost-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gv-node {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.gv-node.cloudflare {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.gv-node.qantum {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border: 1px solid var(--primary);
}

.gv-node.qantum.active {
    animation: node-pulse 1.5s infinite;
}

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.2); }
}

.gv-node.target {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.gv-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    animation: arrow-flow 1s infinite;
}

@keyframes arrow-flow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Swarm Visual */
.swarm-visual {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
}

.swarm-node {
    width: 100%;
    aspect-ratio: 1;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.3;
    animation: swarm-blink 2s infinite;
}

.swarm-node:nth-child(odd) { animation-delay: 0.1s; }
.swarm-node:nth-child(3n) { animation-delay: 0.3s; }
.swarm-node:nth-child(5n) { animation-delay: 0.5s; }

@keyframes swarm-blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Heal Visual */
.heal-visual {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.heal-bar {
    height: 6px;
    background: var(--bg-glass);
    border-radius: 3px;
    overflow: hidden;
}

.heal-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    animation: heal-fill 2s ease-out forwards;
}

@keyframes heal-fill {
    to { width: 97%; }
}

.heal-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Oracle Visual */
.oracle-visual {
    position: relative;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.oracle-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Chronos Visual */
.chronos-visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-zones {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tz {
    padding: 0.3rem 0.6rem;
    background: var(--bg-glass);
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0.5;
}

.tz.active {
    opacity: 1;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
}

.prediction-bar {
    font-size: 0.7rem;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 4px;
    color: var(--warning);
    text-align: center;
}

/* Fortress Visual */
.fortress-visual {
    padding: 0.5rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.sec-item {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-align: center;
    font-family: var(--font-mono);
}

.sec-item.safe {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.sec-item.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.compact-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.compact-feature:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cf-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.compact-feature:hover .cf-icon {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.cf-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cf-content strong {
    font-size: 0.95rem;
    color: #fff;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cf-content span {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* Compact Architecture */
.arch-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.arch-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.arch-row:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.arch-icon {
    font-size: 1.25rem;
}

.arch-row strong {
    color: var(--primary-light);
    min-width: 90px;
}

/* Inline Stats */
.inline-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--gradient-glow);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.is-item {
    text-align: center;
}

.is-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.is-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Compact Code Block */
.compact-code {
    height: 100%;
}

.compact-code .code-content {
    font-size: 0.8rem;
    padding: 1rem;
}

/* Compact CTA */
.compact-cta {
    padding: 2rem;
}

.cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 2rem;
}

.cta-text h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.cta-text p {
    color: var(--text-secondary);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive for Dual Layout */
@media (max-width: 1024px) {
    .dual-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .inline-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dual-section {
        padding: 2rem 1rem;
    }
    
    .cta-row {
        flex-direction: column;
        text-align: center;
    }
    
    .inline-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .is-value {
        font-size: 1rem;
    }
}