@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

body {
    background-color: #050505;
}

/* Custom Selection Color */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Grid Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Vignette */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050505 100%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero animated grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

@keyframes grid-flow {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Hero entrance animations */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-mockup {
    opacity: 0;
    animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Float animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Feature cards - initial state for GSAP */
.feature-card {
    opacity: 0;
    transform: translateY(40px);
}

/* Editor section - initial state for GSAP */
.editor-text {
    opacity: 0;
    transform: translateX(-40px);
}

.editor-mockup {
    opacity: 0;
    transform: translateX(40px);
}

/* Flow animation - initial state for GSAP */
.flow-node,
.flow-arrow,
.flow-lines {
    opacity: 0;
}
.flow-left { transform: translateY(-30px); }
.flow-center { transform: scale(0.7); }
.flow-right { transform: translateY(30px); }

@media (min-width: 768px) {
    .flow-left { transform: translateX(-40px); }
    .flow-right { transform: translateX(40px); }
}
.flow-arrow-left { transform: scaleX(0); transform-origin: left center; }
.flow-arrow-right { transform: scaleX(0); transform-origin: left center; }

/* stroke-dasharray/offset set dynamically by JS based on actual path length */