/* DragonDreams — Fairy Tale Storybook Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

:root {
    --pink: #FF6B9D;
    --pink-dark: #E8547F;
    --pink-soft: #FFF0F5;
    --rose: #FFD6E7;
    --charcoal: #2D3436;
    --gray: #8B9DA7;
    --cream: #FFF9F5;
    --gold: #FFD700;
    --gold-soft: #FFF8E1;
    --purple-soft: #F3E5F5;
    --blue-soft: #E3F2FD;
    --green-soft: #E8F5E9;
    --white: #fff;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* — Sparkle decorations — */
.sparkle {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    font-size: 20px;
    animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 0.3; transform: scale(1.2); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* — Nav — */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    background: rgba(255,249,245,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,107,157,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 800;
    font-size: 18px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,107,157,0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--pink); }

.nav-cta {
    background: var(--pink) !important;
    color: var(--white) !important;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 14px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 2px 12px rgba(255,107,157,0.25);
}

.nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(255,107,157,0.35) !important;
    color: var(--white) !important;
}

/* — Hero — */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 24px 100px;
    max-width: 760px;
    margin: 0 auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,157,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(255,107,157,0.3), 0 0 0 6px rgba(255,107,157,0.08);
    margin-bottom: 40px;
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.hero h1 em {
    font-style: normal;
    color: var(--pink);
}

.hero p {
    font-size: 19px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* — Buttons — */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white);
    box-shadow: 0 6px 24px rgba(255,107,157,0.35);
}

.btn-primary:hover { box-shadow: 0 10px 32px rgba(255,107,157,0.45); }

.btn-ghost {
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid var(--rose);
    font-weight: 700;
}

.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

/* — Container — */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* — Features — */
.features {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.features h2, .how h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 56px;
    line-height: 1.2;
}

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

.feature {
    background: var(--cream);
    border-radius: 20px;
    padding: 32px 24px;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: var(--rose);
    box-shadow: 0 16px 48px rgba(255,107,157,0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-icon.pink-bg { background: var(--pink-soft); }
.feature-icon.gold-bg { background: var(--gold-soft); }
.feature-icon.purple-bg { background: var(--purple-soft); }
.feature-icon.blue-bg { background: var(--blue-soft); }
.feature-icon.green-bg { background: var(--green-soft); }
.feature-icon.rose-bg { background: var(--rose); }

.feature h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.feature p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    font-weight: 600;
}

/* — How it works — */
.how {
    padding: 100px 0;
    background: var(--cream);
}

.steps {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--white);
    padding: 24px 28px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateX(8px);
    border-color: var(--rose);
    box-shadow: 0 8px 24px rgba(255,107,157,0.1);
}

.step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(255,107,157,0.3);
}

.step h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 2px;
}

.step p {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

/* — CTA — */
.cta {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--pink-soft) 0%, var(--rose) 100%);
    position: relative;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(255,107,157,0.25);
    margin-bottom: 24px;
    animation: float 4s ease-in-out infinite;
}

.cta h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.cta p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 28px;
    font-weight: 600;
}

/* — Story showcase — */
.stories {
    padding: 100px 0;
    background: var(--white);
}

.stories h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 56px;
    line-height: 1.2;
}

.story-showcase {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.story-card {
    width: 160px;
    text-align: center;
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.story-card img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border: 3px solid var(--white);
    margin-bottom: 10px;
}

.story-card-info h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.2;
}

.story-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 4px;
}

.story-badge.free {
    background: #E8F5E9;
    color: #2E7D32;
}

/* — Footer — */
footer {
    text-align: center;
    padding: 36px 24px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    background: var(--white);
    border-top: 1px solid rgba(255,107,157,0.08);
}

footer a {
    transition: color 0.2s;
}
footer a:hover {
    color: var(--pink) !important;
}

/* — Animations — */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* — Responsive — */
@media (max-width: 768px) {
    nav { padding: 12px 20px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { padding: 60px 20px 80px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .hero p br { display: none; }
    .hero-icon { width: 100px; height: 100px; border-radius: 26px; margin-bottom: 32px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .features h2, .how h2 { font-size: 26px; }
    .feature-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature { text-align: left; display: flex; gap: 16px; align-items: center; padding: 20px; }
    .feature .feature-icon { margin: 0; flex-shrink: 0; }
    .feature-text h3 { margin-bottom: 2px; }
    .step { padding: 18px 20px; }
    .cta h2 { font-size: 26px; }
}
