:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --container-max: 1100px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

.cta-button:hover {
    background: var(--primary-hover);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Section Common */
section {
    padding: 6rem 0;
}

section h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-alt);
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.game-card:hover {
    border-color: var(--primary);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.game-icon img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.game-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.store-badges a {
    display: block;
    transition: transform 0.2s;
}

.store-badges a:hover {
    transform: scale(1.05);
}

.store-badges img {
    display: block;
}

.badge-coming-soon {
    position: relative;
    display: inline-block;
}

.badge-coming-soon span:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Features/Philosophy */
.philosophy {
    background: var(--bg-alt);
}

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

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Story/About */
.story {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Contact Page Specifics */
.contact-hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--bg-alt);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: var(--primary-hover);
}

/* Links Page */
.links-container {
    max-width: 500px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-btn {
    display: block;
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s;
}

.link-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

/* Fingerz Page */
.fingerz-hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--bg-alt);
}

.fingerz-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.fingerz-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.fingerz-hero .store-badges {
    justify-content: center;
}

.badge-coming-soon img {
    opacity: 0.4;
    filter: grayscale(100%);
}

/* Feature Section */
.feature-section {
    padding: 6rem 0;
}

.feature-section.alt {
    background: var(--bg-alt);
}

.feature-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 800;
}

.feature-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.screenshot-gallery img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.screenshot-gallery img:hover {
    transform: translateY(-5px);
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

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

.summary-box {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.summary-box p {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
}

.last-updated {
    font-style: italic;
    font-size: 0.9rem;
}

/* Success Page */
.success-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.success-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.success-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.success-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

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

.success-content .cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}

/* Form Note */
.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Turnstile */
.cf-turnstile {
    margin-bottom: 1.5rem;
}

/* Link Button States */
.link-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.link-btn.disabled:hover {
    border-color: var(--border);
    color: var(--text);
    background: var(--bg-alt);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
}
