:root {
    --ink: #101923;
    --ink-soft: #344352;
    --muted: #708090;
    --line: #d9e4ea;
    --paper: #ffffff;
    --surface: #f5f9fc;
    --surface-strong: #e9f3f6;
    --blue: #0e8bb7;
    --blue-dark: #075a86;
    --cyan: #49b8d7;
    --teal: #14a58d;
    --green: #2f985d;
    --amber: #d18422;
    --rose: #cc5c7a;
    --violet: #6266d9;
    --radius: 8px;
    --shadow-soft: 0 24px 70px rgba(18, 47, 67, 0.14);
    --shadow-crisp: 0 1px 0 rgba(17, 24, 32, 0.06), 0 16px 38px rgba(21, 52, 72, 0.10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, #f4fbff 0, #ffffff 430px, #f8fbf7 100%);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    position: relative;
}

body::before {
    background:
        radial-gradient(circle at 14% 18%, rgba(73, 184, 215, 0.34), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(209, 132, 34, 0.22), transparent 24%),
        radial-gradient(circle at 72% 52%, rgba(20, 165, 141, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(14, 139, 183, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(14, 139, 183, 0.08) 1px, transparent 1px);
    background-size: auto, auto, auto, 48px 48px, 48px 48px;
    content: "";
    height: 520px;
    left: 0;
    mask-image: linear-gradient(180deg, black, transparent);
    opacity: 0.34;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

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

a {
    color: inherit;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
}

.navbar {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(223, 230, 235, 0.86);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 14px 24px;
}

.logo {
    color: var(--blue-dark);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 18px;
    list-style: none;
}

.nav-links a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--teal);
}

.hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 251, 254, 0.88) 55%, rgba(255, 248, 238, 0.88)),
        linear-gradient(120deg, rgba(14, 139, 183, 0.12), rgba(20, 165, 141, 0.08), rgba(209, 132, 34, 0.10));
    border-bottom: 1px solid rgba(217, 228, 234, 0.72);
    color: var(--ink);
    overflow: hidden;
    padding: 128px 0 76px;
}

.hero-intro {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-copy {
    max-width: 880px;
}

.eyebrow,
.section-kicker {
    color: var(--blue-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.eyebrow {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    letter-spacing: 0.16em;
    margin-bottom: 18px;
}

.hero h1 {
    background: linear-gradient(100deg, #101923 8%, #075a86 45%, #15937f 78%, #c47716 108%);
    background-clip: text;
    font-size: clamp(2rem, 3.5vw, 3.45rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 22px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.65vw, 1.24rem);
    line-height: 1.65;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    max-width: 660px;
}

.venue-note {
    color: var(--blue-dark);
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.authors {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 10px;
}

.authors a {
    color: var(--blue-dark);
    text-decoration: none;
}

.authors a:hover {
    text-decoration: underline;
}

.affiliations {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.authors sup,
.affiliations sup {
    font-size: 0.68em;
    font-weight: 800;
    line-height: 0;
    margin-left: 1px;
}

.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.paper-links a,
.paper-links button {
    background: linear-gradient(135deg, var(--blue-dark), var(--teal));
    border: 1px solid rgba(7, 90, 134, 0.28);
    border-radius: 999px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    min-width: 112px;
    padding: 10px 18px;
    box-shadow: 0 14px 28px rgba(7, 90, 134, 0.18);
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.paper-links a:hover,
.paper-links button:hover {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-color: var(--blue-dark);
    box-shadow: 0 18px 34px rgba(20, 165, 141, 0.22);
    transform: translateY(-2px);
}

.paper-links a + a,
.paper-links .bibtex-link {
    background: white;
    border-color: rgba(14, 139, 183, 0.25);
    box-shadow: 0 12px 28px rgba(18, 47, 67, 0.08);
    color: var(--blue-dark);
}

.paper-links .demo-jump {
    background: linear-gradient(135deg, var(--blue-dark), var(--teal));
    border-color: rgba(7, 90, 134, 0.28);
    box-shadow: 0 14px 28px rgba(7, 90, 134, 0.18);
    color: white;
}

.paper-links a + a:hover,
.paper-links .bibtex-link:hover {
    border-color: rgba(15, 127, 168, 0.42);
    color: var(--blue-dark);
}

.paper-links .demo-jump:hover {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-color: var(--blue-dark);
    color: white;
}

.copy-status {
    color: var(--teal);
    font-size: 0.88rem;
    font-weight: 800;
    min-height: 1.45em;
    margin-top: 12px;
}

.position-layout {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    margin: 0 0 28px;
    text-align: left;
}

.position-copy h2 {
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    letter-spacing: 0;
    line-height: 1.08;
}

.position-copy p:not(.section-kicker) {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.62;
    margin-top: 16px;
    max-width: 620px;
}

.position-figure {
    background: white;
    border: 1px solid rgba(217, 228, 234, 0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    max-width: 420px;
    overflow: hidden;
    width: 100%;
}

.position-figure img {
    background: white;
    object-fit: contain;
    width: 100%;
}

figcaption {
    border-top: 1px solid var(--line);
    background: white;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 10px 12px 12px;
}

.section-heading h2,
.motivation-copy h2,
.framework-spotlight h2,
.framework-copy h2,
.takeaway-panel h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.55rem);
    letter-spacing: 0;
    line-height: 1.12;
}

.section-heading p,
.motivation-copy p,
.framework-spotlight p,
.framework-copy p,
.comparison-card p,
.metric-card p,
.takeaway-panel p {
    color: var(--ink-soft);
}

.section {
    padding: 86px 0;
}

#position {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(246, 251, 253, 0.76)),
        linear-gradient(90deg, rgba(14, 139, 183, 0.08), rgba(20, 165, 141, 0.07), rgba(209, 132, 34, 0.05));
    border-bottom: 1px solid rgba(217, 228, 234, 0.74);
    padding: 58px 0 64px;
}

.section-heading {
    margin: 0 auto 40px;
    max-width: 820px;
    text-align: center;
}

.section-heading p {
    font-size: 1.03rem;
    margin-top: 16px;
}

.comparison-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.comparison-card,
.metric-card,
.takeaway-panel {
    background: var(--paper);
    border: 1px solid rgba(217, 228, 234, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(21, 52, 72, 0.08);
    padding: 24px;
}

.comparison-card {
    min-height: 230px;
    position: relative;
}

.comparison-card::before {
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.comparison-card.highlighted {
    background: linear-gradient(180deg, #f0fbf8, #ffffff);
    border-color: rgba(21, 147, 127, 0.34);
}

.comparison-card.highlighted::before {
    background: linear-gradient(90deg, var(--teal), var(--green));
}

.card-label {
    color: var(--blue-dark);
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.comparison-card h3 {
    font-size: 1.12rem;
    line-height: 1.28;
    margin-bottom: 14px;
}

.comparison-card p {
    font-size: 0.94rem;
    line-height: 1.58;
}

.motivation-band {
    background:
        linear-gradient(180deg, #ffffff, rgba(247, 252, 253, 0.92)),
        linear-gradient(90deg, rgba(204, 92, 122, 0.06), rgba(14, 139, 183, 0.07));
    border-bottom: 1px solid var(--line);
}

.motivation-layout {
    align-items: center;
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
}

.motivation-copy h2 {
    max-width: 620px;
}

.motivation-copy p {
    font-size: 1.01rem;
    line-height: 1.65;
    margin-top: 16px;
}

.motivation-figure {
    background: white;
    border: 1px solid rgba(217, 228, 234, 0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    justify-self: end;
    max-width: 650px;
    overflow: hidden;
    width: 100%;
}

.motivation-figure img {
    background: white;
    object-fit: contain;
    padding: 10px;
    width: 100%;
}

.framework-band,
.case-band {
    background:
        linear-gradient(135deg, rgba(240, 249, 252, 0.96), rgba(248, 253, 246, 0.96)),
        linear-gradient(90deg, rgba(73, 184, 215, 0.12), rgba(209, 132, 34, 0.06));
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.framework-band {
    background:
        linear-gradient(135deg, rgba(232, 248, 253, 0.98), rgba(241, 253, 248, 0.96) 54%, rgba(255, 248, 238, 0.94)),
        linear-gradient(90deg, rgba(14, 139, 183, 0.18), rgba(20, 165, 141, 0.14), rgba(209, 132, 34, 0.10));
    border-bottom: 1px solid rgba(14, 139, 183, 0.22);
    border-top: 1px solid rgba(14, 139, 183, 0.22);
    padding: 46px 0;
}

.framework-spotlight {
    background:
        linear-gradient(135deg, rgba(16, 25, 35, 0.97), rgba(7, 90, 134, 0.94) 58%, rgba(20, 117, 101, 0.94)),
        #101923;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    color: white;
    margin-bottom: 22px;
    padding: 22px 26px;
    position: relative;
}

.framework-spotlight .section-kicker {
    color: #89dcf5;
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}

.framework-spotlight h2 {
    font-size: clamp(1.8rem, 2.65vw, 2.6rem);
    margin-bottom: 10px;
}

.framework-spotlight p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 940px;
}

.framework-layout {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
}

.framework-copy p {
    font-size: 1.03rem;
    margin-top: 16px;
}

.space-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.space-grid article {
    background: white;
    border: 1px solid rgba(14, 139, 183, 0.18);
    border-top: 4px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(21, 52, 72, 0.08);
    padding: 15px 16px;
}

.space-grid article:nth-child(2) {
    border-top-color: var(--amber);
}

.space-grid span {
    color: var(--blue-dark);
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.space-grid h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.space-grid p {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.45;
    margin-top: 8px;
}

.principles {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.principles div {
    background: white;
    border: 1px solid rgba(217, 228, 234, 0.94);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(21, 38, 52, 0.05);
    padding: 13px 16px;
}

.principles div:nth-child(2) {
    border-left-color: var(--teal);
}

.principles div:nth-child(3) {
    border-left-color: var(--amber);
}

.principles strong,
.principles span {
    display: block;
}

.principles strong {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.principles span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.framework-figure,
.wide-figure {
    background: white;
    border: 1px solid rgba(217, 228, 234, 0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    overflow: hidden;
}

.framework-figure img {
    max-height: 390px;
    object-fit: contain;
    padding: 14px;
    width: 100%;
}

.results-layout {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 310px;
}

.results-table-wrap {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    overflow-x: auto;
}

.results-table {
    border-collapse: collapse;
    min-width: 640px;
    width: 100%;
}

.results-table th,
.results-table td {
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    text-align: center;
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
}

.results-table th {
    background: linear-gradient(90deg, #122332, #075a86);
    color: white;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.results-table tr:last-child td {
    border-bottom: 0;
}

.best-row td {
    background: #edf9f2;
    color: #123f31;
    font-weight: 800;
}

.metric-card {
    background: linear-gradient(180deg, #f4fcff, #ffffff);
    border-color: rgba(15, 127, 168, 0.26);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-value {
    color: var(--teal);
    display: block;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.metric-label {
    color: var(--ink);
    display: block;
    font-weight: 800;
    margin: 10px 0 18px;
}

.demo-band {
    background:
        linear-gradient(135deg, rgba(245, 251, 255, 0.96), rgba(255, 250, 241, 0.92)),
        linear-gradient(90deg, rgba(14, 139, 183, 0.12), rgba(20, 165, 141, 0.08), rgba(209, 132, 34, 0.08));
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.demo-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 252, 253, 0.92)),
        white;
    border: 1px solid rgba(217, 228, 234, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
    max-width: 1060px;
    overflow: hidden;
}

.demo-meta {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px 20px;
}

.demo-count {
    color: var(--blue-dark);
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.demo-meta h3 {
    font-size: 1.22rem;
    line-height: 1.24;
}

.demo-controls {
    align-items: center;
    display: flex;
    gap: 8px;
}

.demo-timer {
    background: linear-gradient(135deg, rgba(14, 139, 183, 0.12), rgba(20, 165, 141, 0.10)), white;
    border: 2px solid rgba(73, 184, 215, 0.34);
    border-radius: 999px;
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 800;
    min-height: 44px;
    min-width: 126px;
    padding: 9px 18px;
    text-align: center;
}

.demo-controls [data-demo-toggle] {
    background: linear-gradient(135deg, var(--blue-dark), var(--teal));
    border-color: rgba(7, 90, 134, 0.28);
    color: white;
}

.demo-controls button {
    background: white;
    border: 1px solid rgba(14, 139, 183, 0.22);
    border-radius: 999px;
    color: var(--blue-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    min-height: 36px;
    padding: 7px 13px;
}

.demo-controls button:hover {
    border-color: rgba(20, 165, 141, 0.48);
    color: var(--teal);
}

.demo-stage {
    background: white;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.demo-stage img {
    aspect-ratio: 16 / 9;
    background: white;
    object-fit: contain;
    width: 100%;
}

.demo-progress {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(22, 1fr);
    padding: 14px 20px 18px;
}

.demo-progress button {
    background: rgba(14, 139, 183, 0.18);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 7px;
    overflow: hidden;
    text-indent: -999px;
}

.demo-progress button.is-active {
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
}

.wide-figure {
    margin-bottom: 28px;
}

.wide-figure img {
    padding: 14px;
    width: 100%;
}

.case-tabs {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 252, 253, 0.92)),
        white;
    border: 1px solid rgba(217, 228, 234, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.case-tab-list {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
}

.case-tab-list button {
    background: rgba(255, 255, 255, 0.76);
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 16px;
}

.case-tab-list button.is-active {
    background: linear-gradient(135deg, rgba(14, 139, 183, 0.12), rgba(20, 165, 141, 0.10)), white;
    color: var(--blue-dark);
}

.case-tab-panel {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    padding: 24px;
}

.case-figure {
    align-items: center;
    background: white;
    border: 1px solid rgba(217, 228, 234, 0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    display: flex;
    justify-content: center;
    min-height: 430px;
    overflow: hidden;
}

.case-figure img {
    max-height: 520px;
    object-fit: contain;
    padding: 16px;
    width: 100%;
}

.case-detail {
    background: linear-gradient(180deg, #ffffff, #fbfefd);
    border: 1px solid rgba(217, 228, 234, 0.9);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(21, 52, 72, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.case-label {
    color: var(--blue-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.case-detail h3 {
    font-size: 1.45rem;
    line-height: 1.2;
}

.case-detail strong {
    display: block;
    margin-bottom: 6px;
}

.case-detail p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.62;
}

.takeaways {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 249, 252, 0.9)),
        linear-gradient(90deg, rgba(14, 139, 183, 0.08), rgba(204, 92, 122, 0.06));
}

.takeaway-panel {
    background:
        linear-gradient(135deg, rgba(16, 25, 35, 0.96), rgba(7, 90, 134, 0.94)),
        #14202a;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    color: white;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
}

.takeaway-panel .section-kicker {
    color: #86d9f5;
}

.takeaway-panel p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.06rem;
    margin-top: 18px;
}

.alternative-band {
    background:
        linear-gradient(180deg, #ffffff, rgba(245, 251, 255, 0.96)),
        linear-gradient(90deg, rgba(14, 139, 183, 0.08), rgba(20, 165, 141, 0.07), rgba(209, 132, 34, 0.05));
    border-top: 1px solid var(--line);
}

.view-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
}

.view-card {
    background: white;
    border: 1px solid rgba(217, 228, 234, 0.94);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(21, 52, 72, 0.08);
    min-height: 300px;
    padding: 26px;
    position: relative;
}

.view-card::before {
    background: linear-gradient(90deg, var(--blue), var(--teal));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.view-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--teal), var(--green));
}

.view-card span {
    color: var(--blue-dark);
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.view-card h3 {
    font-size: 1.32rem;
    line-height: 1.25;
    margin-bottom: 14px;
}

.view-card p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.62;
}

.view-card p + p {
    margin-top: 12px;
}

.citation {
    background:
        linear-gradient(180deg, #f6fbfd, #ffffff);
    border-top: 1px solid var(--line);
}

.citation-box {
    background: #101820;
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    margin: 0 auto;
    max-width: 880px;
    overflow: hidden;
}

.citation-box pre {
    overflow-x: auto;
    padding: 24px;
}

.citation-box code {
    color: #e8eef2;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

.copy-btn {
    background: linear-gradient(90deg, var(--blue-dark), var(--teal));
    border: 0;
    color: white;
    cursor: pointer;
    display: block;
    font: inherit;
    font-weight: 800;
    padding: 15px 20px;
    width: 100%;
}

.copy-btn:hover {
    background: linear-gradient(90deg, var(--teal), var(--blue));
}

.footer {
    background: linear-gradient(180deg, #ffffff, #f5fafc);
    border-top: 1px solid var(--line);
    color: var(--ink);
    padding: 34px 0;
}

.footer-content {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.footer p {
    color: var(--muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--ink-soft);
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--blue-dark);
}

@media (max-width: 980px) {
    .position-layout,
    .motivation-layout,
    .framework-layout,
    .results-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .position-copy {
        max-width: none;
    }

    .position-layout {
        justify-items: center;
        text-align: center;
    }

    .position-copy p:not(.section-kicker) {
        margin-left: auto;
        margin-right: auto;
    }

    .motivation-figure {
        justify-self: center;
    }

    .comparison-grid,
    .space-grid,
    .view-grid,
    .case-tab-panel {
        grid-template-columns: 1fr;
    }

    .comparison-card {
        min-height: auto;
    }

    .card-label {
        margin-bottom: 24px;
    }

    .metric-card {
        min-height: 220px;
    }

    .demo-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .case-figure {
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    body::before {
        background-size: 34px 34px;
    }

    .container,
    .nav-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 104px 0 48px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.75rem);
    }

    .section {
        padding: 64px 0;
    }

    #position {
        padding: 50px 0 58px;
    }

    .comparison-card,
    .case-detail,
    .metric-card,
    .view-card,
    .takeaway-panel {
        padding: 22px;
    }

    .framework-figure img,
    .motivation-figure img,
    .wide-figure img,
    .case-figure img {
        padding: 10px;
    }

    .framework-spotlight {
        padding: 24px;
    }

    .case-tab-list {
        grid-template-columns: 1fr;
    }

    .case-tab-list button {
        padding: 13px 14px;
        text-align: left;
    }

    .case-tab-panel {
        padding: 16px;
    }

    .case-figure {
        min-height: 260px;
    }

    .metric-value {
        font-size: 3.1rem;
    }

    .demo-meta {
        padding: 16px;
    }

    .demo-controls {
        width: 100%;
    }

    .demo-timer,
    .demo-controls button {
        flex: 1;
    }

    .demo-progress {
        grid-template-columns: repeat(11, 1fr);
        padding: 12px 16px 16px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}
