/* ==========================================================================
   Zero-IDE: Elite "Cold Luxury" Standard
   High-Performance, Zero-Lag, Absolute Polish.
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/npm/geist@1.0.3/dist/fonts/geist-sans/style.css');
@import url('https://cdn.jsdelivr.net/npm/geist@1.0.3/dist/fonts/geist-mono/style.css');

:root {
    --bg-base: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa; /* Brighter for contrast */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --grid-line: rgba(255, 255, 255, 0.02);
    --nav-height: 72px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --terminal-string: #f1fa8c;
}

::selection {
    background: #27c93f;
    color: #000000;
}

::-moz-selection {
    background: #27c93f;
    color: #000000;
}

body.light-mode {
    --bg-base: #fcfcfc;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-subtle: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --grid-line: rgba(0, 0, 0, 0.04);
}

::selection {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

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

html {
    scroll-padding-top: var(--nav-height);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    max-width: 100%;
}

.interactive-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle 300px at var(--mouse-x, -100vw) var(--mouse-y, -100vh), black, transparent);
    -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, -100vw) var(--mouse-y, -100vh), black, transparent);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    transition: opacity 0.3s ease;
}

.god-rays {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent 0%,
        rgba(39, 201, 63, 0.015) 2%,
        transparent 4%
    );
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform, opacity, scale;
}

.global-scanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(39, 201, 63, 0.8), transparent);
    box-shadow: 0 0 20px rgba(39, 201, 63, 0.5);
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.5;
    will-change: transform, height, opacity;
}

.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
    mix-blend-mode: overlay;
}

.singularity-hole {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 0%, rgba(39, 201, 63, 0.8) 50%, transparent 100%);
    box-shadow: 0 0 100px 50px rgba(39, 201, 63, 0.5), inset 0 0 50px 20px #000;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9999999;
    mix-blend-mode: exclusion;
}

.glass-shard {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    pointer-events: none;
    z-index: 9999999;
    transform-origin: center center;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.xray-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050505;
    z-index: 9999998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: normal;
    mask-image: radial-gradient(circle 200px at var(--mouse-x, -100vw) var(--mouse-y, -100vh), transparent 0%, black 100%);
    -webkit-mask-image: radial-gradient(circle 200px at var(--mouse-x, -100vw) var(--mouse-y, -100vh), transparent 0%, black 100%);
    will-change: opacity;
}

.sonic-shockwave {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(39, 201, 63, 0.8);
    background: radial-gradient(circle, rgba(39,201,63,0.1), transparent);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: screen;
}



::selection {
    background: rgba(255, 255, 255, 0.99);
    color: #000;
    text-shadow: none;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.99);
    color: #000;
    text-shadow: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

/* Static ambient glow (zero JS lag, GPU-accelerated) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.active-line {
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--text-primary);
    margin-left: -32px;
    padding-left: 30px;
    animation: activeLinePulse 3s infinite alternate ease-in-out;
}

.ambient-orb {
    position: fixed;
    top: -20vh;
    left: 10vw;
    width: 100%;
    height: 100vh;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.ambient-orb.orb-2 {
    top: 40vh;
    left: auto;
    right: -10vw;
    width: 90vw;
    height: 90vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 60%);
}

.ghost-text {
    color: rgba(255,255,255,0.25);
    font-style: italic;
    pointer-events: none;
    user-select: none;
    animation: ghostPulse 2s infinite alternate ease-in-out;
}

@keyframes ghostPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.ambient-orb {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle closest-side, rgba(255,255,255,0.015), transparent);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 9999;
}

/* ==========================================================================
   Typography & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 160px 0;
}

.title-display {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 32px;
    color: var(--text-primary);
    text-wrap: balance;
}

.title-section {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 55ch;
    margin-bottom: 48px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 10px 10px 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 600px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.navbar.visible { transform: translateX(-50%) translateY(0); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links:hover a {
    opacity: 0.5;
}
.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Tactile Buttons */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: ctaAmbientGlow 3s infinite alternate ease-in-out;
}

@keyframes ctaAmbientGlow {
    0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 0 35px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::after {
    left: 200%;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary.pulse {
    animation: runPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0vh;
    padding-bottom: 10vh;
    position: relative;
}

.hero-inner {
    max-width: 900px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    border: 1px solid var(--border-subtle);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.brand-strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 4s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ==========================================================================
   Bento Grid (Cold Luxury Polish)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    grid-auto-rows: minmax(280px, auto);
}

.testimonial-card {
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.tweet-card:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: var(--border-hover);
}

.bento-card {
    background: linear-gradient(180deg, #111111 0%, #050505 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
    --laser-angle: 0deg;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--laser-angle), transparent 60%, rgba(39, 201, 63, 0.8) 100%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

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

.bento-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: color-dodge;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    top: 0;
    left: 0;
    will-change: transform, opacity;
}

.bento-card > *:not(.bento-glow) {
    position: relative;
    z-index: 1;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.metric-card {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s;
}

.bento-icon {
    margin-bottom: 32px;
    color: var(--text-primary);
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: inline-flex;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.bento-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-large { grid-column: span 8; }
.bento-medium { grid-column: span 4; }
.bento-small { grid-column: span 4; }

@media (max-width: 1024px) {
    .bento-large { grid-column: span 12; }
    .bento-medium { grid-column: span 6; }
    .bento-small { grid-column: span 6; }
}

@media (max-width: 768px) {
    .bento-large, .bento-medium, .bento-small { grid-column: span 12; }
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.footer-brand:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.syn-keyword { color: #ff8c82; font-weight: 500; }
.syn-string { color: #a5d6ff; }
.syn-func { color: #d2a8ff; font-weight: 500; }
.syn-comment { color: #8b949e; font-style: italic; }
.syn-bracket { color: #c9d1d9; }
.badge:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}

/* ==========================================================================
   Flow State IDE
   ========================================================================== */
.flow-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1024px) { .flow-split { grid-template-columns: 1fr; } }

.mock-ide {
    background: #000000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 450px;
    animation: floatIDE 6s ease-in-out infinite;
}
@keyframes floatIDE {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.ide-sidebar {
    width: 260px;
    background: #000;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    line-height: 1.8;
}

.ide-header {
    height: 48px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(255,255,255,0.02);
}

.ide-dots { display: flex; gap: 8px; }
.ide-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
    cursor: pointer;
}
.ide-dots:hover span {
    filter: brightness(1.2);
}
.ide-dots span:hover {
    transform: scale(1.3);
}

.ide-dots span.pulse {
    animation: heartbeat 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(39,201,63,0); }
    50% { transform: scale(1.15); box-shadow: 0 0 12px rgba(39,201,63,0.6); }
}
.ide-dots span:nth-child(1) { background: #ff5f56; }
.ide-dots span:nth-child(2) { background: #ffbd2e; }
.ide-dots span:nth-child(3) { background: #27c93f; }

.ide-body { 
    display: flex; 
    flex: 1; 
    min-height: 0;
}

.ide-sidebar {
    width: 180px;
    border-right: 1px solid var(--border-subtle);
    padding: 20px;
    background: rgba(255,255,255,0.01);
}

@media (max-width: 768px) {
    .ide-sidebar {
        display: none;
    }
}

.ide-file {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.ide-file:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
.ide-file.active { background: rgba(255,255,255,0.08); color: var(--text-primary); font-weight: 500; }

.ide-editor {
    padding: 24px;
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    white-space: pre-wrap;
    background: #000000;
    position: relative;
}

.ide-editor::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.ide-tabs {
    display: flex;
    background: #050505;
    border-bottom: 1px solid var(--border-subtle);
}

.ide-tab {
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ide-tab:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}

.ide-tab.active {
    background: #000000;
    color: var(--text-primary);
    border-top: 2px solid var(--text-primary);
}

.ide-terminal {
    height: 140px;
    border-top: 1px solid var(--border-subtle);
    background: #030303;
    display: flex;
    flex-direction: column;
}

.ide-terminal-header {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 8px 24px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.code-block {
    background: transparent;
    padding: 32px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow-x: auto;
    font-weight: 400;
}

.ide-terminal-body {
    padding: 16px 24px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    flex: 1;
    overflow-y: hidden;
    line-height: 1.6;
}

.btn-primary svg, .btn-secondary svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    vertical-align: -3px;
}

.code-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--text-primary);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* ==========================================================================
   Sticky Stack Pillars
   ========================================================================== */
.section {
    padding: 160px 0;
    position: relative;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.stack-card {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -20px 40px rgba(0,0,0,0.8);
    will-change: transform, opacity;
}

.pillar-content {
    max-width: 800px;
    padding: 60px;
    background: linear-gradient(180deg, #111111 0%, #050505 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

@media (max-width: 768px) {
    .pillar-content {
        margin-top: 60px;
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 6px;
    height: 6px;
    background: #27c93f;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, background 0.2s;
}
.custom-cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(39, 201, 63, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-cursor.active {
    background: #ffbd2e;
}
.custom-cursor-follower.active {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 189, 46, 0.6);
    background: rgba(255, 189, 46, 0.1);
}
@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-follower { display: none; }
}

/* Page Wipe Transition */
.page-wipe {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #050505;
    z-index: 999999;
    transform-origin: bottom;
    transform: scaleY(0);
}

/* Phase 5: CRT Flicker & Button Glitch */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18, 16, 16, 0.05);
    opacity: 0;
    z-index: 9999999;
    pointer-events: none;
    animation: crtFlicker 0.12s infinite;
}
@keyframes crtFlicker {
    0% { opacity: 0.01; }
    50% { opacity: 0.04; }
    100% { opacity: 0.01; }
}

.btn-primary {
    animation: ctaAmbientGlow 3s infinite alternate ease-in-out, glitchBtn 5s infinite;
}
@keyframes glitchBtn {
    0%, 96%, 100% { transform: translate(0) skew(0); filter: hue-rotate(0deg); }
    97% { transform: translate(-2px, 1px) skew(-5deg); filter: hue-rotate(90deg); }
    98% { transform: translate(2px, -1px) skew(5deg); filter: hue-rotate(-90deg); }
    99% { transform: translate(-1px, -1px) skew(-2deg); filter: hue-rotate(45deg); }
}

/* Phase 11: OS-Level Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #27c93f;
}
::selection {
    background: rgba(39, 201, 63, 0.3);
    color: #fff;
}

.metallic-text {
    background: linear-gradient(90deg, var(--text-primary) 0%, #27c93f 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallicShine 4s linear infinite;
}
@keyframes metallicShine {
    to { background-position: 200% center; }
}

/* Phase 16: Interactive Sparkles */
.sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 99999;
    color: var(--accent-glow);
}

/* Phase 17: Physical Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(39, 201, 63, 0.4);
    pointer-events: none;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Phase 18: Magnetic Spotlight */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle 300px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(39, 201, 63, 0.15), transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.bento-card:hover::before {
    opacity: 1;
}

/* Phase 19: Glitch Hover */
.btn-primary:hover {
    animation: btnGlitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
}
@keyframes btnGlitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 1px) }
    40% { transform: translate(-1px, -1px) }
    60% { transform: translate(2px, 1px) }
    80% { transform: translate(1px, -1px) }
    100% { transform: translate(0) }
}

/* Phase 20: Analog Static Noise */
@keyframes noiseScroll {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 15%); }
    80% { transform: translate(3%, 15%); }
    90% { transform: translate(-10%, 10%); }
    100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Editorial Metrics
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-value {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}

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

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background: #000000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.footer {
    padding: 80px 32px 40px;
    background: #000;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 120px;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.testimonial-author strong {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #555555;
}

/* ==========================================================================
   Integrations
   ========================================================================== */
.hero-cta {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 48px;
}
.integrations-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    margin-top: 80px;
}
.line-numbers {
    padding-right: 24px;
    user-select: none;
    color: var(--text-secondary);
    transition: color 0.2s, text-shadow 0.2s;
}

.code-block div:hover .line-numbers {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.integrations-row svg {
    width: 36px;
    height: 36px;
    padding: 8px;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}
.integrations-row svg:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
}

/* ==========================================================================
   Custom Cursor & Magnetic Polish
   ========================================================================== */
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    will-change: transform, width, height;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none; /* Only visible if JS detects mouse movement */
}

@media (pointer: fine) {
    body { cursor: none; }
    #custom-cursor { display: block; }
}

.btn-primary.magnetic {
    will-change: transform;
}

/* ==========================================================================
   Scroll Progress Indicator
   ========================================================================== */
.scroll-progress {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.scroll-progress.visible {
    opacity: 1;
}

.progress-bg {
    stroke: rgba(255,255,255,0.1);
}

.progress-bar {
    stroke: var(--text-primary);
    stroke-dasharray: 126; /* 2 * pi * 20 */
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.1s linear;
}

/* ==========================================================================
   Performance Monitor
   ========================================================================== */
#perf-monitor {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #27c93f;
    z-index: 10000;
    pointer-events: none;
    display: none;
}

#perf-monitor.visible {
    display: block;
}

/* ==========================================================================
   Command Palette (Cmd+K)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.cmd-palette-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cmd-palette-modal {
    width: 100%;
    max-width: 640px;
    background: #0a0a0a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.active .cmd-palette-modal {
    transform: scale(1) translateY(0);
}

@keyframes runPulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(39, 201, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

.ide-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 24px;
    background: #000;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.ide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px;
    -webkit-app-region: drag;
}

.ide-header button,
.ide-header .ide-tabs {
    -webkit-app-region: no-drag;
}

.cmd-palette-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
}

#cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: color 0.2s, box-shadow 0.2s;
}

#cmd-input:focus-visible {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
#cmd-input::placeholder { color: var(--text-secondary); }

.cmd-shortcut {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0.6;
}

.cmd-palette-body { padding: 12px; }

.cmd-group {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 12px 12px 8px 12px;
}

.cmd-item {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.1s;
}

.cmd-item:hover { background: rgba(255,255,255,0.05); }

.cmd-shortcut {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
}



/* ==========================================================================
   Epic Footer
   ========================================================================== */
/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-container {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    padding: 30px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    cursor: default;
}

.marquee-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.marquee-track span {
    padding-right: 20px;
    white-space: nowrap;
}

.epic-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 100px;
    background: #000000;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .hero, .features, .pricing, .testimonials { padding: 80px 16px; }
    .hero h1 { font-size: 3rem; }
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .ide-mock { flex-direction: column; }
    .ide-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .ide-terminal { height: 200px; }
    .integrations-row { flex-wrap: wrap; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-col a, .footer-col a:visited {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0 0 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.big-wordmark {
    font-size: clamp(8rem, 20vw, 25rem);
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.08em;
    color: rgba(255,255,255,0.02);
    user-select: none;
    transform: translateY(20px);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
    border-radius: 4px;
    transition: outline-offset 0.2s;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 6px;
    background: #e0e0e0;
}

@media (hover: none) {
    a:active, button:active, .ide-tab:active, .ide-file:active {
        opacity: 0.7;
        transform: scale(0.98);
        transition: transform 0.1s, opacity 0.1s;
    }
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Tooltips
   ========================================================================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #000;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
    transition-delay: 0.15s;
}

.ide-header button[data-tooltip]:hover::after {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Command Palette
   ========================================================================== */
.cmd-palette-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.cmd-palette-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cmd-palette-modal {
    background: #0d0d0d;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cmd-palette-backdrop.active .cmd-palette-modal {
    transform: translateY(0) scale(1);
}

.cmd-palette-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

#cmd-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    width: 100%;
}

#cmd-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.cmd-group {
    padding: 12px 24px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.cmd-item {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
}

.cmd-item:hover, .cmd-item.selected {
    background: rgba(255, 255, 255, 0.05);
}

.cmd-shortcut {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Install Section
   ========================================================================== */
.install-terminal {
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-top: 30px;
    max-width: 800px;
    overflow: hidden;
    font-family: var(--font-mono);
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: left;
}
.install-terminal:hover {
    box-shadow: 0 0 40px rgba(39, 201, 63, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    padding: 15px 40px;
}

.scroll-progress-bar {
    position: absolute;
    bottom: -1px; /* Align with border-bottom */
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1000;
    pointer-events: none;
}

.install-header {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.install-tabs {
    display: flex;
    gap: 10px;
}

.install-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.install-tab.active {
    color: var(--text-primary);
    font-weight: 600;
}

.install-body {
    padding: 30px;
    position: relative;
    display: flex;
    align-items: center;
}

.install-code {
    display: none !important;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.install-code.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

.install-code.active::after {
    content: '_';
    animation: terminalBlink 1s step-end infinite;
    margin-left: 6px;
    opacity: 0.6;
}

@keyframes terminalBlink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0; }
}

.btn-copy {
    position: absolute;
    right: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

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

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

/* ==========================================================================
   Texture Overlay (Noise)
   ========================================================================== */
.noise-overlay {
    position: fixed;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noiseScroll 0.2s infinite steps(2);
}

/* ==========================================================================
   Real Light Mode Overrides
   ========================================================================== */
body.light-mode .bento-card,
body.light-mode .hero-card,
body.light-mode .stack-card,
body.light-mode .cmd-palette-content {
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

body.light-mode .bento-card:hover,
body.light-mode .stack-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .btn-primary {
    background-color: rgba(0, 0, 0, 0.05);
    color: #111;
}

body.light-mode .btn-primary::before {
    background: radial-gradient(80px circle at var(--x, 50%) var(--y, 50%), rgba(0, 0, 0, 0.15), transparent 40%);
}

body.light-mode .cmd-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .ghost-text {
    color: rgba(0, 0, 0, 0.25);
}

body.light-mode .ambient-orb {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 60%);
}

body.light-mode .ambient-orb.orb-2 {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.025) 0%, transparent 60%);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

body.light-mode .toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #000;
}

/* CRT Scanlines for Boot Terminal */
#boot-preloader::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

/* ── MOBILE RESPONSIVENESS FIXES ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .navbar {
        justify-content: space-between;
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero {
        padding: 0px 16px;
    }
}
