:root {
    --primary: #3b82f6;
    --primary-shadow: #1d4ed8;
    --rose: #f43f5e;
    --rose-shadow: #be123c;
    --violet: #8b5cf6;
    --violet-shadow: #6d28d9;
    --amber: #f59e0b;
    --amber-shadow: #b45309;
    --bg-light: #fef3c7;
    /* Playful yellow-ish background */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 1.5rem;
    --font-inter: 'Inter', sans-serif;
    --font-fraunces: 'Fraunces', serif;
}

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

body {
    font-family: var(--font-inter);
    background-color: var(--bg-light);
    background-image: radial-gradient(#dcfce7 10%, transparent 10%);
    background-size: 30px 30px;
    /* Game board dots */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar - 3D Header */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    background: white;
    border: 4px solid var(--text-main);
    border-radius: 1rem;
    box-shadow: 0 6px 0 var(--text-main);
    padding: 0.75rem 1.5rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 900;
    font-size: 1.25rem;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid var(--text-main);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: transform 0.1s;
}

.nav-links a:hover {
    transform: scale(1.1);
}

.lang-btn {
    background: var(--primary);
    color: white;
    border: 3px solid var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--text-main);
    transition: all 0.1s;
}

.lang-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--text-main);
}

/* Hero - Gamified Section */
.hero {
    padding: 160px 2rem 80px;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    text-align: left;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
}

.app-icon-container {
    width: 100px;
    height: 100px;
    border-radius: 1.5rem;
    background: white;
    border: 4px solid var(--text-main);
    padding: 6px;
    box-shadow: 0 8px 0 var(--text-main);
    margin-bottom: 2rem;
}

.hero-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.hero-title {
    font-family: var(--font-fraunces);
    font-size: 4rem;
    font-weight: 950;
    color: var(--text-main);
    line-height: 1;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.25rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    background: white;
    display: inline-block;
    padding: 0.2rem 1rem;
    border: 3px solid var(--text-main);
    border-radius: 0.5rem;
    box-shadow: 4px 4px 0 var(--text-main);
}

.hero-description {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.game-preview-container {
    position: relative;
    max-width: 300px;
    width: 100%;
    perspective: 1000px;
}

.iphone-frame {
    border: 8px solid var(--text-main);
    border-radius: 2.5rem;
    box-shadow: 12px 12px 0 var(--text-main);
    overflow: hidden;
    background: white;
    aspect-ratio: 9/19.5;
    transition: all 0.1s ease;
    transform-style: preserve-3d;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-container {
    display: flex;
    gap: 1rem;
}

.btn-appstore img {
    height: 54px;
    transition: transform 0.2s;
    filter: drop-shadow(4px 4px 0 var(--text-main));
}

.btn-appstore:hover img {
    transform: rotate(-2deg) scale(1.05);
}

/* Features - Puzzle Grid */
.features {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-fraunces);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border: 4px solid var(--text-main);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 8px 8px 0 var(--text-main);
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--text-main);
}

/* Puzzle shapes for cards */
.feature-card:nth-child(2n) {
    border-radius: 3rem 1.5rem 3rem 1.5rem;
}

.feature-card:nth-child(2n+1) {
    border-radius: 1.5rem 3rem 1.5rem 3rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(3px 3px 0 var(--text-main));
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Feature Colors Overlay */
.feature-card.blue {
    background-color: #dbeafe;
}

.feature-card.rose {
    background-color: #ffe4e6;
}

.feature-card.violet {
    background-color: #ede9fe;
}

.feature-card.amber {
    background-color: #fef3c7;
}

/* Reviews */
.reviews {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.review-card {
    background: white;
    padding: 2rem;
    border: 4px solid var(--text-main);
    border-radius: 1rem;
    box-shadow: 6px 6px 0 var(--text-main);
    max-width: 340px;
    position: relative;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: var(--font-fraunces);
}

.review-rating {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.review-author {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary);
}

/* Legal Sections - Paper like */
.legal-section {
    padding: 60px 2rem;
    max-width: 900px;
    margin: 40px auto;
}

.legal-container {
    background: white;
    padding: 3rem;
    border: 4px solid var(--text-main);
    border-radius: 1rem;
    box-shadow: 8px 8px 0 var(--text-main);
    position: relative;
}

.legal-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: 4px solid var(--text-main);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--text-main);
}

.legal-container h2 {
    font-family: var(--font-fraunces);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.last-updated {
    font-weight: 700;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.legal-content h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--text-main);
    color: white;
}

.footer-content {
    font-weight: 700;
    opacity: 0.8;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-icon {
    animation: bounce 3s ease-in-out infinite;
}