:root {
    --bg: #000000;
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    color: var(--text);
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
    line-height: normal;
}

.site-header-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    gap: 24px;
}

.site-header-logo {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
}

.site-header-logo:hover {
    text-decoration: none;
}

.site-header-logo img,
.site-header-logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.site-header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header-link {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s;
    white-space: nowrap;
}

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

.site-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    padding: 0 16px;
    border-radius: 40px;
    transition: background 0.2s;
    white-space: nowrap;
}

.site-header-button:hover {
    background: rgba(245,245,247,0.85);
}

.site-footer {
    width: 100%;
    padding: 44px 24px 52px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg);
    position: relative;
    z-index: 40;
    color: var(--text);
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
    line-height: normal;
}

.site-footer-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(120px, 1fr));
    gap: 32px;
    align-items: start;
}

.site-footer-brand {
    max-width: 220px;
}

.site-footer-logo {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-footer-brand p,
.site-footer-title {
    margin: 0;
}

.site-footer-brand p {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer-brand a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.site-footer-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer-title {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-footer-group a {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .site-header-link-optional {
        display: none;
    }

    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-brand {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 36px 20px 44px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
