/* ========== NovaNode-Watcher Global Styles ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
    --bg-primary: #05070a;
    --bg-secondary: #0a0e17;
    --bg-card: #0d1220;
    --bg-card-hover: #111827;
    --border: rgba(139, 92, 246, 0.15);
    --border-bright: rgba(139, 92, 246, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #8b5cf6;
    --accent-bright: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --cyan: #06b6d4;
    --emerald: #10b981;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #6366f1 25%, #06b6d4 50%, #8b5cf6 75%, #06b6d4 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: rgba(139, 92, 246, 0.15); top: -10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(6, 182, 212, 0.12); top: 40%; right: -10%; animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; background: rgba(99, 102, 241, 0.1); bottom: -5%; left: 30%; animation-delay: -14s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 40px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(5, 7, 10, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: all 0.3s;
}
.navbar.scrolled { background: rgba(5, 7, 10, 0.95); box-shadow: var(--shadow); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px; color: white;
}
.nav-logo-text { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.nav-logo-text span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px; 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-actions { display: flex; gap: 12px; align-items: center; }

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex;
    align-items: center; gap: 8px; border: none; font-family: inherit;
}
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-bright); background: rgba(139, 92, 246, 0.05); }
.btn-primary {
    background: var(--gradient-primary); color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-outline { background: transparent; color: var(--accent-bright); border: 2px solid var(--accent); }
.btn-outline:hover { background: rgba(139, 92, 246, 0.1); }

/* ========== HERO ========== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 120px 20px 80px;
    position: relative; z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    border-radius: 50px; background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2); font-size: 13px; color: var(--accent-bright);
    font-weight: 500; margin-bottom: 32px; animation: fadeUp 0.8s ease;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-size: clamp(48px, 8vw, 88px); font-weight: 900; line-height: 1.05;
    margin-bottom: 24px; animation: fadeUp 0.8s ease 0.1s both;
    max-width: 900px;
}
.hero h1 .gradient {
    background: var(--gradient-hero); background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 18px; color: var(--text-secondary); max-width: 600px;
    margin: 0 auto 40px; line-height: 1.7; animation: fadeUp 0.8s ease 0.2s both;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; animation: fadeUp 0.8s ease 0.3s both; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 48px; margin-top: 64px; animation: fadeUp 0.8s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-value {
    font-size: 36px; font-weight: 800;
    background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

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

/* ========== SECTIONS ========== */
section { position: relative; z-index: 1; padding: 100px 20px; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
    text-transform: uppercase; letter-spacing: 2px; color: var(--accent-bright);
    font-weight: 600; margin-bottom: 16px;
}
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.container { max-width: 1200px; margin: 0 auto; }

/* ========== FEATURES ========== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(13, 18, 32, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-glow); background: rgba(17, 24, 39, 0.8); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2);
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ========== DETECTION SHOWCASE ========== */
.detections-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; margin-top: 48px;
}
.detection-item {
    display: flex; align-items: center; gap: 14px; padding: 18px 22px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all 0.3s;
}
.detection-item:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.detection-icon { font-size: 20px; flex-shrink: 0; }
.detection-name { font-size: 14px; font-weight: 600; }

/* ========== PRICING ========== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; position: relative; transition: all 0.4s; overflow: hidden;
}
.pricing-card.featured {
    border-color: var(--accent); box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
}
.pricing-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }

.pricing-badge {
    position: absolute; top: 16px; right: 16px; padding: 4px 12px;
    background: var(--gradient-primary); border-radius: 50px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.pricing-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-price { margin-bottom: 28px; }
.pricing-price .amount { font-size: 48px; font-weight: 900; }
.pricing-price .amount .currency { font-size: 24px; vertical-align: top; margin-right: 2px; }
.pricing-price .period { color: var(--text-muted); font-size: 14px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    font-size: 14px; color: var(--text-secondary);
}
.pricing-features li .check { color: var(--emerald); font-size: 16px; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ========== PANEL PREVIEW ========== */
.panel-preview {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
}
.panel-bar {
    display: flex; align-items: center; gap: 8px; padding: 14px 20px;
    background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border);
}
.panel-dot { width: 12px; height: 12px; border-radius: 50%; }
.panel-dot.red { background: #f43f5e; } .panel-dot.yellow { background: #f59e0b; } .panel-dot.green { background: #10b981; }
.panel-content { padding: 32px; }

.panel-demo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.panel-stat-card {
    background: rgba(139,92,246,0.05); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.panel-stat-card .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.panel-stat-card .value { font-size: 28px; font-weight: 800; margin-top: 8px; }
.panel-stat-card .value.purple { color: var(--accent-bright); }
.panel-stat-card .value.cyan { color: var(--cyan); }
.panel-stat-card .value.emerald { color: var(--emerald); }
.panel-stat-card .value.rose { color: var(--rose); }

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; transition: all 0.3s;
}
.testimonial-card:hover { border-color: var(--border-bright); }
.testimonial-stars { color: var(--amber); font-size: 16px; margin-bottom: 16px; }
.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gradient-primary); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 16px;
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ========== CTA ========== */
.cta-section {
    text-align: center; padding: 100px 20px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05), transparent);
}
.cta-section h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; }

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border); padding: 60px 20px 30px;
    position: relative; z-index: 1;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; max-width: 1200px; margin: 0 auto 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; line-height: 1.7; max-width: 300px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom {
    text-align: center; padding-top: 30px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px; max-width: 1200px; margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-links { display: none; }
    .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .panel-demo { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== AUTH MODAL ========== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px; width: 420px; max-width: 90vw; position: relative;
}
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.modal-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    color: var(--text-muted); font-size: 24px; cursor: pointer;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
    width: 100%; padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-primary); font-size: 14px; font-family: inherit;
    transition: border-color 0.3s; outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.form-error { color: var(--rose); font-size: 12px; margin-top: 4px; display: none; }
.form-toggle { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.form-toggle a { color: var(--accent-bright); cursor: pointer; text-decoration: none; }
