:root {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border: rgba(34, 197, 94, 0.2);
    --border-hover: rgba(34, 197, 94, 0.5);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.4);
    
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAVIGATION */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(3,7,18,0.9) 0%, rgba(3,7,18,0) 100%);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-bracket { color: var(--text-muted); }
.logo-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent);
}

.btn-full { width: 100%; }

.nav-cta {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.05);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.glitch {
    position: relative;
    color: var(--accent);
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* STATS */
#stats { padding: 4rem 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat-card { text-align: center; }
.stat-icon { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 1rem; }
.stat-card h3 { font-family: var(--font-mono); font-size: 1.1rem; margin-bottom: 0.5rem; }
.stat-card p { color: var(--text-muted); font-size: 0.9rem; }

/* SERVICES */
#services { padding: 8rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-family: var(--font-mono); margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.pricing-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.tier-name { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; }
.price { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.tier-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.features { list-style: none; margin-bottom: 2.5rem; }
.features li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; font-size: 0.9rem; }
.features li::before { content: '>'; color: var(--accent); font-family: var(--font-mono); font-weight: bold; }
.featured { border-color: var(--accent); box-shadow: 0 0 30px rgba(34, 197, 94, 0.1); }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--bg-dark); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 20px; }

/* CONTACT */
#contact { padding: 6rem 0; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details p { font-family: var(--font-mono); margin-bottom: 0.5rem; }

.contact-form { background: var(--bg-card); padding: 2.5rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.form-group input { width: 100%; padding: 0.8rem 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; color: white; font-family: var(--font-sans); }
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }

footer { padding: 2rem 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .pricing-grid, .contact-container { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
}
