/* ===================================
   CSS Reset and Base Styles
   =================================== */

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

:root {
    /* Brand Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #7c3aed;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xlarge: 24px;
    --font-size-h1: 48px;
    --font-size-h2: 36px;
    --font-size-h3: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Header
   =================================== */

.site-header {
    background: var(--bg-white);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.login-link {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link:hover {
    background: var(--primary-color);
    color: white !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s ease;
}

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

.hamburger::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Buttons
   =================================== */

.cta-button,
.cta-button-large {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.cta-button-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button-large {
    padding: 16px 32px;
    font-size: var(--font-size-large);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

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

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.svg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-logo {
    flex: 0 0 120px;
}

.hero-logo img {
    width: 120px;
    height: auto;
    display: block;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-headline {
    font-size: var(--font-size-h1);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subheadline {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.7;
}

/* ===================================
   Section Titles
   =================================== */

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

/* ===================================
   Features Section
   =================================== */

.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

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

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-image {
    margin-bottom: var(--spacing-md);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    max-height: 100%;
    width: auto;
}

.feature-card h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Story Section
   =================================== */

.story {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.story-text h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.story-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.story-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Differentiators Section
   =================================== */

.differentiators {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.diff-item {
    text-align: center;
    padding: var(--spacing-md);
}

.diff-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.diff-item h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.diff-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    margin-bottom: var(--spacing-md);
}

.testimonial-quote p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: var(--font-size-large);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-dark);
    font-size: var(--font-size-base);
}

.author-info span {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

/* ===================================
   FAQ Section
   =================================== */

.faq {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: var(--spacing-sm);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-small);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-small);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    :root {
        --font-size-h1: 36px;
        --font-size-h2: 28px;
        --font-size-h3: 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        padding: var(--spacing-sm) 0;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-logo {
        flex: 0 0 auto;
    }

    .hero-logo img {
        width: 100px;
    }

    .hero-text {
        text-align: center;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .features-grid,
    .diff-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}
