:root {
    color-scheme: dark;
    --bg: #06111f;
    --bg-deep: #081a31;
    --bg-panel: rgba(9, 24, 45, 0.88);
    --bg-panel-strong: rgba(11, 31, 59, 0.96);
    --line: rgba(122, 164, 224, 0.2);
    --line-strong: rgba(122, 164, 224, 0.38);
    --text: #edf5ff;
    --muted: #9bb0c9;
    --accent: #4a90e2;
    --accent-strong: #1257a1;
    --accent-deep: #0a3f7a;
    --glow: rgba(74, 144, 226, 0.18);
    --success: #89d1b6;
    --max: 1180px;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(circle at top right, rgba(74, 144, 226, 0.18), transparent 28%),
        radial-gradient(circle at top left, rgba(19, 76, 145, 0.24), transparent 36%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    min-height: 100%;
}

html.product-embed-page {
    background: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
    line-height: 1.6;
    background: transparent;
}

body.product-embed-body {
    margin: 0;
    min-height: auto;
    background: transparent;
    overflow: hidden;
}

a {
    color: var(--text);
}

.page-shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(15, 42, 79, 0.95), rgba(7, 20, 40, 0.98)),
        var(--bg-panel-strong);
    box-shadow: var(--shadow);
    padding: 36px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -28% auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.22), transparent 72%);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 10ch;
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 720px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.04rem;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-link.primary {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
    box-shadow: 0 10px 24px rgba(10, 63, 122, 0.34);
}

.button-link.secondary {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line-strong);
    color: var(--text);
}

.button-link.ghost {
    background: transparent;
    border-color: rgba(137, 209, 182, 0.32);
    color: var(--success);
}

.button-link:hover,
.button-link:focus-visible {
    transform: translateY(-1px);
}

.section {
    margin-top: 24px;
}

.grid-two {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 18px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.panel,
.feature-card,
.topic-card,
.product-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
}

.panel,
.product-section {
    padding: 24px;
}

.feature-card,
.topic-card {
    padding: 20px;
}

.panel h2,
.feature-card h3,
.topic-card h3,
.product-section h2 {
    margin-top: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    letter-spacing: -0.02em;
}

.lead-list,
.topic-list,
.service-list {
    padding-left: 1.2rem;
    margin: 12px 0 0;
    color: var(--muted);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat {
    padding: 14px 16px;
    border: 1px solid rgba(137, 209, 182, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.stat strong {
    display: block;
    font-size: 1.35rem;
    color: var(--text);
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.library-rail {
    display: grid;
    gap: 16px;
}

.topic-card p,
.feature-card p,
.panel p,
.product-section p {
    color: var(--muted);
}

.mini-label {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(137, 209, 182, 0.26);
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chart-panel {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.chart-panel canvas {
    width: 100%;
    height: 180px;
    display: block;
    margin-top: 18px;
}

.product-shell {
    margin-top: 24px;
}

.site-footer {
    margin-top: 26px;
    padding: 18px 6px 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.product-section {
    background:
        linear-gradient(150deg, rgba(11, 31, 59, 0.98), rgba(8, 19, 35, 0.98));
}

.product-section-standalone {
    margin: 0;
    box-shadow: none;
}

.product-frame {
    width: 100%;
    height: 320px;
    min-height: 320px;
    border: 0;
    background: transparent;
    overflow: hidden;
    display: block;
    border-radius: var(--radius-lg);
}

.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.muted-note {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--muted);
}

.content-hero {
    margin-top: 0;
}

.content-hero h1 {
    max-width: 16ch;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose h2,
.prose h3 {
    margin-top: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.article-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.article-item h3 {
    margin: 0 0 8px;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.article-item p {
    margin: 0;
    color: var(--muted);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quote-panel {
    border-left: 3px solid rgba(137, 209, 182, 0.46);
}

.code-block,
code {
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}

.code-block {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    overflow-x: auto;
}

.topic-card a,
.article-item a,
.panel a,
.product-section a,
.feature-card a {
    color: var(--text);
}

@media (max-width: 980px) {
    .grid-two,
    .grid-three,
    .stat-strip,
    .content-grid,
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100%, calc(100% - 18px));
        padding-top: 18px;
    }

    .hero,
    .panel,
    .feature-card,
    .topic-card,
    .product-section {
        padding: 18px;
    }
}
