:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #a0a0ff;
    --glow-color: rgba(100, 100, 255, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-header: 'Orbitron', sans-serif;
    --overlay-color: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Subtle fallback gradient if video is missing */
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 70%);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
}

/* Typography Overrides */
h1,
h2,
h3,
.logo,
.descriptor,
.cta-button,
.submit-btn {
    font-family: var(--font-header);
    letter-spacing: 2px;
}

/* Features Section */
.features {
    background-color: #000;
    padding: 150px 20px;
    /* Increased breathing room */
    text-align: center;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    /* Larger scale */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.5;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: var(--font-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Slightly wider cards */
    gap: 30px;
    /* Increased gap */
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: #050505;
    /* Darker, near black */
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    /* More padding */
    text-align: left;
    border-radius: 4px;
    /* Sharper corners for tech feel */
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    background: #080808;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align left */
    border-radius: 0;
    margin-bottom: 25px;
    color: #fff;
    opacity: 0.9;
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.4;
    line-height: 1.5;
    font-family: var(--font-main);
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

input[type="email"] {
    padding: 12px 20px;
    width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px var(--glow-color);
}

/* CTA Button */
.cta-button {
    position: relative;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px var(--glow-color);
}

.platform-selector {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.platform-selector label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.platform-selector label:hover {
    opacity: 1;
}

.message {
    height: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.error {
    color: #ff6b6b;
}

.success {
    color: #6bffb3;
}

/* Footer */
.footer {
    background-color: #000;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
}

/* CTA Section */
.cta-section {
    background-color: #030303;
    padding: 150px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-headline {
    font-size: 2.5rem;
    /* Large impact */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.cta-subline {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 50px;
    max-width: 700px;
    /* Wider reading width */
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-main);
}

.main-cta-btn {
    padding: 18px 45px;
    background: #fff;
    border: none;
    color: #000;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    /* Tech feel */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.main-cta-btn:hover {
    background: #d0d0d0;
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

/* Cinematic Registration Overlay */
.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Solid blackout for immersion */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.registration-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.registration-container {
    background: #0a0a0a;
    padding: 60px 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 480px;
    width: 100%;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.registration-overlay.active .registration-container {
    transform: scale(1) translateY(0);
}

.overlay-title {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.overlay-subtitle {
    opacity: 0.5;
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-family: var(--font-main);
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 18px;
    background: #111;
    /* Even darker input */
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    font-family: var(--font-main);
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus {
    border-color: #555;
    background: #161616;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #ccc;
}

.escape-hint {
    margin-top: 30px;
    font-size: 0.75rem;
    opacity: 0.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-header);
}

/* Utilities */
body.no-scroll {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Hero Adjustments */
    .hero-content {
        width: 100%;
        padding: 0 20px;
    }

    /* Typography Scaling */
    .logo {
        font-size: 3rem;
        /* Smaller than desktop but still impactful */
        line-height: 1.2;
    }

    .descriptor {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2rem;
        /* Reduced from 3rem */
        line-height: 1.2;
    }

    .cta-headline {
        font-size: 1.8rem;
        /* Reduced from 2.5rem */
        line-height: 1.3;
    }

    .overlay-title {
        font-size: 1.5rem;
    }

    /* Layout & Spacing */
    .features {
        padding: 60px 20px;
        /* Reduced padding */
    }

    .cta-section {
        padding: 80px 20px;
        /* drastically reduced from 150px */
    }

    .section-subtitle,
    .cta-subline {
        margin-bottom: 40px;
        /* Tighter spacing */
        font-size: 0.95rem;
    }

    .features-grid {
        gap: 20px;
    }

    /* Form & Interactivity */
    .registration-container {
        width: 90%;
        padding: 40px 20px;
    }

    .input-group {
        flex-direction: column;
    }

    input[type="email"] {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Legal Pages */
.legal-page {
    background-color: #000;
    min-height: 100vh;
    padding: 60px 20px 100px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.back-link:hover {
    color: #fff;
}

.back-link-bottom {
    margin-top: 60px;
    margin-bottom: 0;
}

.legal-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}

.legal-updated {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 50px;
    font-family: var(--font-main);
}

.legal-content {
    line-height: 1.8;
    font-family: var(--font-main);
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

.legal-content p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 1rem;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
    opacity: 0.8;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Styles */
.footer {
    background-color: #000;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-main);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    opacity: 0.4;
    font-size: 0.8rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Consent Checkbox */
.consent-group {
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
    text-align: left;
    font-family: var(--font-main);
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.consent-label span {
    flex: 1;
}

.consent-label a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.consent-label a:hover {
    color: #fff;
    text-decoration: underline;
}

.consent-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.consent-error.show {
    display: block;
}

/* Mobile Responsiveness for Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 20px 80px;
    }

    .legal-title {
        font-size: 1.8rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
    }

    .footer-links {
        gap: 20px;
        flex-direction: column;
    }

    .consent-label {
        font-size: 0.8rem;
    }
}
