/* =============================================
   StoryForest Landing Page — Design System
   Premium forest-inspired SaaS theme
   ============================================= */

/* ---------- Custom Properties ---------- */
:root {
    /* Forest palette */
    --forest-50: #f0fdf4;
    --forest-100: #dcfce7;
    --forest-200: #bbf7d0;
    --forest-300: #86efac;
    --forest-400: #4ade80;
    --forest-500: #22c55e;
    --forest-600: #16a34a;
    --forest-700: #15803d;
    --forest-800: #166534;
    --forest-900: #14532d;

    /* Amber / Golden */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;

    /* Cream */
    --cream-50: #fffef7;
    --cream-100: #fefcf3;

    /* Neutral */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic */
    --bg-white: #ffffff;
    --bg-cream: var(--cream-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);

    /* Brand gradient */
    --gradient-forest: linear-gradient(135deg, #059669, #16a34a, #22c55e);
    --gradient-hero: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 30%, #fef3c7 70%, #fffbeb 100%);
    --gradient-text: linear-gradient(135deg, #059669, #16a34a);
    --gradient-gold: linear-gradient(135deg, var(--amber-400), var(--amber-500));

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-featured: 0 8px 40px rgba(22, 163, 74, 0.2), 0 0 0 1px rgba(22, 163, 74, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Timing */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans KR', 'Outfit', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn i,
.btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-forest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--forest-800);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--forest-600);
    font-weight: 500;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--forest-700);
    background: var(--forest-50);
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.nav-profile-btn:hover {
    transform: scale(1.1);
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-forest);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-nav {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--forest-700);
    border: 1.5px solid var(--forest-200);
    background: var(--bg-white);
}

.btn-outline-nav:hover {
    border-color: var(--forest-400);
    background: var(--forest-50);
}

.btn-primary-nav {
    padding: 8px 20px;
    font-size: 14px;
    color: white;
    background: var(--gradient-forest);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.btn-primary-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle.leaf {
    position: absolute;
    left: var(--x);
    top: -30px;
    width: 22px;
    height: 22px;
    background: rgba(34, 197, 94, 0.25);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    animation: leafFall var(--duration) linear infinite;
    animation-delay: var(--delay);
}

.particle.sparkle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    background: var(--amber-400);
    border-radius: 50%;
    animation: sparkle 2.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes leafFall {
    0% {
        transform: translateY(-30px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 163, 74, 0.15);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-700);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 36px;
}

.hero-subtitle strong {
    color: var(--forest-700);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 16px 32px;
    font-size: 16px;
    color: white;
    background: var(--gradient-forest);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.4);
}

.btn-hero-secondary {
    padding: 16px 28px;
    font-size: 16px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--gray-200);
}

.btn-hero-secondary:hover {
    background: var(--bg-white);
    border-color: var(--forest-300);
    color: var(--forest-700);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--forest-700);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Navigation Logo */
.nav-logo-img {
    height: 40px;
    width: 40px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Forest Library Mascots - Vignette Style */
.hero-mascots {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.3) 0%, rgba(34, 197, 94, 0.15) 60%, transparent 80%);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    filter: blur(30px);
    z-index: 0;
    animation: blobFloat 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes blobFloat {

    0%,
    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate(0, 0) scale(1);
    }

    33% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
        transform: translate(-10px, 10px) scale(1.05);
    }

    66% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: translate(10px, -5px) scale(0.95);
    }
}

.mascot {
    position: absolute;
    filter: drop-shadow(0 15px 35px rgba(22, 163, 74, 0.25));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.mascot:hover {
    transform: scale(1.08) translateY(-8px) !important;
    /* Override animation transform on hover */
    filter: drop-shadow(0 25px 45px rgba(22, 163, 74, 0.35));
    z-index: 10;
}

/* Benny: Large, Back Left */
.mascot.benny {
    width: 280px;
    /* ~60% of container width approx */
    top: 5%;
    left: 5%;
    transform: rotate(-2deg);
    z-index: 2;
    animation: floatHeavy 6s ease-in-out infinite;
}

/* Poki: Smaller, Front Right, Overlapping */
.mascot.poki {
    width: 210px;
    /* ~45% size */
    bottom: 12%;
    right: 8%;
    transform: rotate(3deg);
    z-index: 3;
    animation: floatBouncy 5s ease-in-out infinite;
}

@keyframes floatHeavy {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-12px) rotate(0deg);
    }
}

@keyframes floatBouncy {

    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(-18px) rotate(6deg);
    }
}

.float-element {
    position: absolute;
    font-size: 28px;
    animation: floatAround 3s ease-in-out infinite;
    z-index: 10;
}

.float-star {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.float-note {
    top: 5%;
    left: -20px;
    animation-delay: 0.5s;
}

.float-sparkle {
    bottom: 20%;
    left: -40px;
    animation-delay: 1s;
}

.float-leaf {
    bottom: 10%;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(var(--float-x, 5px), var(--float-y, -10px)) rotate(10deg);
    }

    50% {
        transform: translate(calc(var(--float-x, 5px) * -0.5), calc(var(--float-y, -10px) * 1.5)) rotate(-5deg);
    }

    75% {
        transform: translate(calc(var(--float-x, 5px) * 0.7), var(--float-y, -10px)) rotate(8deg);
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ---------- SECTION SHARED ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--forest-50);
    border: 1px solid var(--forest-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-700);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- FEATURES SECTION ---------- */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.feature-card {
    padding: 36px 28px;
    background: var(--bg-white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-forest);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.feature-card:hover {
    border-color: var(--forest-200);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg,
.feature-icon i {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.feature-icon-magic {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.feature-icon-art {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.feature-icon-voice {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.feature-icon-photo {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
}

.feature-icon-lang {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.feature-icon-book {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #ea580c;
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--gray-50), var(--bg-white));
}

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

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-forest);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.step-content {
    padding: 0 16px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--forest-50);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--forest-100);
}

.step-icon-wrapper svg,
.step-icon-wrapper i {
    width: 36px;
    height: 36px;
    color: var(--forest-600);
    stroke-width: 1.5;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 24px;
    width: 80px;
    flex-shrink: 0;
}

.connector-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--forest-200), var(--forest-300));
}

.connector-arrow {
    color: var(--forest-400);
    font-size: 18px;
    font-weight: 700;
    margin-left: -4px;
}

/* ---------- PRICING SECTION ---------- */
.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-white), var(--forest-50));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card-featured {
    border-color: var(--forest-400);
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 20%);
    box-shadow: var(--shadow-featured);
    transform: scale(1.04);
    z-index: 2;
}

.pricing-card-featured:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 16px 60px rgba(22, 163, 74, 0.25);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-forest);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
}

.plan-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.plan-tagline {
    font-size: 14px;
    color: var(--gray-400);
}

.pricing-price {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-100);
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -1px;
}

.price-period {
    font-size: 16px;
    color: var(--gray-400);
    font-weight: 500;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.pricing-features li svg,
.pricing-features li i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--forest-500);
    stroke-width: 2.5;
}

.pricing-features li.disabled {
    color: var(--gray-300);
}

.pricing-features li.disabled svg,
.pricing-features li.disabled i {
    color: var(--gray-300);
}

.pricing-features li strong {
    font-weight: 700;
    color: var(--gray-900);
}

.btn-plan {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-lg);
}

.btn-plan-free {
    color: var(--forest-700);
    background: var(--forest-50);
    border: 1.5px solid var(--forest-200);
}

.btn-plan-free:hover {
    background: var(--forest-100);
    border-color: var(--forest-300);
}

.btn-plan-featured {
    color: white;
    background: var(--gradient-forest);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

.btn-plan-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
}

.btn-plan-premium {
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
}

.btn-plan-premium:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

/* ---------- FAQ ---------- */
.faq {
    padding: 100px 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--forest-200);
}

.faq-item.open {
    border-color: var(--forest-300);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--forest-700);
}

.faq-question svg,
.faq-question i {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.open .faq-question svg,
.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--forest-600);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ---------- CTA SECTION ---------- */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--forest-800), var(--forest-900));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 60%);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08), transparent 60%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
}

.btn-cta {
    padding: 18px 40px;
    font-size: 17px;
    color: var(--forest-900);
    background: var(--gradient-gold);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 60px 0 32px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
}

.footer-logo .logo-name {
    color: white;
    font-size: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-500);
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--forest-400);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
}

/* ---------- ANIMATIONS (Scroll-triggered) ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for grid items */
.features-grid [data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

.features-grid [data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

.features-grid [data-animate]:nth-child(4) {
    transition-delay: 0.15s;
}

.features-grid [data-animate]:nth-child(5) {
    transition-delay: 0.25s;
}

.features-grid [data-animate]:nth-child(6) {
    transition-delay: 0.35s;
}

.pricing-grid [data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

.pricing-grid [data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }

    .nav-actions.open {
        display: flex;
        position: absolute;
        top: calc(100% + 160px);
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 0 20px 20px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-lg);
        gap: 8px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .book-cover {
        width: 220px;
        height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        flex-direction: column;
        padding-top: 0;
    }

    .connector-line {
        width: 2px;
        height: 100%;
    }

    .connector-arrow {
        transform: rotate(90deg);
        margin-left: 0;
        margin-top: -4px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: translateY(-6px);
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-group {
        gap: 40px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle br {
        display: none;
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 30px;
        height: 1px;
    }

    .book-cover {
        width: 180px;
        height: 240px;
    }
}