/* --- Reset & Global Styles --- */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #0f172a;
    /* Darker background */
    color: #f8fafc;
    /* Lighter text for contrast */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    /* Consistent font */
    font-weight: 700;
    /* Bold headings */
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
}

/* Larger h1 */
h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1em;
    color: #cbd5e1;
    /* Slightly lighter paragraphs */
}

a {
    text-decoration: none;
    color: #a5b4fc;
    /* Indigo-300 for links */
    transition: color 0.2s ease;
}

a:hover {
    color: #818cf8;
    /* Indigo-400 on hover */
}

/* --- Utility Classes --- */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.bg-gradient-purple-indigo {
    background-image: linear-gradient(to right, #7c3aed, #6366f1);
}

.container {
    max-width: 1200px;
    /* Larger container */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- Header --- */
header {
    background-color: rgba(15, 23, 42, 0.9);
    /* Dark with slight transparency */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #252f45;
    /* Subtle border */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    /* Extra bold logo */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav a {
    padding: 0.5rem 0.75rem;
    display: inline-block;
    /* For better hover effects */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    /* Rounded corners */
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-image: linear-gradient(to right, #7c3aed, #6366f1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    /* Slight lift */
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    /* Glow effect */
}

.btn-outline {
    border: 2px solid #a5b4fc;
    /* Indigo-300 border */
    color: #a5b4fc;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #a5b4fc;
    color: #0f172a;
}

/* --- Sections --- */
section {
    padding-top: 5rem;
    /* More spacing between sections */
    padding-bottom: 5rem;
}

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

.section-description {
    text-align: center;
    max-width: 60ch;
    /* Optimal line length for readability */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    color: #94a3b8;
}

/* --- Cards --- */
.card {
    background-color: rgba(30, 41, 59, 0.7);
    /* Dark with transparency */
    backdrop-filter: blur(15px);
    /* Glassmorphism */
    border: 1px solid #252f45;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    /* Subtle lift on hover */
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
    /* Glow effect */
}

/* --- Feature List (How it Works) --- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive columnsgap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start; /* Align icon with top of text */
}

.feature-icon {
    flex-shrink: 0;
    /* Prevent icon from shrinking */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-image: linear-gradient(to right, #7c3aed, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #c4b5fd;
    /* Light purple for titles */
}

/* --- FAQ --- */
.faq-item {
    margin-bottom: 1rem;
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #252f45;
    border-radius: 0.5rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #c4b5fd;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #94a3b8;
    display: none;
    /* Hide by default */
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question {
    border-bottom: 1px solid #252f45;

}

/* --- Slider --- */
.slider-container {
    position: relative;
    margin-bottom: 2rem;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #252f45;
    /* Dark track */
    border-radius: 4px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #a5b4fc;
    /* Indigo-300 thumb */
    cursor: pointer;
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #94a3b8;
}

/* --- Footer --- */
footer {
    background-color: #0f172a;
    /* Footer background */
    text-align: center;
    padding: 2rem 0;
    color: #94a3b8;
    border-top: 1px solid #252f45;
}

/* --- Animations (Keyframes) --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* --- Scroll Reveal (Optional) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .header-inner {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .main-nav {
        display: flex;
        align-items: center;
    }

    h1 {
        font-size: 3.75rem;
    }

    h2 {
        font-size: 3rem;
    }

    section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Two columns on larger screens */
    }
}