/* Core Styling & Palette matching the mockups */
:root {
    --bg-dark: #0b1528;
    --card-bg: #13223f;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --accent-yellow: #f1c40f;
    --accent-blue-clicked: #4fc3f7; /* Light blue from mockup */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding-bottom: 60px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--bg-dark);
}

.logo {
    font-weight: bold;
    letter-spacing: 1px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-right: 25px;
    font-size: 0.95rem;
}

.btn-buy {
    background-color: var(--accent-yellow);
    border: none;
    color: #000;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-buy:hover {
    opacity: 0.9;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
}

/* ==========================================
   FEATURE CARD CONTAINERS & EXPANSION ENGINE
   ========================================== */
.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Forces fixed 380px height when closed */
    height: 380px !important; 
    overflow: hidden !important; 
    
    /* Smooth transition sizing */
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Dynamically opens when the card is active/expanded */
.feature-card.active {
    height: auto !important; 
    max-height: 2000px !important; 
}

.card-summary {
    text-align: center;
    margin-bottom: 20px;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.short-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* Expanded Content Visibility Controls */
.card-expanded-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; 
    display: none; /* Keep layout perfectly clean when closed */
}

.feature-card.active .card-expanded-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
    margin-top: 20px;
    margin-bottom: 25px;
}

.detailed-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.bullet-list {
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.bullet-list li {
    margin-bottom: 8px;
}

/* ==========================================
   BASE BUTTON & TWO-BUTTON SWAP BLOCK
   ========================================== */
.card-footer {
    margin-top: auto;
    width: 100%;
}

.btn-learn-more {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Inactive (Closed) State Configurations */
.inactive-btn {
    display: block !important;
    background-color: var(--accent-yellow) !important;
    color: #000 !important;
}

.active-btn {
    display: none !important;
}

/* Active (Open) State Visibility Swaps */
.feature-card.active .inactive-btn {
    display: none !important;
}

.feature-card.active .active-btn {
    display: block !important;
    background-color: var(--accent-blue-clicked) !important;
    color: #000 !important;
}

/* ==========================================
   MOCK GRAPHICS & DATA VISUALS
   ========================================== */
.illustration-placeholder, .chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding-top: 10px;
}

.chart-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.bar {
    width: 15%;
    background: var(--accent-blue-clicked);
    border-radius: 3px 3px 0 0;
}

/* Lower CTA Area */
.cta-section {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.cta-section h3 {
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-specs {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--accent-yellow);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}


/* ==========================================================================
   1. GLOBAL / DESKTOP STYLES (Default State)
   ========================================================================== */

/* The hamburger button container - Hidden on desktop by default */
.menu-toggle {
  display: none; 
  background: transparent; /* Removes default HTML button background */
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 24px;
  
  /* Flexbox settings to perfectly space your 3 lines vertically */
  flex-direction: column;
  justify-content: space-between; 
}

/* The three horizontal lines inside the button */
.bar {
  display: block;
  width: 100%;
  height: 3px;               /* Thickness of the lines */
  background-color: #ffffff; /* Crisp white lines to match your logo */
  border-radius: 2px;        /* Softens the edges of the bars */
  transition: all 0.3s ease; /* For smooth animations if you animate to an 'X' later */
}


/* ==========================================================================
   2. MOBILE STYLES (Triggers when screen is 768px wide or smaller)
   ========================================================================== */
@media screen and (max-width: 768px) {
  
  /* Reveal the hamburger icon container on mobile */
  .menu-toggle {
    display: flex; 
  }
  
  /* Hide your desktop links header row until someone clicks the menu */
  .nav-menu {
    display: none; 
  }

  /* Target your active state (when JS toggles the menu open) */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust based on your header's actual height */
    left: 0;
    width: 100%;
    background-color: #0b132b; /* Match your deep dark background */
    padding: 20px;
  }
}


.hero-showcase {
    width: 100%;
    background-color: #0b132b; /* Match your deep dark blue layout color */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.hero-image {
    width: 100%;
    max-width: 1200px; /* Keeps it from blowing up too massive on giant displays */
    height: auto;
    display: block;
}
