/* --- VARIABLES & BASE SETUP --- */
:root {
    --bg-color: #0e0f0f;
    --text-color: #e0e0e0;
--accent-color: #8FD8C2; /* A brighter, more vibrant muted green */
--accent-dark: #6CA694;  /* A complementary darker shade */
    --surface-color: #1a1c1c;
    --surface-light: #2a2c2c;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(14, 15, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
}

.header .logo {
    height: 35px;
    opacity: 0.8;
}

.header nav a {
    color: var(--text-color);
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.header nav a:hover {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 0 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: -2;
    animation: heroIntroBlur 5s linear forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(14, 15, 15, 0.2) 0%, rgba(14, 15, 15, 0.9) 75%);
    opacity: 0;
    animation: heroIntroOpacity 5s linear forwards;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation-name: heroContentFadeIn;
    animation-duration: 4s;
    animation-timing-function: ease-in;
    animation-delay: 1s;
    animation-fill-mode: both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: -1.5px;
    text-shadow: 0 0 15px rgba(53, 201, 201, 0.2), 0 2px 5px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- BUTTONS & CTA --- */
.buttons {
    margin-top: 40px;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(53, 201, 201, 0.3);
}

.btn.secondary {
    color: var(--accent-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(53, 201, 201, 0.4);
}

.btn.secondary:hover {
    background-color: var(--accent-dark);
    color: var(--text-color);
    border-color: var(--accent-dark);
}

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

.hero .cta-microcopy {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.unmute-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    background-color: rgba(26, 28, 28, 0.7);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.unmute-btn:hover {
    background-color: rgba(53, 201, 201, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.unmute-btn svg {
    width: 20px;
    height: 20px;
}

/* --- GENERAL SECTION STYLING --- */
.section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 25px;
    text-align: center;
}

.section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* --- PHILOSOPHY SECTION --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}
.philosophy-grid article {
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--surface-light);
    background-color: var(--surface-color);
}
.philosophy-grid article h4 { margin-bottom: 15px; font-size: 1.2rem; color: #fff; }
.philosophy-grid article p { opacity: 0.8; }
.philosophy-grid .gulf-coast {
    border-top-color: var(--accent-color);
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.testimonial-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-dark);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-left-color: var(--accent-color);
}
.testimonial-card blockquote {
    margin: 0 0 20px 0;
    font-style: italic;
    opacity: 0.9;
    padding-left: 0;
    border-left: none;
    position: relative;
}
.testimonial-card blockquote::before {
    content: '“';
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.1;
}
.testimonial-author { font-weight: 600; color: var(--text-color); }
.testimonial-author span { display: block; font-weight: 400; opacity: 0.7; font-size: 0.9em; }


/* --- "AT A GLANCE" FEATURES SECTION (REDESIGNED) --- */
#features {
    max-width: 1200px;
}
.glance-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px 30px;
    text-align: left;
    margin-bottom: 40px;
}
.glance-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.glance-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
}
.glance-icon svg {
    width: 28px;
    height: 28px;
}
.glance-text h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.glance-text p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* --- AUDIO SECTION --- */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.audio-player { 
    background: var(--surface-color); 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    transition: border-color 0.3s ease;
}
.audio-player:hover {
    border-color: var(--accent-dark);
}
.player-title { font-weight: 600; margin-bottom: 15px; text-align: left; }
audio { width: 100%; }

/* --- CTA SECTION --- */
.cta { 
    background: var(--surface-color); 
    padding: 60px 40px; 
    border-radius: 12px; 
    border-top: 4px solid var(--accent-color);
}
.cta-subtitle { 
    max-width: 700px; 
    margin: -20px auto 30px auto; 
    line-height: 1.7; 
    opacity: 0.8; 
}

/* --- FOOTER --- */
footer { 
    text-align: center; 
    padding: 40px 20px; 
    font-size: 0.9em; 
    color: #888; 
    background-color: #0a0b0b;
    border-top: 1px solid var(--border-color);
}
footer a { color: #aaa; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent-color); }

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    .hero { min-height: 80vh; }
    .header-inner { flex-direction: row; } /* Revert to row for better mobile nav */
    .header nav a { margin-left: 15px; font-size: 0.9rem;}
    .section h3 { font-size: 1.8rem; }
    .glance-list { grid-template-columns: 1fr; } /* Stack features on mobile */
    .hero-video-background { animation-name: heroIntroBlurMobile; }
}

@media (max-width: 480px) {
    .header-inner { justify-content: space-between; } /* Changed from 'center' */
    .header nav a { margin: 0 10px; }
}

/* --- HERO INTRO ANIMATIONS --- */
@keyframes heroIntroBlur {
    from { filter: blur(0px); }
    to   { filter: blur(3px); }
}
@keyframes heroIntroBlurMobile {
    from { filter: blur(0px); }
    to   { filter: blur(1px); }
}

@keyframes heroIntroOpacity {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroContentFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* --- DEEP DIVE PAGE (REFINED V2) --- */

/* Styles the main header "Deep Dive" and its subtitle */
.page-header {
    padding: 20px 0;
    margin-bottom: 80px;
    text-align: center;
}
.page-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
    color: #fff;
}
.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Styles the main section title, e.g., "The Spectral Canvas" */
.deep-dive-section > h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.deep-dive-section > p {
    max-width: 700px;
    margin: 0 auto 100px auto;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* LAYOUT FIX & ENHANCEMENT
  This is the core of the new layout. It uses Flexbox to place the
  media and text side-by-side.
*/
.feature-deep {
    display: flex;
    gap: 60px; /* Controls the space between the image and text */
    align-items: center; /* Vertically aligns the content */
    margin-bottom: 120px;
    text-align: left; /* Ensures all child text defaults to left-aligned */
}

/* NEW: This class reverses the order for the alternating layout */
.layout-reversed {
    flex-direction: row-reverse;
}

/* The media placeholder now takes up a flexible amount of space */
.feature-media {
    flex: 1; /* This shorthand means it can grow and shrink */
    min-height: 300px;
    border-radius: 8px;
}

/* The text block will be slightly larger than the media block */
.feature-text {
    flex: 1.2;
}

.feature-media video {
    width: 100%; /* Makes the video responsive */
    max-width: 640px; /* Prevents the video from stretching beyond 640px */
    height: auto; /* Allows height to adjust automatically */
    display: block; /* Helps with centering */
    margin: 0 auto; /* Centers the video if the container is wider */
    border-radius: 8px;
}


/*
  ALIGNMENT FIX: All headings are now left-aligned for a cleaner look.
  The accent line is also moved to the left.
*/
.feature-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    /* REMOVED: text-align: center and display: inline-block */
}
.feature-text h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0; /* MOVED: Aligned to the left */
    transform: none; /* REMOVED: No longer needs to be centered */
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Minor typography tweaks for readability */
.feature-text > p {
   margin-bottom: 30px;
   opacity: 0.9;
   font-size: 1.05rem;
   line-height: 1.7;
}
.feature-text ul {
    list-style: none;
    padding-left: 0;
}
.feature-text li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
}
.feature-text li::before {
    content: '•';
    position: absolute;
    left: 5px;
    top: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}
.feature-text li strong {
    color: #fff;
    font-weight: 600;
}
/*
==============================================
--- ALL MOBILE & RESPONSIVE STYLES ---
==============================================
*/

/* --- Mobile Navigation Base Styles --- */
.mobile-nav-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: transform 0.3s, top 0.3s, bottom 0.3s;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

/* --- Main Responsive Breakpoint --- */
@media (max-width: 768px) {
    /* General Layout */
    html { scroll-padding-top: 70px; }
    .hero { min-height: 80vh; }
    .section h3 { font-size: 1.8rem; }
    .glance-list { grid-template-columns: 1fr; }
    .hero-video-background { animation-name: heroIntroBlurMobile; }
    .video-grid { grid-template-columns: 1fr; }
    
    /* ADD THIS LINE 👇 */
.video-overlay h4 {
    font-size: 1rem; /* Makes the title a bit smaller */
    margin-bottom: 0.4rem;
}

.video-overlay p {
    font-size: 0.85rem; /* Makes the paragraph text smaller */
    line-height: 1.4;   /* Tightens the spacing between lines */
}
    /* Deep Dive Page */
    .feature-deep,
    .layout-reversed {
        flex-direction: column;
        gap: 40px;
    }
    .feature-text { text-align: left; }
    .feature-text li { padding-left: 28px; }
    .feature-text li::before { left: 2px; }
    .feature-text h3 { font-size: 2.1rem; }

    /* --- CORRECTED HEADER & MOBILE NAVIGATION STARTS HERE --- */
    .header-inner {
        justify-content: space-between;
    }
    .mobile-nav-toggle {
        display: block;
    }

    /* New dropdown menu styles are now correctly placed here */
    .header nav {
        position: absolute;
        top: 100%; 
        left: 0;
        right: 0;
        background: #0e0f0f;
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-out;
    }

    .header.nav-open nav {
        max-height: 500px; 
    }

    .header nav a {
        display: block;
        padding: 1rem 1.5rem;
        text-align: center;
        border-top: 1px solid var(--border-color);
        margin: 0;
        font-size: 1rem;
    }
    /* --- END OF MOBILE NAVIGATION STYLES --- */
}


/* --- Smallest Screen Adjustments --- */
@media (max-width: 480px) {
    .header-inner { 
        justify-content: space-between; 
    }
}

/* Fix for header 'Buy Now' button text disappearing on hover */
.header nav a.btn.primary:hover {
    color: var(--bg-color);
}

/* Increase video subtext size on desktop */
@media (min-width: 769px) {
  .video-overlay p {
    font-size: 1rem; /* Adjust this value as needed */
    max-width: 450px; /* Optional: gives the text a max width */
    margin: 0 auto; /* Centers the text if max-width is used */
  }
}

/* --- Tooltip Styles --- */
.tooltip-container {
  position: relative;
  display: inline-block; /* Keeps it in the flow with other buttons */
}

.tooltip-text {
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  width: 220px;
  background-color: var(--surface-light);
  color: var(--text-color);
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 115%; /* Position above the button */
  left: 50%;
  margin-left: -110px; /* Use half of the width to center */
  transition: opacity 0.3s;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  pointer-events: none; /* Prevents the tooltip from interfering with clicks */
}

/* Show the tooltip on hover */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

 New CSS for the benefit grid */
.benefit-grid {
    display: grid;
    /* Two columns on larger screens, single column on small screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; /* Space between grid items */
    max-width: 900px; /* Constrain width like your previous setup */
    margin: 60px auto 0 auto; /* Center the grid and add top margin */
    text-align: left; /* Align text within items to the left */
}

/* --- Spacing Adjustments for Tighter Layout --- */
.section {
    /* Was 100px auto, this reduces space above and below sections */
    margin: 70px auto;
}

.how-it-works-grid, .benefit-grid {
    /* Was 60px, this reduces space between a title and its grid */
    margin-top: 40px;
}

.benefit-item {
    background-color: var(--surface-color); /* Matches your step items */
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-dark); /* Subtle top border */
    height: 100%; /* Ensures all items stretch to the height of th