/* ==============================================================================
   Learnistry Together - Main Global CSS
   Modern romantic aesthetic: soft rose accents, glassmorphism, fluid typography
   ============================================================================== */

:root {
    --primary: #e11d48;
    --primary-hover: #be123c;
    --primary-light: #fff1f2;
    --primary-glow: rgba(225, 29, 72, 0.25);

    --accent-gold: #f59e0b;
    --accent-purple: #8b5cf6;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --bg-main: #fffafb;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-subtle: rgba(225, 29, 72, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(225, 29, 72, 0.08);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.08);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
}
.logo-heart {
    font-size: 1.5rem;
    animation: gentlePulse 2.5s infinite ease-in-out;
}
.logo-accent {
    color: var(--primary);
    font-family: var(--font-heading);
    font-style: italic;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--primary);
}

.nav-cta-btn {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), #fb7185);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.25s ease;
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    padding: 5rem 1.5rem 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #ffe4e6 0%, #fffafb 70%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.8rem;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 850px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-main);
}
.hero-heading .sparkle-text {
    background: linear-gradient(135deg, var(--primary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary), #fb7185);
    color: #fff;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.95rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-muted);
}

/* ==========================================
   Section Layouts
   ========================================== */
.section {
    padding: 5rem 1.5rem;
}
.section-alt {
    background: #fff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}
.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================
   Templates Gallery
   ========================================== */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.template-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.template-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.template-preview-mockup {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}
.template-mockup-inner {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.template-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.template-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}
.template-card-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.template-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================
   How It Works (6 Steps)
   ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.step-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}
.step-item:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(225, 29, 72, 0.12);
}
.step-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================
   Features Grid
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}
.feature-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}
.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   FAQ Accordion
   ========================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}
.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 1.5rem 2.5rem 1.5rem;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}
.footer-logo {
    margin-bottom: 1rem;
}
.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.footer-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: #475569;
}
.footer-links-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}
.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links-col a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.footer-links-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    font-size: 0.88rem;
    color: var(--text-subtle);
}
.back-to-top {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.back-to-top:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
