@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg-canvas: #0a0a0a;
    --bg-surface: #1a1a1a;
    --border-subtle: #2a2a2a;
    --accent-primary: #00ff9d;
    --accent-secondary: #00d671;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --text-accent: #00ff9d;
    --error-color: #FF4D6D;
}

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

html, body {
    height: 100%;
}

body {
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}

nav .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 194, 209, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -2px;
    white-space: nowrap;
}

.hero .accent {
    color: var(--accent-primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-primary);
    color: var(--bg-canvas);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.hero-graphic {
    padding: 0;
    overflow: hidden;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    animation: float 6s ease-in-out infinite;
}

.hero-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

.features .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.section-title .accent {
    color: var(--accent-primary);
}

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

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 32px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: rgba(0, 194, 209, 0.02);
}

.contact .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 48px;
}

/* In-place contact confirmation (PRG flash) — same card as the form. */
.contact-confirmation {
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid var(--accent-primary);
    border-radius: 15px;
    padding: 48px;
    text-align: center;
}

.contact-confirmation .confirmation-icon {
    font-size: 56px;
    line-height: 1;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.contact-confirmation h3 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.contact-confirmation p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    color: var(--text-primary);
    border-radius: 2px;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
    font-size: 13px;
}

.flash-success {
    background: rgba(0, 214, 113, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.flash-error {
    background: rgba(255, 77, 109, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--accent-primary);
}

/* Legal pages (privacy, terms) */
.legal {
    padding: 72px 0 96px;
}

.legal .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal h1 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.legal .accent {
    color: var(--accent-primary);
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 40px 0 12px;
}

.legal p,
.legal ul {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal ul {
    padding-left: 22px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--accent-primary);
}

.legal strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Privacy index: list of apps/games */
.legal-index {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.legal-index li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-index a {
    color: var(--accent-primary);
    font-size: 17px;
    font-weight: 600;
}

.legal-index-date {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

/* Rendered Markdown body of a single policy */
.legal-body h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 36px 0 12px;
}

.legal-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
    padding-left: 22px;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body a {
    color: var(--accent-primary);
}

.legal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-body blockquote {
    border-left: 2px solid var(--border-subtle);
    padding-left: 16px;
    margin: 0 0 16px;
    color: var(--text-secondary);
}

.legal-body code {
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 13px;
}

.legal-body hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 28px 0;
}

/* Error Pages */
.error-container {
    text-align: center;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0 auto;
}

/* Scoped to .error-container so it beats the generic ".error-container p"
   rule (the code is a <p aria-hidden> for semantics, not a heading). */
.error-container .error-code {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -4px;
}

.error-container h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.error-container p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.error-container a {
    font-size: 15px;
}

.error-404 .error-code {
    color: var(--accent-primary);
}

.error-500 .error-code {
    color: var(--error-color);
}

.error-403 .error-code {
    color: var(--accent-primary);
}

.error-429 .error-code {
    color: var(--accent-primary);
}

.error-419 .error-code {
    color: var(--accent-primary);
}

.error-405 .error-code {
    color: var(--accent-primary);
}

.error-status .error-code {
    color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 16px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
        white-space: normal;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 32px;
    }

    .error-container .error-code {
        font-size: 96px;
        letter-spacing: -3px;
    }

    .error-container h1 {
        font-size: 32px;
    }
}
