/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-light: #34d399;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f8fafc;
    --white: #ffffff;
    --purple: #8b5cf6;
    --indigo: #6366f1;
    --teal: #14b8a6;
    --gradient-start: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-beta: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
    --gradient-features: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header and Navigation */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-start);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-start);
    transition: var(--transition);
}

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

.nav-links a.cta-button {
    color: var(--white);
    background: var(--gradient-start);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
}

.nav-links a.cta-button:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--gradient-start);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-start);
    z-index: -1;
    transition: var(--transition);
    opacity: 0.8;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button.large {
    padding: 18px 42px;
    font-size: 18px;
    box-shadow: var(--shadow-xl);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.2px;
    background: linear-gradient(to right, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-glow 3s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 0 0 30px rgba(129, 140, 248, 0.6);
    }
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 64px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(to right, var(--secondary-light), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 120px 0 80px;
    background: var(--gradient-features);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
    transform: rotate(30deg);
}

.features h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 80px;
    color: var(--dark);
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 48px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-start);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
    transition: var(--transition);
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    position: relative;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 30%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
    z-index: 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 80px;
    color: var(--dark);
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.how-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    transition: var(--transition);
}

.how-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 255, 0.8) 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.how-step:hover {
    transform: translateY(-8px);
}

.how-step:hover::before {
    opacity: 1;
    box-shadow: var(--shadow-xl);
}

.step-number {
    display: inline-block;
    width: 70px;
    height: 70px;
    background: var(--gradient-start);
    color: var(--white);
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
    line-height: 70px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.how-step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
}

.how-step h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.how-step p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.differentiators {
    background: var(--gradient-start);
    padding: 80px 48px;
    border-radius: 24px;
    margin-top: 60px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.differentiators::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: rotate 25s linear infinite;
}

.differentiators h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 2;
}

.differentiator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.differentiator-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 32px;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
}

.differentiator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 249, 255, 0.6));
    border-radius: 18px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.differentiator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.differentiator-card:hover::before {
    opacity: 1;
}

.diff-icon {
    font-size: 42px;
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
}

.differentiator-card:hover .diff-icon {
    transform: scale(1.1) rotate(5deg);
}

.differentiator-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.3;
    position: relative;
}

.differentiator-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Beta Signup Section */
.beta-signup {
    padding: 140px 0 100px;
    background: var(--gradient-beta);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.beta-signup::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: rotate 30s linear infinite;
}

.beta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.beta-signup h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.beta-signup p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.beta-form {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.beta-form input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.beta-form input[type="email"]:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 5px 20px rgba(0, 0, 0, 0.2);
    background: var(--white);
}

.beta-form button {
    white-space: nowrap;
    background: var(--dark);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.beta-form button:hover {
    background: var(--dark-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
}

.form-message {
    margin-top: 20px;
    font-weight: 600;
    min-height: 24px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.form-message.success {
    color: var(--secondary-light);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.form-message.error {
    color: #fca5a5;
    text-shadow: 0 0 10px rgba(252, 165, 165, 0.3);
}

.privacy-note {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

footer p {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Animations for elements when they come into view */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for feature cards */
.feature-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.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; }

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


/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 42px;
    }

    .features h2,
    .how-it-works h2,
    .beta-signup h2 {
        font-size: 36px;
        margin-bottom: 60px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 24px;
    }

    .nav-links a:not(.cta-button) {
        display: none;
    }

    .beta-form {
        flex-direction: column;
    }

    .beta-form button {
        align-self: center;
    }

    .differentiators {
        padding: 60px 24px;
    }

    .differentiator-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .differentiators h3 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .hero {
        padding: 200px 0 100px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 160px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .features,
    .how-it-works,
    .beta-signup {
        padding: 80px 0;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }
    
    .feature-card,
    .how-step {
        padding: 32px 24px;
    }
    
    .cta-button.large {
        padding: 16px 32px;
        font-size: 16px;
    }
}