* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.site-header {
    background: linear-gradient(180deg, #0d0d0d 0%, #161616 100%);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent) 1;
}

[data-theme="dark"] .site-header {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.brand,
.brand span {
    color: #f5f5f5;
}

.nav-links-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-links-pill a {
    color: #e6e6e6;
    letter-spacing: 0.2px;
}

.theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    position: relative;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-strong);
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: scale(1.03);
}

.brand-mark {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold);
    font-size: 20px;
}

.brand-name {
    font-weight: 600;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.25));
    transition: filter 0.2s ease;
}

.brand:hover .brand-logo {
    filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.45));
}

@media (max-width: 768px) {
    .brand-logo {
        height: 42px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 32px;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.nav-links-pill a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-links-pill a:hover {
    color: var(--color-black);
    background: var(--color-gold);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.nav-links-pill a.active {
    color: var(--color-black);
    background: var(--color-gold);
    font-weight: 600;
}

[data-theme="dark"] .nav-links-pill a:hover,
[data-theme="dark"] .nav-links-pill a.active {
    color: var(--color-black);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 0 7px;
    background: #f5f5f5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--color-gold);
    transform: rotate(15deg) scale(1.06);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.08));
}

.theme-toggle-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle-icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle-icon-dark {
    display: inline;
}

.hero {
    position: relative;
    padding: 140px 0 90px;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 6, 6, 0.42) 0%, rgba(6, 6, 6, 0.5) 55%, rgba(6, 6, 6, 0.72) 100%),
        linear-gradient(90deg, rgba(6, 6, 6, 0.35) 0%, rgba(6, 6, 6, 0.05) 40%, rgba(6, 6, 6, 0.05) 60%, rgba(6, 6, 6, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text-panel {
    position: relative;
    display: inline-block;
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 44px;
    background: linear-gradient(165deg, rgba(10, 10, 10, 0.68), rgba(10, 10, 10, 0.5));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.08) inset;
    overflow: hidden;
}

.hero-text-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

@media (max-width: 600px) {
    .hero-text-panel {
        padding: 26px 22px;
    }
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 7px 18px;
    border-radius: 999px;
}

.hero .eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    display: inline-block;
}

.hero h1,
.hero .lede {
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero h1 .brand-accent {
    background: linear-gradient(120deg, #f3d98a, var(--color-gold) 45%, #f3d98a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0.3px;
    max-width: 720px;
    margin: 20px auto;
}

.lede {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
}

.status-panel {
    padding: 48px 0;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

.status-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.status-ok {
    color: #1a7f37;
    font-weight: 600;
}

.status-error {
    color: #c1121f;
    font-weight: 600;
}

.status-detail {
    font-size: 13px;
    color: var(--text-faint);
    border: none !important;
}

.site-footer {
    padding: 24px 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
}

.error-page {
    padding: 120px 0;
    text-align: center;
}

.error-code {
    font-size: 64px;
    font-weight: 700;
    color: var(--color-gold);
    margin: 0;
}

.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    opacity: 0.88;
}

[data-theme="dark"] .btn {
    background: var(--color-gold);
    color: var(--color-black);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 8px 24px 16px;
        display: none;
        gap: 4px;
        z-index: 20;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav {
        align-items: stretch;
    }

    .nav-links-pill {
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        padding: 0;
        gap: 0;
    }

    .nav-links-pill a {
        padding: 10px 0;
        border-radius: 0;
    }

    .nav-links-pill a:hover {
        background: transparent;
        box-shadow: none;
    }

    .nav-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 8px;
        width: 100%;
    }

    .nav-actions .btn-nav {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-user,
    .main-nav .link-button,
    .main-nav form {
        padding: 4px 0;
        width: 100%;
    }

    .main-nav .theme-toggle {
        margin-top: 4px;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }
}
