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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-section a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-section a:hover,
.nav-section a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-auth {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-primary {
    background: #6366f1 !important;
    color: #fff !important;
}

.btn-nav-primary:hover {
    background: #4f46e5 !important;
}

.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* Main */
.site-main {
    flex: 1;
    padding: 2.5rem 0 3rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 640px;
    line-height: 1.6;
}

.page-hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.page-hero .page-title,
.page-hero .page-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #4f46e5; }
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.5);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover { color: #fff; }

.footer-sep { color: #475569; }

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.85rem;
}

.locale a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 0.25rem;
}

.locale a.active {
    color: #fff;
    font-weight: 600;
}

/* Platforms */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
}

.platform-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #1e293b;
}

.platform-card-body { padding: 1.25rem; }

.platform-card h2 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.platform-version {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
}

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

.contact-info h2,
.contact-form h2 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item strong {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.2rem;
}

.contact-item a { color: #818cf8; text-decoration: none; }

.contact-form label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.contact-form button {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.contact-form button:hover { background: #4f46e5; }

/* Terms */
.terms-content {
    max-width: 760px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.terms-content h2 {
    font-size: 1.15rem;
    color: #fff;
    margin: 1.75rem 0 0.75rem;
}

.terms-content h2:first-child { margin-top: 0; }

.terms-content p,
.terms-content li {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.terms-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.terms-updated {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 900px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 2.25rem;
        height: 2.25rem;
        cursor: pointer;
        padding: 0.35rem;
        border-radius: 0.5rem;
    }

    .nav-toggle-label:hover { background: rgba(255, 255, 255, 0.1); }

    .nav-toggle-label span {
        display: block;
        height: 2px;
        background: #e2e8f0;
        border-radius: 1px;
        transition: all 0.2s;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1rem 1.5rem 1.5rem;
    }

    .nav-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-auth {
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-section a {
        padding: 0.75rem 1rem;
    }

    .header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Filament auth pages — unified with public site */
body.fi-auth-public-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    background-attachment: fixed !important;
}

body.fi-auth-public-page .fi-public-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.fi-auth-public-page .filament-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 0 3rem;
}

body.fi-auth-public-page .filament-auth-main .container {
    display: flex;
    justify-content: center;
}

body.fi-auth-public-page .fi-auth-card {
    margin: 0 auto;
}

body.fi-auth-public-page .site-header {
    position: relative;
}

body.fi-auth-public-page .fi-simple-page .fi-header-heading {
    color: #fff;
}

body.fi-auth-public-page .fi-simple-page .fi-header-subheading {
    color: #94a3b8;
}
