:root {
    --site-font: Aptos, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --bg: #f2eee7;
    --bg-accent: radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(242, 238, 231, 0.28) 38%), linear-gradient(180deg, #f6f2eb 0%, #ece6dc 100%);
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.88);
    --text: #17191f;
    --muted: #626774;
    --accent: #305cd8;
    --accent-strong: #2448ab;
    --accent-soft: rgba(48, 92, 216, 0.12);
    --button-bg: #17191f;
    --button-text: #ffffff;
    --border: rgba(26, 31, 44, 0.12);
    --shadow: 0 20px 56px rgba(20, 24, 32, 0.08);
    --hairline: rgba(26, 31, 44, 0.08);
}

:root[data-theme="dark"] {
    --bg: #0f1218;
    --bg-accent: radial-gradient(circle at top left, rgba(89, 124, 255, 0.2), rgba(15, 18, 24, 0) 34%), linear-gradient(180deg, #151a24 0%, #0c0f15 100%);
    --surface: rgba(17, 22, 31, 0.82);
    --surface-strong: rgba(20, 26, 36, 0.96);
    --text: #edf2fb;
    --muted: #9aa5ba;
    --accent: #8cabff;
    --accent-strong: #c0d2ff;
    --accent-soft: rgba(140, 171, 255, 0.16);
    --button-bg: #8cabff;
    --button-text: #0f1218;
    --border: rgba(164, 174, 197, 0.18);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
    --hairline: rgba(164, 174, 197, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0f1218;
        --bg-accent: radial-gradient(circle at top left, rgba(89, 124, 255, 0.2), rgba(15, 18, 24, 0) 34%), linear-gradient(180deg, #151a24 0%, #0c0f15 100%);
        --surface: rgba(17, 22, 31, 0.82);
        --surface-strong: rgba(20, 26, 36, 0.96);
        --text: #edf2fb;
        --muted: #9aa5ba;
        --accent: #8cabff;
        --accent-strong: #c0d2ff;
        --accent-soft: rgba(140, 171, 255, 0.16);
        --button-bg: #8cabff;
        --button-text: #0f1218;
        --border: rgba(164, 174, 197, 0.18);
        --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
        --hairline: rgba(164, 174, 197, 0.1);
    }
}

* { box-sizing: border-box; }
html {
    color-scheme: light dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--site-font);
    background: var(--bg-accent), var(--bg);
    color: var(--text);
}
main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}
.site-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 72px;
}
.brand-link {
    text-decoration: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
}
.brand-link,
.brand-link:link,
.brand-link:visited,
.brand-link:hover,
.brand-link:active {
    color: inherit;
    text-decoration: none;
    text-decoration-color: transparent;
    -webkit-text-fill-color: currentColor;
}
.wordmark {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    font-weight: 750;
}
.wordmark-dot {
    position: relative;
    display: inline-flex;
    width: 0.16em;
    height: 0.16em;
    margin-left: 0.11em;
    flex: 0 0 auto;
    transform: translateY(0.06em);
}
.wordmark-dot::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--accent-strong);
}
.theme-panel {
    margin-left: auto;
}
.theme-panel summary {
    list-style: none;
}
.theme-panel summary::-webkit-details-marker {
    display: none;
}
.theme-summary {
    display: none;
}
.theme-label {
    display: inline;
}
.theme-panel > :not(summary) {
    display: block;
}
.theme-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 144px;
    align-items: flex-end;
    text-align: right;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.theme-control select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}
.hero {
    display: grid;
    gap: 30px;
    margin-bottom: 64px;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero h2 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(3.1rem, 7vw, 6rem);
    line-height: 0.96;
    letter-spacing: 0.02em;
    font-weight: 720;
}
.hero-copy {
    max-width: 54rem;
    font-size: clamp(1.16rem, 1.8vw, 1.5rem);
    line-height: 1.55;
    color: var(--text);
}
.hero-copy p { margin: 0; }
.hero-copy .secondary {
    margin-top: 20px;
    max-width: 46rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.link-button,
.text-link,
.site-footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    -webkit-text-fill-color: currentColor;
}
.link-button {
    padding: 13px 18px;
    border-radius: 999px;
    background: #17191f;
    color: #ffffff;
    border: 1px solid transparent;
}
:root[data-theme="dark"] .link-button {
    background: #8cabff;
    color: #0f1218;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .link-button {
        background: #8cabff;
        color: #0f1218;
    }
}
.link-button:hover,
.link-button:focus-visible {
    background: #2448ab;
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}
:root[data-theme="dark"] .link-button:hover,
:root[data-theme="dark"] .link-button:focus-visible {
    background: #c0d2ff;
    color: #0f1218;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .link-button:hover,
    :root:not([data-theme]) .link-button:focus-visible {
        background: #c0d2ff;
        color: #0f1218;
    }
}
.text-link,
.site-footer-nav a {
    color: var(--text);
}
.site-topbar a,
.site-footer a,
.site-topbar a:link,
.site-topbar a:visited,
.site-topbar a:hover,
.site-topbar a:active,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
    color: inherit;
    text-decoration: none;
}
a[x-apple-data-detectors],
a[x-apple-data-detectors]:link,
a[x-apple-data-detectors]:visited,
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:active {
    color: inherit;
    text-decoration: none;
    font: inherit;
}
.brand-link[x-apple-data-detectors],
.brand-link[x-apple-data-detectors]:link,
.brand-link[x-apple-data-detectors]:visited,
.brand-link[x-apple-data-detectors]:hover,
.brand-link[x-apple-data-detectors]:active {
    color: inherit;
    text-decoration: none;
    -webkit-text-fill-color: currentColor;
}
.text-link:hover,
.text-link:focus-visible,
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible,
.brand-link:hover .wordmark,
.brand-link:focus-visible .wordmark {
    color: var(--accent);
    outline: none;
}
.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 18px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 24px;
    backdrop-filter: blur(18px);
}
.panel h3,
.panel h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.current {
    display: grid;
    gap: 14px;
}
.current-card {
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 20px;
}
.current-card p:first-child,
.small-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.current-card h3 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
}
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.pill {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.18);
}
.site-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.site-footer-copy-block {
    display: grid;
    gap: 10px;
    max-width: 40rem;
}
.wordmark-footer {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.site-footer-brand {
    display: inline-flex;
    width: fit-content;
}
.site-footer-copy {
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}
.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
    backdrop-filter: blur(18px);
}
.section-card h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}
.section-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.section-card-featured {
    background: var(--surface-strong);
}
.list-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.list-stack p {
    padding-top: 10px;
    border-top: 1px solid var(--hairline);
}
.list-stack p:first-child {
    padding-top: 0;
    border-top: 0;
}
@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    main { width: min(100% - 28px, 1120px); padding-top: 16px; }
    .site-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-bottom: 40px;
    }
    .brand-link {
        align-self: flex-start;
    }
    .wordmark {
        font-size: clamp(1.6rem, 10vw, 2.1rem);
        letter-spacing: 0.04em;
    }
    .wordmark-footer {
        font-size: clamp(1.2rem, 7vw, 1.5rem);
    }
    .wordmark-dot {
        width: 0.16em;
        height: 0.16em;
        margin-left: 0.08em;
        transform: translateY(0.04em);
    }
    .theme-panel {
        width: 100%;
        margin-left: 0;
    }
    .theme-panel[open] {
        padding-bottom: 0;
    }
    .theme-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0;
        cursor: pointer;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }
    .theme-summary::after {
        content: "+";
        color: var(--accent);
        font-size: 1.1rem;
        line-height: 1;
    }
    .theme-panel[open] .theme-summary::after {
        content: "\2212";
    }
    .theme-label {
        display: none;
    }
    .theme-control {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
        margin-top: 8px;
    }
    .theme-panel:not([open]) .theme-control {
        display: none;
    }
    .theme-control select { width: 100%; }
    .hero { gap: 22px; margin-bottom: 42px; }
    .hero h2 { max-width: none; }
    .actions { flex-direction: column; align-items: flex-start; }
    .panel { padding: 20px; border-radius: 22px; }
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-top: 44px;
        padding-top: 20px;
    }
    .site-footer-copy-block {
        gap: 8px;
    }
    .site-footer-nav {
        width: 100%;
        gap: 10px;
    }
    .site-footer-nav a {
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface-strong);
        font-size: 0.88rem;
    }
    .site-footer-copy {
        font-size: 0.88rem;
    }
}

