/* Base & Reset */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #8b5cf6;
    --glow-spread: rgba(139, 92, 246, 0.4);
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a { text-decoration: none; color: inherit; }

/* Utilities */
.gradient-text {
    background: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.success { color: #10b981; }
.greyed-out { color: #475569; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-primary.small { padding: 8px 16px; font-size: 0.9rem; }
.large { padding: 16px 36px; font-size: 1.1rem; }
.full-width { width: 100%; display: block; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links li a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links li a:hover { color: var(--text-main); }

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 24px 100px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glitch-bg {
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
}

/* Hero Terminal Mockup */
.hero-mockup {
    width: 100%;
    max-width: 700px;
    background: #111827;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.browser-dots {
    background: #1f2937;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--card-border);
}
.browser-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #4b5563;
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.mockup-screen {
    padding: 24px;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-main);
}
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections Common */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features Grid */
.features {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(139,92,246,0.1);
}

.feature-icon {
    color: var(--primary);
    width: 32px; height: 32px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Grid */
.pricing {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 450px));
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

@media(max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: rgba(30, 58, 138, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}
@media(max-width: 768px){ .pricing-card.popular{ transform: scale(1); } }

.popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tier {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
}
.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.features-list li i {
    width: 18px; height: 18px;
    color: #10b981;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 24px;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.icp {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
