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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    padding: 1.25rem 0;
}

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

.logo h2 {
    font-weight: 800;
    font-size: 1.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo h2:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

.get-started-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

/* App Store Buttons */
.header-app-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-app-btn img {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.header-app-btn:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.app-store-btn img,
.cta-app-btn img {
    height: 60px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-store-btn:hover img,
.cta-app-btn:hover img {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-buttons,
.cta-app-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #667eea;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    color: white;
    padding: 140px 0 100px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="2" fill="url(%23a)"/><circle cx="800" cy="300" r="1.5" fill="url(%23a)"/><circle cx="400" cy="600" r="1" fill="url(%23a)"/><circle cx="700" cy="700" r="1.5" fill="url(%23a)"/><circle cx="300" cy="800" r="1" fill="url(%23a)"/></svg>');
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.75rem;
    opacity: 0.95;
    line-height: 1.65;
    position: relative;
    z-index: 2;
    font-weight: 400;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2d3748;
    border: none;
    padding: 1.3rem 2.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 154, 158, 0.6);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1.1rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.cta-secondary:hover::before {
    transform: translateX(0);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.magical-illustration {
    width: 350px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star, .moon, .wand {
    position: absolute;
    color: #ffd700;
    animation: sparkle 2s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    left: 10%;
    font-size: 1.5rem;
    animation-delay: 0s;
}

.star-2 {
    top: 70%;
    right: 15%;
    font-size: 1.2rem;
    animation-delay: 1s;
}

.moon {
    top: 10%;
    right: 20%;
    font-size: 2rem;
    animation-delay: 0.5s;
}

.wand {
    bottom: 15%;
    left: 20%;
    font-size: 1.8rem;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.book-cover.magical {
    width: 280px;
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: magicalFloat 4s ease-in-out infinite;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.book-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #667eea, #764ba2, #ff9a9e);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.book-cover.magical h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.book-cover.magical p {
    font-size: 1rem;
    text-align: center;
    color: white;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-style: italic;
}

@keyframes magicalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

/* Features Section */
.features {
    padding: 120px 20px;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23667eea" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23764ba2" opacity="0.1"/><circle cx="60" cy="80" r="1" fill="%23ff9a9e" opacity="0.1"/></svg>');
    pointer-events: none;
}

.features h2 {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 4.5rem;
    color: #2d3748;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(255, 154, 158, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #2d3748;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.75;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* How It Works */
.how-it-works {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="b" cx=".5" cy=".5" r=".5"><stop offset="0" stop-color="%23667eea" stop-opacity=".05"/><stop offset="1" stop-color="%23667eea" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="50" fill="url(%23b)"/><circle cx="900" cy="300" r="30" fill="url(%23b)"/><circle cx="500" cy="800" r="40" fill="url(%23b)"/></svg>');
    pointer-events: none;
}

.how-it-works h2 {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #2d3748;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.35rem;
    color: #4a5568;
    margin-bottom: 4.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 400;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.step {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(255, 154, 158, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step:hover::before {
    opacity: 1;
}

.step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.15);
}

.step-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.step-number {
    position: absolute;
    top: -18px;
    right: 24px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
    border: 2px solid white;
    z-index: 3;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.5);
}

.step h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #2d3748;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.step p {
    color: #4a5568;
    line-height: 1.75;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* Story Samples */
.story-samples {
    padding: 120px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
    position: relative;
}

.story-samples::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="1.5" fill="%23667eea" opacity="0.1"/><circle cx="70" cy="60" r="2" fill="%23764ba2" opacity="0.1"/><circle cx="15" cy="85" r="1" fill="%23ff9a9e" opacity="0.1"/></svg>');
    pointer-events: none;
}

.story-samples h2 {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 4.5rem;
    color: #2d3748;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.story-samples h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.story-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(255, 154, 158, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.story-card:hover::before {
    opacity: 1;
}

.story-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.15);
}

.story-image {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

.story-placeholder.space {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.story-placeholder.knight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.story-placeholder.nature {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.story-card h3 {
    padding: 1.75rem 1.75rem 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.story-card p {
    padding: 0 1.75rem 1.75rem;
    color: #4a5568;
    line-height: 1.65;
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Testimonials */
.testimonials {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1.5" fill="%23667eea" opacity="0.08"/><circle cx="75" cy="45" r="2" fill="%23764ba2" opacity="0.08"/><circle cx="50" cy="80" r="1.2" fill="%23ff9a9e" opacity="0.08"/></svg>');
    pointer-events: none;
}

.testimonials h2 {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 4.5rem;
    color: #2d3748;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(255, 154, 158, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1.25rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.testimonial-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stars {
    color: #ffd700;
}

.testimonial-card p {
    color: #4a5568;
    line-height: 1.75;
    font-style: italic;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="c" cx=".5" cy=".5" r=".5"><stop offset="0" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="3" fill="url(%23c)"/><circle cx="800" cy="300" r="2" fill="url(%23c)"/><circle cx="400" cy="600" r="1.5" fill="url(%23c)"/><circle cx="700" cy="700" r="2.5" fill="url(%23c)"/><circle cx="300" cy="800" r="1.5" fill="url(%23c)"/></svg>');
    animation: twinkle 4s ease-in-out infinite;
}

.cta-section h2 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.45rem;
    margin-bottom: 2.75rem;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.cta-primary.large {
    font-size: 1.35rem;
    padding: 1.6rem 3.25rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 35px rgba(255, 154, 158, 0.4);
}

/* Form Field Indicators */
.required {
    color: #e74c3c;
    font-weight: 700;
}

.optional {
    color: #95a5a6;
    font-style: italic;
    font-size: 0.9em;
}

.help-text {
    color: #7f8c8d;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.form-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

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

.form-message.loading {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Contact Section */
.contact {
    padding: 120px 20px;
    background: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="30" r="1" fill="%23667eea" opacity="0.06"/><circle cx="90" cy="70" r="1.5" fill="%23764ba2" opacity="0.06"/><circle cx="40" cy="90" r="1.2" fill="%23ff9a9e" opacity="0.06"/></svg>');
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 2.25rem;
    color: #2d3748;
    letter-spacing: -0.01em;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact-item p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: #667eea;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.contact-form {
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 2;
}

.contact-form h3 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 2.25rem;
    color: #2d3748;
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: white;
    transform: translateY(-1px);
}

.form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 60px 20px 30px;
}

.footer-trust {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-trust h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-trust p {
    font-size: 1.1rem;
    color: #cbd5e0;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

.footer-bottom p {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    color: #a0aec0;
    font-size: 0.9rem;
}

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

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .header-app-buttons {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons,
    .cta-app-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .app-store-btn img,
    .cta-app-btn img {
        height: 50px;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .magical-illustration {
        width: 280px;
        height: 350px;
    }

    .book-cover.magical {
        width: 220px;
        height: 300px;
        padding: 2rem;
    }

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

    .features h2,
    .how-it-works h2,
    .story-samples h2,
    .testimonials h2,
    .cta-section h2 {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .contact-info h2 {
        font-size: 2.3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-form h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features h2,
    .how-it-works h2,
    .story-samples h2,
    .testimonials h2,
    .cta-section h2 {
        font-size: 2.1rem;
    }

    .book-cover.magical {
        width: 200px;
        height: 270px;
        padding: 1.5rem;
    }

    .book-cover.magical h3 {
        font-size: 1.3rem;
    }

    .book-cover.magical p {
        font-size: 0.9rem;
    }

    .feature-card,
    .step {
        padding: 2.5rem;
    }

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

    .testimonial-card {
        padding: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-form h3 {
        font-size: 1.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .magical-illustration {
        width: 250px;
        height: 320px;
    }

    .star-1, .star-2, .moon, .wand {
        font-size: 1rem;
    }

    .moon {
        font-size: 1.3rem;
    }

    .wand {
        font-size: 1.2rem;
    }
}

/* Additional Modern Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

/* Enhanced scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ff9a9e);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Enhanced hero animation */
.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero h1 { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-buttons { animation-delay: 0.6s; }

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Improved focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading animation for form submission */
@keyframes buttonLoading {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-submit.loading {
    background: linear-gradient(270deg, #667eea, #764ba2, #ff9a9e, #667eea);
    background-size: 800% 800%;
    animation: buttonLoading 1.5s ease infinite;
}

/* Subtle parallax effect for background elements */
@media (prefers-reduced-motion: no-preference) {
    .features::before,
    .how-it-works::before,
    .story-samples::before,
    .testimonials::before,
    .contact::before {
        animation: backgroundFloat 20s ease-in-out infinite;
    }
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-0.5deg); }
}

/* Enhanced mobile touch interactions */
@media (max-width: 768px) {
    .app-store-btn,
    .cta-app-btn,
    .header-app-btn,
    .form-submit {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .nav-menu a {
        padding: 0.75rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}