/**
 * SCALE - The Viral Word Game
 * Copyright (c) 2025 - 2026 Xavier Gonzalez
 * * This source code is licensed under the proprietary license found in the
 * LICENSE file in the root directory of this source tree.
 * * Unauthorized copying, modification, distribution, or use of this file,
 * via any medium, is strictly prohibited.
 */

:root {
    --bg-color: #121213;
    --card-bg: #1a1a1b;
    --text-color: #ffffff;
    --text-secondary: #818384;
    --accent-green: #538d4e;
    --accent-yellow: #b59f3b;
    --accent-gray: #3a3a3c;
    --border: #3a3a3c;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(18, 18, 19, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* NEW: The Trademark Symbol */
.logo::after {
    content: "™";
    font-size: 0.4em;
    /* Keep it small and subtle */
    vertical-align: top;
    font-weight: 400;
    /* Lighter weight than the bold logo */
    color: var(--text-secondary);
    /* Uses your grey variable for subtlety */
    transform: translateY(-8px);
    /* Lifts it up to the top right */
    margin-left: -42px;
}

.logo-icon {
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

/* CSS Logo Representation */
.mini-tile {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

.mt-1 {
    background: var(--accent-gray);
    height: 15px;
}

.mt-2 {
    background: var(--accent-yellow);
    height: 20px;
}

.mt-3 {
    background: var(--accent-green);
    height: 25px;
}

.cta-btn {
    background-color: var(--accent-green);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: scale(1.05);
    background-color: #467a41;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b59f3b, #538d4e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Animated Scale Demo */
.scale-demo {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 40px 0;
    height: 80px;
}

.demo-tile {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--border);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Staggered animation for the letters S-C-A-L-E */
.dt-1 {
    background: var(--accent-gray);
    animation-delay: 0.2s;
}

.dt-2 {
    background: var(--accent-yellow);
    animation-delay: 0.4s;
    margin-bottom: 10px;
}

.dt-3 {
    background: var(--accent-yellow);
    animation-delay: 0.6s;
    margin-bottom: 20px;
}

.dt-4 {
    background: var(--accent-green);
    animation-delay: 0.8s;
    margin-bottom: 30px;
}

.dt-5 {
    background: var(--accent-green);
    animation-delay: 1.0s;
    margin-bottom: 40px;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HOW TO PLAY --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: left;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--accent-yellow);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.example-box {
    background: #000;
    padding: 10px;
    margin-top: 15px;
    font-family: monospace;
    border-radius: 4px;
    color: #ddd;
}

.highlight {
    color: var(--accent-green);
    font-weight: bold;
}

/* --- ABOUT --- */
.about-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #1a1a1b 100%);
    padding: 80px 20px;
    margin-top: 50px;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item h2 {
    font-size: 3rem;
    margin: 0;
    color: var(--accent-green);
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* --- FOOTER & SOCIALS --- */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    background-color: var(--bg-color);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.social-icon {
    width: 30px;
    /* Slightly larger for single icon */
    height: 30px;
    fill: var(--text-secondary);
    transition: fill 0.3s, transform 0.3s;
}

.social-icon:hover {
    fill: #0085ff;
    /* Bluesky Brand Blue */
    transform: translateY(-3px) scale(1.1);
}

footer a {
    color: var(--accent-green);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .scale-demo {
        transform: scale(0.8);
    }

    .stats-grid {
        gap: 30px;
    }
}