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

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --border: #475569;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --error: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo h2,
.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.96);
    z-index: -1;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-logo-large {
    margin-bottom: 2rem;
}

.hero-logo-image-large {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-section {
    max-width: 500px;
    width: 100%;
}

.cta-section-centered {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email-form,
.email-form-extended {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    justify-content: center;
    align-items: center;
}

.email-form-extended {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.form-row {
    width: 100%;
}

.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

.email-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.cta-button {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cta-button:not(.disabled) {
    animation: ctaPulse 2s ease-in-out infinite;
    box-shadow: var(--glow);
}

.cta-button:not(.disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: ctaShine 3s ease-in-out infinite;
}

.cta-button:hover:not(.disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    animation: ctaPulse 1s ease-in-out infinite;
}

.cta-button.disabled {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
    border: 1px solid var(--border);
}

.cta-button.disabled::before {
    display: none;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: var(--glow);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    }
}

@keyframes ctaShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.form-status {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

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

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.arrow-down {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scroll-move 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll-move {
    0% {
        transform: rotate(45deg) translateY(-5px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateY(10px);
        opacity: 0;
    }
}

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

/* Problem Solution Section */
.problem-solution {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.problem-title, .solution-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.problem-title {
    color: var(--error);
}

.solution-title {
    color: var(--primary);
}

.problem-list, .solution-list {
    list-style: none;
    space-y: 1rem;
}

.problem-list li, .solution-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.problem-list li {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left: 4px solid var(--error);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.solution-list li {
    background: var(--gradient-subtle);
    border-left: 4px solid var(--primary);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Demo Video Section */
.demo-video {
    padding: 6rem 0;
    background: var(--bg-primary);
    text-align: center;
}

.demo-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

#demoVideo {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: var(--bg-card);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.play-overlay .play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}

.play-overlay:hover .play-button {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.play-icon {
    color: white;
    font-size: 2rem;
    margin-left: 4px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    50% {
        box-shadow: var(--shadow-md), 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

.demo-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.highlight-number {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-intense), var(--glow);
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Examples Section */
.examples {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-intense), var(--glow);
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.example-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.template-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.template-badge:contains("Coming Soon") {
    background: var(--text-light);
}

.example-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.chain-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.chain-item {
    padding: 0.5rem 1rem;
    background: var(--gradient-subtle);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.chain-arrow {
    color: var(--primary);
    font-weight: 700;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-intense), var(--glow);
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Final CTA Section */
.cta-final {
    padding: 6rem 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border);
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-final .email-form {
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-final .email-input {
    border-color: var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow), inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-final .email-input::placeholder {
    color: var(--text-muted);
}

.cta-final .email-input:focus {
    border-color: var(--primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.4), var(--shadow), inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer p {
    opacity: 0.7;
    font-size: 0.875rem;
}

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

    .hero-logo-image-large {
        width: 120px;
    }

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

    .scroll-text {
        font-size: 0.75rem;
    }

    .scroll-arrow {
        width: 20px;
        height: 32px;
    }


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

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

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

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

    .demo-highlights {
        gap: 1rem;
    }

    .highlight {
        padding: 0.75rem 1rem;
    }

    .chain-flow {
        justify-content: flex-start;
    }


    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo-image-large {
        width: 100px;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .features, .examples, .cta-final, .problem-solution, .how-it-works, .demo-video {
        padding: 4rem 0;
    }

    .video-container {
        margin-bottom: 2rem;
    }

    .demo-highlights {
        flex-direction: column;
        align-items: center;
    }
}