:root {
    color-scheme: dark;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #000000;
    color: var(--text-muted);
    font-family: 'Inter', 'Inter var', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #f9fafb;
    margin: 0;
}

p {
    margin: 0;
    line-height: 1.7;
}

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

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
}

.btn::after {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-blue), var(--accent-purple));
    color: #050505;
    box-shadow: 0 25px 65px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #f1f5f9;
    background: rgba(148, 163, 184, 0.05);
}

.magnetic {
    will-change: transform;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.terminal-window {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.35);
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(22px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    min-height: 180px;
    white-space: pre-wrap;
}

.prop-map {
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08), transparent 60%),
                radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.1), transparent 65%),
                rgba(15, 15, 20, 0.8);
    box-shadow: inset 0 0 120px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(18px);
}

.prop-line {
    stroke: url(#gradient-line);
    stroke-width: 2.5;
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    transition: stroke-dashoffset 1.6s ease;
}

.prop-line.alt {
    stroke: url(#gradient-line-alt);
}

#propagation-map.active .prop-line {
    stroke-dashoffset: 0;
}

.prop-node {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
}

.blur-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.trace-line {
    stroke: url(#trace-gradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: draw-line 1.4s ease forwards;
}

.trace-node {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    opacity: 0;
    animation: pop-node 0.8s ease forwards;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pop-node {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pricing-toggle-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pricing-toggle-btn.active {
    background: linear-gradient(120deg, var(--accent-blue), var(--accent-purple));
    color: #050505;
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.35);
    border-color: transparent;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent-blue);
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
    }

    a::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
