/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --color-bg: #111318;
    --color-surface: #1A1D23;
    --color-text: #F2F3F5;
    --color-text-muted: #9AA0A8;
    --color-border: #2A2D33;
    --color-accent: #4285F4;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --header-height: 64px;
}


/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--color-text);
}

.site-header__logo-text {
    white-space: nowrap;
    transform: translateY(1px);
}

.site-header__logo-mark {
    display: inline-flex;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-header__logo:hover .site-header__logo-mark {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.55), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header__nav a {
    color: var(--color-text-muted);
}

.site-header__nav a:hover {
    color: var(--color-text);
}

.site-header__nav a.is-active {
    border-bottom: 2px solid var(--color-accent);
}

.site-header__lang {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.site-header__lang a {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: bold;
}

.site-header__lang a:hover {
    color: var(--color-text);
}

.site-header__lang svg {
    /*width: 13px;*/
    height: 10px;
    flex-shrink: 0;
    display: block;
}

/* Hamburger toggle — hidden on desktop */
.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    z-index: 70;
}

.site-header__toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

/* Mobile panel — hidden on desktop */
.site-header__mobile {
    display: none;
}

/* Backdrop — hidden on desktop */
.site-header__backdrop {
    display: none;
}

.spark {
    color: var(--color-accent);
    padding: 0 3px;
}

/* ==========================================================================
   Layout — centered width, line-separated sections
   ========================================================================== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.standalone_title {
    margin-top: 60px;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

section:last-of-type {
    border-bottom: none;
}

.section-head {
    margin-bottom: 50px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    margin-top: 0;
}


/* ==========================================================================
   Callout — reusable highlighted note (info / warning / danger)
   ========================================================================== */
.callout {
    margin: 1em 0;
    padding: 18px 22px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: 8px;
}

.callout--warning {
    border-left-color: #d8a928;
}

.callout--danger {
    border-left-color: #c94c4c;
}

.callout--info {
    border-left-color: var(--color-accent);;
}

.callout__label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}


/* ==========================================================================
   Caption — small muted note (image source, labels, etc.)
   ========================================================================== */
.caption {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
}

/* ==========================================================================
   Mobile breakpoint
   ========================================================================== */
@media (max-width: 768px) {
    .site-header__nav,
    .site-header__inner > .site-header__lang,
    .site-header__discord-icon {
        display: none;
    }

    .site-header__logo {
        gap: 8px;
        font-size: 15px;
    }

    .site-header__logo-mark {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .site-header__toggle {
        display: flex;
    }

    .site-header__lang a {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
    }

    .site-header__toggle span {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .site-header__toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header__toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header__mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 85vw);
        background: var(--color-surface);
        border-left: 1px solid var(--color-border);
        padding: calc(var(--header-height) + 24px) 24px 24px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 60;
    }

    .site-header__mobile.is-open {
        transform: translateX(0);
    }

    .site-header__mobile nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
    }

    .site-header__mobile a {
        font-size: 16px;
        color: var(--color-text);
    }

    .site-header__mobile .site-header__lang {
        display: flex;
        gap: 16px;
        font-size: 13px;
    }

    .site-header__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 55;
    }

    .site-header__backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__logo {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
}

.site-footer__location {
    color: var(--color-text-muted);
    opacity: 0.75;
    font-size: 0.9em;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-footer__inner {
        align-items: flex-start;
    }
}

/* ==========================================================================
   Shared Discord Link & Icon Styles
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-links {
    height: 1.5rem;
    display: flex;
    flex-direction: row;
    align-content: end;
    gap: 10px;
}

.icon-links svg {
    width: 30px;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    color: #5865F2 !important;
    text-decoration: none;
}

.youtube-link svg {
    display: inline-block;
    height: 110%;
}

.discord-link {
    display: inline-flex;
    gap: 25px;
    color: #5865F2 !important;
    text-decoration: none;
    align-items: center;
}


.discord-link svg {
    display: inline-block;
    height: 80%;
}



/* ==========================================================================
   Links
   ========================================================================== */

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

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

/* ==========================================================================
   Inline accent link — plain text link, no underline
   ========================================================================== */

.link {
    color: var(--color-accent);
    text-decoration: none;
}

.link:hover {
    color: var(--color-text);
}


/* ==========================================================================
   Sections
   ========================================================================== */
.section-head span{
    font-size: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    border-radius: 6px;
    border: 1px solid transparent;

    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: color-mix(in srgb, var(--color-accent) 78%, black 22%);
    color: var(--color-text);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--color-accent) 92%, black 8%);
}

.btn-ghost {
    background: rgba(242, 243, 245, 0.06);
    border-color: rgba(242, 243, 245, 0.28);
    color: var(--color-text);
}

.btn-ghost:hover {
    background: rgba(242, 243, 245, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
