/* Color Palette & Variables */
:root {
    --bg-white: #ffffff; /* Pure white for a crisp look */
    --bg-black: #0a0a0a;
    --card-dark: #1a1a1a;
    --text-main: #333333;
    --text-light: #f4f4f4;
    --accent-yellow: #e4b54d; /* Darker Yellow */
    --accent-hover: #e4b54d;
}

/* Base Styles */
html {
    scroll-behavior: smooth; /* Enables smooth native scrolling */
    scroll-padding-top: 140px; /* Prevents the navbar from hiding section titles */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}

body {
    background-color: var(--bg-white);

    /* --- Premium Math Notebook Grid --- */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 40px 40px; /* Size of the notebook squares */
    background-position: center top; /* Keeps the grid aligned nicely */

    color: var(--text-main);
    line-height: 1.6;
    padding-top: 150px;

    /* --- Prevent Text Selection --- */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* --- Section Spacing Overrides --- */
/* Gives the sections extra breathing room top and bottom */
.problems .container,
.solution.container,
.case-studies .container,
.testimonials .container {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.bg-dark {
    background-color: var(--bg-black);
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--bg-black);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px; /* Match the cards */
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent-yellow);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px; /* Match the cards */
    transition: all 0.3s ease;
    margin-left: 2.5rem;
}

.btn-outline:hover {
    background-color: var(--accent-yellow);
    color: var(--bg-black);
}

/* --- Floating Island Navbar --- */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background-color: rgba(
        255,
        255,
        255,
        0.9
    ); /* Allows the grid to peek through */
    backdrop-filter: blur(8px); /* Blurs the grid slightly behind the navbar */
    border-radius: 9px; /* The navbar itself stays beautifully rounded */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition:
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease,
        background-color 0.4s ease,
        backdrop-filter 0.4s ease,
        top 0.4s ease;
}

/* --- Mobile Menu Toggle (Hidden on Desktop) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--bg-black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Scrolled State */
.navbar.scrolled {
    top: 1rem;
    padding: 0.8rem 2.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    background-color: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
}

.navbar .logo {
    display: flex;
    align-items: center; /* Vertically centers the icon and text */
    gap: 12px; /* Creates perfect spacing between the icon and text */
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--bg-black);
    text-decoration: none;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styles the icon specifically */
.navbar .logo .logo-icon {
    height: 32px; /* Sets the default height of the icon */
    width: auto;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo {
    font-size: 1.3rem;
}

/* Shrinks the icon at the exact same time the text shrinks */
.navbar.scrolled .logo .logo-icon {
    height: 24px;
}

/* Base style for nav links */
.navbar nav a:not(.btn-outline) {
    margin-left: 1rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    border-radius: 8px; /* Match the cards and buttons */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Hover State */
.navbar nav a:not(.btn-outline):hover {
    background-color: #f0f0f0;
    color: var(--bg-black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Tactile Click (Active) State */
.navbar nav a:not(.btn-outline):active {
    transform: translateY(0) scale(0.96);
    box-shadow: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 2rem 2rem 2rem;
    background-color: transparent; /* Lets the math grid show through */
}

.hero h4 {
    color: var(--accent-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4rem;
    max-width: 800px;
    margin: 1rem auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #555;
}

/* --- VSL Video Wrapper (Under Hero CTA) --- */
.vsl-wrapper {
    margin: 4rem auto 0 auto;
    max-width: 900px;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--bg-black);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    border: none; /* Removed the border to get rid of the line */
}

.vsl-wrapper iframe,
.vsl-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Stats */
.stats {
    text-align: center;
    border-top: 0px solid #eaeaea;
}

.trusted-by {
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-box h2 {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

/* Grids */
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards (Problems Section) */
.card {
    background-color: var(--card-dark);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

/* Layer Cards (Solution Section) */
.layer-card {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.layer-card h4 {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- NEW: Case Studies --- */
.case-card {
    background-color: var(--card-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.case-card .case-title {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform:;
}

/* --- NEW: Process Timeline --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--accent-yellow);
    padding-left: 2rem;
}

.timeline-step {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: -2.55rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
}

.timeline-step h3 {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

/* --- NEW: Testimonials --- */
.testimonial-card {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    margin-bottom: 0;
    color: var(--accent-yellow);
}

.testimonial-card span {
    font-size: 0.85rem;
    color: #888;
}

/* --- NEW: FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hides default arrow */
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hides arrow in Safari */
}

/* Custom Plus Icon for FAQ */
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg); /* Turns + into x when open */
}

.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #555;
    border-top: 1px solid #eaeaea;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Footer CTA */
.footer-cta {
    padding: 6rem 2rem 40px 2rem;
}

.footer-cta h2 + p {
    max-width: 600px;
    margin: 1rem auto 3rem auto;
    color: #ccc;
}

.copyright {
    margin-top: 4rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .navbar {
        width: 85vw;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Ensure mobile sections still look balanced */
    .problems .container,
    .solution.container,
    .case-studies .container,
    .testimonials .container {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .navbar {
        width: 90vw;
        padding: 1rem 1.5rem;
    }

    /* --- NEW: Show the hamburger menu on mobile --- */
    .menu-toggle {
        display: flex;
    }

    /* --- NEW: Convert the nav into a floating dropdown --- */
    .navbar nav {
        position: absolute;
        top: 120%; /* Sits just below the pill */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid #eaeaea;
        border-radius: 12px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;

        /* Hidden by default */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* When the menu is active/open */
    .navbar.active nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Stack buttons evenly in the mobile menu */
    .navbar nav a:not(.btn-outline),
    .navbar nav .btn-outline {
        margin: 0;
        text-align: center;
        width: 100%;
        padding: 1rem;
    }

    /* Animate the hamburger lines into an 'X' when open */
    .navbar.active .menu-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .navbar.active .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .navbar.active .menu-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-title {
        font-size: 2rem;
    }
    .vsl-wrapper {
        margin-top: 3rem;
        border-radius: 12px;
    }
    .vsl-wrapper iframe,
    .vsl-wrapper video {
        border-radius: 12px;
    }
}

/* --- Fix Spacing Between VSL and Stats --- */
.hero .container {
    padding-bottom: 0; /* Removes the 4rem directly under the video */
}

.stats.container {
    padding-top: 2rem; /* Reduces the top space above 'Trusted by' from 4rem to 2rem */
}

/* --- NEW: 2-Column Grid --- */
.grid-2 {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* --- NEW: Property Cards (Skool / Website) --- */
.ecosystem.container {
    padding-top: 2rem; /* Keeps it close to the stats section above it */
    padding-bottom: 6rem;
}

.property-card {
    background-color: #ffffff; /* Pure white */
    padding: 3rem 2rem;
    border: 1px solid #eaeaea; /* Light crisp border */
    border-radius: 8px; /* Matches your other cards */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04); /* Soft premium shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.property-card h3 {
    color: var(--bg-black);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.property-card p {
    color: #555;
    margin-bottom: 2rem; /* Creates space before the button */
    max-width: 400px;
}
/* --- NEW: 2-Column Grid --- */
.grid-2 {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* --- NEW: Image-Only Property Cards --- */
.ecosystem.container {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.property-card {
    display: block;
    padding: 0; /* Ensures absolutely no space around the image */
    background-color: #ffffff;
    border: 1px solid #eaeaea; /* Faint outline for the card itself */
    border-radius: 12px; /* Matches your other cards */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Clips the image perfectly to the rounded corners */
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px); /* Lift effect on hover */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08); /* Deeper shadow on hover */
}

/* Image fills the entire card edge-to-edge */
.property-card .property-image {
    display: block;
    width: 100%;
    height: 100%;
    border: none; /* Removes any default browser image borders */
    margin: 0;
    object-fit: cover; /* Ensures the image fills the space beautifully without stretching */
}

/* --- NEW: Property Titles --- */
.property-title {
    text-align: center; /* Keeps the text perfectly centered */
    font-size: 1.6rem; /* Changed from 2.5rem to 2rem */
    color: var(--bg-black);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
