/* --- CSS Reset & Base Styles --- */
:root {
    --primary-color: #121212;
    --secondary-color: #FFFFFF;
    --accent-color: #4A4A4A;
    --light-gray: #F5F5F7;
    --border-color: #EAEAEA;
    --font-family: 'Manrope', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Utility Classes --- */
.container {
    /* CHANGE: A wider max-width for a more spacious feel */
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 40px; /* Use consistent padding */
}

.section-padding {
    padding: 100px 0;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 60px;
}

p {
    font-size: 1.1rem;
    color: var(--accent-color);
    max-width: 600px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    /* The .container class now handles the width and padding */
}

.logo img {
    height: 45px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Hero Section --- */
#hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
}

#hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero .hero-content h1 {
    max-width: 800px;
    margin: 0 auto;
}

#hero .hero-content p {
    margin: 25px auto 40px;
    font-size: 1.25rem;
}

#hero .hero-image-wrapper {
    margin-top: 80px;
    width: 100%;
    max-width: 900px;
}

#hero .hero-image-wrapper img {
    width: 100%;
    height: auto;
}

/* --- Features Section --- */
#features {
    background-color: var(--light-gray);
}

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

.feature-card {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
}

/* --- How It Works Section --- */
.how-it-works-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 80px;
    text-align: center;
}

.step {
    flex: 1;
    padding: 0 20px;
}

.step .step-number {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.step p {
     font-size: 1rem;
}

/* --- Download Section --- */
#download {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

#download h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

#download p {
    color: #ccc;
    margin: 0 auto 40px;
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-buttons .btn-platform {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    min-width: 200px;
    text-align: center;
}

.download-buttons .btn-platform:hover {
    background-color: #e0e0e0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Footer --- */
footer {
    background-color: var(--light-gray);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-logo img {
     height: 40px;
     opacity: 0.7;
}

footer p {
    font-size: 0.9rem;
    color: #888;
}

/* --- Hamburger Menu Icon --- */
.nav-toggle {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.nav-toggle span:nth-child(1) { top: 0px; }
.nav-toggle span:nth-child(2) { top: 7px; }
.nav-toggle span:nth-child(3) { top: 14px; }

.nav-toggle.active span:nth-child(1) { top: 7px; transform: rotate(135deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; left: -24px; }
.nav-toggle.active span:nth-child(3) { top: 7px; transform: rotate(-135deg); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .container {
        padding: 0 20px; /* Reduce padding on smaller screens */
    }
    
    #hero { padding-top: 120px; }
    
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--secondary-color);
        transition: left var(--transition-speed) ease;
        padding-top: 80px;
    }

    .nav-links.active {
        left: 0;
    }

    .how-it-works-steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 400px;
    }
}
