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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, ui-sans-serif, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #000000; /* Black background */
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95); /* Black navbar */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 400;
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%); /* Blue/Cyan gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000000; /* Black background */
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 1000px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #f9fafb;
    min-height: 62px;
    display: flex;
    align-items: center;
}

.hero-title:last-of-type {
    margin-bottom: 24px;
}

.typewriter-text {
    opacity: 0;
}

.typewriter-text.typing {
    opacity: 1;
}

.typewriter-char {
    opacity: 0;
    animation: fadeInChar 0.1s ease-in forwards;
    color: inherit;
}

.highlight-text .typewriter-char {
    color: #0ea5e9 !important; /* Blue accent */
}

@keyframes fadeInChar {
    to {
        opacity: 1;
    }
}

.highlight-text {
    color: #0ea5e9; /* Blue accent */
}

.glow-char {
    animation: char-glow 2s ease-in-out infinite;
}

@keyframes char-glow {
    0%, 80%, 100% {
        color: #0ea5e9;
        text-shadow: none;
    }
    20%, 60% {
        color: #38bdf8;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    }
}

/* Helix Animation Styles */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

#helixCanvas {
    background: transparent;
    border-radius: 16px;
}

/* Removed gradient-text to avoid conflicts with highlight-text */

.hero-subtitle {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 36px;
    line-height: 1.6;
}

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

.subtitle-line {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.subtitle-line:nth-child(1) {
    animation-delay: 2.4s;
}

.subtitle-line:nth-child(2) {
    animation-delay: 2.6s;
}

.subtitle-line:nth-child(3) {
    animation-delay: 2.8s;
}

.subtitle-line:nth-child(4) {
    animation-delay: 3.0s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 3.4s forwards;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: buttonPulse 2s ease-in-out 4.0s infinite;
    text-align: center;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3), 
                    0 1px 3px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5), 
                    0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5), 
                0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    animation: none;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.005);
    transition: all 0.1s ease;
}

.btn-primary.large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-secondary {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid #475569;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

.btn-icon {
    font-size: 18px;
}


/* Features Section */
.features {
    padding: 100px 0;
    background: #000000;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: #cbd5e1;
}

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

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: #000000;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 36px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3), 
                0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5), 
                0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000000;
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    font-size: 18px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 36px;
}

/* Form Styles */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    background: #000000;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    color: #f9fafb;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.waitlist-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* Footer */
.footer {
    background: #000000;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-content p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Animations */


/* Responsive Design */

/* Tablet styles */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 20px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    #helixCanvas {
        width: 350px;
        height: 450px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    /* Hero section */
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 36px;
        min-height: 40px;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
        text-align: left;
    }
    
    .subtitle-line {
        margin-bottom: 4px;
        line-height: 1.5;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary {
        padding: 16px 24px;
        font-size: 15px;
        justify-content: center;
        text-align: center;
        width: 100%;
        display: flex;
    }
    
    /* Canvas for mobile */
    .hero-right {
        order: -1; /* Move canvas above text on mobile */
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    
    #helixCanvas {
        width: 300px;
        height: 350px;
    }
    
    /* Features section */
    .features {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
    
    .feature-card {
        padding: 32px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 15px;
    }
    
    /* CTA section */
    .cta {
        padding: 60px 20px;
    }
    
    .cta h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .cta p {
        font-size: 16px;
        margin-bottom: 28px;
    }
    
    /* Modal */
    .modal-content {
        padding: 36px 24px;
        margin: 20px;
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .modal-title {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .modal-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        min-height: 36px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .subtitle-line {
        font-size: 14px;
    }
    
    #helixCanvas {
        width: 280px;
        height: 320px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 28px 16px;
    }
    
    .modal-content {
        padding: 28px 20px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 30px 0;
        margin-top: 0;
    }
    
    .footer-content {
        padding: 0 16px;
    }
    
    .footer-content p {
        font-size: 13px;
    }
}

/* Animation adjustments for mobile */
@media (max-width: 768px) {
    /* Faster animations on mobile for better UX */
    .typewriter-char {
        animation: fadeInChar 0.05s ease-in forwards; /* Faster typing */
    }
    
    .subtitle-line:nth-child(1) {
        animation-delay: 1.8s; /* Start earlier */
    }
    
    .subtitle-line:nth-child(2) {
        animation-delay: 1.95s;
    }
    
    .subtitle-line:nth-child(3) {
        animation-delay: 2.1s;
    }
    
    .subtitle-line:nth-child(4) {
        animation-delay: 2.25s;
    }
    
    .hero-actions {
        animation: fadeInUp 0.5s ease-out 2.6s forwards; /* Start earlier */
    }
    
    /* Disable button pulse on mobile to save performance */
    .btn-primary {
        animation: none;
    }
}

/* Additional responsive improvements */
@media (max-width: 375px) {
    .hero-title {
        font-size: 28px;
        min-height: 32px;
    }
    
    .subtitle-line {
        font-size: 13px;
        line-height: 1.4;
    }
    
    #helixCanvas {
        width: 260px;
        height: 300px;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    position: relative;
}

/* Ensure all containers respect viewport width */
.navbar, .hero, .features, .cta {
    max-width: 100vw;
    overflow-x: hidden;
}


/* Ensure all containers respect viewport width */
.navbar, .hero, .features, .cta, .footer {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure no element inside containers causes overflow */
.nav-container, .hero-content, .features-grid, .cta-content, .footer-content {
    max-width: 100%;
    box-sizing: border-box;
}
