@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Caveat:wght@400;700&display=swap');

/* === Variables === */
:root {
    --color-cream: #EAE6CA;
    --color-mosgroen: #2f4538;
    --color-mosgroen-light: #3e5a4d;
    --color-terracotta: #D1a193;
    --color-text: #333333;
    --color-text-soft: #5c7066;
    --color-card: rgba(255, 255, 255, 0.85);
    --color-card-solid: #ffffff;
    --color-bg: #EAE6CA;
    --color-bg-alt: #F3F1E4;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(47, 62, 57, 0.08);
    --shadow-medium: 0 20px 60px -15px rgba(47, 62, 57, 0.12);
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 0.3s var(--ease-out);
    --transition-normal: 0.6s var(--ease-out);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-alt { background: rgba(47, 69, 56, 0.04); }

/* === Background === */
.global-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden;
    background: linear-gradient(170deg, #FDFCF8 0%, #F8F6F0 50%, #FBF9F4 100%);
    pointer-events: none;
}
.organic-shape {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    filter: blur(80px);
    opacity: 0.5;
}
.shape-1 { width: 600px; height: 600px; top: -10%; left: -10%; background: var(--color-terracotta); opacity: 0.15; }
.shape-2 { width: 500px; height: 500px; top: 40%; right: -15%; background: var(--color-mosgroen); opacity: 0.08; }
.shape-3 { width: 400px; height: 400px; bottom: 10%; left: 20%; background: var(--color-cream); opacity: 0.3; }

/* === Animations === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(234, 230, 202, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 69, 56, 0.08);
    padding: 1rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--color-mosgroen); }
.nav-links a:hover { color: var(--color-terracotta); }
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px; background: var(--color-mosgroen);
    position: absolute; left: 0; transition: var(--transition-fast);
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 600; font-size: 1rem;
    cursor: pointer; border: 2px solid transparent;
    transition: var(--transition-fast);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-primary {
    background: var(--color-mosgroen); color: white; border-color: var(--color-mosgroen);
}
.btn-primary:hover { background: var(--color-mosgroen-light); border-color: var(--color-mosgroen-light); }
.btn-outline {
    background: transparent; color: var(--color-mosgroen); border-color: var(--color-mosgroen);
}
.btn-outline:hover { background: var(--color-mosgroen); color: white; }
.btn-accent {
    background: var(--color-terracotta); color: white; border-color: var(--color-terracotta);
}
.btn-accent:hover { opacity: 0.9; }
.btn-outline-light {
    background: transparent; color: white; border-color: white;
}
.btn-outline-light:hover { background: white; color: var(--color-mosgroen); }
.btn-full { width: 100%; }

/* === Hero === */
.hero { padding: 10rem 0 5rem; text-align: center; }
.hero-label {
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--color-terracotta); margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700; color: var(--color-mosgroen); line-height: 1.2; margin-bottom: 1rem;
}
.accent-text { color: var(--color-terracotta); }
.hero-subtitle {
    font-size: 1.3rem; color: var(--color-mosgroen); opacity: 0.8; margin-bottom: 1rem;
}
.hero-desc {
    font-size: 1.1rem; color: var(--color-text-soft);
    max-width: 600px; margin: 0 auto 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 3rem; justify-content: center; margin-top: 3rem;
}
.stat-number {
    display: block; font-family: var(--font-display); font-size: 2rem;
    font-weight: 700; color: var(--color-mosgroen);
}
.stat-label { font-size: 0.85rem; color: var(--color-text-soft); }

/* === USP Banner === */
.usp-banner { background: var(--color-mosgroen); padding: 3.5rem 0; }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.usp-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.usp-item h3 { font-size: 1.1rem; font-weight: 600; color: white; margin-bottom: 0.3rem; }
.usp-item p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--color-mosgroen); margin-bottom: 0.8rem;
}
.section-header p { color: var(--color-text-soft); max-width: 600px; margin: 0 auto; }

/* === Module Cards === */
.modules-list { display: flex; flex-direction: column; gap: 1rem; }
.module-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: var(--color-card); border-radius: var(--radius-md);
    padding: 1.5rem 2rem; box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.module-number {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--color-terracotta); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.module-info { flex: 1; }
.module-info h3 { font-weight: 600; color: var(--color-mosgroen); font-size: 1.05rem; margin-bottom: 0.2rem; }
.module-info p { font-size: 0.9rem; color: var(--color-text-soft); }
.module-sbu {
    background: rgba(47, 69, 56, 0.1); color: var(--color-mosgroen);
    font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0.8rem;
    border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}

/* === Quote === */
.quote-section { padding: 5rem 0; background: rgba(47, 69, 56, 0.04); text-align: center; }
.quote-text {
    font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600; font-style: italic; color: var(--color-mosgroen); line-height: 1.4;
}
cite {
    display: block; margin-top: 1rem; font-style: normal;
    font-weight: 600; color: var(--color-terracotta); font-size: 1rem;
}

/* === Target Grid === */
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.target-card {
    background: var(--color-card); border-radius: var(--radius-md);
    padding: 2rem; box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}
.target-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.target-card h3 { font-weight: 600; color: var(--color-mosgroen); margin-bottom: 0.5rem; }
.target-card p { font-size: 0.95rem; color: var(--color-text-soft); }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pricing-card {
    background: var(--color-card-solid); border-radius: var(--radius-lg);
    padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-soft);
    transition: var(--transition-fast); position: relative;
    display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.pricing-popular {
    border: 2px solid var(--color-mosgroen);
    transform: scale(1.05);
}
.pricing-popular:hover { transform: scale(1.05) translateY(-4px); }
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--color-mosgroen); color: white;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; padding: 0.4rem 1.2rem; border-radius: 999px;
}
.pricing-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-mosgroen); margin-bottom: 0.3rem; }
.pricing-desc { font-size: 0.9rem; color: var(--color-text-soft); margin-bottom: 1.5rem; }
.pricing-price {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    color: var(--color-mosgroen); margin-bottom: 1.5rem;
}
.pricing-features { margin-bottom: 2rem; flex: 1; }
.pricing-features li {
    padding: 0.5rem 0; font-size: 0.9rem; color: var(--color-text-soft);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pricing-features li:last-child { border: none; }
.pricing-note { text-align: center; margin-top: 2rem; font-size: 0.9rem; color: var(--color-text-soft); }
.pricing-note a { color: var(--color-terracotta); text-decoration: underline; }

/* === CTA === */
.cta-section {
    background: var(--color-mosgroen); padding: 5rem 0; text-align: center;
}
.cta-content h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; color: white; margin-bottom: 1rem;
}
.cta-content .accent-text { color: var(--color-terracotta); }
.cta-content p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
.footer { padding: 3rem 0 2rem; background: rgba(47, 69, 56, 0.06); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { height: 32px; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; color: var(--color-text-soft); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--color-mosgroen); }
.footer-links a:hover { color: var(--color-terracotta); }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--color-text-soft); padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.06); }

/* === Mobile === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(234, 230, 202, 0.98); backdrop-filter: blur(20px);
        padding: 1.5rem 2rem; gap: 1rem;
        border-bottom: 1px solid rgba(47, 69, 56, 0.08);
    }
    .hero { padding: 8rem 0 3rem; }
    .hero-stats { gap: 1.5rem; }
    .usp-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .module-card { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .module-sbu { align-self: flex-start; }
    .target-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-popular { transform: scale(1); }
    .pricing-popular:hover { transform: translateY(-4px); }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* === Login Page === */
.auth-page { padding: 10rem 0 5rem; min-height: 100vh; }
.auth-card {
    max-width: 440px; margin: 0 auto;
    background: var(--color-card-solid); border-radius: var(--radius-lg);
    padding: 3rem; box-shadow: var(--shadow-medium);
}
.auth-card h1 {
    font-family: var(--font-display); font-size: 2rem;
    color: var(--color-mosgroen); margin-bottom: 0.5rem; text-align: center;
}
.auth-card .auth-subtitle { text-align: center; color: var(--color-text-soft); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--color-mosgroen); margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.8rem 1rem;
    border: 1.5px solid rgba(47, 69, 56, 0.15);
    border-radius: var(--radius-sm); font-family: var(--font-body);
    font-size: 1rem; background: white; color: var(--color-text);
    transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(209, 161, 147, 0.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--color-text-soft); }
.auth-switch a { color: var(--color-terracotta); font-weight: 600; }
.form-error { color: #d32f2f; font-size: 0.85rem; margin-top: 0.5rem; display: none; }
.form-success { color: var(--color-mosgroen); font-size: 0.85rem; margin-top: 0.5rem; display: none; text-align: center; }

/* === Dashboard === */
.dashboard-header {
    padding: 8rem 0 2rem; text-align: center;
}
.dashboard-header h1 {
    font-family: var(--font-display); font-size: 2.2rem;
    color: var(--color-mosgroen); margin-bottom: 0.5rem;
}
.dashboard-header p { color: var(--color-text-soft); }
.progress-bar-wrap {
    max-width: 500px; margin: 1.5rem auto 0;
    background: rgba(47, 69, 56, 0.1); border-radius: 999px; height: 10px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: var(--color-mosgroen); border-radius: 999px;
    transition: width 0.6s var(--ease-out);
}
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; padding-bottom: 4rem; }
.dash-module-card {
    background: var(--color-card-solid); border-radius: var(--radius-md);
    padding: 2rem; box-shadow: var(--shadow-soft); transition: var(--transition-fast);
}
.dash-module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.dash-module-card.locked { opacity: 0.5; pointer-events: none; }
.dash-module-card.completed { border-left: 4px solid var(--color-mosgroen); }
.dash-module-card h3 { font-weight: 600; color: var(--color-mosgroen); margin-bottom: 0.3rem; }
.dash-module-card p { font-size: 0.9rem; color: var(--color-text-soft); margin-bottom: 1rem; }
.module-status {
    display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.8rem;
    border-radius: 999px;
}
.module-status.unlocked { background: rgba(47, 69, 56, 0.1); color: var(--color-mosgroen); }
.module-status.completed-status { background: var(--color-mosgroen); color: white; }
.module-status.locked-status { background: rgba(0,0,0,0.05); color: var(--color-text-soft); }

/* === Module Viewer === */
.module-viewer { padding: 8rem 0 4rem; max-width: 800px; margin: 0 auto; }
.module-viewer h1 {
    font-family: var(--font-display); font-size: 2rem;
    color: var(--color-mosgroen); margin-bottom: 0.5rem;
}
.module-viewer .module-meta { color: var(--color-text-soft); margin-bottom: 2rem; }
.module-section {
    background: var(--color-card-solid); border-radius: var(--radius-md);
    padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-soft);
}
.module-section h3 { font-weight: 600; color: var(--color-mosgroen); margin-bottom: 1rem; }
.module-section p { line-height: 1.9; color: var(--color-text); white-space: pre-line; }
.video-placeholder {
    background: rgba(47, 69, 56, 0.05); border-radius: var(--radius-sm);
    padding: 3rem; text-align: center; color: var(--color-text-soft);
}
.module-nav { display: flex; justify-content: space-between; margin-top: 2rem; }
