html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Default font, will be overridden by themes for cards */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.hero-full-viewport {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

/* Pattern overlays for backgrounds */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15; /* Increased from 0.1 for more visibility */
    z-index: 1;
}

.pattern-dots {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.6) 15px, transparent 16px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 10px, transparent 11px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.3) 8px, transparent 9px),
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.8) 2px, transparent 3px);
    background-size: 120px 120px, 80px 80px, 60px 60px, 25px 25px;
    background-position: 0 0, 40px 40px, 20px 20px, 0 0;
}



.pattern-diagonal {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255,255,255,0.3) 20px,
            rgba(255,255,255,0.3) 25px,
            transparent 25px,
            transparent 45px,
            rgba(255,255,255,0.6) 45px,
            rgba(255,255,255,0.6) 50px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(255,255,255,0.2) 30px,
            rgba(255,255,255,0.2) 32px
        );
}



.pattern-circuit {
    background-image: 
        /* Main circuit lines */
        linear-gradient(90deg, rgba(255,255,255,0.5) 4px, transparent 4px),
        linear-gradient(0deg, rgba(255,255,255,0.5) 4px, transparent 4px),
        /* Secondary lines */
        linear-gradient(90deg, transparent 20px, rgba(255,255,255,0.3) 21px, rgba(255,255,255,0.3) 23px, transparent 24px),
        linear-gradient(0deg, transparent 20px, rgba(255,255,255,0.3) 21px, rgba(255,255,255,0.3) 23px, transparent 24px),
        /* Connection nodes */
        radial-gradient(circle at 40px 40px, rgba(255,255,255,0.8) 6px, transparent 7px),
        radial-gradient(circle at 80px 80px, rgba(255,255,255,0.6) 4px, transparent 5px),
        /* Corner dots */
        radial-gradient(circle at 20px 20px, rgba(255,255,255,0.4) 2px, transparent 3px);
    background-size: 80px 80px, 80px 80px, 80px 80px, 80px 80px, 80px 80px, 80px 80px, 40px 40px;
}

.pattern-waves {
    background-image: 
        /* Large waves */
        radial-gradient(ellipse 150px 80px at 50% 120%, transparent 30%, rgba(255,255,255,0.4) 31%, rgba(255,255,255,0.4) 35%, transparent 36%),
        radial-gradient(ellipse 150px 80px at 50% -20%, transparent 30%, rgba(255,255,255,0.3) 31%, rgba(255,255,255,0.3) 35%, transparent 36%),
        /* Medium waves */
        radial-gradient(ellipse 100px 60px at 25% 100%, transparent 40%, rgba(255,255,255,0.5) 41%, rgba(255,255,255,0.5) 43%, transparent 44%),
        radial-gradient(ellipse 100px 60px at 75% 0%, transparent 40%, rgba(255,255,255,0.5) 41%, rgba(255,255,255,0.5) 43%, transparent 44%),
        /* Small ripples */
        radial-gradient(ellipse 50px 30px at 80% 50%, transparent 50%, rgba(255,255,255,0.6) 51%, rgba(255,255,255,0.6) 52%, transparent 53%);
    background-size: 200px 160px, 200px 160px, 150px 120px, 150px 120px, 100px 80px;
    background-position: 0 0, 100px 80px, 50px 40px, 150px 100px, 25px 60px;
}

/* New striking patterns */
.pattern-geometric {
    background-image: 
        /* Large triangles */
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 31%, rgba(255,255,255,0.4) 33%, transparent 34%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.4) 31%, rgba(255,255,255,0.4) 33%, transparent 34%),
        /* Diamond shapes */
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.6) 49%, rgba(255,255,255,0.6) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.6) 49%, rgba(255,255,255,0.6) 51%, transparent 52%),
        /* Background dots */
        radial-gradient(circle at 50px 50px, rgba(255,255,255,0.3) 8px, transparent 9px);
    background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px, 100px 100px;
    background-position: 0 0, 0 0, 25px 25px, 25px 25px, 0 0;
}

.pattern-matrix {
    background-image: 
        /* Vertical streams */
        linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.6) 10%, rgba(255,255,255,0.3) 20%, transparent 30%, transparent 70%, rgba(255,255,255,0.4) 80%, rgba(255,255,255,0.7) 90%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.4) 15%, rgba(255,255,255,0.2) 25%, transparent 35%, transparent 65%, rgba(255,255,255,0.3) 75%, rgba(255,255,255,0.5) 85%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.5) 5%, rgba(255,255,255,0.25) 15%, transparent 25%, transparent 75%, rgba(255,255,255,0.35) 85%, rgba(255,255,255,0.6) 95%, transparent 100%),
        /* Code blocks */
        linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.4) 21%, rgba(255,255,255,0.4) 23%, transparent 24%),
        linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.3) 41%, rgba(255,255,255,0.3) 43%, transparent 44%),
        linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.5) 61%, rgba(255,255,255,0.5) 63%, transparent 64%),
        linear-gradient(90deg, transparent 80%, rgba(255,255,255,0.35) 81%, rgba(255,255,255,0.35) 83%, transparent 84%),
        /* Digital noise */
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.8) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.6) 1px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.7) 1px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.5) 1px, transparent 2px);
    background-size: 40px 200px, 60px 180px, 35px 220px, 200px 8px, 180px 6px, 220px 10px, 160px 7px, 20px 20px, 30px 30px, 25px 25px, 35px 35px;
    background-position: 0 0, 20px 40px, 40px 20px, 0 20px, 0 40px, 0 60px, 0 80px, 0 0, 15px 15px, 5px 20px, 25px 5px;
}

.hero-card-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
    padding-top: 15vh; /* Position cards higher than center */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.7s ease-in-out;
    z-index: 2;
    transform: scale(0.95) rotate(-2deg); /* Slight initial rotation */
}
.hero-card-container.active {
    opacity: 1;
    transform: scale(1) rotate(0deg); /* Animate to normal scale and rotation */
}
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(0px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card-container.active .hero-card {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 70px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Add subtle animation on card appearance */
.hero-card-container:not(.active) .hero-card {
    opacity: 0.7;
    transform: translateY(20px) scale(0.95);
}

.hero-card-container.active .hero-card {
    opacity: 1;
    transform: translateY(-8px) scale(1);
}

.hero-title {
    position: relative;
    /* Base font size, will be overridden by themes */
    font-size: clamp(1rem, 3vw, 2rem); 
    font-weight: 700; /* Base weight */
    line-height: 1.2;
    transition: color 0.5s ease, font-size 0.5s ease; /* Smooth transitions for text style changes */
    /* Base color, will be overridden by themes */
    color: #fff; 
}
/* Removed specific .hero-title-N color styles here */

.hero-line {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.hero-highlight {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    /* Base highlight, will be overridden by themes */
    background: rgba(255,255,255,0.3); 
    transition: background-color 0.5s ease; /* Smooth transition for highlight color */
}
/* Removed specific .hero-highlight-N styles here */
.hero-highlight.animate {
    animation: highlightWipe 0.9s ease-in forwards;
}

@keyframes highlightWipe {
    0% { transform: scaleX(0); opacity: 1; }
    100% { transform: scaleX(1); opacity: 1; }
}
.hero-line-text {
    position: relative;
    z-index: 10;
}

.static-eyebrow-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30; /* Same z-index as form */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.eyebrow-container {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 320px;
    width: auto;
}

.eyebrow-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.02em;
}

.eyebrow-highlight {
    color: #fbbf24;
    font-weight: 500;
}

/* Clean Grid-Based Market Research Form */
.market-research-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow-y: auto;
}

.market-research-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-form-container {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.question-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.question-card.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.question-card h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.question-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.question-card input[type="checkbox"],
.question-card input[type="radio"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.question-card input[type="checkbox"]:checked,
.question-card input[type="radio"]:checked {
    accent-color: #3b82f6;
}

.section-header {
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    text-align: center;
    position: relative;
}

.section-header:first-of-type {
    margin-top: 0;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3b82f6;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.email-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    text-align: center;
}

.email-section input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.email-section input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    z-index: 10;
}

.close-modal:hover {
    color: #374151;
}

@media (max-width: 640px) {
    .research-form-container {
        margin: 10px;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .checkbox-grid, .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

.messages-container-fixed {
    position: fixed;
    bottom: 120px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; 
    width: auto;
    max-width: 90%;
}
.messages-container-fixed div {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.messages-container-fixed .success { background-color: #34d399; }
.messages-container-fixed .error   { background-color: #f87171; }
.messages-container-fixed .info    { background-color: #60a5fa; }
.messages-container-fixed .warning { background-color: #fbbf24; }

.social-proof, .waitlist-cta {
    display: none;
}

@media (max-width: 420px) {
    .static-eyebrow-overlay {
        top: 15px;
        padding: 0 15px;
    }
    
    .eyebrow-container {
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
    }
    
    .eyebrow-text {
        font-size: 0.7rem;
        line-height: 1.25;
    }
    
    .hero-card-container {
        padding-top: 12vh; /* Reduce top padding on mobile */
    }
    
    .hero-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: 90%;
    }
    
    .hero-card-container.active .hero-card {
        transform: translateY(-4px);
    }
    
    .liquid-glass-form-container {
        flex-direction: column;
        padding: 1rem 1.5rem; 
        gap: 0.75rem; 
    }
}

@media (max-width: 360px) {
    .eyebrow-container {
        padding: 0.35rem 0.7rem;
        border-radius: 5px;
    }
    
    .eyebrow-text {
        font-size: 0.65rem;
    }
    
    .hero-card-container {
        padding-top: 10vh; /* Further reduce on very small screens */
    }
    
    .hero-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        max-width: 95%;
    }
    
    .messages-container-fixed {
        bottom: 150px; 
    }
}

.hero-content {
    position: relative; /* Ensure positioning context for slide number */
}

.slide-number-dev {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 3px;
    z-index: 100; /* Ensure it's above other content */
}

#ctaButton{
    padding: 20px 10px;
    border-radius: 15px;
}

.messages-container-fixed > div {
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(0);
}

.messages-container-fixed > div.fade-out {
    opacity: 0;
    transform: translateY(20px);
}