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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #fef7ff 0%, #fdf4ff 25%, #fce7f3 50%, #f9a8d4 75%, #f3e8ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Chat animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sparkle Animation */
.sparkle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.sparkle-1 {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #e879f9, #d946ef);
    animation: sparkle1 4s infinite ease-in-out;
}

.sparkle-2 {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff, #f3f4f6);
    animation: sparkle2 3s infinite ease-in-out;
}

.sparkle-3 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fbcfe8, #f9a8d4);
    animation: sparkle3 5s infinite ease-in-out;
}

.sparkle-4 {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #c4b5fd, #a78bfa);
    animation: sparkle4 2.5s infinite ease-in-out;
}

@keyframes sparkle1 {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    25% { opacity: 0.6; transform: scale(1.2) rotate(90deg); }
    50% { opacity: 0.8; transform: scale(1) rotate(180deg); }
    75% { opacity: 0.4; transform: scale(0.8) rotate(270deg); }
}

@keyframes sparkle2 {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    30% { opacity: 0.7; transform: scale(1.1) rotate(120deg); }
    60% { opacity: 0.9; transform: scale(1) rotate(240deg); }
}

@keyframes sparkle3 {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    40% { opacity: 0.5; transform: scale(1) rotate(144deg); }
    80% { opacity: 0.7; transform: scale(1.3) rotate(288deg); }
}

@keyframes sparkle4 {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1) rotate(180deg); }
}

/* Pastel Rainbow Background Element */
.rainbow-decoration {
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    z-index: -1;
    animation: float-rainbow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

.rainbow-band {
    position: absolute;
    left: 0;
    border-radius: 200px 200px 0 0;
    opacity: 0.4;
}

.rainbow-band:nth-child(1) {
    width: 400px;
    height: 200px;
    background: #f8d7da;
    top: 0;
    animation: rainbow-shift-1 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(2) {
    width: 370px;
    height: 185px;
    background: #f3b6d0;
    top: 15px;
    left: 15px;
    animation: rainbow-shift-2 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(3) {
    width: 340px;
    height: 170px;
    background: #eea4ca;
    top: 30px;
    left: 30px;
    animation: rainbow-shift-3 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(4) {
    width: 310px;
    height: 155px;
    background: #e993c4;
    top: 45px;
    left: 45px;
    animation: rainbow-shift-4 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(5) {
    width: 280px;
    height: 140px;
    background: #e481be;
    top: 60px;
    left: 60px;
    animation: rainbow-shift-5 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(6) {
    width: 250px;
    height: 125px;
    background: #df70b8;
    top: 75px;
    left: 75px;
    animation: rainbow-shift-6 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(7) {
    width: 220px;
    height: 110px;
    background: #da5eb2;
    top: 90px;
    left: 90px;
    animation: rainbow-shift-7 3s ease-in-out infinite alternate;
}

.rainbow-band:nth-child(8) {
    width: 190px;
    height: 95px;
    background: #d54cac;
    top: 105px;
    left: 105px;
    animation: rainbow-shift-8 3s ease-in-out infinite alternate;
}

@keyframes rainbow-shift-1 {
    0% { background-color: #f8d7da; }
    25% { background-color: #f3b6d0; }
    50% { background-color: #eea4ca; }
    75% { background-color: #e993c4; }
    100% { background-color: #e481be; }
}

@keyframes rainbow-shift-2 {
    0% { background-color: #f3b6d0; }
    25% { background-color: #eea4ca; }
    50% { background-color: #e993c4; }
    75% { background-color: #e481be; }
    100% { background-color: #df70b8; }
}

@keyframes rainbow-shift-3 {
    0% { background-color: #eea4ca; }
    25% { background-color: #e993c4; }
    50% { background-color: #e481be; }
    75% { background-color: #df70b8; }
    100% { background-color: #da5eb2; }
}

@keyframes rainbow-shift-4 {
    0% { background-color: #e993c4; }
    25% { background-color: #e481be; }
    50% { background-color: #df70b8; }
    75% { background-color: #da5eb2; }
    100% { background-color: #d54cac; }
}

@keyframes rainbow-shift-5 {
    0% { background-color: #e481be; }
    25% { background-color: #df70b8; }
    50% { background-color: #da5eb2; }
    75% { background-color: #d54cac; }
    100% { background-color: #c084fc; }
}

@keyframes rainbow-shift-6 {
    0% { background-color: #df70b8; }
    25% { background-color: #da5eb2; }
    50% { background-color: #d54cac; }
    75% { background-color: #c084fc; }
    100% { background-color: #b490f0; }
}

@keyframes rainbow-shift-7 {
    0% { background-color: #da5eb2; }
    25% { background-color: #d54cac; }
    50% { background-color: #c084fc; }
    75% { background-color: #b490f0; }
    100% { background-color: #a89ce4; }
}

@keyframes rainbow-shift-8 {
    0% { background-color: #d54cac; }
    25% { background-color: #c084fc; }
    50% { background-color: #b490f0; }
    75% { background-color: #a89ce4; }
    100% { background-color: #9ca3f4; }
}

@keyframes float-rainbow {
    0% { transform: translateX(-50%) translateY(0px); }
    100% { transform: translateX(-50%) translateY(-10px); }
}

/* Geometric Unicorn */
.unicorn {
    position: absolute;
    top: -240px;
    left: 15%;
    width: 120px;
    height: 140px;
    z-index: -1;
    animation: float-unicorn 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes float-unicorn {
    0% { transform: translateY(0px) rotate(-2deg); }
    100% { transform: translateY(-8px) rotate(2deg); }
}

/* Unicorn Head */
.unicorn-head {
    position: absolute;
    width: 80px;
    height: 70px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-radius: 40px 40px 35px 35px;
    bottom: 40px;
    left: 20px;
    border: 2px solid rgba(217, 70, 239, 0.2);
}

/* Unicorn Body */
.unicorn-body {
    position: absolute;
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #fdf2f8, #f9a8d4);
    border-radius: 30px;
    bottom: 0;
    left: 30px;
    border: 2px solid rgba(217, 70, 239, 0.2);
}

/* Unicorn Horn */
.unicorn-horn {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 35px solid #e879f9;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 4px rgba(217, 70, 239, 0.3));
}

/* Unicorn Horn Spiral */
.unicorn-horn::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background: repeating-linear-gradient(
        to bottom,
        #ffffff 0px,
        #ffffff 3px,
        transparent 3px,
        transparent 6px
    );
    left: 3px;
    top: 2px;
    transform: rotate(15deg);
}

/* Unicorn Ears */
.unicorn-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 20px solid #f472b6;
    top: 5px;
}

.unicorn-ear.left {
    left: 20px;
    transform: rotate(-20deg);
}

.unicorn-ear.right {
    right: 20px;
    transform: rotate(20deg);
}

/* Unicorn Eyes */
.unicorn-eye {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #6b46c1;
    border-radius: 50%;
    top: 25px;
}

.unicorn-eye.left {
    left: 22px;
}

.unicorn-eye.right {
    right: 22px;
}

/* Unicorn Mane */
.unicorn-mane {
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    height: 40px;
}

.mane-strand {
    position: absolute;
    border-radius: 20px;
}

.mane-strand:nth-child(1) {
    width: 15px;
    height: 35px;
    background: #e879f9;
    left: 0;
    top: 5px;
    transform: rotate(-30deg);
}

.mane-strand:nth-child(2) {
    width: 18px;
    height: 40px;
    background: #f472b6;
    left: 10px;
    top: 0;
    transform: rotate(-15deg);
}

.mane-strand:nth-child(3) {
    width: 16px;
    height: 38px;
    background: #c084fc;
    right: 10px;
    top: 0;
    transform: rotate(15deg);
}

.mane-strand:nth-child(4) {
    width: 14px;
    height: 32px;
    background: #d946ef;
    right: 0;
    top: 8px;
    transform: rotate(25deg);
}

/* Unicorn Legs */
.unicorn-leg {
    position: absolute;
    width: 8px;
    height: 25px;
    background: linear-gradient(180deg, #fce7f3, #f9a8d4);
    border-radius: 4px;
    bottom: -20px;
}

.unicorn-leg:nth-child(1) {
    left: 15px;
}

.unicorn-leg:nth-child(2) {
    left: 28px;
}

.unicorn-leg:nth-child(3) {
    right: 28px;
}

.unicorn-leg:nth-child(4) {
    right: 15px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 168, 212, 0.1);
    position: relative;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #98d8c8, #f7dc6f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-rainbow-shift 4s ease-in-out infinite;
    letter-spacing: -0.02em;
}

@keyframes logo-rainbow-shift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #8b5cf6;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    position: relative;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #fef7ff, #fce7f3);
    color: #d946ef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.15);
}

/* Content Container */
#app-container {
    padding: 2rem;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 3rem 4rem;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #6b46c1;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: float 3s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.hero p {
    font-size: 1.4rem;
    color: #9333ea;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Word Web Visualization */
.link {
    fill: none;
    stroke-dasharray: 0;
}

.link.topic {
    stroke: #9333ea;
    stroke-width: 3;
}

.link.synonym {
    stroke: #10b981;
}

.link.antonym {
    stroke: #ef4444;
}

.link.related {
    stroke: #3b82f6;
}

.link.category {
    stroke: #8b5cf6;
}

.node {
    cursor: pointer;
}

.node:hover circle {
    stroke-width: 4px;
}

.node text {
    font-weight: 600;
    user-select: none;
}

/* Progress indicators */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Activity cards */
.activity-card {
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Word cards */
.word-item {
    transition: all 0.2s ease;
}

.word-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Spelling practice */
.letter-box {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.letter-box:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.letter-box.correct {
    border-color: #10b981;
    background-color: #d1fae5;
}

.letter-box.incorrect {
    border-color: #ef4444;
    background-color: #fee2e2;
}

/* Research questions */
.question-card {
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #3b82f6;
}

.question-card.completed::before {
    background-color: #10b981;
}

/* Loading animations */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Session cards */
.session-card {
    position: relative;
    overflow: hidden;
}

.session-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #10b981);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Mastery badges */
.mastery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mastery-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Word understanding textarea */
.understanding-input {
    resize: vertical;
    min-height: 100px;
}

/* Activity type icons */
.activity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
}

.activity-icon.coloring {
    background-color: #fef3c7;
    color: #f59e0b;
}

.activity-icon.recipe {
    background-color: #dbeafe;
    color: #3b82f6;
}

.activity-icon.game {
    background-color: #e9d5ff;
    color: #9333ea;
}

.activity-icon.craft {
    background-color: #d1fae5;
    color: #10b981;
}

/* Fun animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 200%;
    animation: rainbow 3s ease infinite;
}

/* Colorful buttons */
.btn-rainbow {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 25%, #f8b500 50%, #0ba360 75%, #4facfe 100%);
    background-size: 200% 200%;
    animation: rainbow 3s ease infinite;
    color: white;
    font-weight: bold;
}

/* Fun word display */
.word-display {
    font-size: 3rem;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Buttons */
.cta-button, .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #d946ef, #f472b6);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before, .btn-primary::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;
}

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

.cta-button:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(217, 70, 239, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #8b5cf6;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    margin: 3rem auto;
    max-width: 1200px;
    border-radius: 40px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.1);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #6b46c1;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(217, 70, 239, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fef7ff, #fce7f3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(217, 70, 239, 0.15);
    border-color: rgba(217, 70, 239, 0.2);
}

/* Flat Geometric Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-games {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.icon-games::before {
    content: '';
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    position: relative;
}

.icon-games::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: -8px -8px 0 #f59e0b, 8px -8px 0 #f59e0b, -8px 8px 0 #f59e0b, 8px 8px 0 #f59e0b;
}

.icon-learn {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.icon-learn::before {
    content: '';
    width: 36px;
    height: 44px;
    background: white;
    border-radius: 4px 4px 0 0;
    position: relative;
}

.icon-learn::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: #10b981;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 0 #10b981, 0 12px 0 #10b981;
}

.icon-art {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.icon-art::before {
    content: '';
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.icon-art::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: #ec4899;
    top: 65%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.icon-stories {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.icon-stories::before {
    content: '';
    width: 32px;
    height: 40px;
    background: white;
    border-radius: 4px;
    position: relative;
}

.icon-stories::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #8b5cf6;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 0 #8b5cf6, 0 10px 0 #8b5cf6, 0 15px 0 #8b5cf6;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b46c1;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 1rem;
    color: #9333ea;
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(217, 70, 239, 0.2);
    border: 1px solid rgba(217, 70, 239, 0.1);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #6b46c1;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 20px;
    border: 2px solid rgba(217, 70, 239, 0.2);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: #6b46c1;
}

.form-input:focus {
    outline: none;
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: #9333ea;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Content Cards */
.content-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.1);
    margin-bottom: 2rem;
}

/* Word Entry Card */
.word-entry-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 231, 243, 0.5));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(217, 70, 239, 0.15);
    border: 1px solid rgba(217, 70, 239, 0.2);
}

/* Progress Bar */
.progress-bar {
    background: rgba(217, 70, 239, 0.1);
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d946ef, #f472b6);
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .word-web-container {
        height: 400px;
    }
    
    .letter-box {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .word-display {
        font-size: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .features {
        margin: 1.5rem;
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }
    
    .features h2 {
        font-size: 2.2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .unicorn {
        top: 150px;
        left: 10%;
        width: 100px;
        height: 120px;
    }
    
    .rainbow-decoration {
        top: 180px;
        width: 300px;
        height: 150px;
    }
}

/* Tailwind Override Classes */
.bg-white { background: rgba(255, 255, 255, 0.9) !important; }
.bg-gray-50 { background: transparent !important; }
.shadow-sm { box-shadow: 0 10px 30px rgba(217, 70, 239, 0.1) !important; }
.rounded-lg { border-radius: 20px !important; }
.text-gray-900 { color: #6b46c1 !important; }
.text-gray-600 { color: #9333ea !important; }
.bg-blue-600 { background: linear-gradient(135deg, #d946ef, #f472b6) !important; }
.text-blue-600 { color: #d946ef !important; }