/* Modern styles inspired by Fellou, Dia, and Perplexity */

/* Enhanced Variables */
:root {
    --color-glow: rgba(219, 39, 119, 0.5); /* Dashr pink */
    --color-glow-secondary: rgba(147, 51, 234, 0.5); /* Dashr purple */
    --color-dashr-pink: #db2777;
    --color-dashr-purple: #9333ea;
    --easing-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hero Enhancements */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Increased to account for fixed nav height */
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    margin-bottom: 2.5rem;
    position: relative;
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--color-success);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title-main {
    display: block;
}

/* Removed .title-line styles to keep text inline */

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Enhanced Form */
.form-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form {
    position: relative;
}

.form-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--easing-smooth);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s var(--easing-smooth);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--easing-smooth);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-lg {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Browser Mockup */
.hero-visual {
    margin-top: 4rem;
}

.browser-mockup {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.6s var(--easing-smooth);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-url {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.browser-content {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Showcase */
.features-showcase {
    padding: 6rem 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.features-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: all 0.3s var(--easing-smooth);
    cursor: pointer;
}

.tab-button:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.tab-icon {
    font-size: 1.25rem;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: tab-fade-in 0.6s var(--easing-smooth);
}

.tab-pane.active {
    display: block;
}

@keyframes tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.showcase-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.showcase-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.showcase-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.code-example {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.code-example code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-accent);
}

.feature-checklist {
    list-style: none;
}

.feature-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.feature-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Interactive Demo */
.interactive-demo {
    padding: 6rem 0;
    background: var(--color-bg-elevated);
    position: relative;
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.demo-interface {
    max-width: 800px;
    margin: 0 auto;
}

.demo-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 1.125rem;
    transition: all 0.3s var(--easing-smooth);
}

.demo-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.demo-run {
    padding: 1rem 2rem;
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--easing-smooth);
}

.demo-output {
    background: #0a0a0f;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    min-height: 200px;
}

.demo-terminal {
    font-family: 'Courier New', monospace;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    color: var(--color-text-secondary);
}

.terminal-prompt {
    color: var(--color-success);
}

.typing-effect {
    position: relative;
}

.typing-effect::after {
    content: '|';
    position: absolute;
    right: -2px;
    animation: blink 1s step-end infinite;
}

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

/* Tech Features */
.tech-features {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-feature {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.tech-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-accent);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-feature h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.tech-feature p {
    color: var(--color-text-secondary);
}

/* Enhanced Code Demo */
.code-demo {
    background: #0f0f13;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* CTA Enhancement */
@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .cta-subtitle {
        font-size: 1.25rem;
    }
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Testimonials Enhancement */
.testimonials-slider {
    overflow: hidden;
    margin: 0 -2rem;
    padding: 0 2rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: slide-testimonials 30s linear infinite;
}

@keyframes slide-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex: 0 0 400px;
    padding: 2rem;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s var(--easing-smooth);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1) rotate(5deg);
}

/* Hi Melissa Block */
.hi-melissa {
    padding: 4rem 0;
    background: var(--color-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hi-melissa-content {
    position: relative;
    z-index: 1;
}

.hi-melissa-text {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    animation: fadeInUp 0.8s ease-out;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-visual {
        order: -1;
    }
    
    .tech-features {
        gap: 1.5rem;
    }
    
    .developer-content {
        grid-template-columns: 1fr;
    }
}