:root {
    --bg: #f6fbff;
    --text: #1f2a37;
    --muted: #60708a;
    --accent: #3bbbff;
    --accent-light: #9fdeff;
    --card: #ffffff;
    --border: rgba(31, 42, 55, 0.08);
}

:root[data-theme="dark"] {
    --bg: #0d1624;
    --text: #f4f7fb;
    --muted: #9db2cc;
    --card: #152335;
    --border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1624;
        --text: #f4f7fb;
        --muted: #9db2cc;
        --card: #152335;
        --border: rgba(255, 255, 255, 0.08);
    }
}

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

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: rgba(246, 251, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    position: relative;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.brand img {
    height: 42px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(31, 42, 55, 0.1);
    font-weight: 600;
    font-size: 0.875rem;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 187, 255, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    line-height: 1;
}

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

.site-nav a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--text);
}

.site-nav .current {
    color: var(--accent);
}

.hero {
    margin-top: 4rem;
    padding: 4.5rem 0;
    background: linear-gradient(135deg, rgba(155, 222, 255, 0.4), rgba(59, 187, 255, 0.35));
    border-bottom: 1px solid var(--border);
}

.hero.slim {
    margin-top: 2.5rem;
    padding: 3.5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--muted);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.home-actions {
    width: 100%;
    max-width: 360px;
}

.home-actions .btn {
    flex: 1 1 0px;
}

.hero.slim .hero-actions {
    margin-bottom: 0;
}

.hero-media {
    justify-self: center;
    position: relative;
    width: min(460px, 90vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.6rem;
    box-shadow: 0 18px 36px rgba(31, 42, 55, 0.18);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 47%;
    transform: scale(1.8);
    transform-origin: center;
}

.section {
    padding: 4rem 0;
}

.server-media {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 1.6rem;
    overflow: hidden;
    border: 1px solid rgba(59, 187, 255, 0.2);
    box-shadow: 0 16px 38px rgba(31, 42, 55, 0.18);
    background: linear-gradient(135deg, rgba(59, 187, 255, 0.18), rgba(155, 222, 255, 0.25));
}

.server-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transform-origin: center;
}

.section-heading {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-stack .section-heading {
    margin: 0 auto 0.5rem;
}

.section-heading p {
    color: var(--muted);
    margin-top: 0.75rem;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(31, 42, 55, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card h3 {
    font-size: 1.4rem;
}

.card p {
    color: var(--muted);
}

.card .link {
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
}

.coming-soon {
    position: relative;
}

.coming-soon .tag {
    margin-top: auto;
    align-self: flex-start;
}

.tag {
    display: inline-block;
    background: rgba(59, 187, 255, 0.15);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
    max-width: 320px;
}

.home-status {
    width: 100%;
    max-width: 360px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.status-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.status-text {
    color: var(--muted);
}

.status-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(120deg, rgba(59, 187, 255, 0.22), rgba(155, 222, 255, 0.3));
    text-align: center;
}

.cta-content {
    display: grid;
    gap: 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.cta-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%;
}

.cta-actions .btn {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 187, 255, 0.18);
}

.btn.primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    border: 1px solid var(--accent-light);
    color: var(--accent);
}


.content-split {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
}

.content-split > div {
    flex: 1 1 280px;
}

.content-split > div:first-child {
    padding-top: 1.75rem;
    border-left: 2px solid rgba(31, 42, 55, 0.12);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-stack {
    display: grid;
    gap: 2.5rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1.0rem;
    color: var(--muted);
}

:root[data-theme="dark"] .content-split > div:first-child {
    border-left: 2px solid rgba(244, 247, 251, 0.14);
}

.content-split h3 {
    margin-bottom: 1rem;
}

.feature-list li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.75rem;
}

.info-card {
    background: rgba(59, 187, 255, 0.12);
    border: 1px solid rgba(59, 187, 255, 0.25);
    border-radius: 1.2rem;
    padding: 1.75rem;
    display: grid;
    gap: 0.75rem;
}

.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-content p {
    color: var(--muted);
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 110px;
    height: 110px;
    border-radius: 1rem;
    margin: 0 auto;
    object-fit: cover;
    background: rgba(59, 187, 255, 0.2);
    padding: 0.5rem;
    box-sizing: border-box;
}

.rules-list {
    display: grid;
    gap: 1.5rem;
}

.rule-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.3rem;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(31, 42, 55, 0.05);
}

.rule-item h2 {
    margin-bottom: 0.75rem;
}

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

.contact-card {
    align-content: start;
    gap: 1.25rem;
    display: flex;
    flex-direction: column;
}

.contact-card .btn {
    margin-top: auto;
    width: 100%;
}

.coming {
    background: linear-gradient(130deg, rgba(59, 187, 255, 0.1), rgba(155, 222, 255, 0.18));
}

:root[data-theme="dark"] .site-header {
    background: rgba(13, 22, 36, 0.92);
    border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(24, 78, 110, 0.38), rgba(12, 40, 62, 0.42));
    border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .cta-section {
    background: linear-gradient(120deg, rgba(24, 78, 110, 0.38), rgba(12, 40, 62, 0.42));
}

:root[data-theme="dark"] .coming {
    background: linear-gradient(130deg, rgba(24, 78, 110, 0.24), rgba(12, 40, 62, 0.32));
}

:root[data-theme="dark"] .hero-media,
:root[data-theme="dark"] .server-media {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(155, 222, 255, 0.2);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .rule-item,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .team-card {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .status-card {
    background: rgba(17, 27, 40, 0.85);
    border: 1px solid rgba(155, 222, 255, 0.25);
}

:root[data-theme="dark"] .btn {
    background: rgba(17, 27, 40, 0.85);
    border: 1px solid rgba(155, 222, 255, 0.25);
    color: var(--text);
}

:root[data-theme="dark"] .btn.primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #041018;
}

:root[data-theme="dark"] .btn.secondary {
    background: rgba(17, 27, 40, 0.85);
    color: var(--accent-light);
    border: 1px solid rgba(155, 222, 255, 0.35);
}

:root[data-theme="dark"] .theme-toggle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .site-footer {
    background: #0b141f;
    border-top: 1px solid var(--border);
}

@media (max-width: 820px) {
    .theme-toggle {
        position: fixed;
        top: auto;
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 1rem;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
        min-width: 200px;
        box-shadow: 0 14px 30px rgba(31, 42, 55, 0.12);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .header-controls {
        gap: 0.75rem;
    }

    .header-content {
        position: relative;
    }

    :root[data-theme="dark"] .site-nav {
        background: rgba(9, 16, 26, 0.95);
        border: 1px solid rgba(155, 222, 255, 0.25);
        box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 640px) {
    .hero {
        margin-top: 3rem;
        padding: 3.5rem 0;
    }

    .status-card {
        max-width: none;
    }
}
