:root {
    --ash-0: #f6f9fb;
    --ash-1: #edf3f6;
    --ash-2: #d9e3e8;
    --ash-3: #aebdc6;
    --ash-4: #6b7d87;
    --ash-5: #29404f;
    --sky-1: #d8f0ff;
    --sky-2: #afddff;
    --sky-3: #76c4f8;
    --sky-4: #2d9ce5;
    --sky-5: #1678ba;
    --white: #ffffff;
    --ink: #17303f;
    --ink-soft: #4f6674;
    --card: rgba(255, 255, 255, 0.72);
    --card-strong: rgba(255, 255, 255, 0.88);
    --line: rgba(41, 64, 79, 0.1);
    --shadow-soft: 0 20px 60px rgba(64, 104, 130, 0.12);
    --shadow-lift: 0 26px 80px rgba(38, 83, 114, 0.16);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background:
        radial-gradient(circle at top left, rgba(118, 196, 248, 0.22), transparent 28rem),
        radial-gradient(circle at top right, rgba(174, 189, 198, 0.34), transparent 34rem),
        linear-gradient(180deg, var(--ash-0) 0%, #f3f7f9 36%, var(--ash-1) 100%);
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.55;
    padding: 26px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
label {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    max-width: 1320px;
    margin: 0 auto;
}

.main-stack {
    display: grid;
    gap: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sky-4), var(--ash-5));
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 14px 28px rgba(45, 156, 229, 0.28);
}

.brand-copy {
    display: grid;
}

.brand-copy strong {
    font-family: "Baskerville", "Georgia", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-copy small {
    color: var(--ink-soft);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topnav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.topnav a:hover {
    background: rgba(118, 196, 248, 0.16);
    color: var(--ink);
    transform: translateY(-1px);
}

.topnav a.is-active {
    background: rgba(118, 196, 248, 0.16);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(45, 156, 229, 0.14);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
    gap: 24px;
}

.hero-copy,
.hero-banner,
.panel,
.overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.hero-copy,
.hero-banner,
.panel {
    overflow: hidden;
}

.hero-copy {
    position: relative;
    padding: 34px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(232, 243, 249, 0.96) 48%, rgba(217, 227, 232, 0.98) 100%);
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: auto -90px -90px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118, 196, 248, 0.34), transparent 70%);
    pointer-events: none;
}

.eyebrow,
.section-kicker,
.overview-label,
.signal-label,
.prediction-label {
    margin: 0 0 10px;
    color: var(--sky-5);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.panel-header h2,
.banner-header h2 {
    margin: 0;
    font-family: "Baskerville", "Georgia", serif;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.9rem, 5vw, 5.2rem);
    line-height: 0.94;
}

.hero-text {
    margin: 18px 0 0;
    max-width: 60ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.primary-solid,
.secondary-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.primary-solid {
    background: linear-gradient(135deg, var(--sky-4), var(--sky-5));
    color: var(--white);
    border: 1px solid rgba(22, 120, 186, 0.22);
    box-shadow: 0 16px 36px rgba(45, 156, 229, 0.28);
}

.secondary-button,
.secondary-solid {
    background: rgba(255, 255, 255, 0.84);
    color: var(--ash-5);
    border: 1px solid rgba(41, 64, 79, 0.1);
}

.ghost-button {
    background: rgba(216, 240, 255, 0.58);
    color: var(--ash-5);
    border: 1px solid rgba(45, 156, 229, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.primary-solid:hover,
.secondary-solid:hover,
.sample-card:hover {
    transform: translateY(-2px);
}

.system-notice {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(216, 240, 255, 0.9), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(45, 156, 229, 0.14);
    color: var(--ash-5);
    font-weight: 600;
}

.hero-banner {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 245, 248, 0.96));
}

.banner-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.banner-header h2 {
    font-size: 1.8rem;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 190px 190px;
    gap: 14px;
}

.banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(41, 64, 79, 0.08);
    background: linear-gradient(180deg, #f0f6fa, #dfe8ee);
    box-shadow: var(--shadow-soft);
}

.banner-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(23, 48, 63, 0.18));
    pointer-events: none;
}

.banner-card-main {
    grid-row: span 2;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.06);
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.signal-card {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(41, 64, 79, 0.08);
}

.signal-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
}

.overview-strip {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
}

.overview-card {
    padding: 22px 24px;
    background: var(--card-strong);
}

.overview-card strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Baskerville", "Georgia", serif;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.overview-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.overview-card-primary {
    background:
        linear-gradient(135deg, rgba(45, 156, 229, 0.18), rgba(255, 255, 255, 0.9) 42%, rgba(174, 189, 198, 0.52));
    color: var(--ash-5);
    font-weight: 700;
}

.studio-grid,
.intelligence-grid {
    display: grid;
    gap: 24px;
}

.studio-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.studio-left,
.studio-right {
    display: grid;
    gap: 24px;
}

.panel {
    padding: 26px;
    background: var(--card);
}

.panel-header h2 {
    font-size: 2rem;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 240px;
    margin-top: 18px;
    padding: 34px 24px;
    border: 2px dashed rgba(45, 156, 229, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(216, 240, 255, 0.96), rgba(255, 255, 255, 0.88) 58%, rgba(237, 243, 246, 0.86));
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.dropzone.is-dragover {
    border-color: var(--sky-4);
    transform: scale(1.01);
    box-shadow: var(--shadow-lift);
}

.dropzone input {
    display: none;
}

.drop-title {
    font-family: "Baskerville", "Georgia", serif;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.drop-copy {
    max-width: 34ch;
    color: var(--ink-soft);
}

.preview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
    gap: 0;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(41, 64, 79, 0.08);
    background: rgba(255, 255, 255, 0.84);
}

.preview-shell img {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    object-fit: contain;
    background:
        radial-gradient(circle at top, rgba(118, 196, 248, 0.16), transparent 38%),
        linear-gradient(180deg, #f6fafc, #e4edf2);
}

.preview-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 243, 246, 0.92));
}

.preview-label {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-meta strong {
    margin-top: 10px;
    font-size: 1.05rem;
    word-break: break-word;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.test-pack-shell {
    margin-top: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(41, 64, 79, 0.08);
    background:
        radial-gradient(circle at top right, rgba(118, 196, 248, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 246, 0.92));
}

.test-pack-copy {
    display: grid;
    gap: 18px;
}

.test-pack-copy p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.78;
}

.test-pack-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.test-pack-stat {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(45, 156, 229, 0.12);
    box-shadow: 0 16px 28px rgba(41, 64, 79, 0.06);
}

.test-pack-stat strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ash-5);
    font-family: "Baskerville", "Georgia", serif;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.test-pack-stat span {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.download-link {
    width: fit-content;
    text-decoration: none;
}

.test-pack-note {
    font-size: 0.95rem;
}

.result-state,
.result-shell {
    margin-top: 18px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(41, 64, 79, 0.08);
    background: rgba(255, 255, 255, 0.86);
}

.result-shell[data-tone="pneumonia"] {
    background:
        linear-gradient(180deg, rgba(213, 236, 252, 0.72), rgba(255, 255, 255, 0.94));
}

.result-shell[data-tone="normal"] {
    background:
        linear-gradient(180deg, rgba(237, 243, 246, 0.92), rgba(255, 255, 255, 0.96));
}

.prediction-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.prediction-head h3 {
    margin: 8px 0 0;
    font-size: 2.45rem;
    line-height: 0.95;
    text-transform: capitalize;
}

.confidence-pill {
    min-width: 100px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--sky-4), var(--ash-5));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 16px 32px rgba(45, 156, 229, 0.18);
}

.result-shell[data-tone="normal"] .confidence-pill {
    background: linear-gradient(135deg, var(--ash-3), var(--ash-5));
}

.probability-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.probability-row {
    display: grid;
    gap: 8px;
}

.probability-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--ash-5);
}

.probability-bar {
    position: relative;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(41, 64, 79, 0.08);
}

.probability-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sky-3), var(--sky-5));
}

.result-note {
    margin: 20px 0 0;
    color: var(--ink-soft);
    line-height: 1.78;
}

.guidance-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.guidance-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(41, 64, 79, 0.08);
}

.guidance-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.guidance-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(216, 240, 255, 0.88);
    color: var(--sky-5);
    font-weight: 800;
}

.guidance-item strong {
    display: block;
    margin-bottom: 6px;
}

.guidance-item p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.intelligence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.94fr 0.94fr;
    gap: 24px;
}

.panel-baseline .metric-grid,
.panel-baseline .note-list {
    margin-top: 18px;
}

.metric-ribbon-card,
.note-card,
.split-card,
.insight-card,
.distance-card,
.artifact-card,
.endpoint-card,
.code-card {
    border: 1px solid rgba(41, 64, 79, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 30px rgba(41, 64, 79, 0.06);
}

.metric-ribbon-card {
    padding: 22px 24px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(45, 156, 229, 0.16), rgba(255, 255, 255, 0.94) 42%, rgba(174, 189, 198, 0.5));
}

.metric-ribbon-card strong {
    display: block;
    margin: 8px 0 10px;
    font-family: "Baskerville", "Georgia", serif;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.metric-ribbon-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.page-intro {
    padding: 34px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(232, 243, 249, 0.96) 48%, rgba(217, 227, 232, 0.98) 100%);
}

.page-title {
    margin: 0;
    font-family: "Baskerville", "Georgia", serif;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    letter-spacing: -0.03em;
    line-height: 0.96;
}

.page-lead {
    max-width: 56ch;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.84;
}

.page-lead-compact {
    margin-top: 16px;
    font-size: 0.96rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
}

.about-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.about-page-grid > .panel {
    height: 100%;
}

.about-preview-copy {
    max-width: 56ch;
    margin: 18px 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.about-copy,
.author-copy {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.about-copy p,
.author-copy p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.82;
}

.about-copy {
    justify-items: center;
}

.about-copy p {
    width: 100%;
    max-width: 40ch;
    text-align: left;
}

.author-layout {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
}

.author-portrait-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 340px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(41, 64, 79, 0.08);
    background: linear-gradient(180deg, #f0f6fa, #dfe8ee);
    box-shadow: 0 24px 44px rgba(41, 64, 79, 0.12);
}

.author-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
}

.author-copy-block {
    width: min(100%, 620px);
}

.author-copy-block .panel-header {
    text-align: center;
}

.author-copy-block h3 {
    margin: 0;
    font-family: "Baskerville", "Georgia", serif;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.author-specialty {
    margin-top: 2px !important;
    color: var(--ash-5) !important;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.author-role-detail {
    font-weight: 700;
    color: var(--ink-soft) !important;
    text-align: center;
}

.author-copy {
    justify-items: center;
}

.author-copy p {
    width: 100%;
}

.author-copy p:not(.author-specialty):not(.author-role-detail):not(.author-belief) {
    max-width: 40ch;
    text-align: left;
}

.author-belief {
    font-weight: 700;
    color: var(--sky-5) !important;
    max-width: 40ch;
    text-align: left;
}

.site-footer {
    margin-top: 28px;
    padding: 28px 18px 12px;
    text-align: center;
    color: var(--ink-soft);
}

.site-footer p {
    margin: 0 0 8px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.metric-card {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(41, 64, 79, 0.08);
}

.metric-card span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-family: "Baskerville", "Georgia", serif;
    font-size: 2rem;
    line-height: 1;
}

.note-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--ink-soft);
}

.note-list li {
    margin-bottom: 12px;
    line-height: 1.72;
}

.note-list-compact {
    margin-bottom: 0;
}

.analysis-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.analysis-stat-card {
    padding: 22px 24px;
    background: var(--card-strong);
}

.analysis-stat-card strong,
.api-signal-card strong,
.split-card strong,
.insight-card strong,
.artifact-card strong,
.distance-card strong,
.roadmap-card h2 {
    display: block;
    margin-top: 10px;
    font-family: "Baskerville", "Georgia", serif;
    letter-spacing: -0.02em;
}

.analysis-stat-card strong,
.api-signal-card strong,
.split-card strong,
.insight-card strong,
.artifact-card strong,
.distance-card strong {
    font-size: 1.75rem;
    line-height: 1;
}

.analysis-stat-card p,
.api-signal-card p,
.split-card p,
.insight-card p,
.artifact-card p,
.distance-card p,
.endpoint-card p,
.roadmap-card p,
.docs-callout p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.74;
}

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

.bar-list,
.split-card-grid,
.chart-stack,
.insight-grid,
.artifact-grid,
.distance-grid,
.api-signal-grid,
.endpoint-grid,
.roadmap-grid {
    display: grid;
    gap: 18px;
}

.bar-list,
.split-card-grid,
.chart-stack,
.insight-grid,
.artifact-grid,
.distance-grid,
.endpoint-grid {
    margin-top: 18px;
}

.bar-row {
    display: grid;
    gap: 10px;
}

.bar-row-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ash-5);
    font-weight: 700;
}

.bar-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(41, 64, 79, 0.08);
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sky-3), var(--sky-5));
}

.split-card-grid,
.insight-grid,
.artifact-grid,
.distance-grid,
.api-signal-grid,
.endpoint-grid,
.roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-card,
.insight-card,
.artifact-card,
.distance-card,
.endpoint-card,
.api-signal-card,
.roadmap-card {
    padding: 20px 22px;
    border-radius: 24px;
}

.split-card p,
.distance-card p,
.artifact-card p,
.endpoint-card p {
    margin-top: 8px;
}

.chart-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-chart-shell {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(41, 64, 79, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.chart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-meta strong {
    font-size: 1rem;
}

.chart-meta span,
.artifact-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.mini-chart {
    width: 100%;
    height: auto;
    display: block;
}

.mini-chart-grid {
    stroke: rgba(41, 64, 79, 0.12);
    stroke-width: 1;
}

.mini-chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.mini-chart-line-primary {
    stroke: var(--sky-5);
}

.mini-chart-line-secondary {
    stroke: var(--ash-4);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    color: var(--ink-soft);
}

.legend-swatch {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 999px;
}

.legend-swatch-primary {
    background: var(--sky-5);
}

.legend-swatch-secondary {
    background: var(--ash-4);
}

.note-card,
.docs-callout {
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: 24px;
}

.docs-callout strong {
    font-size: 1rem;
}

.distance-copy {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.api-signal-grid,
.roadmap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.endpoint-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.endpoint-meta code,
.code-block code,
.docs-callout code,
.note-list code {
    font-family: "SFMono-Regular", "Menlo", monospace;
    font-size: 0.92rem;
}

.method-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(216, 240, 255, 0.92);
    color: var(--sky-5);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.method-pill-post {
    background: rgba(41, 64, 79, 0.1);
    color: var(--ash-5);
}

.endpoint-card strong {
    margin-top: 14px;
    font-size: 1.22rem;
}

.code-card {
    padding: 18px;
    margin-top: 18px;
    border-radius: 24px;
}

.code-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.code-block {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    border-radius: 18px;
    background: #eff5f8;
    color: var(--ash-5);
    line-height: 1.7;
}

.roadmap-card h2 {
    margin: 12px 0 0;
    font-size: 1.7rem;
    line-height: 1.05;
}

.reveal-up {
    animation: reveal-up 0.7s ease both;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1140px) {
    .hero-panel,
    .studio-grid,
    .intelligence-grid,
    .about-grid,
    .analysis-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .analysis-stat-grid,
    .split-card-grid,
    .insight-grid,
    .artifact-grid,
    .distance-grid,
    .endpoint-grid,
    .chart-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-signal-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 780px) {
    body {
        padding: 14px;
    }

    .topbar,
    .banner-header,
    .prediction-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        border-radius: 28px;
    }

    .hero-copy,
    .hero-banner,
    .panel,
    .overview-card {
        border-radius: 26px;
    }

    .hero-copy,
    .hero-banner,
    .panel {
        padding: 20px;
    }

    .banner-grid,
    .signal-row,
    .metric-grid,
    .preview-shell,
    .author-layout,
    .test-pack-stats,
    .analysis-stat-grid,
    .analysis-grid,
    .split-card-grid,
    .chart-stack,
    .insight-grid,
    .artifact-grid,
    .distance-grid,
    .api-signal-grid,
    .endpoint-grid,
    .roadmap-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .banner-grid {
        grid-template-rows: repeat(4, 180px);
    }

    .banner-card-main {
        grid-row: span 1;
    }

    .drop-title,
    .panel-header h2,
    .banner-header h2 {
        font-size: 1.65rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 10vw, 4rem);
        max-width: none;
    }

    .page-intro {
        padding: 24px;
    }

    .page-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .chart-meta,
    .bar-row-topline {
        flex-direction: column;
        align-items: flex-start;
    }
}
