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

:root {
    --pink-start: #FF8AB8;
    --pink-end: #FF1E8A;
    --pink-mid: #FF4D9E;
    --sapphire: #4169E1;
    --sapphire-dark: #2E4BA8;
    --sapphire-light: #6B8EF5;
    --sunshine: #FFD700;
    --coral: #FF6B6B;
    --mint: #98FB98;
    --correct-green: #4CAF50;
    --turquoise: #4ECDC4;
    --lavender: #B19CD9;
    --peach: #FFCBA4;
    --sky-blue: #87CEEB;
    --white: #FFFFFF;
    --gray-light: #F8F9FE;
    --gray: #86868B;
    --dark: #1D1D1F;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--pink-start) 0%, var(--pink-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

/* Floating decorations */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: white;
}
.hero::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -80px;
    animation: float1 8s ease-in-out infinite;
}
.hero::after {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -60px;
    animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: floatItem 12s ease-in-out infinite;
}

.floating-item:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.floating-item:nth-child(2) { top: 20%; right: 8%; animation-delay: -2s; font-size: 1.8rem; }
.floating-item:nth-child(3) { bottom: 30%; left: 10%; animation-delay: -4s; font-size: 3rem; }
.floating-item:nth-child(4) { top: 40%; right: 15%; animation-delay: -6s; }
.floating-item:nth-child(5) { bottom: 15%; right: 5%; animation-delay: -8s; font-size: 2.2rem; }
.floating-item:nth-child(6) { top: 60%; left: 3%; animation-delay: -1s; font-size: 1.5rem; }
.floating-item:nth-child(7) { top: 5%; left: 40%; animation-delay: -3s; font-size: 1.8rem; }
.floating-item:nth-child(8) { bottom: 10%; left: 35%; animation-delay: -5s; font-size: 2rem; }

@keyframes floatItem {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    25% { transform: translateY(-20px) rotate(5deg); opacity: 0.25; }
    50% { transform: translateY(-10px) rotate(-3deg); opacity: 0.2; }
    75% { transform: translateY(-25px) rotate(2deg); opacity: 0.18; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-bottom: 24px;
    animation: logoAppear 0.8s ease-out;
}

@keyframes logoAppear {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-title .n-letter {
    color: var(--sunshine);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.hero-tagline {
    font-size: 1.5rem;
    color: white;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 8px;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: white;
    opacity: 0.85;
    margin-bottom: 36px;
    animation: slideUp 0.6s ease-out 0.4s both;
}

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

.store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out 0.5s both;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-badge:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.store-badge svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Wave separator */
.wave-separator {
    position: relative;
    height: 80px;
    margin-top: -80px;
}

.wave-separator svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.bg-light {
    background: var(--gray-light);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-start), var(--pink-end));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.feature-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink-start), var(--pink-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

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

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

.feature-icon.pink { background: rgba(255, 30, 138, 0.1); }
.feature-icon.blue { background: rgba(65, 105, 225, 0.1); }
.feature-icon.yellow { background: rgba(255, 215, 0, 0.15); }
.feature-icon.green { background: rgba(76, 175, 80, 0.1); }
.feature-icon.coral { background: rgba(255, 107, 107, 0.1); }
.feature-icon.purple { background: rgba(177, 156, 217, 0.15); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== GAME MODES ===== */
.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mode-card {
    border-radius: 28px;
    padding: 48px 36px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-4px);
}

.mode-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -60px;
    right: -40px;
}

.mode-card.complement {
    background: linear-gradient(135deg, #81C784, #388E3C);
}

.mode-card.multiplication {
    background: linear-gradient(135deg, var(--coral), #D32F2F);
}

.mode-card .mode-emoji {
    font-size: 4.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mode-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.mode-card p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.mode-card ul {
    list-style: none;
    margin-top: 20px;
    text-align: left;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.mode-card ul li {
    padding: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-card ul li::before {
    content: '\2713';
    font-weight: bold;
    background: rgba(255,255,255,0.25);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ===== SAPPHIRE SECTION ===== */
.sapphire-section {
    text-align: center;
}

.sapphire-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sapphire-hero .gem {
    font-size: 3.5rem;
    animation: gemPulse 2s ease-in-out infinite;
}

@keyframes gemPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sapphire-table {
    max-width: 560px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(65, 105, 225, 0.12);
}

.sapphire-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.sapphire-table th {
    background: linear-gradient(135deg, var(--sapphire), var(--sapphire-dark));
    color: white;
    padding: 16px 24px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.sapphire-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f5;
    font-size: 0.95rem;
}

.sapphire-table td:first-child {
    font-weight: 600;
    color: var(--dark);
}

.sapphire-table td:last-child {
    font-weight: 600;
    color: var(--sapphire);
}

.sapphire-table tr:last-child td {
    border-bottom: none;
}

.sapphire-table tr:hover {
    background: rgba(65, 105, 225, 0.03);
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-start), var(--pink-end));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(255, 30, 138, 0.25);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.step-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--pink-start) 0%, var(--pink-end) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -200px;
    left: -100px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.15rem;
    color: white;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 48px 20px;
}

footer a {
    color: var(--pink-start);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: white;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo .n-letter {
    color: var(--sunshine);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-copy {
    color: var(--gray);
    font-size: 0.8rem;
}

.footer-publisher {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

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

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

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

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

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

    section {
        padding: 64px 0;
    }

    .hero {
        min-height: auto;
        padding: 80px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

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

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

/* ===== LEGAL PAGES ===== */
.legal-header {
    background: linear-gradient(135deg, var(--pink-start), var(--pink-end));
    padding: 28px 20px;
    text-align: center;
}

.legal-header a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 900;
}

.legal-header a .n-letter {
    color: var(--sunshine);
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-page h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
}

.legal-page .update-date {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.legal-page p,
.legal-page ul {
    margin-bottom: 16px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 24px;
}

.legal-page ul li {
    margin-bottom: 8px;
}

.legal-page strong {
    color: var(--dark);
}
