/* Zeus Marketing — Design Tokens (Mission Control palette) */
:root {
    --bg: #030306;
    --bg2: #060609;
    --bg3: #0a0a0f;
    --surface: rgba(255,255,255,0.022);
    --surface2: rgba(255,255,255,0.04);
    --surface3: rgba(255,255,255,0.06);
    --border: rgba(255,60,20,0.07);
    --border2: rgba(255,60,20,0.14);
    --border3: rgba(255,60,20,0.25);
    --accent: #ff3c14;
    --accent-dim: rgba(255,60,20,0.55);
    --accent-glow: rgba(255,60,20,0.1);
    --accent-soft: rgba(255,60,20,0.05);
    --text: rgba(255,248,244,0.92);
    --text-dim: rgba(255,248,244,0.48);
    --text-muted: rgba(255,248,244,0.2);
    --green: #22c55e;
    --green-dim: rgba(34,197,94,0.12);
    --green-border: rgba(34,197,94,0.2);
    --yellow: #eab308;
    --red: #ef4444;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --font: 'Rajdhani', sans-serif;
    --display: 'Orbitron', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(255,60,20,0.3); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,60,20,0.1); border-radius: 3px; }
a { text-decoration: none; }
a:hover { opacity: 0.85; }

/* Animations */
@keyframes mcPulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes scanline { 0% { top: -2px; } 100% { top: 100%; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes gridPulse { 0%,100% { opacity: 0.15; } 50% { opacity: 0.3; } }
@keyframes ringExpand { 0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.6; } 100% { transform: translate(-50%,-50%) scale(1.4); opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Utility classes */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.label { font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: 3px; color: var(--accent-dim); text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.dot { border-radius: 50%; flex-shrink: 0; }
.dot-pulse { animation: mcPulse 2s ease infinite; }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE GRID CLASSES ─── */
.r-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.r-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.r-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.r-agents-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.r-arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.r-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.r-telem-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.r-platforms-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.r-blog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.r-nav-links { display: flex; gap: 24px; align-items: center; }
.r-nav-burger { display: none; cursor: pointer; padding: 8px; }
.r-nav-mobile { display: none; }
.r-hero-orb { display: flex; align-items: center; justify-content: center; position: relative; }
.r-hero-stats { display: flex; gap: 24px; margin-top: 40px; }
.r-stat-col { display: flex; flex-direction: column; gap: 12px; }
.r-hero-ctas { display: flex; gap: 12px; }
.r-blog-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; }
.r-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.r-footer-links { display: flex; gap: 24px; }

/* ─── TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
    .r-container { padding: 0 24px; }
    .r-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .r-hero-orb { order: -1; margin-bottom: 20px; }
    .r-features-grid { grid-template-columns: repeat(2,1fr); }
    .r-agents-grid { grid-template-columns: repeat(2,1fr); }
    .r-arch-grid { grid-template-columns: 1fr; }
    .r-code-grid { grid-template-columns: 1fr; }
    .r-telem-grid { grid-template-columns: 1fr; }
    .r-blog-grid { grid-template-columns: 1fr 1fr; }
    .r-stat-col { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .r-stat-col > div { flex: 1; min-width: 140px; }
    .r-hero-ctas { justify-content: center; }
}

/* ─── MOBILE (≤768px) ─── */
@media (max-width: 768px) {
    .r-container { padding: 0 16px; }
    .r-nav-links { display: none; }
    .r-nav-burger { display: block; }
    .r-nav-mobile.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(3,3,6,0.97);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 16px;
        z-index: 99;
        border-bottom: 1px solid var(--border);
    }
    .r-nav-mobile.open a { font-size: 15px; padding: 10px 0; }
    .r-features-grid { grid-template-columns: 1fr; }
    .r-agents-grid { grid-template-columns: 1fr; }
    .r-blog-grid { grid-template-columns: 1fr; }
    .r-hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .r-platforms-row > div { width: calc(50% - 8px) !important; }
    .r-hero-orb { max-width: 100%; overflow: visible; height: 360px; }
    .r-hero-orb canvas { width: 320px !important; height: 320px !important; }
    .r-hero-orb #hero-orb-container { width: 320px !important; height: 320px !important; }
    .r-hero-orb > div[style*="400px"] { width: 280px !important; height: 280px !important; }
    .r-blog-header { flex-direction: column; align-items: start !important; gap: 12px; }
    .r-hero-ctas { flex-direction: column; gap: 10px; }
    .r-hero-ctas a { text-align: center; }
    .r-footer { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .r-footer-links { justify-content: center; }
}

/* ─── SMALL MOBILE (≤480px) ─── */
@media (max-width: 480px) {
    .r-container { padding: 0 12px; }
    .r-platforms-row > div { width: 100% !important; }
    .r-hero-stats > div { min-width: 60px; }
    .r-hero-orb { height: 280px; }
    .r-hero-orb canvas { width: 240px !important; height: 240px !important; }
    .r-hero-orb #hero-orb-container { width: 240px !important; height: 240px !important; }
    .r-hero-orb > div[style*="400px"] { width: 220px !important; height: 220px !important; }
    section { padding: 80px 0 !important; }
}

/* ═══ BLOG CONTENT ═══ */
.blog-content h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
    margin: 36px 0 16px;
}
.blog-content p {
    margin-bottom: 18px;
}
.blog-content code {
    font-family: var(--mono);
    font-size: 13px;
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}
.blog-content a { color: var(--accent); border-bottom: 1px solid var(--border2); }

/* ═══ CMS STYLES ═══ */
.cms-sidebar {
    width: 230px;
    background: #050509;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: auto;
    transition: transform 0.3s ease;
}
.cms-sidebar-toggle { display: none; cursor: pointer; padding: 8px; }
.cms-post-sidebar {
    width: 280px;
    background: #050509;
    border-left: 1px solid var(--border);
    overflow: auto;
    padding: 20px;
    flex-shrink: 0;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--border3) !important;
    box-shadow: 0 0 0 1px var(--accent-glow);
}

@media (max-width: 1024px) {
    .cms-post-sidebar { width: 240px; }
}
@media (max-width: 768px) {
    .cms-sidebar {
        position: fixed;
        top: 48px;
        left: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
    }
    .cms-sidebar.open { transform: translateX(0); }
    .cms-sidebar-toggle { display: block; }
    .cms-post-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}
