/* --- Global Styles & Variables --- */
:root {
    --background: #15171e; /* From your app's dark theme */
    --surface: #1f2937;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);

    /* New colors from your app's theme */
    --gold-start: #fde047;
    --teal-400: #2dd4bf;
    --orange-400: #fb923c;
    --yellow-400: #facc15;
    --green-500: #22c55e;
    --blue-500: #3b82f6;
    --red-500: #ef4444;

    --success-color: #34d399;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.25rem; }

p {
    max-width: 60ch;
}

/* --- Header & Navigation -- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    background-color: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: var(--primary);
}


/* --- Hero Section --- */
.hero-section {
    padding: 4rem 0 6rem 0; /* Reduced top padding */
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    margin-top: 2rem; /* Add some space between nav and content */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 60%);
    z-index: 0;
    animation: pulse 10s infinite ease-in-out;
}

@keyframes pulse {
    50% { transform: translateX(-50%) scale(1.1); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.logo {
    width: 100px; /* Adjusted logo size for nav bar */
    height: auto;
}

.hero-section h1 {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto 2.5rem auto;
}

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--surface);
    color: var(--text-main);
    font-size: 1rem;
}

.waitlist-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.waitlist-form button:hover {
    background-color: var(--primary-light);
}

.form-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* --- Interactive Demo Section --- */
.interactive-demo {
    padding: 6rem 0;
}

.interactive-demo .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.demo-controls-text h2 {
    margin-bottom: 1rem;
}
.demo-controls-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.phone-mockup-container {
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background-color: #111;
    border: 14px solid #000;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 15px rgba(0,0,0,0.4);
    margin: 0 auto;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    width: 148px;
    height: 18px;
    background-color: #000;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
}

.phone-button { background-color: #1f2937; position: absolute; }
.phone-button.side-left-1 { height: 46px; width: 3px; left: -17px; top: 124px; border-radius: 1.5rem 0 0 1.5rem; }
.phone-button.side-left-2 { height: 46px; width: 3px; left: -17px; top: 178px; border-radius: 1.5rem 0 0 1.5rem; }
.phone-button.side-right { height: 64px; width: 3px; right: -17px; top: 142px; border-radius: 0 1.5rem 1.5rem 0; }

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--background);
}

.view {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateX(0);
}

.view-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

/* Premium Tab Selector */
.demo-tabs {
    position: relative;
    display: flex;
    padding: 0.25rem;
    background-color: var(--surface);
    border-radius: 0.75rem;
    width: fit-content;
}

.demo-tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
}

.demo-tab-btn.active {
    color: white;
}

.tab-pill {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0;
    background-color: var(--primary);
    border-radius: 0.5rem;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Habits Simulator Styles --- */
.habits-simulator {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}
.habits-header { text-align: left; }
.habits-header h2 { font-size: 1rem; font-weight: bold; }
.habits-header p { font-size: 0.75rem; color: var(--text-muted); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.progress-ring-container { 
    position: relative; 
    width: 100%; 
    padding-top: 100%; 
}
.progress-ring-svg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}
.progress-ring-bg { color: var(--surface); }
.progress-ring-fg { color: var(--primary); transition: stroke-dashoffset 0.5s ease-out; }
.progress-ring-text { 
    font-size: 28px;
    font-weight: 900;
    fill: var(--text-main);
}

.summary-card-demo {
    background-color: var(--surface);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border: 1px solid var(--border-color);
}
.stat-item { display: flex; align-items: center; gap: 0.5rem; }
.stat-item .icon { background-color: #374151; padding: 0.35rem; border-radius: 99px; display: flex; align-items: center; justify-content: center;}
.stat-item .icon i { width: 0.8rem; height: 0.8rem; }
.stat-item .text .value { font-size: 0.8rem; font-weight: bold; }
.stat-item .text .label { font-size: 0.65rem; color: var(--text-muted); }
.divider { border-color: var(--border-color); margin: 0.25rem 0;}

.habits-list-section {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.25rem;
}
.habits-list-header h3 { font-size: 1rem; font-weight: bold; margin-bottom: 0.75rem; }

.habit-item-demo {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease-out;
    border: 1px solid var(--border-color);
}
.habit-item-demo:hover { transform: scale(1.02); }
.habit-checkbox {
    width: 24px; height: 24px; border-radius: 0.5rem;
    border: 2px solid var(--text-muted);
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.habit-checkbox i { opacity: 0; transform: scale(0.5); transition: all 0.2s; }
.habit-title {
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.priority-star { width: 1rem; height: 1rem; flex-shrink: 0; }

.habit-item-demo.completed {
    background: linear-gradient(to right, #6366f1, #06b6d4);
    border-color: transparent;
}
.habit-item-demo.completed .habit-checkbox {
    background-color: rgba(255,255,255,0.3);
    border-color: transparent;
}
.habit-item-demo.completed .habit-checkbox i { opacity: 1; transform: scale(1); }
.habit-item-demo.completed .habit-title {
    text-decoration: line-through;
    color: rgba(255,255,255,0.8);
}
.habit-item-demo.completed .priority-star { display: none; }


/* --- Finance Simulator Styles --- */
.finance-simulator {
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.goal-card-demo {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.goal-card-header { display: flex; align-items: center; gap: 0.75rem; }
.goal-icon { font-size: 2rem; }
.goal-title { font-weight: bold; }
.goal-subtitle { font-size: 0.8rem; color: var(--text-muted); }
.progress-bar-track { width: 100%; background-color: var(--background); height: 0.75rem; border-radius: 99px; margin-top: 0.75rem; }
.progress-bar-fill { height: 100%; background-color: var(--primary); border-radius: 99px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

.simulator-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.simulator-title { font-weight: bold; text-align: center; margin-bottom: 1rem; }
.slider-group label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.slider-group label span { color: var(--text-main); font-weight: bold; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; margin-top: -6px; box-shadow: 0 0 10px var(--primary); }
input[type=range]::-moz-range-thumb { height: 16px; width: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 10px var(--primary); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: var(--background); border-radius: 2px; }
input[type=range]::-moz-range-track { width: 100%; height: 4px; cursor: pointer; background: var(--background); border-radius: 2px; }

.projection-box {
    text-align: center;
    background-color: var(--primary-light) / 0.1;
    border: 1px solid var(--primary-light) / 0.3;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.projection-box p { font-size: 0.7rem; color: var(--primary-light); }
.projection-box strong { color: var(--text-main); font-size: 1.1rem; }

.sim-chart-container { flex-grow: 1; min-height: 80px; }
.chart-line { stroke: var(--success-color); stroke-width: 2; fill: none; }
.chart-area { fill: url(#area-gradient); }


/* --- Nutrition Simulator Styles --- */
.nutrition-simulator {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.75rem;
    position: relative;
    overflow-y: auto;
}
.nutrition-header { text-align: center; margin-bottom: 0.5rem; flex-shrink: 0;}
.nutrition-header h3 { font-size: 1.2rem; font-weight: bold; }

.nutrition-summary-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    flex-shrink: 0;
}


.macro-bar-group {
    margin-bottom: 0.4rem;
    max-width: 100%;
  }
  
  .macro-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
    flex-wrap: nowrap;
  }
  
  .macro-label span:first-child {
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .macro-label span:last-child {
    color: var(--text-muted);
    font-size: 0.7rem;
  }
  
  .macro-bar-track {
    width: 100%;
    background-color: var(--surface);
    height: 0.55rem;
    border-radius: 99px;
    overflow: hidden;
  }
  
  .macro-bar-track.mini {
    height: 0.4rem;
  }
  
  .macro-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease-out;
  }
  
  .macro-bar-fill.calories {
    background-color: var(--primary);
  }
  
  .macro-bar-fill.protein {
    background-color: var(--green-500);
  }
  
  .macro-bar-fill.carbs {
    background-color: var(--yellow-400);
  }
  
  .macro-bar-fill.fat {
    background-color: var(--blue-500);
  }
  
  /* Responsive grid layout */
  .macros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
.water-tracker-demo { background: var(--surface); border: 1px solid var(--border-color); border-radius: 1rem; padding: 1rem; flex-shrink: 0;}
.water-tracker-demo h4 { font-weight: bold; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.icon-small { width: 1rem; height: 1rem; }
.water-glasses { display: flex; gap: 0.35rem; }
.water-glass { flex: 1; height: 2rem; background-color: var(--background); border-radius: 0.25rem; transition: background-color 0.2s; }
.water-glass.filled { background-color: var(--blue-500); }
.water-controls { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }
.water-controls button { width: 1.75rem; height: 1.75rem; background: var(--background); border-radius: 99px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.water-controls button i { width: 1rem; height: 1rem; }

.meal-sections-container { flex-grow: 1; overflow-y: auto; min-height: 0; space-y: 0.75rem; padding-bottom: 4rem; margin: 0 -0.5rem; padding: 0 0.5rem;}
.meal-section-demo { background: var(--surface); border: 1px solid var(--border-color); border-radius: 1rem; overflow: hidden; }
.meal-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; cursor: pointer; }
.meal-title { font-weight: bold; text-transform: capitalize; }
.meal-totals { font-size: 0.75rem; color: var(--text-muted); }
.meal-chevron { transition: transform 0.2s; }
.meal-section-demo.collapsed .meal-chevron { transform: rotate(-90deg); }
.meal-content { padding: 0 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.food-item-demo { display: flex; justify-content: space-between; align-items: center; background: var(--background); padding: 0.5rem; border-radius: 0.5rem; }
.food-item-name { font-size: 0.8rem; }
.food-item-macros { font-size: 0.7rem; color: var(--text-muted); }
.food-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; }

.floating-add-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    color: white;
    border-radius: 99px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 10;
}
.floating-add-btn i { width: 1.5rem; height: 1.5rem; }

.mini-modal {
    position: absolute;
    bottom: 5.5rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10;
    transform-origin: bottom right;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.mini-modal.view-hidden { transform: scale(0.8); opacity: 0; pointer-events: none; }
.mini-modal input { background: var(--background); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.5rem; color: var(--text-main); font-size: 0.9rem; }
.mini-modal button { background: var(--primary); color: white; border: none; border-radius: 0.5rem; padding: 0.5rem; cursor: pointer; }


/* --- Shared & Footer --- */
.features-section, .coming-soon-section { padding: 6rem 0; text-align: center; }
.coming-soon-section { background-color: var(--surface); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; text-align: left; }
.feature-card { background: rgba(26, 26, 26, 0.5); border: 1px solid var(--border-color); border-radius: 1rem; padding: 2rem; backdrop-filter: blur(10px); transition: transform 0.3s, box-shadow 0.3s; opacity: 0; transform: translateY(30px); }
.feature-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.feature-card h3 { margin-bottom: 1rem; color: var(--text-main); }
.feature-card p { color: var(--text-muted); }
.feature-card.future h3 { color: var(--primary-light); }


/* FILE: Landing Page/style.css */

/* --- (Add this at the end of your file) --- */

/* --- Footer Styles --- */
footer {
    padding: 4rem 0 3rem 0;
    background-color: #111319; /* A slightly darker shade for contrast */
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center; /* Ensures all content inside is centered */
}

.footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-about p {
    max-width: 50ch; /* Keeps the mission statement readable */
    margin: 0 auto 3rem auto; /* Centers the paragraph itself */
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* This is the key fix: It overrides the global 'p' style for the footer */
footer p {
    max-width: none;
}
/* --- Responsive Design --- */

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Reduce container padding on mobile */
    .container {
        padding: 0 1rem;
    }

    /* Adjust typography for smaller screens */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .subtitle { font-size: 1rem; }

    /* Make the hero section more compact */
    .hero-section {
        padding: 3rem 0 4rem 0;
    }

    .waitlist-form {
        flex-direction: column; /* Stack input and button */
        gap: 0.75rem;
    }
    
    /* Make all content sections less tall */
    .interactive-demo,
    .core-features-section,
    .features-section,
    .coming-soon-section {
        padding: 4rem 0;
    }

    /* Re-order and center the interactive demo */
    .interactive-demo .container {
        grid-template-columns: 1fr;
        gap: 2rem; /* Reduce gap between text and phone */
    }

    .demo-controls-text {
        order: -1; /* Puts text above the phone */
        text-align: center;
    }

    .demo-tabs {
        margin: 1.5rem auto 0; /* Center the tabs */
    }

    /* Scale down the phone mockup to fit */
    .phone-mockup {
        transform: scale(0.9) rotateY(0) rotateX(0); /* Make it smaller and straightened */
    }

    .phone-mockup:hover {
        transform: scale(0.92) rotateY(0) rotateX(0); /* Subtle hover effect for mobile */
    }
    
    /* Make feature cards more compact */
    .core-feature-card, .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Adjust footer padding */
    footer {
        padding: 3rem 0;
    }
    .footer-about p {
        margin-bottom: 2rem;
    }
}


/* --- Language Switcher Styles --- */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

/* --- Language Switcher Styles --- */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

/* --- Features Accordion Section --- */
.features-accordion-section {
    padding: 6rem 0;
    text-align: center;
}

.features-accordion-section .subtitle {
    margin: 0 auto 3rem auto;
}

.accordion {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--surface);
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    flex-grow: 1;
}

.accordion-header .chevron {
    transition: transform 0.3s ease-in-out;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Active state for accordion item */
.accordion-item.active .chevron {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 200px; /* Adjust if content is taller */
}

/* --- Core V1 Features Section --- */
.core-features-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.core-features-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%);
    transform: translateY(-50%);
    z-index: 0;
}

.core-features-section .container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.core-features-section h2 {
    margin-bottom: 1rem;
}

.core-features-section .subtitle {
    margin: 0 auto 3.5rem auto;
    color: var(--text-muted);
}

/* FILE: Landing Page/style.css */

.core-features-grid {
    display: grid;
    /* MODIFIED: Adjusted the minimum width for better responsiveness with 6 cards */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.core-feature-card {
    background: rgba(31, 41, 55, 0.5); /* Semi-transparent surface color */
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.core-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(167, 139, 250, 0.4); /* Primary light on hover */
}

.core-feature-card .card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.core-feature-card .card-icon i {
    width: 24px;
    height: 24px;
}

.core-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.core-feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}
