/*
 * HEM Landing Page — front-page.css
 * Self-contained styles using the design system from style.css
 */

/* ========================================
   Hero
   ======================================== */
.hem-landing__hero {
    background: var(--hem-white);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hem-landing__hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hem-landing__hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--hem-gray-900);
    margin-bottom: var(--hem-space-6);
    letter-spacing: -0.02em;
}

.hem-landing__hero-accent {
    background: linear-gradient(135deg, var(--hem-primary) 0%, var(--hem-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hem-landing__hero-subtitle {
    font-size: var(--hem-text-lg);
    color: var(--hem-gray-500);
    line-height: 1.7;
    margin-bottom: var(--hem-space-8);
    max-width: 520px;
}

.hem-landing__hero-ctas {
    display: flex;
    gap: var(--hem-space-4);
    flex-wrap: wrap;
}

/* Outline button variant */
.hem-btn--outline {
    background: transparent;
    color: var(--hem-gray-700);
    border: 1.5px solid var(--hem-gray-300);
}
.hem-btn--outline:hover {
    background: var(--hem-gray-50);
    border-color: var(--hem-gray-400);
    color: var(--hem-gray-800);
}

/* ========================================
   Browser Mockup
   ======================================== */
.hem-landing__mockup {
    border-radius: var(--hem-radius-lg);
    overflow: hidden;
    box-shadow: var(--hem-shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hem-gray-200);
    background: var(--hem-white);
}

.hem-landing__mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--hem-gray-100);
    border-bottom: 1px solid var(--hem-gray-200);
}

.hem-landing__mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hem-gray-300);
}
.hem-landing__mockup-dot:first-child { background: #ef4444; }
.hem-landing__mockup-dot:nth-child(2) { background: #f59e0b; }
.hem-landing__mockup-dot:nth-child(3) { background: #10b981; }

.hem-landing__mockup-url {
    margin-left: 10px;
    font-size: var(--hem-text-xs);
    color: var(--hem-gray-400);
    background: var(--hem-white);
    border: 1px solid var(--hem-gray-200);
    border-radius: var(--hem-radius-sm);
    padding: 3px 12px;
    flex: 1;
    max-width: 260px;
}

.hem-landing__mockup-body {
    display: flex;
    min-height: 260px;
}

.hem-landing__mockup-sidebar {
    width: 52px;
    background: var(--hem-gray-50);
    border-right: 1px solid var(--hem-gray-200);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hem-landing__mockup-nav-item {
    height: 8px;
    border-radius: 4px;
    background: var(--hem-gray-200);
}
.hem-landing__mockup-nav-item--active {
    background: var(--hem-primary);
}

.hem-landing__mockup-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hem-landing__mockup-header-bar {
    height: 10px;
    width: 40%;
    background: var(--hem-gray-200);
    border-radius: 4px;
}

.hem-landing__mockup-video {
    flex: 1;
    background: linear-gradient(135deg, var(--hem-gray-800) 0%, var(--hem-gray-700) 100%);
    border-radius: var(--hem-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hem-white);
    min-height: 120px;
}

.hem-landing__mockup-cards {
    display: flex;
    gap: 8px;
}
.hem-landing__mockup-card {
    flex: 1;
    height: 32px;
    background: var(--hem-gray-100);
    border-radius: var(--hem-radius-sm);
    border: 1px solid var(--hem-gray-200);
}

/* ========================================
   Logo Bar
   ======================================== */
.hem-landing__logos {
    background: var(--hem-gray-50);
    padding: 2.5rem 0;
    border-top: 1px solid var(--hem-gray-100);
    border-bottom: 1px solid var(--hem-gray-100);
}

.hem-landing__logos-label {
    text-align: center;
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin: 0 0 1.5rem;
}

.hem-landing__logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hem-landing__logo-item {
    font-size: var(--hem-text-xl);
    font-weight: 700;
    color: var(--hem-gray-300);
    letter-spacing: 0.02em;
    user-select: none;
}

/* ========================================
   Section Headers
   ======================================== */
.hem-landing__section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.hem-landing__section-header h2 {
    font-size: var(--hem-text-3xl);
    font-weight: 700;
    margin-bottom: var(--hem-space-4);
    letter-spacing: -0.01em;
}
.hem-landing__section-header p {
    font-size: var(--hem-text-lg);
    color: var(--hem-gray-500);
    margin: 0;
}

/* ========================================
   Features Grid
   ======================================== */
.hem-landing__features {
    padding: 5rem 0;
    background: var(--hem-white);
}

.hem-landing__features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hem-landing__feature-card {
    background: var(--hem-white);
    border: 1px solid var(--hem-gray-200);
    border-radius: var(--hem-radius-md);
    padding: 2rem;
    transition: transform var(--hem-transition-slow), box-shadow var(--hem-transition-slow);
}
.hem-landing__feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hem-shadow-lg);
}

.hem-landing__feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--hem-radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--hem-space-4);
    color: var(--hem-primary);
}

.hem-landing__feature-card h3 {
    font-size: var(--hem-text-base);
    font-weight: 600;
    margin-bottom: var(--hem-space-2);
}

.hem-landing__feature-card p {
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   How It Works
   ======================================== */
.hem-landing__how-it-works {
    padding: 5rem 0;
    background: var(--hem-gray-50);
}

.hem-landing__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.hem-landing__step {
    text-align: center;
    max-width: 280px;
    padding: 0 1.5rem;
}

.hem-landing__step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hem-primary);
    color: var(--hem-white);
    font-size: var(--hem-text-xl);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--hem-space-4);
}

.hem-landing__step h3 {
    font-size: var(--hem-text-base);
    font-weight: 600;
    margin-bottom: var(--hem-space-2);
}

.hem-landing__step p {
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-500);
    line-height: 1.6;
    margin: 0;
}

.hem-landing__step-connector {
    width: 60px;
    height: 2px;
    background: var(--hem-gray-300);
    margin-top: 24px;
    flex-shrink: 0;
}

/* ========================================
   Stats Bar
   ======================================== */
.hem-landing__stats {
    padding: 3.5rem 0;
    background: var(--hem-white);
    border-top: 1px solid var(--hem-gray-100);
    border-bottom: 1px solid var(--hem-gray-100);
}

.hem-landing__stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.hem-landing__stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hem-gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hem-landing__stat-label {
    display: block;
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-400);
    margin-top: var(--hem-space-2);
    font-weight: 500;
}

/* ========================================
   Testimonials
   ======================================== */
.hem-landing__testimonials {
    padding: 5rem 0;
    background: var(--hem-gray-50);
}

.hem-landing__testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.hem-landing__testimonial {
    background: var(--hem-white);
    border: 1px solid var(--hem-gray-200);
    border-radius: var(--hem-radius-md);
    padding: 2rem;
}

.hem-landing__testimonial-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: var(--hem-space-4);
}

.hem-landing__testimonial-quote {
    font-size: var(--hem-text-base);
    color: var(--hem-gray-700);
    line-height: 1.7;
    margin: 0 0 var(--hem-space-6);
    font-style: normal;
}

.hem-landing__testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--hem-space-3);
}
.hem-landing__testimonial-author strong {
    display: block;
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-900);
}
.hem-landing__testimonial-author span {
    display: block;
    font-size: var(--hem-text-xs);
    color: var(--hem-gray-400);
}

/* ========================================
   Final CTA
   ======================================== */
.hem-landing__cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--hem-primary) 0%, var(--hem-secondary) 100%);
}

.hem-landing__cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.hem-landing__cta-inner h2 {
    color: var(--hem-white);
    font-size: var(--hem-text-3xl);
    font-weight: 700;
    margin-bottom: var(--hem-space-4);
}

.hem-landing__cta-inner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--hem-text-lg);
    margin-bottom: var(--hem-space-8);
}

.hem-landing__cta-inner .hem-btn--primary {
    background: var(--hem-white);
    color: var(--hem-primary);
    font-size: var(--hem-text-base);
    padding: var(--hem-space-3) var(--hem-space-10);
}
.hem-landing__cta-inner .hem-btn--primary:hover {
    background: var(--hem-gray-100);
    color: var(--hem-primary-dark);
}

/* ========================================
   Fade-in Animation
   ======================================== */
.hem-landing__fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hem-landing__fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Landing page header tweaks
   ======================================== */
.hem-header--landing {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hem-header__cta-demo {
    margin-left: var(--hem-space-2);
}

/* ========================================
   Responsive — 1024px
   ======================================== */
@media (max-width: 1024px) {
    .hem-landing__hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hem-landing__hero-title {
        font-size: 2.5rem;
    }

    .hem-landing__hero-subtitle {
        max-width: 100%;
    }

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

    .hem-landing__stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .hem-landing__testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive — 768px
   ======================================== */
@media (max-width: 768px) {
    .hem-landing__hero {
        padding: 3rem 0 2.5rem;
    }

    .hem-landing__hero-title {
        font-size: 2rem;
    }

    .hem-landing__hero-ctas {
        flex-direction: column;
    }
    .hem-landing__hero-ctas .hem-btn {
        text-align: center;
        justify-content: center;
    }

    .hem-landing__logos-row {
        gap: 1.5rem;
    }
    .hem-landing__logo-item {
        font-size: var(--hem-text-base);
    }

    .hem-landing__features,
    .hem-landing__how-it-works,
    .hem-landing__testimonials {
        padding: 3rem 0;
    }

    .hem-landing__features-grid {
        grid-template-columns: 1fr;
    }

    .hem-landing__steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .hem-landing__step-connector {
        width: 2px;
        height: 32px;
        margin: 0;
    }

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

    .hem-landing__section-header h2 {
        font-size: var(--hem-text-2xl);
    }

    .hem-landing__cta-inner h2 {
        font-size: var(--hem-text-2xl);
    }

    .hem-header__cta-demo {
        display: none;
    }
}

/* ========================================
   Responsive — 480px
   ======================================== */
@media (max-width: 480px) {
    .hem-landing__hero-title {
        font-size: 1.75rem;
    }

    .hem-landing__stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hem-landing__stat-number {
        font-size: 2rem;
    }
}
