/* Neon Velocity Design System for Chat to Blog */
/* Fonts: Bebas Neue for headings, JetBrains Mono for body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&amp;family=Poppins:wght@400;500;600;700&amp;display=swap');

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

/* Root Variables - Dark Mode Default with Neon Velocity */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --accent: #06B6D4;
    --purple: #8B5CF6;
    --cyan: #0EA5E9;
    --secondary: #94A3B8;
    --background: #0F172A;
    --foreground: #F1F5F9;
    --muted: #1E293B;
    --muted-foreground: #64748B;
    --border: rgba(79,70,229,0.2);
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --card: rgba(30,41,59,0.7);
    --card-hover: rgba(79,70,229,0.1);
    --shadow-primary: 0 0 20px rgba(79,70,229,0.3), 0 0 40px rgba(79,70,229,0.15), 0 0 60px rgba(79,70,229,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.5);
}

[data-theme="light"] {
    --background: #FFFFFF;
    --foreground: #0F172A;
    --secondary: #475569;
    --muted: #F1F5F9;
    --muted-foreground: #64748B;
    --border: rgba(79,70,229,0.15);
    --glass-bg: rgba(0,0,0,0.04);
    --glass-border: rgba(0,0,0,0.08);
    --card: rgba(255,255,255,0.9);
    --card-hover: rgba(79,70,229,0.08);
    --shadow-primary: 0 0 15px rgba(79,70,229,0.25), 0 0 30px rgba(79,70,229,0.1);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
}

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

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
    box-shadow: var(--shadow-primary);
}

.skip-to-content:focus {
    top: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes neonPulse {
    0%, 100% {
        box-shadow: var(--shadow-primary);
    }
    50% {
        box-shadow: 0 0 30px rgba(79,70,229,0.6), 0 0 60px rgba(79,70,229,0.4), 0 0 90px rgba(79,70,229,0.2);
    }
}

@keyframes glitch {
    0% { transform: translate(0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(0); }
    100% { transform: translate(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-20px) rotate(-1deg); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--foreground); }
}

@keyframes matrixRain {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Navigation - Glassmorphism */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--foreground);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section - Neon Glow CTA, Animated Typing Demo */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79,70,229,0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139,92,246,0.2) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(14,165,233,0.15) 0%, transparent 40%),
        var(--background);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: #000;
    box-shadow: var(--shadow-neon);
    animation: neonPulse 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(57,255,20,0.6), 0 0 60px rgba(57,255,20,0.4);
    filter: brightness(1.1);
}

.btn-primary .glitch-text {
    position: relative;
}

.btn-primary:hover .glitch-text {
    animation: glitch 0.3s;
}

.btn-secondary {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(57,255,20,0.1);
    box-shadow: var(--shadow-neon);
}

/* Typing Demo */
.typing-demo {
    margin: 3rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.typing-container {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.typing-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    border-right: 2px solid var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
    color: var(--foreground);
}

.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-message {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.5s ease-out;
}

/* Section Styles */
section {
    padding: 8rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--foreground);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 2px;
}

.section-header p {
    color: var(--secondary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }

.feature-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: var(--shadow-neon), var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 4rem;
    background: linear-gradient(45deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

/* How it Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    background: linear-gradient(var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 1rem;
}

/* Problem Solution */
.problem-solution {
    background: linear-gradient(135deg, var(--muted) 0%, var(--background) 100%);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pain-point {
    list-style: none;
}

.pain-point li {
    background: var(--glass-bg);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--purple);
    position: relative;
}

.pain-point li::before {
    content: '✗';
    position: absolute;
    left: 1rem;
    color: var(--purple);
    font-size: 1.5rem;
}

/* For Bloggers Mockups */
.mockups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mockup-img {
    width: 100%;
    height: 300px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mockup-img:hover {
    box-shadow: var(--shadow-neon);
    transform: scale(1.05);
}

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

.price-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: scale(1.05);
}

.price-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--primary);
}

/* Waitlist Form */
.waitlist-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #000;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    position: relative;
}

.waitlist-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#waitlist-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#waitlist-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
}

#waitlist-form button {
    background: #000;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

#waitlist-form button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.social-proof {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 3rem auto 0;
}

.quote {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: var(--muted);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--secondary);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Particles Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(18,18,18,0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 1.5rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .problem-solution .solution-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    section {
        padding: 5rem 1.5rem;
    }

    #waitlist-form {
        flex-direction: column;
        align-items: center;
    }

    #waitlist-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2.5rem;
    }

    .typing-demo {
        padding: 1.5rem;
    }
}

/* Print */
@media print {
    nav, footer { display: none; }
}