/* --- Global Styles & Fonts --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000; /* CHANGED: Black background */
    color: #ffffff; /* CHANGED: White text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff; /* Ensure headings are white */
}

h1 {
    font-size: 3.5rem; /* 56px */
    font-weight: 800;
}

h2 {
    font-size: 2.5rem; /* 40px */
    text-align: center;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
    color: #cccccc; /* CHANGED: Light grey for better readability on black */
}

.section-subheadline {
    font-size: 1.25rem; /* 20px */
    color: #888;
    text-align: center;
    margin-top: 0;
    margin-bottom: 4rem;
}

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.primary {
    background: var(--theme-primary-default, #4a90e2);
    color: white;
}
.cta-button.primary:hover {
    background: var(--theme-hover-default, #357ab8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.cta-button.secondary {
    background-color: #333; /* Darker button for dark mode */
    color: #fff;
}
.cta-button.secondary:hover {
    background-color: #444;
}

/* --- Header / Nav --- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo video {
    display: block;
    width: 130px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-login {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}
.nav-login:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-signup {
    background: white;
    color: #333;
}
.nav-signup:hover {
    background: #f0f0f0;
}

/* --- 1. Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    color: white;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content .subheadline {
    font-size: 1.5rem; 
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

/* --- 2. Features Section --- */
.features {
    background-color: #0a0a0a; /* Darker background for features */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #111; /* Dark card background */
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: all 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

.feature-card i {
    font-size: 2rem;
    color: var(--theme-primary-default, #4a90e2);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-card p {
    font-size: 1rem;
    color: #aaa;
}

/* --- 3. Pricing Section (FIXED BLACK TABLE) --- */
.pricing {
    background-color: #000000; /* Ensure container is black */
    color-scheme: dark; /* Helps prompt browser to use dark defaults */
}

.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse; 
    border-spacing: 0;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden; 
    background-color: #000000 !important; /* FORCE BLACK */
}

/* Force all cells to be black with white text */
tr, th, td {
    background-color: #000000 !important;
    color: #ffffff;
    border: 1px solid #333;
}

th, td {
    padding: 1.5rem 1rem;
    text-align: center;
    vertical-align: middle;
}

/* Header Styles */
th {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

/* Specific Header Colors (Overriding the black background) */
th:nth-child(1) { background-color: #111 !important; border-right: 1px solid #333; } /* Feature */
th:nth-child(2) { background-color: #28a745 !important; border-color: #28a745; } /* Free (Green) */
th:nth-child(3) { background-color: #4a90e2 !important; border-color: #4a90e2; } /* Premium (Blue) */
th:nth-child(4) { background-color: #d32f2f !important; border-color: #d32f2f; } /* Ultra (Red) */

/* Sticky First Column */
th:first-child, td:first-child {
    text-align: left;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #000000 !important; /* Ensure sticky col stays black */
    border-right: 2px solid #333;
}

/* Ensure Feature Header stays above scrolling content */
th:first-child {
    z-index: 30;
    background-color: #111 !important;
}

/* Text Highlights */
.text-dim { color: #888; font-size: 0.9rem; display: block; margin-top: 5px; }
.text-highlight { color: #fff; font-weight: 700; }
.text-red { color: #ff5c5c; }

/* Icons */
.check-icon { color: #28a745; font-size: 1.5rem; font-weight: 700; }
.cross-icon { color: #555; font-size: 1.5rem; font-weight: 700; }

/* Price Row Footer */
tfoot td {
    font-size: 1.1rem;
    background-color: #000000 !important;
    border-top: 2px solid #333;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}
.price-free { color: #888; }
.price-premium { color: #4a90e2; }
.price-ultra { color: #ff5c5c; }

/* Mobile Buttons */
.pricing-buttons-mobile {
  display: none;
}

/* --- 4. Final CTA Section --- */
.final-cta {
    background-color: #1a1a1a;
    text-align: center;
}

.final-cta h2 {
    color: white;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: #050505; /* Dark footer */
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #222;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #888;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-subheadline { font-size: 1.1rem; margin-bottom: 2.5rem; }
    section { padding: 4rem 1.5rem; }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content .subheadline {
        font-size: 1.2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Pricing Adjustments */
    .pricing-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-table-container table {
        min-width: 550px;
    }

    /* Hide desktop button rows in footer if you have them there */
    .pricing-table-container tfoot .cta-button {
        display: none;
    }

    /* Mobile Buttons Display */
    .pricing-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-buttons-mobile .cta-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .pricing-buttons-mobile .cta-button.secondary {
         background-color: transparent;
         color: #fff;
         border: 1px solid #444;
         box-shadow: none;
    }
}