:root {
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f4f4;
    --color-surface-dark: #0b0b0b;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-border: #dedede;
    --color-success: #16794a;
    --color-danger: #b42318;
    --color-warning: #9a6700;
    --color-info: #175cd3;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 36px 100px rgba(0, 0, 0, 0.18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --radius-pill: 999px;
    --container-width: 1440px;
    --header-height: 82px;
    --section-space: clamp(76px, 8vw, 132px);
    --transition-fast: 180ms ease;
    --transition-base: 280ms cubic-bezier(.2, .7, .2, 1);
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
    background: var(--color-background);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: inherit;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: #111111;
    color: #ffffff;
}

.container-fluid {
    width: min(100% - 48px, var(--container-width));
    margin-inline: auto;
    padding-inline: 0;
}

.site-shell {
    min-height: 100vh;
}

.site-main {
    min-height: 55vh;
}

.page-section,
.home-section {
    position: relative;
    padding-block: var(--section-space);
}

.section-theme-light {
    background: #ffffff;
    color: #111111;
}

.section-theme-muted {
    background: #f3f3f3;
    color: #111111;
}

.section-theme-dark {
    background: #0b0b0b;
    color: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(34px, 4vw, 60px);
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    align-items: end;
    gap: 36px;
    max-width: none;
}

.section-heading__eyebrow,
.page-banner__eyebrow,
.page-cta__eyebrow,
.cta-panel__eyebrow {
    margin: 0 0 14px;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2,
.page-banner h1,
.home-hero__title,
.cta-panel h2,
.page-cta h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
}

.section-heading h2 {
    font-size: clamp(36px, 5.3vw, 76px);
}

.section-heading__description {
    margin: 20px 0 0;
    color: var(--color-text-muted);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.7;
}

.section-theme-dark .section-heading__description {
    color: rgba(255, 255, 255, .68);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button--dark {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.button--dark:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.button--light {
    background: #ffffff;
    color: #111111;
}

.button--light:hover {
    background: #ededed;
}

.button--outline-dark {
    border-color: #111111;
    background: transparent;
    color: #111111;
}

.button--outline-dark:hover {
    background: #111111;
    color: #ffffff;
}

.button--outline-light {
    border-color: rgba(255, 255, 255, .42);
    background: transparent;
    color: #ffffff;
}

.button--outline-light:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111111;
}

.button[disabled],
.button.is-loading,
button[disabled] {
    cursor: not-allowed;
    opacity: .64;
    transform: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.text-link i {
    transition: transform var(--transition-fast);
}

.text-link:hover i {
    transform: translateX(4px);
}

.alert {
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.alert-success {
    border-color: rgba(22, 121, 74, .25);
    background: rgba(22, 121, 74, .08);
    color: #12633d;
}

.alert-danger {
    border-color: rgba(180, 35, 24, .25);
    background: rgba(180, 35, 24, .08);
    color: #8f1c14;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    transform: translateY(-180%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #4c8dff;
    outline-offset: 3px;
}

.visually-hidden {
    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;
}

.empty-state {
    display: grid;
    max-width: 720px;
    min-height: 380px;
    margin-inline: auto;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 54px 28px;
    border: 1px dashed #cfcfcf;
    border-radius: var(--radius-lg);
    background: #fafafa;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 30px;
}

.empty-state h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -.035em;
}

.empty-state p {
    max-width: 560px;
    margin: 0;
    color: var(--color-text-muted);
}

.pagination,
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination span,
.pagination-list a,
.pagination-list span {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding-inline: 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    text-decoration: none;
}

.pagination .is-active,
.pagination [aria-current="page"],
.pagination-list .is-active,
.pagination-list [aria-current="page"] {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.rich-content {
    color: #2b2b2b;
    font-size: 17px;
    line-height: 1.82;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content > *:last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 1.6em 0 .55em;
    color: #111111;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.rich-content h2 {
    font-size: clamp(28px, 3.2vw, 46px);
}

.rich-content h3 {
    font-size: clamp(22px, 2.4vw, 32px);
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content table {
    margin: 0 0 1.25em;
}

.rich-content a {
    color: #111111;
    font-weight: 700;
}

.rich-content blockquote {
    padding: 22px 24px;
    border-left: 4px solid #111111;
    background: #f4f4f4;
    font-size: 1.08em;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
}

.rich-content th,
.rich-content td {
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    text-align: left;
    vertical-align: top;
}

.rich-content th {
    background: #111111;
    color: #ffffff;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.is-loading-spinner::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ui-spin .7s linear infinite;
}

@keyframes ui-spin {
    to { transform: rotate(360deg); }
}
