/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core Colors */
    --primary-color: #D94A1F;
    --secondary-color: #F5F5F5;
    --text-dark: #2D2D2D;
    --text-light: #6B6B6B;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;

    /* Warm Accent Colors - Adding friendliness & approachability */
    --warm-peach: #FFE5D9;
    --warm-coral: #FFCBB3;
    --warm-amber: #FFF4E6;
    --soft-purple: #F3E8FF;
    --gentle-pink: #FFE5F0;

    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #C084FC 0%, #F472B6 100%);
    --gradient-warm: linear-gradient(180deg, var(--bg-white) 0%, var(--warm-peach) 100%);

    /* Shadows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --warm-shadow: 0 4px 12px rgba(217, 74, 31, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper - grows to push footer down */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #D94A1F 0%, #FF6B4A 50%, #D94A1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Nav Left - Logo + Gift link grouped together */
.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--text-dark);
}

.user-dropdown-toggle:hover {
    background: var(--secondary-color);
    border-color: #E5E7EB;
}

.user-dropdown-toggle.active {
    background: var(--secondary-color);
    border-color: var(--primary-color);
}

.user-dropdown-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-dropdown-toggle.active .user-dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
}

.user-dropdown-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.user-dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: var(--secondary-color);
}

.user-dropdown-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-dropdown-item-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: shimmer 9s infinite;
}

.btn-primary:hover {
    background: #B83D19;
    transform: translateY(-2px);
    box-shadow: var(--warm-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #D94A1F 0%, #FF6B4A 50%, #E85A2C 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    animation: promo-shimmer 3s ease-in-out infinite;
}

@keyframes promo-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.promo-text {
    font-size: 15px;
    text-align: center;
}

.promo-text strong {
    font-weight: 700;
}

.promo-cta {
    background: white;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.promo-cta:hover {
    background: #FFF5F2;
    transform: scale(1.05);
}

.promo-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.promo-close:hover {
    color: white;
}

/* Promo banner - hidden state */
.promo-banner.hidden {
    display: none;
}

/* Responsive adjustments for promo banner */
@media (max-width: 768px) {
    .promo-banner {
        padding: 10px 40px 10px 16px;
    }

    .promo-banner-content {
        gap: 8px;
    }

    .promo-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .promo-text {
        font-size: 13px;
    }

    .promo-cta {
        padding: 5px 12px;
        font-size: 13px;
    }

    .promo-close {
        right: 8px;
        font-size: 20px;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-warm);
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-logo {
    width: 225px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    color: var(--primary-color);
    display: block;
    margin-top: 10px;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-characters {
    position: relative;
}

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

.character {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards, gentleFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--index) * 0.15s), calc(var(--index) * 0.15s + 0.8s);
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
}

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

.step {
    text-align: center;
    padding: 40px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--warm-peach), var(--warm-coral));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 auto 20px;
    animation: gentlePulse 2s ease-in-out infinite;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    font-size: 16px;
}

/* Examples Section */
.examples {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header-centered {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-centered h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header-centered p {
    font-size: 18px;
    color: var(--text-light);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.example-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.example-card:hover {
    transform: translateY(-12px) rotate(-2deg);
    box-shadow: var(--shadow-lg);
}

.example-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.examples-cta {
    text-align: center;
    margin-top: 40px;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: var(--bg-white);
}

.newsletter-content {
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 40px;
}

.newsletter-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.newsletter-header p {
    font-size: 18px;
    color: var(--text-light);
}

.newsletter-form-wrapper {
    display: grid;
    gap: 40px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

.newsletter-message {
    margin: 15px 0 0 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: slideDown 0.4s ease;
}

.newsletter-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
}

/* Individual warm backgrounds for each benefit */
.benefit:nth-child(1) {
    background: var(--warm-amber);
}

.benefit:nth-child(2) {
    background: var(--soft-purple);
}

.benefit:nth-child(3) {
    background: var(--gentle-pink);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Stagger emoji animation */
.benefit:nth-child(1) .benefit-icon {
    animation-delay: 0s;
}

.benefit:nth-child(2) .benefit-icon {
    animation-delay: 0.3s;
}

.benefit:nth-child(3) .benefit-icon {
    animation-delay: 0.6s;
}

.benefit p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--soft-purple) 0%, var(--gentle-pink) 100%);
}

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

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.author-title {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-purple);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.copyright {
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.5;
    user-select: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    animation: slideUp 0.4s ease;
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
}

.cookie-icon {
    font-size: 40px;
}

.cookie-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cookie-text p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.modal-form {
    margin-bottom: 20px;
}

.modal-form input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-form button {
    width: 100%;
}

.modal-later {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.modal-later:hover {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

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

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

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

    .newsletter-benefits {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

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

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

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

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
    }
}

/* Storybook Modal */
.storybook-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.storybook-modal.active {
    display: flex;
}

.storybook-modal-content {
    position: relative;
    width: 100%;
    max-width: calc(1400px + 40px);
    height: auto;
    max-height: 95vh;
    background: #2d2d2d;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
}

.storybook-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d2d2d;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s ease;
}

.storybook-modal-close:hover {
    background: rgba(255, 255, 255, 1);
}

/* Modal uses existing .reader-container class from storybook-reader.css */

/* ============================================
   ANIMATIONS - Adding warmth & friendliness
   ============================================ */

/* Character entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gentle floating motion for characters */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Subtle breathing animation for step numbers */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 74, 31, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(217, 74, 31, 0);
    }
}

/* Shimmer effect for buttons */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Bounce animation for emoji icons */
@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.1);
    }
    60% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Slide down for success messages */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animation */
@keyframes fadeInUpScroll {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal states */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll-reveal].scroll-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
[data-scroll-reveal].scroll-revealed > * {
    animation: fadeInUpScroll 0.6s ease forwards;
}

[data-scroll-reveal].scroll-revealed > *:nth-child(1) {
    animation-delay: 0.1s;
}

[data-scroll-reveal].scroll-revealed > *:nth-child(2) {
    animation-delay: 0.2s;
}

[data-scroll-reveal].scroll-revealed > *:nth-child(3) {
    animation-delay: 0.3s;
}

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-scroll-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ===========================================
   Gift Token Link & Promo Section
   =========================================== */

/* Navigation Gift Link */
.nav-gift-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fef3c7 100%);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-gift-link:hover {
    background: linear-gradient(135deg, #ede9fe 0%, #fde68a 100%);
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Gift Promo Section */
.gift-promo {
    padding: 45px 0;
    background: var(--gradient-purple);
}

.gift-promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.gift-promo-icon {
    font-size: 100px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.gift-promo-text {
    flex: 0 1 auto;
    text-align: left;
}

.gift-promo-text h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 10px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.gift-promo-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin: 0;
    max-width: 450px;
}

.btn-gift {
    background: white;
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .gift-promo-content {
        flex-direction: column;
        text-align: center;
    }

    .gift-promo-icon {
        font-size: 80px;
    }

    .gift-promo-text {
        text-align: center;
    }

    .gift-promo-text h2 {
        font-size: 26px;
    }

    .gift-promo-text p {
        max-width: 100%;
    }

    .nav-gift-link {
        display: none;
    }
}

