/* LetterLoom Website Styles */
/* Color scheme based on the app's jungle green theme */

:root {
    /* Primary Colors */
    --primary: #2D5F3F;
    --secondary: #5A9E7A;
    --accent: #8FBC8F;

    /* Background Colors */
    --bg-dark: #0D1F12;
    --bg-light: #1A2E1F;
    --card-bg: #1E3A24;

    /* Text Colors */
    --text: #F5F5F5;
    --text-secondary: #9DB3A0;

    /* Accent Colors */
    --gradient-1: #3D7C52;
    --gradient-2: #2D5F3F;
    --tile: #2C4A33;
    --tile-selected: #3D7C52;
    --glow: #6FD88E;

    /* Functional Colors */
    --success: #4CAF50;
    --warning: #FFB74D;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 31, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(93, 158, 122, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(111, 216, 142, 0.3);
}

/* Phone Mockup with Game Grid */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-light));
    border-radius: 40px;
    padding: 20px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(111, 216, 142, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.grid-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 24px;
}

.tile {
    width: 50px;
    height: 50px;
    background: var(--tile);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    transition: all 0.3s ease;
}

.tile.selected {
    background: var(--tile-selected);
    box-shadow: 0 0 20px rgba(111, 216, 142, 0.5);
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.features h2,
.how-to-play h2,
.cta h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(93, 158, 122, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

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

/* How to Play Section */
.how-to-play {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(61, 124, 82, 0.4);
}

.step h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-light));
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(93, 158, 122, 0.2);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Privacy Page */
.privacy-page {
    padding: 8rem 2rem 4rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.privacy-content section {
    margin-bottom: 2.5rem;
}

.privacy-content h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(93, 158, 122, 0.3);
}

.privacy-content h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 1.5rem 0 0.75rem;
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.privacy-content ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--secondary);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

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

    .hero-content {
        max-width: 100%;
    }

    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    nav ul {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

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

    .tagline {
        font-size: 1.25rem;
    }

    .tile {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .grid-preview {
        gap: 6px;
        padding: 15px;
    }

    .phone-mockup {
        padding: 15px;
        border-radius: 30px;
    }

    .features,
    .how-to-play,
    .cta {
        padding: 4rem 1rem;
    }

    .features h2,
    .how-to-play h2,
    .cta h2 {
        font-size: 2rem;
    }

    .privacy-content h1 {
        font-size: 2rem;
    }
}
