:root {
    --bg: #f4f6fb;
    --bg-start: #f9fbff;
    --bg-end: #eef2f8;
    --surface: #ffffff;
    --surface-muted: #e9eef5;
    --surface-elevated: rgba(255, 255, 255, 0.88);
    --header-bg: rgba(249, 251, 255, 0.92);
    --button-secondary-bg: rgba(255, 255, 255, 0.85);
    --text: #18212b;
    --text-soft: #4e5c6b;
    --brand-primary: #3f615e;
    --brand-secondary: #504c82;
    --brand-accent: #bdbbd9;
    --border: #d7deea;
    --shadow: 0 18px 48px rgba(31, 45, 61, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --max-width: 1120px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #121827;
    --bg-start: #0d1320;
    --bg-end: #151d2e;
    --surface: #131c2b;
    --surface-muted: #1b2537;
    --surface-elevated: rgba(19, 28, 43, 0.9);
    --header-bg: rgba(13, 19, 32, 0.9);
    --button-secondary-bg: rgba(19, 28, 43, 0.92);
    --text: #edf2fb;
    --text-soft: #b7c1d3;
    --brand-primary: #8dbab4;
    --brand-secondary: #c4bff6;
    --brand-accent: #d9d6fb;
    --border: rgba(122, 141, 175, 0.28);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--brand-secondary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--brand-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    z-index: 1000;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.brand-logo {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1rem;
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--text-soft);
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-soft);
    font-weight: 600;
}

.site-nav a[aria-current="page"] {
    color: var(--brand-primary);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-elevated);
    box-shadow: var(--shadow);
}

.theme-option {
    border: none;
    background: transparent;
    color: var(--text-soft);
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.theme-option.is-active,
.theme-option[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    color: #fff;
}

.button-row {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-secondary);
    color: var(--brand-secondary);
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}

.button:hover,
.button:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow);
}

.button-secondary {
    background: var(--button-secondary-bg);
}

.page-shell {
    padding-bottom: 4rem;
}

.hero,
.page-hero {
    padding: 4rem 0 2.5rem;
}

.hero-grid,
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--brand-primary);
}

.eyebrow::before {
    content: "";
    width: 1.4rem;
    height: 0.12rem;
    background: currentColor;
}

h1,
h2,
h3 {
    color: var(--text);
    line-height: 1.15;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 62ch;
}

.hero-panel,
.content-panel,
.product-card,
.feature-card,
.stat-card,
.cta-panel {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    overflow: hidden;
}

.hero-panel img,
.product-media img {
    width: 100%;
    height: auto;
}

.hero-panel figcaption,
.product-media figcaption {
    padding: 0.9rem 1rem 1rem;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.section {
    padding: 2rem 0;
}

.section-header {
    max-width: 62ch;
    margin-bottom: 1.5rem;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 1.25rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.product-card,
.stat-card,
.content-panel,
.cta-panel {
    padding: 1.35rem;
}

.feature-card p,
.product-card p,
.content-panel p,
.cta-panel p,
.page-intro p,
.summary-list li,
.product-highlights li {
    color: var(--text-soft);
}

.badge-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.badge-list li {
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(80, 76, 130, 0.09);
    color: var(--brand-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card > div:not(.card-links) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-card img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.card-links {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.summary-list,
.product-highlights {
    padding-left: 1.15rem;
    margin: 1rem 0 0;
}

.summary-list li + li,
.product-highlights li + li {
    margin-top: 0.5rem;
}

.content-stack {
    display: grid;
    gap: 1.25rem;
}

.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 3rem;
    color: var(--text-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.footer-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.kicker {
    font-size: 0.92rem;
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
    gap: 1.5rem;
    align-items: start;
}

.table-card {
    padding: 1.1rem 1.2rem;
}

.table-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.table-card a {
    color: var(--text);
    font-weight: 600;
}

.muted {
    color: var(--text-soft);
}

@media (max-width: 920px) {
    .hero-grid,
    .page-hero-grid,
    .page-grid,
    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.75rem 0;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav {
        gap: 0.9rem;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(var(--max-width), calc(100% - 1.25rem));
    }

    .hero,
    .page-hero,
    .section {
        padding-top: 1.5rem;
    }

    .button-row,
    .card-links {
        flex-direction: column;
        align-items: stretch;
    }
}
