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

:root {
    --primary-color: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #38BDF8;
    --secondary-color: #64748B;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --background: #FFFFFF;
    --background-dark: #0F172A;
    --background-gray: #F8FAFC;
    --background-card: #F1F5F9;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --success-color: #10B981;
    --accent-gradient: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible; /* Important for animations */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-secondary {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-primary {
    padding: 8px 20px;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--text-primary);
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--background);
    position: relative;
    overflow: hidden;
    min-height: 1000px;
    display: block;
}

/* Hero Background Animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
}

/* Add subtle grid pattern overlay */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(56, 189, 248, 0.3) 100%);
    top: -200px;
    left: -200px;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    top: 50%;
    right: -150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    bottom: -100px;
    left: 30%;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(50px, 20px) scale(1.02);
    }
}

@keyframes meshMove {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* Ensure content stays above background */
.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -2px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    margin-bottom: 50px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-secondary-large {
    padding: 12px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.btn-secondary-large:hover {
    background: var(--background-gray);
    border-color: var(--text-primary);
}

.btn-primary-large {
    padding: 12px 32px;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary-large:hover {
    background: var(--text-primary);
    opacity: 0.9;
    transform: translateY(-1px);
}

.hero-video {
    max-width: 900px;
    margin: 0 auto 30px;
    overflow: visible;
    height: 720px;
    min-height: 720px;
    position: relative;
    display: block;
    z-index: 1;
}

/* Prevent scrolling in hero iframe */
.hero-video iframe {
    position: relative;
    width: 100%;
    height: 720px;
    display: block;
}

.component-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
    position: relative;
    transform: none;
}

.placeholder-video, .placeholder-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Social Proof */
.social-proof {
    padding: 80px 0;
    background: var(--background-gray);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.company-logo {
    opacity: 0.4;
    filter: grayscale(100%);
    transition: opacity 0.2s;
}

.company-logo:hover {
    opacity: 0.6;
}

/* Features */
.features {
    padding: 120px 0;
    background: var(--background);
    position: static;
    margin-top: 50px;
    display: block;
    clear: both;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    overflow: visible; /* Important for animations */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(147, 51, 234, 0.02) 100%);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse .feature-content {
    direction: ltr;
}

.feature-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

.feature-list li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '✓';
    margin-right: 12px;
    color: var(--success-color);
    font-weight: 600;
}

.feature-image {
    overflow: hidden;
    height: 750px;
    min-height: 700px;
    position: relative;
    contain: layout;
    isolation: isolate;
    /* 3D optimization for smooth rendering */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.component-iframe-feature {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}

/* Use Cases */
.use-cases {
    padding: 120px 0;
    background: var(--background-gray);
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.use-case-card {
    background: var(--background);
    padding: 32px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.use-case-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.use-case-icon {
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
    background: var(--background-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.use-case-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.use-case-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Pricing */
.pricing {
    padding: 120px 0;
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 64px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid.pricing-two-column {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    gap: 32px;
}

@media (max-width: 768px) {
    .pricing-grid.pricing-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-video,
    .feature-image {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }
    
    .hero-video {
        height: 600px;
        min-height: 600px;
    }
    
    .hero-video iframe {
        height: 600px;
    }
    
    .hero {
        min-height: 900px;
    }
    
    .feature-image {
        height: 550px;
        min-height: 500px;
    }
}

.pricing-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: left;
    position: relative;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured {
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--text-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.price {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.price-period {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin: 32px 0;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    margin-right: 10px;
    color: var(--success-color);
    font-weight: 600;
}

.btn-pricing {
    display: inline-block;
    width: 100%;
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    text-align: center;
}

.btn-pricing:hover {
    background: var(--background-gray);
    border-color: var(--text-primary);
}

.btn-pricing-primary {
    display: inline-block;
    width: 100%;
    padding: 10px 24px;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    text-align: center;
}

.btn-pricing-primary:hover {
    opacity: 0.9;
}

/* Comparison */
.comparison {
    padding: 120px 0;
    background: var(--background-gray);
}

.comparison-table {
    max-width: 900px;
    margin: 64px auto 0;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: var(--background-gray);
    font-weight: 600;
}

.comparison-cell {
    padding: 16px 20px;
    text-align: center;
    font-size: 15px;
}

.comparison-cell.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials {
    padding: 120px 0;
    background: var(--background);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.testimonial-card {
    background: var(--background-gray);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.testimonial-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.author-title {
    font-size: 13px;
    color: var(--text-muted);
}

/* FAQs */
.faqs {
    padding: 120px 0;
    background: var(--background-gray);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--border-color);
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    color: var(--text-primary);
}

.faq-question:hover {
    background: var(--background-gray);
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.2s;
    font-weight: 300;
}

details[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: var(--background);
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.cta-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-logo-img {
    max-height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    object-fit: contain;
    margin: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 300px;
}

.footer-right .footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}


.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 15px;
    font-weight: 400;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Component-specific heights for optimal display */
.battlecard-iframe {
    height: 750px;
    min-height: 700px;
}

.chat-short-iframe {
    height: 750px;
    min-height: 700px;
}

.digest-iframe {
    height: 750px;
    min-height: 700px;
}

.main-chat-iframe {
    height: 720px !important;
    min-height: 720px;
}


/* Email Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlide 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

#early-access-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#email-input {
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

#email-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    padding: 14px 32px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }
    
    .nav-center {
        order: 2;
        gap: 20px;
    }
    
    .nav-right {
        display: none;
    }
    
    .hero-title {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
        padding: 40px 20px;
        margin: 0 0 40px 0;
    }
    
    .feature-block.reverse .feature-content {
        direction: ltr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-video {
        height: 750px;
        min-height: 750px;
        margin: 0 -16px;
        width: calc(100% + 32px);
    }
    
    .hero-video iframe {
        height: 750px;
        max-height: none;
    }
    
    .hero {
        min-height: 950px;
    }
    
    .feature-image {
        height: 750px;
        min-height: 750px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        order: -1;
    }
    
    .component-iframe-feature {
        height: 750px;
    }
    
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .comparison-table {
        font-size: 13px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-right .footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}