:root {
    --primary: #6c5ce7;
    --primary-dark: #5849c4;
    --secondary: #fab1a0;
    --accent: #fdcb6e;
    --dark: #2d3436;
    --light: #f9f9f9;
    --white: #ffffff;
    --success: #00b894;
    --error: #d63031;
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #636e72;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    background-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 203, 110, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f3f0ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.pictoword-card-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: rotateY(-10deg) rotateX(10deg);
    transition: var(--transition);
}

.pictoword-card-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.pictoword-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.img-box {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plus-sign {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.guess-box {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
}

/* Steps Section */
.section-title {
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 25px;
}

/* Demo Section */
.play-demo {
    background: var(--primary);
    color: var(--white);
}

.play-demo .section-title,
.play-demo p {
    color: var(--white);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-pics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
}

.game-pic {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.game-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-plus {
    font-size: 3rem;
    font-weight: 800;
}

.game-input-area {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

#guess-input {
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    width: 250px;
    font-family: inherit;
    font-weight: 600;
}

#guess-input:focus {
    outline: 3px solid var(--accent);
}

.feedback {
    min-height: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
}

.feedback.correct {
    color: #55efc4;
}

.feedback.wrong {
    color: #fab1a0;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    padding: 40px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--dark);
    color: var(--white);
}

.feature-item:hover p {
    color: #bdc3c7;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #f1f2f6;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #636e72;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    border-top: 1px solid #dfe6e9;
    padding-top: 40px;
    text-align: center;
    color: #b2bec3;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 30px;
    }

    .nav-links {
        display: none;
        /* Hide links on mobile for simplicity or can be a hamburger */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .game-pics {
        flex-direction: column;
    }

    .game-pic {
        width: 150px;
        height: 150px;
    }

    .game-input-area {
        flex-direction: column;
        align-items: center;
    }

    #guess-input {
        width: 100%;
    }
}