/* ═══════════════════════════════════════════════════════════════════════════════
   VOLTOPS — 2277 Design System · Marketing Site
   ═══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg:           #03030a;
    --bg-2:         #07071a;
    --surface:      rgba(255,255,255,0.03);
    --surface-2:    rgba(255,255,255,0.06);
    --surface-3:    rgba(255,255,255,0.09);
    --border:       rgba(255,255,255,0.06);
    --border-glow:  rgba(0,212,255,0.15);
    --text:         #e8eaed;
    --text-dim:     rgba(255,255,255,0.5);
    --text-muted:   rgba(255,255,255,0.3);
    --cyan:         #00d4ff;
    --cyan-dim:     rgba(0,212,255,0.1);
    --violet:       #a855f7;
    --violet-dim:   rgba(168,85,247,0.1);
    --green:        #22c55e;
    --amber:        #f59e0b;
    --red:          #ef4444;
    --font-display: 'Orbitron', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(0,212,255,0.25); color: #fff; }

/* ── Power-On Overlay ─────────────────────────────────────────────────────── */
#power-on {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease;
}
#power-on .po-mark {
    opacity: 0; transform: scale(0.8);
    transition: all 0.5s var(--ease);
    filter: drop-shadow(0 0 40px rgba(0,212,255,0.5)) drop-shadow(0 0 80px rgba(168,85,247,0.3));
}
#power-on.powering .po-mark { opacity: 1; transform: scale(1); }
#power-on.powered { opacity: 0; pointer-events: none; }

/* ── Constellation Canvas ─────────────────────────────────────────────────── */
#constellation {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: 0.6;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.vo-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 40px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}
.vo-nav.scrolled {
    background: rgba(3,3,10,0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    padding: 12px 40px;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    color: var(--cyan); letter-spacing: 2px;
}
.nav-brand .mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; color: #000;
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
    position: relative;
    animation: mark-glow 3s ease-in-out infinite;
}
@keyframes mark-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.3); }
    50% { box-shadow: 0 0 30px rgba(0,212,255,0.5), 0 0 60px rgba(168,85,247,0.2); }
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
    font-size: 13px; font-weight: 500; color: var(--text-dim);
    text-decoration: none; letter-spacing: 0.5px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    font-size: 12px; font-weight: 500; color: var(--cyan);
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse-glow 2s ease-in-out infinite; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--violet) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero h1 .accent { -webkit-text-fill-color: var(--cyan); }
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dim);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 48px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    cursor: pointer; border: none;
    transition: all 0.25s var(--ease);
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { text-decoration: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #0096b3);
    color: #000; font-weight: 700;
    box-shadow: 0 4px 24px rgba(0,212,255,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0,212,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--surface-3);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 16px; border-radius: 14px; }

/* ── Section Layout ───────────────────────────────────────────────────────── */
.section {
    position: relative; z-index: 1;
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-label {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px; color: var(--text-dim);
    max-width: 560px; line-height: 1.7;
    margin-bottom: 56px;
}

/* ── Glass Cards ──────────────────────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}
.glass::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.03), transparent 60%);
    pointer-events: none;
}
.glass:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,212,255,0.1);
}

/* Holographic shimmer */
.glass-holo::after {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0,212,255,0.04), transparent, rgba(168,85,247,0.04), transparent);
    animation: holo-spin 8s linear infinite;
    pointer-events: none;
}

/* ── Feature Grid ─────────────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 36px 28px;
}
.feature-card .icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease);
}
.feature-card:hover .icon {
    background: rgba(0,212,255,0.15);
    box-shadow: 0 0 24px rgba(0,212,255,0.2);
    transform: scale(1.1);
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.feature-card p {
    font-size: 13px; color: var(--text-dim);
    line-height: 1.7;
}

/* ── Workflow Demo ────────────────────────────────────────────────────────── */
#workflow-demo {
    position: relative;
    padding: 60px 40px;
    min-height: 380px;
}
.workflow-svg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.wf-line { stroke-dasharray: 8 4; animation: dash 20s linear infinite; }
.wf-nodes {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; gap: 20px;
    justify-content: center; align-items: center;
}
.wf-node {
    width: 100px; height: 100px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-size: 28px;
    position: relative;
}
.wf-node span { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.wf-node:hover {
    border-color: var(--cyan);
    background: var(--cyan-dim);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
}
.wf-node.wf-selected {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.05);
    animation: node-pulse 1s ease-in-out infinite;
}
.wf-node.wf-connected { border-color: var(--green); }
.wf-pulse {
    position: absolute; inset: -4px;
    border-radius: 24px;
    border: 2px solid var(--cyan);
    animation: ripple 0.8s ease-out forwards;
}
.wf-counter {
    text-align: center; margin-top: 20px;
    font-family: var(--font-display);
    font-size: 14px; color: var(--cyan);
    opacity: 0; transition: opacity 0.3s;
}
.wf-counter.visible { opacity: 1; }
.wf-hint {
    text-align: center; margin-top: 12px;
    font-size: 12px; color: var(--text-muted);
}

/* ── Stats Row ────────────────────────────────────────────────────────────── */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin: 80px 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(0,212,255,0.3);
}
.stat-label {
    font-size: 13px; color: var(--text-muted);
    letter-spacing: 1px; text-transform: uppercase;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; align-items: start;
}
.price-card { padding: 40px 32px; text-align: center; }
.price-card.featured {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan), 0 20px 60px rgba(0,212,255,0.15);
}
.price-card .tier {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.price-card.featured .tier { color: var(--cyan); }
.price-amount {
    font-family: var(--font-display);
    font-size: 48px; font-weight: 900;
    margin-bottom: 4px;
}
.price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.price-features {
    list-style: none; text-align: left;
    margin-bottom: 32px;
}
.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px; color: var(--text-dim);
    display: flex; align-items: center; gap: 10px;
}
.price-features li::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--cyan); flex-shrink: 0;
}

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
    text-align: center; padding: 120px 24px;
    position: relative; z-index: 1;
}
.cta-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.08), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.vo-footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 60px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 800;
    color: var(--cyan); margin-bottom: 12px;
}
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 13px;
    color: var(--text-muted); padding: 4px 0;
}
.footer-col a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom {
    display: flex; justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-muted);
}

/* ── Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-left.revealed { transform: translateX(0); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-right.revealed { transform: translateX(0); }
.reveal.scale-in { transform: scale(0.9); }
.reveal.scale-in.revealed { transform: scale(1); }

/* ── Typewriter ───────────────────────────────────────────────────────────── */
.typewriter { visibility: hidden; }
.typewriter.typed::after {
    content: '|'; animation: blink 0.8s step-end infinite; color: var(--cyan);
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}
@keyframes holo-spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -100; } }
@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.2); }
    50% { box-shadow: 0 0 40px rgba(0,212,255,0.4); }
}
@keyframes ripple {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.4); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes grid-move {
    0% { transform: translate(0,0); }
    100% { transform: translate(40px,40px); }
}

/* ── Grid Background ──────────────────────────────────────────────────────── */
.grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-move 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.section-divider {
    height: 1px; border: none; margin: 0;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; inset: 0; top: 60px;
        background: rgba(3,3,10,0.95);
        backdrop-filter: blur(20px);
        padding: 40px; gap: 24px;
        z-index: 99;
    }
    .nav-toggle { display: block; }
    .hero { padding: 100px 20px 60px; }
    .section { padding: 80px 20px; }
    .vo-nav { padding: 12px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}
