:root {
    --bg: #05060b;
    --bg-alt: #101216;
    --bg-elevated: #151821;
    --accent: #ffb347;
    --accent-strong: #ff8c42;
    --accent-soft: rgba(255, 179, 71, 0.18);
    --text: #f5f5f5;
    --text-muted: #a0a3b1;
    --border-subtle: #262a36;
    --danger: #ff4b4b;
    --success: #3ecf8e;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1a1d2a 0, #05060b 55%);
    color: var(--text);
    min-height: 100vh;
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(5, 6, 11, 0.92), rgba(5, 6, 11, 0.75));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    font-size: 0.95rem;
}

.logo img {
    width: 32px;
    height: 32px;
}

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

.main-nav {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.1rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    transition: width 0.18s ease-out;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #000;
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(255, 140, 66, 0.45);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(10, 10, 20, 0.8);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent-soft);
    background: rgba(18, 18, 28, 0.9);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .main-nav,
    .auth-buttons {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .site-header.nav-open .main-nav,
    .site-header.nav-open .auth-buttons {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        right: 1.25rem;
        padding: 1rem;
        gap: 0.75rem;
        background: rgba(5, 6, 11, 0.98);
        border-radius: 1rem;
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-soft);
    }
}

.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero-text p {
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.hero-server {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid var(--accent-soft);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
    font-size: 0.85rem;
}

.hero-server code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.16), #10121a);
    border-radius: 1.5rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.hero-card li::before {
    content: "●";
    font-size: 0.5rem;
    margin-right: 0.4rem;
    color: var(--accent);
}

.hero-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section {
    padding: 2.5rem 0;
}

.section-alt {
    background: radial-gradient(circle at top, rgba(255, 179, 71, 0.18), #060712);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-elevated);
    border-radius: 1.1rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-team h3 {
    margin-bottom: 0.3rem;
}

.card-team p {
    margin-top: 0.1rem;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
}

details {
    background: var(--bg-elevated);
    border-radius: 0.9rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-subtle);
}

summary {
    cursor: pointer;
    font-weight: 500;
}

summary::-webkit-details-marker {
    display: none;
}

.auth-section {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 420px;
}

.auth-card form {
    display: grid;
    gap: 0.75rem;
}

.auth-card label {
    font-size: 0.85rem;
    display: grid;
    gap: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    background: rgba(10, 12, 18, 0.95);
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 0.7rem;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.35);
}

.auth-link {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert {
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.alert-error {
    background: rgba(255, 75, 75, 0.08);
    border: 1px solid rgba(255, 75, 75, 0.6);
    color: #ffdede;
}

.alert-success {
    background: rgba(62, 207, 142, 0.08);
    border: 1px solid rgba(62, 207, 142, 0.6);
    color: #e4fff4;
}

.site-footer {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 6, 11, 0.96);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr;
    gap: 1.2rem;
    padding: 1.4rem 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.server-ip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    display: inline-block;
}

.footer-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-inner a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.7rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-card {
        order: -1;
    }
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}
