/* --- STAGZON BRAND VARIABLES --- */
:root {
    /* Pure Black Background for maximum contrast */
    --c-bg: #000000; 
    --c-surface: #0a0a0a;
    --c-border: #1a1a1a;
    
    /* Exact Requested Brand Colors */
    --c-navy: #213f9a;
    --c-orange: #f5951e;
    
    --c-text-main: #ffffff;
    --c-text-muted: #888888;
    --c-success: #10b981;
    
    /* Fonts */
    --f-head: 'Space Grotesk', sans-serif;
    --f-body: 'Inter', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { background-color: var(--c-bg); color: var(--c-text-main); font-family: var(--f-body); line-height: 1.6; overflow-x: hidden; }

/* --- UTILITIES --- */
.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.text-center { text-align: center; }
.text-orange { color: var(--c-orange); }
.text-navy { color: var(--c-navy); }
.text-white { color: #ffffff; }
.text-muted { color: var(--c-text-muted); }
.text-success { color: var(--c-success); }
.font-mono { font-family: var(--f-mono); }
.bg-surface { background-color: var(--c-surface); }
.bg-black { background-color: #000; }
.bg-glass { background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(10px); }
.border-y { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.border-t { border-top: 1px solid var(--c-border); }
.border-b { border-bottom: 1px solid var(--c-border); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.max-w { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-spacing { padding: 8rem 0; }

h1, h2, h3, h4, .logo { font-family: var(--f-head); }
.mono-label { font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 1px; display: block; margin-bottom: 1rem; text-transform: uppercase; }

/* --- AMBIENT GLOWS --- */
.ambient-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(150px); z-index: -1; opacity: 0.15; pointer-events: none; }
.glow-navy { top: -10%; left: -10%; background: var(--c-navy); }
.glow-orange { top: 40%; right: -10%; background: var(--c-orange); opacity: 0.1; }

/* --- BUTTONS --- */
.btn-primary { display: inline-block; background: var(--c-orange); color: #000; padding: 0.8rem 1.8rem; border-radius: 4px; font-family: var(--f-mono); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; text-decoration: none; transition: 0.3s; border: none; }
.btn-primary:hover { background: #ffaa33; box-shadow: 0 0 25px rgba(245, 149, 30, 0.4); transform: translateY(-2px); }

.btn-outline { display: inline-block; background: transparent; color: var(--c-text-main); padding: 0.8rem 1.8rem; border-radius: 4px; border: 1px solid var(--c-border); font-family: var(--f-mono); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; text-decoration: none; transition: 0.3s; }
.btn-outline:hover { border-color: var(--c-text-main); background: rgba(255,255,255,0.05); }

/* --- NAVBAR --- */
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--c-border); padding: 1.25rem 0; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--c-text-main); text-decoration: none; letter-spacing: 2px; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--c-text-muted); text-decoration: none; font-size: 0.9rem; font-family: var(--f-mono); transition: 0.3s; }
.nav-links a:hover { color: var(--c-text-main); }

/* --- HERO --- */
.hero { padding: 14rem 0 8rem 0; position: relative; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--c-border); border-radius: 100px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--c-text-muted); margin-bottom: 2rem; background: var(--c-surface); }
.live-dot { width: 8px; height: 8px; background: var(--c-success); border-radius: 50%; box-shadow: 0 0 10px var(--c-success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 1.5rem; color: rgba(255,255,255,0.9); }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--c-text-muted); max-width: 750px; margin: 0 auto 3rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* --- MARQUEE --- */
.marquee-section { padding: 1.5rem 0; overflow: hidden; background: var(--c-surface); }
.marquee-track { display: flex; width: max-content; }
.marquee-content { display: flex; gap: 3rem; align-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 1.1rem; white-space: nowrap; animation: scrollLeft 35s linear infinite; }
.divider { color: var(--c-border); font-weight: 300; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- STATS SECTION --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 3rem; }
.stat-box { text-align: center; }
.border-l { border-left: 1px solid var(--c-border); }
.stat-box h3 { font-size: 3rem; margin-bottom: 0.5rem; }
.stat-box p { color: var(--c-text-muted); font-family: var(--f-mono); font-size: 0.9rem; }

/* --- 6-GRID AI CAPABILITIES --- */
.section-header { margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; color: rgba(255,255,255,0.9); }
.section-header p { font-size: 1.15rem; color: var(--c-text-muted); }

/* Auto-fit Grid ensures 6 boxes stack perfectly on all devices */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.bento-card { background: var(--c-bg); border: 1px solid var(--c-border); padding: 3rem; border-radius: 16px; transition: all 0.3s ease; }
.bento-card:hover { transform: translateY(-5px); background: #111; }

.border-top-orange { border-top: 3px solid var(--c-orange); }
.border-top-navy { border-top: 3px solid var(--c-navy); }

.icon-box { width: 60px; height: 60px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--c-border); }
.bg-orange-dim { background: rgba(245, 149, 30, 0.05); }
.bg-navy-dim { background: rgba(33, 63, 154, 0.05); }

.bento-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.bento-card p { color: var(--c-text-muted); font-size: 0.95rem; }

/* --- INFRASTRUCTURE (DEEP DIVE) --- */
.infra-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.infra-text h2 { font-size: 3rem; margin-bottom: 1rem; }
.infra-text p { font-size: 1.1rem; color: var(--c-text-muted); }
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 1rem; color: var(--c-text-main); display: flex; align-items: flex-start; gap: 12px; }

.border-navy-subtle { border: 1px solid rgba(33, 63, 154, 0.3); border-radius: 12px; }
.terminal-mockup { overflow: hidden; border-radius: 12px; }
.mac-header { background: #111; padding: 12px 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--c-border); }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: var(--c-success); }
.mac-body { padding: 2rem; font-size: 0.9rem; background: #000; }
.mac-body p { margin-bottom: 0.5rem; }

/* --- AUTOMATION GRID (4-Grid) --- */
.automation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.auto-item { padding: 3rem 2rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 12px; transition: 0.3s; }
.auto-item:hover { background: #111; transform: translateY(-5px); }
.auto-item h4 { font-size: 1.3rem; margin-bottom: 1rem; }
.auto-item p { color: var(--c-text-muted); font-size: 0.95rem; }

/* --- CREATIVE BANNER --- */
.large-banner { background: var(--c-surface); border: 1px solid var(--c-border); padding: 6rem 4rem; border-radius: 24px; text-align: center; border-top: 3px solid var(--c-navy); }
.large-banner h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.large-banner p { color: var(--c-text-muted); font-size: 1.15rem; }
.tech-icons { display: flex; justify-content: center; gap: 2rem; }

/* --- TERMINAL CTA --- */
.terminal-wrapper { max-width: 800px; margin: 0 auto; }
.terminal-window { background: #000; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); overflow: hidden; margin-top: 3rem; }
.terminal-header { background: #111; padding: 12px 20px; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; position: relative; }
.term-title { font-family: var(--f-mono); font-size: 0.85rem; color: var(--c-text-muted); }
.mac-dot { position: absolute; } .mac-dot:nth-child(1) { left: 20px; } .mac-dot:nth-child(2) { left: 40px; } .mac-dot:nth-child(3) { left: 60px; }

.terminal-body { padding: 3rem; font-size: 1rem; line-height: 1.7; }
.term-user { color: var(--c-orange); }
.term-output { color: var(--c-text-muted); }
.term-link { color: var(--c-success); text-decoration: underline; text-underline-offset: 4px; }
.term-link:hover { color: #34d399; }
.cursor { display: inline-block; width: 10px; height: 18px; background: var(--c-success); margin-top: 10px; vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- FOOTER --- */
.footer { padding: 4rem 0; color: var(--c-text-muted); font-size: 0.9rem; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; }
    .border-l { border-left: none; }
    .infra-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; text-align: center; }
    .terminal-body { padding: 1.5rem; font-size: 0.85rem; }
    .large-banner { padding: 3rem 1.5rem; }
}

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }