/* Home Page Styles - Kinnaree Edition */

.home-hero {
    background: linear-gradient(135deg, #064E3B 0%, #059669 40%, #0D9488 100%);
    color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.18);
}

/* Decorative subtle pattern overlay */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Hero split layout ── */
.hero-split {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem 4rem;
    min-height: 520px;
    position: relative;
    z-index: 1;
}

.hero-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 480px;
    line-height: 1.6;
}

.hero-mascot {
    width: 200px;
    max-width: 100%;
    margin-top: 0.5rem;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.2));
    animation: mascotFloat 3s ease-in-out infinite;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.trust-item i {
    font-size: 1rem;
}

/* ── Right sign-up card ── */
.hero-form-wrap {
    width: 400px;
    flex-shrink: 0;
}

.hero-signup-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    color: #1c1917;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1c1917;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a8a29e;
    font-size: 0.875rem;
    margin: 0.75rem 0;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e7e5e4;
}

.hero-signin-hint {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #78716c;
    text-align: center;
}

.hero-signin-hint a {
    color: #D97706;
    font-weight: 600;
    text-decoration: none;
}

.hero-signin-hint a:hover {
    color: #B45309;
    text-decoration: none;
}

/* ── Stats Bar ── */
.stats-bar {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFF7ED 100%);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #D97706;
    line-height: 1.2;
}

.stat-infinity {
    font-size: 3rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #78716c;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(245, 158, 11, 0.2);
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1c1917;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #78716c;
    max-width: 500px;
    margin: 0 auto;
}

/* ── How It Works ── */
.how-it-works {
    padding: 5rem 0 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-emerald) 0%, var(--color-gold) 100%);
    opacity: 0.25;
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-teal) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: #78716c;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Features Section ── */
.features-section {
    padding: 4rem 0 3rem;
}

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

.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.08);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.feature-icon-wrap.gold {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #D97706;
}

.feature-icon-wrap.emerald {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.feature-icon-wrap.teal {
    background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%);
    color: #0D9488;
}

.feature-icon-wrap.coral {
    background: linear-gradient(135deg, #FFF1F2 0%, #FECDD3 100%);
    color: #E11D48;
}

.feature-icon-wrap.purple {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
    color: #9333EA;
}

.feature-icon-wrap.blue {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #2563EB;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #1c1917;
    font-weight: 600;
}

.feature-card p {
    color: #78716c;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Methods Section ── */
.methods-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #FFFBF7 0%, #FFF7ED 100%);
    border-radius: 1.5rem;
    margin-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

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

.method-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.08);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #064E3B 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.method-content p {
    font-size: 0.9rem;
    color: #78716c;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Mobile CTA ── */
.mobile-cta {
    margin-top: 3rem;
    padding: 0 1rem;
}

.mobile-cta-inner {
    background: linear-gradient(135deg, #1c1917 0%, #44403C 100%);
    border-radius: 1.5rem;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    color: white;
    overflow: hidden;
    position: relative;
}

.mobile-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.mobile-cta-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.mobile-cta-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mobile-cta-text p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.6;
}

.mobile-cta-image {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-screenshot {
    width: 220px;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.1);
}

.mobile-mascot {
    position: absolute;
    width: 120px;
    bottom: -20px;
    right: -10px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    animation: mascotFloat 3s ease-in-out infinite;
}

/* ── Pricing CTA ── */
.pricing-cta {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.pricing-cta-inner {
    background: linear-gradient(135deg, #064E3B 0%, #059669 50%, #0D9488 100%);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.pricing-cta-inner h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.pricing-cta-inner p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.pricing-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pricing-cta-buttons .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.pricing-cta-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        text-align: center;
        gap: 2rem;
        min-height: auto;
    }

    .hero-brand {
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-mascot {
        width: 160px;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-form-wrap {
        width: 100%;
        max-width: 420px;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-divider {
        display: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .steps-grid::before {
        display: none;
    }

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

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

    .mobile-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .mobile-cta-text p {
        max-width: 100%;
    }

    .mobile-cta-image {
        width: 100%;
    }

    .mobile-mascot {
        right: 20%;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .stats-bar {
        padding: 1.5rem 1rem;
    }

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

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

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

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .methods-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .method-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mobile-cta-inner {
        padding: 2.5rem 1.5rem;
    }

    .mobile-cta-text h2 {
        font-size: 1.75rem;
    }

    .mobile-screenshot {
        width: 180px;
    }

    .mobile-mascot {
        width: 90px;
        right: 10%;
    }

    .pricing-cta-inner {
        padding: 3rem 1.5rem;
    }

    .pricing-cta-inner h2 {
        font-size: 1.75rem;
    }
}

/* Popular words section (SEO internal linking) */
.explore-vocabulary-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.explore-vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.explore-vocabulary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.explore-vocabulary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.explore-vocabulary-thai {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.explore-vocabulary-romanization {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.explore-vocabulary-definition {
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.4;
}

.explore-vocabulary-cta {
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .explore-vocabulary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-vocabulary-section {
        padding: 3rem 1rem;
    }
}
