:root {
    --site-bg: #050505;
    --site-surface: #0a0a0a;
    --site-surface-raised: #0f0f0f;
    --site-border: #252525;
    --site-border-strong: #3b3b3b;
    --site-text: #f2f2f2;
    --site-muted: #929292;
    --site-subtle: #626262;
    --site-danger: #d46a6a;
    --site-success: #8fb99d;
    --site-font: 'IBM Plex Sans', sans-serif;
    --site-mono: 'IBM Plex Mono', monospace;
}

.site-page,
.auth-page {
    background: var(--site-bg);
    color: var(--site-text);
    font-family: var(--site-font);
    font-size: 16px;
    line-height: 24px;
}

.site-page *,
.auth-page * {
    box-sizing: border-box;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-page .container,
.site-shell {
    width: min(100% - 48px, 1120px);
    max-width: none;
    margin-inline: auto;
    padding: 0;
}

.site-page .navbar,
.auth-page .navbar {
    min-height: 64px;
    padding: 0;
    border-bottom: 1px solid var(--site-border);
    background: #050505;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-shell {
    width: min(100% - 48px, 1120px);
    min-height: 64px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-page .logo,
.auth-page .logo {
    color: var(--site-text);
    font-family: var(--site-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.site-page .logo span,
.auth-page .logo span {
    background: none;
    color: inherit;
}

.site-page .nav-links {
    gap: 24px;
}

.site-page .nav-link {
    color: var(--site-muted);
    font-size: 14px;
    font-weight: 400;
}

.site-page .nav-link:hover,
.site-page .nav-link.active {
    color: var(--site-text);
}

.site-page .nav-link.active {
    text-decoration: underline;
    text-decoration-color: #555;
    text-underline-offset: 7px;
}

.site-page .nav-auth-container {
    gap: 16px;
    margin-left: 8px;
}

.site-page .nav-user-badge {
    padding: 4px 8px;
    border-color: var(--site-border-strong);
    border-radius: 2px;
    background: #0b0b0b;
    color: var(--site-muted);
    font-size: 12px;
}

.site-page .btn,
.auth-page .btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: #0b0b0b;
    color: var(--site-text);
    box-shadow: none;
    font: 500 14px/20px var(--site-font);
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.site-page .btn:hover,
.site-page .btn:focus-visible,
.auth-page .btn:hover,
.auth-page .btn:focus-visible {
    transform: none;
    border-color: #5a5a5a;
    background: #141414;
    box-shadow: none;
}

.site-page .btn-primary,
.auth-page .btn-primary {
    border-color: #f1f1f1;
    background: #f1f1f1;
    color: #080808;
}

.site-page .btn-primary:hover,
.site-page .btn-primary:focus-visible,
.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus-visible {
    border-color: #d2d2d2;
    background: #d2d2d2;
    color: #080808;
}

.site-page .btn-muted,
.site-page .btn-outline,
.auth-page .btn-outline {
    border-color: var(--site-border-strong);
    background: transparent;
    color: #d5d5d5;
}

.site-page .btn-danger {
    border-color: #633;
    background: transparent;
    color: #d99;
}

.site-page .btn:disabled,
.auth-page .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.site-page .anim-fade-in-up,
.site-page .anim-fade-in,
.auth-page .anim-fade-in-up {
    opacity: 1;
    animation: none;
    transform: none;
}

.site-page .page-header {
    padding: 80px 0 48px;
    border-bottom: 1px solid var(--site-border);
}

.page-kicker {
    margin-bottom: 16px;
    color: var(--site-muted);
    font: 500 12px/16px var(--site-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-page .page-header h1 {
    max-width: 760px;
    color: var(--site-text);
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -0.045em;
}

.site-page .page-header p {
    max-width: 640px;
    margin-top: 16px;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 28px;
}

.site-page footer {
    margin-top: 96px;
    padding: 24px 0;
    border-top: 1px solid var(--site-border);
    background: transparent;
    color: var(--site-subtle);
    font-size: 13px;
}

.site-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-links {
    display: flex;
    gap: 24px;
}

.site-footer-links a {
    color: var(--site-muted);
}

.legal-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 96px;
    padding-top: 64px;
}

.legal-nav {
    position: sticky;
    top: 96px;
    align-self: start;
    border-top: 1px solid var(--site-border-strong);
}

.legal-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--site-border);
    color: var(--site-muted);
    font: 400 12px/16px var(--site-mono);
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
    color: var(--site-text);
}

.legal-content {
    min-width: 0;
    max-width: 760px;
}

.legal-content section {
    padding: 0 0 40px;
    scroll-margin-top: 96px;
}

.legal-content section + section {
    padding-top: 40px;
    border-top: 1px solid var(--site-border);
}

.legal-content h2 {
    margin-bottom: 20px;
    color: var(--site-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.025em;
}

.legal-content h3 {
    margin: 24px 0 8px;
    color: #d8d8d8;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
}

.legal-content p,
.legal-content li {
    color: #aaa;
    font-size: 15px;
    line-height: 26px;
}

.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p,
.legal-content .legal-table-wrap + p {
    margin-top: 16px;
}

.legal-content ul {
    margin: 16px 0 0 20px;
}

.legal-content li + li {
    margin-top: 8px;
}

.legal-content a {
    color: var(--site-text);
    text-decoration: underline;
    text-decoration-color: #555;
    text-underline-offset: 3px;
}

.legal-content code {
    color: #d8d8d8;
    font: 400 13px/20px var(--site-mono);
}

.legal-table-wrap {
    overflow-x: auto;
    margin-top: 24px;
    border-top: 1px solid var(--site-border-strong);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.legal-table th,
.legal-table td {
    min-width: 180px;
    padding: 16px;
    border-right: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    vertical-align: top;
}

.legal-table th:first-child,
.legal-table td:first-child {
    padding-left: 0;
}

.legal-table th:last-child,
.legal-table td:last-child {
    border-right: 0;
}

.legal-table th {
    color: var(--site-muted);
    font: 500 11px/16px var(--site-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-table td {
    color: #aaa;
    font-size: 14px;
    line-height: 23px;
}

.legal-content .btn {
    margin-top: 24px;
    text-decoration: none;
}

.withdrawal-form {
    display: grid;
    gap: 16px;
    max-width: 640px;
    margin-top: 24px;
}

.withdrawal-form > label:first-child {
    color: #d8d8d8;
    font-size: 14px;
    font-weight: 500;
}

.withdrawal-form input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--site-border-strong);
    border-radius: 0;
    background: #080808;
    color: var(--site-text);
    font: 400 14px/22px var(--site-mono);
}

.withdrawal-confirm {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    color: #aaa;
    font-size: 13px;
    line-height: 20px;
}

.withdrawal-confirm input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #f2f2f2;
}

.withdrawal-form .btn {
    justify-self: start;
    margin-top: 0;
}

.withdrawal-receipt {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--site-border-strong);
    color: #d8d8d8;
    font: 400 13px/21px var(--site-mono);
}

.withdrawal-history {
    margin-top: 24px;
    border-top: 1px solid var(--site-border-strong);
}

.withdrawal-history-item {
    display: grid;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--site-border);
}

.withdrawal-history-item strong {
    color: var(--site-text);
    font: 500 13px/20px var(--site-mono);
    overflow-wrap: anywhere;
}

.withdrawal-history-item span {
    color: var(--site-muted);
    font-size: 12px;
    line-height: 18px;
}

.cookie-notice {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    width: min(calc(100% - 48px), 720px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    border: 1px solid var(--site-border-strong);
    background: #090909;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.cookie-notice-copy {
    max-width: 420px;
}

.cookie-notice strong {
    color: var(--site-text);
    font-size: 15px;
    font-weight: 600;
}

.cookie-notice p {
    margin-top: 8px;
    color: #aaa;
    font-size: 13px;
    line-height: 20px;
}

.cookie-notice a {
    display: inline-block;
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.cookie-notice .btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: transparent;
    color: var(--site-text);
    box-shadow: none;
    font: 500 13px/20px var(--site-font);
}

.cookie-notice .btn-primary {
    border-color: #f1f1f1;
    background: #f1f1f1;
    color: #080808;
}

.auth-legal-consent {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 16px 0;
    color: var(--site-muted);
    font-size: 12px;
    line-height: 18px;
}

.auth-legal-consent input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #f1f1f1;
}

.auth-legal-consent a {
    color: var(--site-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-page .home-hero {
    min-height: calc(100svh - 64px);
    display: flex;
    border-bottom: 1px solid var(--site-border);
}

.home-hero-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 80px;
    padding: 72px 0;
}

.home-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(72px, 8vw, 112px);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.075em;
}

.home-hero-copy .page-kicker {
    margin-bottom: 32px;
}

.home-hero-summary {
    max-width: 440px;
    padding-bottom: 8px;
}

.home-hero-summary > p {
    color: #a5a5a5;
    font-size: 17px;
    line-height: 28px;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.home-secondary-link {
    color: var(--site-muted);
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 4px;
}

.home-feature-section {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 112px;
    padding-block: 96px;
    border-bottom: 1px solid var(--site-border);
}

.home-section-intro h2 {
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.035em;
}

.home-section-intro p {
    margin-top: 16px;
    color: var(--site-muted);
    font-size: 15px;
    line-height: 24px;
}

.home-section-intro a {
    display: inline-block;
    margin-top: 24px;
    color: var(--site-text);
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 4px;
}

.home-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--site-border);
    border-left: 1px solid var(--site-border);
}

.home-feature {
    min-height: 200px;
    padding: 24px;
    border-right: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
}

.home-feature-index {
    display: block;
    margin-bottom: 32px;
    color: var(--site-subtle);
    font: 400 12px/16px var(--site-mono);
}

.home-feature h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.home-feature p {
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 23px;
}

.benchmark-section {
    padding-block: 96px;
    background: transparent;
}

.benchmark-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 80px;
}

.benchmark-copy h2 {
    max-width: 600px;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.035em;
}

.benchmark-copy p {
    max-width: 600px;
    margin-top: 16px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 24px;
}

.benchmark-table {
    border-top: 1px solid var(--site-border-strong);
}

.benchmark-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 80px minmax(160px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 64px;
    border-bottom: 1px solid var(--site-border);
}

.benchmark-name {
    font-size: 14px;
}

.benchmark-value {
    color: #d7d7d7;
    font: 500 13px/20px var(--site-mono);
    text-align: right;
}

.benchmark-track {
    height: 2px;
    background: #242424;
}

.benchmark-fill {
    height: 2px;
    background: #cfcfcf;
}

.pricing-page .pricing-shell {
    padding-bottom: 32px;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 64px;
    border-top: 1px solid var(--site-border-strong);
    border-left: 1px solid var(--site-border);
}

.plan-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-right: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    background: #080808;
}

.plan-column.recommended {
    background: #0c0c0c;
    box-shadow: inset 0 2px 0 #e8e8e8;
}

.plan-label {
    min-height: 16px;
    color: var(--site-muted);
    font: 500 11px/16px var(--site-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-column h2 {
    margin-top: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.plan-price {
    margin-top: 16px;
    font: 500 40px/48px var(--site-font);
    letter-spacing: -0.04em;
}

.plan-price span {
    color: var(--site-muted);
    font-size: 14px;
    letter-spacing: 0;
}

.plan-description {
    min-height: 72px;
    margin-top: 16px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 23px;
}

.plan-features {
    flex: 1;
    margin: 32px 0;
    border-top: 1px solid var(--site-border);
}

.plan-features li {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1d1d1d;
    color: #c4c4c4;
    font-size: 13px;
    line-height: 20px;
}

.plan-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    background: #a5a5a5;
}

.plan-actions {
    display: grid;
    gap: 8px;
}

.plan-note {
    min-height: 56px;
    margin-bottom: 16px;
    color: var(--site-subtle);
    font-size: 12px;
    line-height: 18px;
}

.pricing-footnote {
    margin-top: 24px;
    color: var(--site-muted);
    font-size: 13px;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

.payment-dialog {
    width: min(100%, 420px);
    position: relative;
    padding: 32px;
    border: 1px solid var(--site-border-strong);
    background: #090909;
}

.payment-dialog h2 {
    padding-right: 32px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.payment-dialog > p {
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 13px;
}

.payment-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--site-muted);
    font-size: 24px;
    cursor: pointer;
}

.payment-options {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.payment-options.is-locked {
    opacity: 0.38;
    visibility: hidden;
}

.payment-consent {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-top: 24px;
    color: #aaa;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.payment-consent input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #f2f2f2;
}

.payment-options > span {
    color: var(--site-subtle);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.docs-page .docs-shell {
    padding-bottom: 48px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    gap: 80px;
    min-width: 0;
    padding-top: 56px;
}

.docs-sidebar {
    align-self: start;
    min-width: 0;
    position: sticky;
    top: 96px;
}

.docs-sidebar-title {
    margin-bottom: 16px;
    color: var(--site-subtle);
    font: 500 11px/16px var(--site-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-sidebar ul {
    border-top: 1px solid var(--site-border);
}

.docs-sidebar a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #1d1d1d;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 20px;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--site-text);
}

.docs-content {
    min-width: 0;
}

.docs-section {
    padding: 0 0 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--site-border);
}

.docs-section:last-child {
    margin-bottom: 0;
}

.docs-section h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.025em;
}

.docs-section > p {
    max-width: 680px;
    margin-top: 16px;
    color: #a2a2a2;
    font-size: 15px;
    line-height: 26px;
}

.docs-section .code-block {
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin-top: 24px;
    border: 1px solid var(--site-border);
    border-radius: 2px;
    background: #070707;
}

.docs-section .code-block pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    color: #d2d2d2;
    font: 400 13px/22px var(--site-mono);
}

.docs-section .copy-btn {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: #0d0d0d;
    color: var(--site-muted);
    font: 500 11px/16px var(--site-font);
}

.account-page .account-shell {
    padding-bottom: 48px;
}

.account-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 64px;
    padding-top: 56px;
}

.account-summary {
    align-self: start;
    position: sticky;
    top: 96px;
    border-top: 1px solid var(--site-border-strong);
}

.account-summary-section,
.account-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--site-border);
}

.account-summary h2,
.account-section h2 {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.account-page .profile-row {
    min-height: 40px;
    padding: 8px 0;
    border-bottom: 1px solid #1b1b1b;
}

.account-page .profile-row:last-child {
    border-bottom: 0;
}

.account-page .profile-row .label {
    color: var(--site-muted);
    font-size: 13px;
}

.account-page .profile-row .value {
    color: #d8d8d8;
    font: 400 13px/20px var(--site-mono);
}

.account-page .tier-badge {
    padding: 2px 6px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: transparent;
    color: #d8d8d8;
    font-size: 11px;
}

.account-sections {
    min-width: 0;
    border-top: 1px solid var(--site-border-strong);
}

.account-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.account-section-heading h2 {
    margin: 0;
}

.account-section-heading p,
.account-section > p {
    max-width: 480px;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 21px;
}

.account-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 152px;
    align-items: end;
    gap: 8px;
}

.account-form-grid label {
    min-width: 0;
}

.account-form-grid .btn,
.account-inline-action .btn {
    width: 152px;
    min-height: 40px;
}

.account-form-grid.stack {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.account-page .account-input,
.auth-page .form-control {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: #090909;
    color: var(--site-text);
    font: 400 14px/20px var(--site-font);
    outline: none;
}

.account-page .account-input:focus,
.auth-page .form-control:focus {
    border-color: #777;
    box-shadow: 0 0 0 1px #777;
}

.account-page .account-input::placeholder,
.auth-page .form-control::placeholder {
    color: #646464;
}

.account-inline-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-inline-action .account-input {
    min-width: 0;
    flex: 1;
}

.account-status {
    color: var(--site-muted);
    font-size: 13px;
}

.account-page .api-key-item,
.account-page .gift-key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--site-border);
    border-radius: 2px;
    background: #080808;
}

.account-page .key-text {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #d8d8d8;
    font: 400 12px/18px var(--site-mono);
}

.account-page .small-btn {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: transparent;
    color: #d5d5d5;
    box-shadow: none;
    font: 500 12px/16px var(--site-font);
}

.account-page .small-btn:hover,
.account-page .small-btn:focus-visible {
    transform: none;
    border-color: #5a5a5a;
    background: #141414;
}

.account-page .small-btn-danger {
    border-color: #633;
    color: #d99;
}

.account-page .hidden-card {
    display: none;
}

.account-cancel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--site-border);
}

.account-cancel > p {
    margin-bottom: 12px;
    color: var(--site-muted);
    font-size: 12px;
    line-height: 18px;
}

.account-cancel .account-status {
    margin: 8px 0 0;
}

.auth-page {
    min-height: 100vh;
}

.auth-page .navbar {
    position: relative;
}

.auth-back-link {
    color: var(--site-muted);
    font-size: 13px;
}

.auth-layout {
    width: min(100% - 48px, 1120px);
    min-height: calc(100vh - 65px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 96px;
    align-items: center;
    padding-block: 64px;
}

.auth-context {
    max-width: 520px;
}

.auth-context h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 54px;
    letter-spacing: -0.045em;
}

.auth-context > p {
    max-width: 480px;
    margin-top: 24px;
    color: var(--site-muted);
    font-size: 16px;
    line-height: 27px;
}

.auth-context-list {
    margin-top: 40px;
    border-top: 1px solid var(--site-border);
}

.auth-context-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--site-border);
    color: #b8b8b8;
    font-size: 14px;
}

.auth-context-list span {
    color: var(--site-subtle);
    font: 400 12px/20px var(--site-mono);
}

.auth-panel {
    padding: 32px;
    border: 1px solid var(--site-border-strong);
    border-radius: 2px;
    background: #080808;
}

.auth-panel-header {
    margin-bottom: 32px;
}

.auth-panel-header h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.025em;
}

.auth-panel-header p {
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 22px;
}

.auth-page .form-group {
    margin-bottom: 16px;
}

.auth-page .form-label {
    display: block;
    margin-bottom: 8px;
    color: #c7c7c7;
    font-size: 13px;
    font-weight: 500;
}

.auth-page .form-control {
    width: 100%;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 24px;
    color: var(--site-muted);
    font-size: 13px;
}

.auth-form-meta label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-form-meta a,
.auth-switch a {
    color: #d2d2d2;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 3px;
}

.auth-turnstile {
    margin-block: 16px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--site-subtle);
    font: 400 11px/16px var(--site-mono);
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--site-border);
}

.auth-discord {
    width: 100%;
    justify-content: center;
}

.auth-discord svg {
    width: 18px;
    margin-right: 8px;
}

.auth-switch {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--site-border);
    color: var(--site-muted);
    font-size: 13px;
    text-align: center;
}

.auth-message {
    display: none;
    padding: 16px 0;
}

.auth-message-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--site-border-strong);
    color: var(--site-text);
}

.auth-message-mark svg {
    width: 16px;
    height: 16px;
}

.auth-message strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
}

.auth-message p {
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 22px;
}

.auth-message .btn {
    margin-top: 24px;
}

@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .legal-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 24px;
    }

    .home-feature-section,
    .benchmark-layout,
    .account-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .home-page .home-hero {
        min-height: calc(100svh - 64px);
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 56px;
    }

    .home-hero-copy h1 {
        max-width: 720px;
        font-size: clamp(64px, 12vw, 88px);
    }

    .home-hero-summary {
        max-width: 600px;
        padding-bottom: 0;
    }

    .home-feature-section,
    .benchmark-section {
        padding-block: 72px;
    }

    .home-section-intro,
    .benchmark-copy {
        max-width: 520px;
    }

    .pricing-table {
        grid-template-columns: 1fr;
    }

    .plan-description,
    .plan-note {
        min-height: 0;
    }

    .docs-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 48px;
    }

    .account-summary {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .legal-layout {
        gap: 40px;
        padding-top: 40px;
    }

    .legal-nav {
        grid-template-columns: 1fr;
    }

    .legal-content section,
    .legal-content section + section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .legal-content section:first-child {
        padding-top: 0;
    }

    .cookie-notice {
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .cookie-notice-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .site-page .container,
    .site-shell,
    .nav-shell,
    .auth-layout {
        width: min(100% - 32px, 1120px);
    }

    .site-page .navbar,
    .auth-page .navbar,
    .nav-shell {
        min-height: 56px;
    }

    .site-page .nav-links {
        top: 56px;
        padding: 16px;
        border-bottom: 1px solid var(--site-border);
        background: #070707;
    }

    .site-page .nav-links.active {
        display: flex;
        align-items: stretch;
    }

    .site-page .nav-link {
        padding: 8px 0;
    }

    .site-page .nav-auth-container {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin: 8px 0 0;
        padding-top: 16px;
        border-top: 1px solid var(--site-border);
    }

    .site-page .page-header {
        padding: 56px 0 40px;
    }

    .site-page .page-header h1 {
        font-size: 36px;
        line-height: 42px;
    }

    .home-page .home-hero {
        min-height: calc(100svh - 57px);
    }

    .home-hero-layout {
        gap: 32px;
        padding: 40px 0 48px;
    }

    .home-hero-copy h1 {
        font-size: clamp(52px, 17vw, 72px);
        line-height: 0.86;
    }

    .home-hero-summary > p {
        font-size: 16px;
        line-height: 27px;
    }

    .home-proof-strip,
    .home-feature-list {
        grid-template-columns: 1fr;
    }

    .home-proof-item,
    .home-proof-item:first-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }

    .home-proof-item:last-child {
        border-bottom: 0;
    }

    .home-feature-list {
        border-left: 0;
    }

    .home-feature {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 0;
        padding: 24px 0;
        border-right: 0;
    }

    .home-feature-index {
        margin-bottom: 16px;
    }

    .benchmark-row {
        grid-template-columns: minmax(0, 1fr) 64px;
        gap: 16px;
        padding-block: 12px;
    }

    .benchmark-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 32px;
    }

    .benchmark-track {
        grid-column: 1 / -1;
    }

    .docs-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
        max-width: 100%;
        padding-top: 40px;
    }

    .docs-sidebar {
        width: 100%;
        max-width: 100%;
        position: static;
    }

    .docs-sidebar ul {
        display: flex;
        gap: 8px;
        max-width: 100%;
        padding-bottom: 8px;
        overflow-x: auto;
    }

    .docs-sidebar li {
        flex: 0 0 auto;
    }

    .docs-sidebar a {
        padding: 8px;
        border: 1px solid var(--site-border);
    }

    .account-summary {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-form-grid .btn,
    .account-inline-action .btn {
        width: 100%;
    }

    .account-section-heading {
        flex-direction: column;
        gap: 8px;
    }

    .account-inline-action {
        align-items: stretch;
        flex-direction: column;
    }

    .account-page .api-key-item,
    .account-page .gift-key-item {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-layout {
        min-height: calc(100vh - 57px);
        grid-template-columns: 1fr;
        padding-block: 40px;
    }

    .auth-context {
        display: none;
    }

    .auth-panel {
        max-width: 440px;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 520px) {
    .home-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-secondary-link {
        margin: 8px 0 0;
    }

    .hero-console-footer {
        grid-template-columns: 1fr;
    }

    .hero-console-footer span {
        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }

    .hero-console-footer span:last-child {
        border-bottom: 0;
    }

    .plan-column,
    .auth-panel {
        padding: 24px;
    }

    .site-footer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-page *,
    .auth-page * {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
}
