/* ==========================================
   CSS Reset & Base Styles
   ========================================== */

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

:root {
    /* Color Palette */
    --primary: #ec4899;
    --primary-dark: #db2777;
    --accent: #8b5cf6;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --success: #10b981;
    --warning: #ef4444;

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

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    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);
}

section {
    padding: var(--spacing-3xl) 0;
}

/* ==========================================
   Section Headers
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-gray);
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

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

.btn-large {
    padding: 1.25rem 3rem;
    font-size: var(--font-size-lg);
}

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

#hero {
    background: linear-gradient(135deg, #fce7f3 0%, #e9d5ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-note {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-style: italic;
}

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

#features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.feature-content {
    padding: var(--spacing-lg);
}

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

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

.feature-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.feature-highlight .feature-content {
    color: white;
    text-align: center;
}

.feature-highlight .feature-content h3,
.feature-highlight .feature-content p {
    color: white;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.feature-icon svg {
    stroke: white;
}

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

#how-it-works {
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.step-icon svg {
    stroke: var(--primary);
}

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

.step p {
    color: var(--text-gray);
    font-size: var(--font-size-base);
}

/* ==========================================
   Video Demo Section
   ========================================== */

#video-demo {
    background: var(--bg-white);
}

.video-container {
    max-width: 400px;
    margin: 0 auto var(--spacing-xl);
    border-radius: var(--radius-xl);
    overflow: visible;
    box-shadow: var(--shadow-xl);
    background: var(--text-dark);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    border-radius: var(--radius-xl);
    outline: none;
}

.video-container video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
}

.video-container video::-webkit-media-controls-play-button {
    display: block !important;
}

.video-cta {
    text-align: center;
}

.video-cta p {
    font-size: var(--font-size-xl);
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

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

#testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.testimonial {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.quote {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-style: italic;
}

.author {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    font-weight: 600;
}

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

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

.cta-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: white;
}

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

.cta-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

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

footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

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

.footer-brand p {
    color: var(--text-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

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

.footer-bottom p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .section-header h2 {
        font-size: var(--font-size-3xl);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */

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

    section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-logo {
        max-width: 140px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: var(--font-size-2xl);
    }

    .section-header p {
        font-size: var(--font-size-base);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .step-number {
        position: static;
        transform: none;
        margin: 0 auto var(--spacing-md);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: var(--font-size-3xl);
    }

    .cta-content > p {
        font-size: var(--font-size-base);
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 1 !important;
}

/* ==========================================
   Utility Classes
   ========================================== */

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
