:root {
    color-scheme: dark;
    --ink: #f7fbff;
    --muted: #9caec4;
    --paper: rgba(8, 15, 28, 0.86);
    --panel: rgba(15, 25, 42, 0.72);
    --panel-strong: rgba(18, 30, 50, 0.92);
    --line: rgba(173, 207, 255, 0.18);
    --gold: #f5c66d;
    --teal: #5de2d1;
    --blue: #78a7ff;
    --rose: #ff6d92;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.72;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 12%, rgba(93, 226, 209, 0.16), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(245, 198, 109, 0.14), transparent 28%),
        linear-gradient(135deg, #060a12 0%, #0a1322 45%, #0d1626 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

header {
    position: relative;
    min-height: 420px;
    padding: 74px 0 98px;
    background:
        linear-gradient(90deg, rgba(4, 8, 16, 0.92) 0%, rgba(6, 12, 22, 0.72) 45%, rgba(8, 14, 24, 0.34) 100%),
        image-set(url("legal-ai-hero.png") type("image/png"));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #060a12);
}

header .container {
    position: relative;
    z-index: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 13px;
    border: 1px solid rgba(245, 198, 109, 0.42);
    border-radius: 999px;
    background: rgba(4, 8, 15, 0.58);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(18px);
}

.brand-mark::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 18px rgba(93, 226, 209, 0.85);
}

header h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 850;
}

header p {
    max-width: 680px;
    color: #c9d6e5;
    font-size: clamp(17px, 2.1vw, 23px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn,
.hero-actions a,
.github-link,
.next-article a,
.consult-primary,
.consult-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid rgba(245, 198, 109, 0.45);
    border-radius: 999px;
    color: #09111d;
    background: linear-gradient(135deg, var(--gold), #fff0b7);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 38px rgba(245, 198, 109, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-actions a.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.btn:hover,
.hero-actions a:hover,
.github-link:hover,
.next-article a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(245, 198, 109, 0.28);
}

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    margin-top: -52px;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 13, 24, 0.74);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(22px);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #cfdaeb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.09);
}

.search-box {
    display: flex;
    gap: 8px;
    min-width: 340px;
}

.search-box input {
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
}

.search-box input::placeholder {
    color: #8fa1b7;
}

.search-box button {
    flex: 0 0 62px;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #07101d;
    background: var(--teal);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

main {
    padding: 64px 0 36px;
}

.series-banner,
.articles,
.article-card,
.category-card,
.highlight-box,
.quote,
.data-card,
.core-point,
.case-box,
.phase-card,
.model-box,
.scenario-card,
.audience-card,
.source-box,
.step-card,
.final-box,
.next-article {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.series-banner {
    position: relative;
    margin-bottom: 30px;
    padding: 34px;
    border-radius: 8px;
    overflow: hidden;
}

.series-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(93, 226, 209, 0.16), transparent 42%, rgba(245, 198, 109, 0.14));
    pointer-events: none;
}

.series-banner h2,
.series-banner p,
.series-banner .btn {
    position: relative;
}

.series-banner h2,
.articles h2 {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 38px);
}

.series-banner p {
    max-width: 760px;
    margin-bottom: 20px;
    color: #b9c7da;
    font-size: 17px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0 0 32px;
}

.metric-card {
    min-height: 112px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.metric-card strong {
    display: block;
    color: var(--gold);
    font-size: 30px;
    line-height: 1;
}

.metric-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 8px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.article-item:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 226, 209, 0.48);
    background: rgba(20, 35, 58, 0.82);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(93, 226, 209, 0.36);
    border-radius: 8px;
    background: rgba(93, 226, 209, 0.1);
    font-size: 24px;
}

.category-card h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 20px;
}

.category-card p,
.article-item p {
    color: var(--muted);
    font-size: 14px;
}

.articles {
    padding: 30px;
    border-radius: 8px;
}

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

.article-item {
    min-height: 172px;
    padding: 22px;
    border: 1px solid rgba(173, 207, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.article-item h4 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.45;
}

.article-item a {
    color: var(--ink);
    text-decoration: none;
}

.article-item a:hover {
    color: var(--teal);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
    color: #94a6bd;
    font-size: 13px;
}

.article-container {
    width: min(900px, calc(100% - 40px));
    margin: 58px auto 0;
}

.article-card {
    padding: clamp(28px, 5vw, 58px);
    border-radius: 8px;
    background: rgba(247, 251, 255, 0.94);
    color: #202938;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 20px;
    padding: 0 14px;
    border-radius: 999px;
    color: #07101d;
    background: linear-gradient(135deg, var(--gold), #fff0b7);
    font-size: 13px;
    font-weight: 850;
}

.article-card h1 {
    margin-bottom: 16px;
    color: #111827;
    font-size: clamp(30px, 4.6vw, 48px);
    line-height: 1.16;
    font-weight: 850;
}

.article-content {
    color: #354052;
    font-size: 17px;
    line-height: 1.95;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-figure {
    margin: 28px 0 32px;
    padding: 10px;
    border: 1px solid #dce7f2;
    border-radius: 8px;
    background: #f6f9fc;
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-figure figcaption {
    padding: 10px 8px 2px;
    color: #6b7788;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.article-content h2 {
    margin: 44px 0 18px;
    padding-left: 16px;
    border-left: 4px solid #0aa99b;
    color: #111827;
    font-size: 24px;
    line-height: 1.35;
}

.article-content h3 {
    margin: 28px 0 14px;
    color: #172033;
}

.article-content strong {
    color: #085f66;
}

.lead,
.quote,
.highlight-box,
.data-card,
.case-box,
.phase-card,
.model-box,
.scenario-card,
.audience-card,
.source-box,
.step-card,
.consult-notice {
    background: #f6f9fc;
    color: #314055;
    border: 1px solid #dce7f2;
    border-radius: 8px;
    box-shadow: none;
}

.lead {
    margin-bottom: 30px;
    padding: 20px 22px;
    border-left: 4px solid #0aa99b;
    font-size: 18px;
}

.data-grid,
.model-compare,
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.article4 .data-grid {
    grid-template-columns: repeat(4, 1fr);
}

.data-card {
    padding: 22px;
    text-align: center;
}

.data-card .num {
    color: #0a8f86;
    font-size: 34px;
    font-weight: 850;
}

.data-card .desc {
    margin-top: 6px;
    color: #617086;
    font-size: 13px;
}

.quote,
.highlight-box,
.case-box,
.phase-card,
.model-box,
.scenario-card,
.source-box,
.step-card {
    margin: 24px 0;
    padding: 24px;
}

.capability-list {
    padding: 24px 26px;
}

.capability-list p {
    display: grid;
    grid-template-columns: 42px auto 1fr;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    text-align: left;
}

.capability-list p:last-child {
    margin-bottom: 0;
}

.capability-list strong {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #075f66;
    white-space: nowrap;
}

.capability-list strong::after {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, rgba(7, 95, 102, 0.58), transparent);
}

.capability-list p > span:last-child {
    color: #314055;
}

.capability-mark {
    display: inline-grid;
    width: 34px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(10, 169, 155, 0.26);
    border-radius: 999px;
    color: #075f66;
    background:
        linear-gradient(135deg, rgba(93, 226, 209, 0.16), rgba(245, 198, 109, 0.1)),
        #f8fcfd;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.model-box {
    min-height: 300px;
}

.model-box .model-title {
    margin-bottom: 12px;
    font-size: 16px;
}

.model-box .skill,
.model-box .skill-plus {
    padding: 4px 0;
    line-height: 1.65;
}

.scenario-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scenario-card:hover {
    border-color: #9fded6;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.quote {
    position: relative;
    border-left: 4px solid #0aa99b;
}

.quote::before {
    content: "\"";
    position: absolute;
    top: -4px;
    left: 18px;
    color: rgba(10, 169, 155, 0.16);
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 1;
}

.quote p {
    position: relative;
    padding-left: 14px;
    font-style: italic;
}

.quote .source {
    color: #6b7788;
    font-size: 13px;
    text-align: right;
}

table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 0 0 1px #dfe7f1;
}

th {
    padding: 14px 12px;
    color: #07101d;
    background: linear-gradient(135deg, #9be8df, #f5d486);
    text-align: center;
}

td {
    padding: 13px 12px;
    border-bottom: 1px solid #e8eef5;
}

tr:nth-child(even) {
    background: #f7fafc;
}

.codex-compare-table {
    margin: 30px 0 34px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(11, 124, 116, 0.16);
    border-radius: 8px;
    background: #ffffff;
    box-shadow:
        0 18px 46px rgba(16, 36, 58, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.78) inset;
    font-size: 15px;
}

.codex-compare-table th {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(11, 124, 116, 0.12);
    color: #122033;
    background:
        linear-gradient(135deg, rgba(244, 248, 251, 0.98), rgba(232, 241, 244, 0.98)),
        linear-gradient(90deg, rgba(93, 226, 209, 0.18), rgba(245, 198, 109, 0.2));
    font-size: 15px;
    letter-spacing: 0;
    text-align: left;
}

.codex-compare-table th + th {
    border-left: 1px solid rgba(11, 124, 116, 0.11);
}

.codex-compare-table td {
    position: relative;
    padding: 18px 24px;
    border-bottom: 1px solid #edf2f6;
    color: #536276;
    background: #fbfdff;
    vertical-align: middle;
}

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

.codex-compare-table td + td {
    border-left: 1px solid #edf2f6;
    color: #075f66;
    background:
        linear-gradient(90deg, rgba(93, 226, 209, 0.09), rgba(255, 255, 255, 0.96));
    font-weight: 850;
}

.codex-compare-table tr:hover td {
    background: #f7fbfc;
}

.codex-compare-table tr:hover td + td {
    background:
        linear-gradient(90deg, rgba(93, 226, 209, 0.16), rgba(255, 255, 255, 0.98));
}

.up,
.can,
.cn,
.solution,
.result,
.skill-plus {
    color: #087b74;
    font-weight: 800;
}

.cant,
.risk {
    color: #d43f63;
    font-weight: 800;
}

.core-point,
.final-box,
.next-article,
.private-consult {
    margin: 28px 0;
    padding: 28px;
    border-radius: 8px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(10, 23, 39, 0.94), rgba(15, 44, 62, 0.92)),
        radial-gradient(circle at 80% 10%, rgba(245, 198, 109, 0.2), transparent 28%);
}

.core-point p,
.final-box p,
.next-article p,
.private-consult p {
    color: #d6e2f1;
}

.article-content .core-point h3,
.article-content .next-article h3,
.article-content .final-box h3 {
    margin-bottom: 12px;
    color: #fff;
}

.private-consult {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 42px;
}

.article-content .private-consult h2 {
    margin: 8px 0 12px;
    padding-left: 0;
    border-left: 0;
    color: #fff;
    font-size: 22px;
}

.consult-label {
    color: var(--gold);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.consult-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.consult-primary,
.consult-submit {
    border: 1px solid rgba(245, 198, 109, 0.45);
    color: #07101d;
    background: linear-gradient(135deg, var(--gold), #fff0b7);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 850;
    cursor: pointer;
}

.consult-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #e8f1fb;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.consult-notice {
    margin: 24px 0;
    padding: 22px;
}

.consult-form {
    display: grid;
    gap: 16px;
    margin: 24px 0 14px;
}

.consult-form label {
    display: grid;
    gap: 8px;
    color: #1f2a3a;
    font-weight: 800;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cddbea;
    border-radius: 8px;
    color: #202938;
    background: #fff;
    font: inherit;
}

.consult-form textarea {
    resize: vertical;
}

.consult-submit {
    width: fit-content;
    border: 0;
}

.form-tip {
    color: #66758b;
    font-size: 14px;
}

.form-tip a {
    color: #087b74;
    font-weight: 800;
}

.series-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.series-nav a {
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #e8f1fb;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.series-nav a:hover,
.series-nav a:focus-visible,
.series-nav a:visited:hover,
.series-nav a:visited:focus-visible,
.series-nav a.active {
    color: #06101c;
    background: var(--gold);
    border-color: var(--gold);
}

.series-nav a:visited {
    color: #e8f1fb;
}

.series-nav a.active:visited {
    color: #06101c;
}

.phase-label {
    color: #087b74;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.phase-title,
.scenario-title,
.audience-title,
.case-title,
.model-title,
.source-title,
.step-title {
    color: #111827;
    font-weight: 850;
}

.phase-time,
.step-desc,
.scenario-cmd {
    color: #66758b;
}

.phase-card ul {
    margin-top: 14px;
    list-style: none;
}

.phase-card li {
    position: relative;
    padding: 7px 0 7px 24px;
}

.phase-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0aa99b;
}

.code-block {
    margin: 16px 0;
    padding: 18px;
    overflow-x: auto;
    border-radius: 8px;
    background: #07101d;
}

.code-block code {
    color: #a8f2b4;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
}

.cmd {
    color: #8fc7ff;
}

.comment {
    color: #7f8da4;
}

.source-box a {
    color: #087b74;
}

.center-action {
    margin: 24px 0;
    text-align: center;
}

.center-action.large {
    margin: 30px 0;
}

.success-box,
.success-step {
    border-color: #b9e8d3;
    background: linear-gradient(135deg, #effdf7, #ffffff);
}

.step-num {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-right: 10px;
    border-radius: 50%;
    color: #07101d;
    background: linear-gradient(135deg, #9be8df, #f5d486);
    font-weight: 850;
}

.star-step {
    background: linear-gradient(135deg, #65d99c, #baf5d1);
}

.section-divider {
    margin: 42px 0;
    color: #aab7c6;
    text-align: center;
    letter-spacing: 12px;
}

footer {
    margin-top: 60px;
    padding: 34px 0 38px;
    border-top: 1px solid var(--line);
    color: #9fb1c8;
    text-align: center;
    background: rgba(3, 7, 13, 0.62);
}

footer p + p {
    margin-top: 8px;
    font-size: 13px;
}

@media (max-width: 900px) {
    header {
        min-height: 380px;
        padding: 58px 0 90px;
    }

    nav {
        margin-top: -46px;
    }

    nav .container {
        width: min(100% - 24px, 760px);
        flex-direction: column;
        border-radius: 18px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .metrics,
    .categories,
    .article-list,
    .article4 .data-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container,
    .article-container {
        width: min(100% - 24px, 1180px);
    }

    header {
        min-height: 360px;
        padding: 44px 0 88px;
    }

    header h1 {
        font-size: 42px;
    }

    .series-banner,
    .articles,
    .article-card {
        padding: 22px;
    }

    .metrics,
    .categories,
    .article-list,
    .data-grid,
    .model-compare,
    .audience-grid,
    .article4 .data-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        font-size: 16px;
    }

    .private-consult {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .consult-actions,
    .consult-submit {
        width: 100%;
    }

    .article-meta {
        gap: 8px 12px;
    }

    .capability-list p {
        grid-template-columns: 38px 1fr;
        gap: 8px 10px;
    }

    .capability-list p > span:last-child {
        grid-column: 2;
    }

    .capability-list strong::after {
        width: 18px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .codex-compare-table {
        display: table;
        white-space: normal;
        font-size: 14px;
    }

    .codex-compare-table th,
    .codex-compare-table td {
        padding: 15px 14px;
    }
}

/* Home redesign: light research platform with subtle AI interface cues. */
.page-home {
    color-scheme: light;
    --home-ink: #122027;
    --home-muted: #667277;
    --home-soft: #f6f3ed;
    --home-paper: #fffdf8;
    --home-panel: rgba(255, 255, 255, 0.84);
    --home-line: #dfe6e1;
    --home-teal: #005f54;
    --home-teal-2: #0b7d71;
    --home-gold: #d7b56d;
    --home-shadow: 0 22px 70px rgba(20, 38, 44, 0.12);
    background:
        linear-gradient(90deg, rgba(0, 95, 84, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(0, 95, 84, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #fffdf8 0%, #f8f5ee 48%, #ffffff 100%);
    background-size: 72px 72px, 72px 72px, auto;
    color: var(--home-ink);
}

.page-home::before {
    display: none;
}

.page-home .container {
    width: min(1340px, calc(100% - 56px));
}

.home-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    margin: 0;
    padding: 18px 0;
    background: rgba(255, 253, 248, 0.78);
    border-bottom: 1px solid rgba(18, 32, 39, 0.08);
    backdrop-filter: blur(22px);
}

.home-nav .nav-shell {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--home-ink);
    text-decoration: none;
}

.home-nav .site-identity:hover,
.home-nav .site-identity:focus-visible {
    color: var(--home-ink);
    background: transparent;
}

.home-nav .site-identity:hover small,
.home-nav .site-identity:focus-visible small {
    color: var(--home-muted);
}

.identity-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 2px solid var(--home-teal);
    border-radius: 50%;
    color: var(--home-teal);
    background: #f8fffc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 800;
}

.site-identity strong,
.site-identity small {
    display: block;
    line-height: 1.18;
}

.site-identity strong {
    font-size: 19px;
    letter-spacing: 0;
}

.site-identity small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 12px;
}

.menu-toggle {
    display: none;
}

.nav-panel {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(220px, 320px) auto;
    align-items: center;
    gap: 18px;
}

.home-nav ul {
    justify-content: center;
    gap: 6px;
}

.home-nav a {
    color: #303f45;
}

.home-nav .nav-link {
    position: relative;
    min-height: 40px;
    border-radius: 0;
    font-size: 14px;
}

.home-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--home-teal);
    transition: transform 0.22s ease;
}

.home-nav .nav-link:hover,
.home-nav .nav-link.active {
    color: var(--home-teal);
    background: transparent;
}

.home-nav .nav-link:hover::after,
.home-nav .nav-link.active::after {
    transform: scaleX(1);
}

.nav-search {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 44px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.nav-search input {
    width: 100%;
    border: 0;
    padding: 0 14px;
    color: var(--home-ink);
    background: transparent;
    font: inherit;
    outline: none;
}

.nav-search input::placeholder {
    color: #99a19e;
}

.nav-search button,
.nav-consult {
    min-height: 44px;
    border: 0;
    border-radius: 0;
    font-weight: 800;
    cursor: pointer;
}

.nav-search button {
    padding: 0 16px;
    color: var(--home-teal);
    background: transparent;
}

.nav-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    color: #ffffff !important;
    background: var(--home-teal);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 95, 84, 0.2);
}

.home-hero {
    min-height: auto;
    padding: 52px 0 44px;
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.88) 48%, rgba(255, 253, 248, 0.7) 100%),
        url("legal-ai-hero.png");
    background-size: cover;
    background-position: center;
}

.home-hero::after {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
}

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

.page-home .eyebrow,
.panel-kicker {
    margin-bottom: 16px;
    color: var(--home-teal);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-home header h1 {
    max-width: 680px;
    margin-bottom: 18px;
    color: #10181d;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(52px, 8vw, 92px);
    letter-spacing: 0;
    line-height: 1.02;
}

.hero-lead {
    max-width: 640px;
    color: #223139;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.45;
}

.hero-note {
    max-width: 660px;
    margin-top: 22px;
    color: var(--home-muted);
    font-size: 16px;
}

.page-home .hero-actions {
    gap: 16px;
    margin-top: 42px;
}

.primary-action,
.ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-action {
    color: #ffffff;
    background: linear-gradient(135deg, #004d44, #007769);
    box-shadow: 0 18px 44px rgba(0, 95, 84, 0.22);
}

.ghost-action {
    border: 1px solid rgba(0, 95, 84, 0.42);
    color: var(--home-teal);
    background: rgba(255, 255, 255, 0.72);
}

.primary-action:hover,
.ghost-action:hover,
.article-item:hover,
.topic-card:hover,
.subscribe-card:hover {
    transform: translateY(-2px);
}

.page-home .hero-actions a.primary-action {
    border: 1px solid rgba(0, 95, 84, 0.18);
    color: #ffffff;
    background: linear-gradient(135deg, #004d44, #007769);
    box-shadow: 0 18px 44px rgba(0, 95, 84, 0.22);
}

.page-home .hero-actions a.ghost-action {
    border: 1px solid rgba(0, 95, 84, 0.42);
    color: var(--home-teal);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.page-home .hero-actions a.primary-action:hover,
.page-home .hero-actions a.ghost-action:hover {
    border-color: rgba(0, 95, 84, 0.42);
    box-shadow: 0 20px 46px rgba(0, 95, 84, 0.18);
}

.focus-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 26px;
    margin-top: 36px;
}

.focus-links a {
    position: relative;
    padding-left: 18px;
    color: #34474d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}

.focus-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid var(--home-teal);
    border-radius: 50%;
    transform: translateY(-50%);
    background: #ffffff;
}

.radar-panel,
.topic-card,
.subscribe-card {
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: var(--home-panel);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(20px);
}

.radar-panel {
    padding: 24px;
}

.panel-head,
.side-head,
.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-head h2,
.side-head h2,
.subscribe-card h2,
.section-title h2 {
    color: var(--home-ink);
    font-size: 25px;
    line-height: 1.25;
}

.panel-head span,
.result-count {
    color: #7b8784;
    font-size: 13px;
    white-space: nowrap;
}

.radar-tabs,
.category-bar,
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radar-tabs {
    margin: 22px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--home-line);
}

.radar-tabs button,
.category-bar button,
.quick-tags button {
    min-height: 36px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    color: #4e5d61;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.radar-tabs button,
.quick-tags button {
    padding: 0 14px;
}

.category-bar button {
    padding: 0 20px;
}

.radar-tabs button.active,
.category-bar button.active,
.radar-tabs button:hover,
.category-bar button:hover,
.quick-tags button:hover {
    border-color: rgba(0, 95, 84, 0.38);
    color: var(--home-teal);
    background: #eef8f5;
}

.radar-list {
    display: grid;
    gap: 12px;
    margin: 0;
    list-style: none;
}

.radar-list li {
    display: grid;
    grid-template-columns: 22px minmax(120px, 1fr) minmax(86px, 126px) 32px;
    align-items: center;
    gap: 12px;
    color: #283a40;
    font-size: 14px;
}

.radar-list span {
    color: var(--home-teal);
    font-weight: 850;
}

.radar-list strong {
    font-weight: 760;
}

.radar-list i {
    display: block;
    height: 7px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--home-teal) var(--score), transparent var(--score)),
        #e8efeb;
}

.radar-list em {
    color: var(--home-teal);
    font-style: normal;
    font-weight: 850;
    text-align: right;
}

.ask-box {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #d9e7e1;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(241, 249, 247, 0.92), rgba(255, 255, 255, 0.92));
}

.ask-box label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--home-teal);
    font-weight: 850;
}

.ask-box label::after {
    content: "Beta";
    padding: 2px 8px;
    border-radius: 999px;
    color: #0f6d62;
    background: #d9f2ed;
    font-size: 11px;
}

.ask-box div,
.subscribe-card form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.ask-box input,
.subscribe-card input {
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    padding: 0 13px;
    color: var(--home-ink);
    background: #ffffff;
    font: inherit;
    outline: none;
}

.ask-box button,
.subscribe-card button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 0 17px;
    color: #ffffff;
    background: var(--home-teal);
    font-weight: 850;
    cursor: pointer;
}

.quick-tags {
    margin-top: 12px;
}

.quick-tags button {
    min-height: 32px;
    background: #f7f8f5;
}

.page-home main {
    padding: 26px 0 52px;
}

.insight-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 26px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 48px rgba(20, 38, 44, 0.08);
    overflow: hidden;
}

.page-home .metric-card {
    min-height: 116px;
    padding: 22px;
    border: 0;
    border-right: 1px solid var(--home-line);
    border-radius: 0;
    background: transparent;
}

.page-home .metric-card:last-child {
    border-right: 0;
}

.page-home .metric-card span,
.page-home .metric-card small {
    display: block;
    color: var(--home-muted);
    font-size: 13px;
}

.page-home .metric-card strong {
    margin: 8px 0 4px;
    color: var(--home-ink);
    font-size: 30px;
    letter-spacing: 0;
}

.category-bar {
    position: sticky;
    top: 82px;
    z-index: 40;
    margin-bottom: 30px;
    padding: 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.86);
    backdrop-filter: blur(18px);
}

.editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 46px;
    align-items: start;
}

.article-column {
    min-width: 0;
}

.section-title {
    margin-bottom: 22px;
}

.page-home .article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.page-home .article-item {
    min-height: auto;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--home-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-home .article-item:hover {
    background: transparent;
    border-color: #c8d7d0;
}

.featured-article {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 32px;
    margin-bottom: 8px;
    padding-top: 0 !important;
}

.feature-image {
    display: block;
    aspect-ratio: 1.55;
    overflow: hidden;
    border-radius: 8px;
    background: #dce6e2;
    box-shadow: 0 18px 40px rgba(20, 38, 44, 0.12);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.86) contrast(1.04);
}

.workflow-feature-image {
    background: #f4f0e8;
}

.workflow-feature-image img {
    object-fit: contain;
    filter: saturate(0.9) contrast(1.02);
}

.article-label {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--home-teal);
    background: #eaf6f2;
    font-size: 12px;
    font-weight: 850;
}

.page-home .article-item h3 {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.35;
}

.page-home .article-list .article-item h3 {
    font-size: 22px;
}

.page-home .article-item h3 a,
.page-home .article-item a {
    color: var(--home-ink);
    text-decoration: none;
}

.page-home .article-item h3 a:hover {
    color: var(--home-teal);
}

.page-home .article-item p {
    max-width: 760px;
    color: var(--home-muted);
    font-size: 15px;
}

.page-home .article-meta {
    gap: 8px 18px;
    margin: 16px 0 0;
    color: #7d8783;
    font-size: 13px;
}

.empty-state {
    margin: 22px 0;
    padding: 18px;
    border: 1px dashed #c6d5cf;
    border-radius: 8px;
    color: var(--home-muted);
    background: #ffffff;
}

.side-column {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 150px;
}

.topic-card,
.subscribe-card {
    padding: 24px;
}

.side-head {
    margin-bottom: 14px;
}

.side-head a {
    color: var(--home-teal);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.topic-list {
    display: grid;
    gap: 2px;
    margin: 0;
    list-style: none;
}

.topic-list button {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    width: 100%;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    color: #25373d;
    background: transparent;
    font: inherit;
    font-weight: 760;
    text-align: left;
    cursor: pointer;
}

.topic-list li:last-child button {
    border-bottom: 0;
}

.topic-list span {
    color: var(--home-teal);
    font-weight: 850;
}

.topic-list small {
    color: #87918d;
    font-size: 12px;
    font-weight: 500;
}

.subscribe-card p {
    margin: 10px 0 18px;
    color: var(--home-muted);
    font-size: 14px;
}

.subscribe-card small {
    display: block;
    margin-top: 12px;
    color: #818c88;
    font-size: 12px;
}

.page-home footer {
    margin-top: 20px;
    border-top-color: var(--home-line);
    color: #6d7875;
    background: #f4f1ea;
}

@media (max-width: 1080px) {
    .page-home .container {
        width: min(100% - 32px, 920px);
    }

    .home-nav .nav-shell {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 16px;
        border: 1px solid var(--home-line);
        border-radius: 8px;
        color: var(--home-teal);
        background: #ffffff;
        font-weight: 850;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 1px);
        right: 16px;
        left: 16px;
        display: none;
        grid-template-columns: 1fr;
        padding: 18px;
        border: 1px solid var(--home-line);
        border-radius: 8px;
        background: rgba(255, 253, 248, 0.98);
        box-shadow: var(--home-shadow);
    }

    .nav-open .nav-panel {
        display: grid;
    }

    .home-nav ul {
        justify-content: flex-start;
    }

    .hero-grid,
    .editorial-layout {
        grid-template-columns: 1fr;
    }

    .radar-panel,
    .side-column {
        position: static;
    }

    .insight-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .metric-card:nth-child(2) {
        border-right: 0;
    }

    .page-home .metric-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--home-line);
    }
}

@media (max-width: 720px) {
    .page-home .container {
        width: min(100% - 24px, 640px);
    }

    .home-nav {
        padding: 12px 0;
    }

    .identity-mark {
        width: 42px;
        height: 42px;
    }

    .site-identity strong {
        font-size: 16px;
    }

    .site-identity small {
        font-size: 11px;
    }

    .home-nav ul,
    .focus-links,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-nav .nav-link,
    .nav-consult,
    .primary-action,
    .ghost-action {
        width: 100%;
    }

    .home-hero {
        padding: 34px 0 32px;
    }

    .page-home header h1 {
        font-size: clamp(44px, 16vw, 64px);
    }

    .hero-lead {
        font-size: 21px;
    }

    .radar-panel,
    .topic-card,
    .subscribe-card {
        padding: 18px;
    }

    .panel-head,
    .section-title,
    .side-head {
        display: grid;
    }

    .radar-list li {
        grid-template-columns: 22px 1fr 30px;
    }

    .radar-list i {
        grid-column: 2 / 4;
        width: 100%;
    }

    .ask-box div,
    .subscribe-card form,
    .nav-search {
        grid-template-columns: 1fr;
    }

    .ask-box button,
    .subscribe-card button,
    .nav-search button {
        min-height: 42px;
    }

    .insight-strip,
    .featured-article {
        grid-template-columns: 1fr;
    }

    .page-home .metric-card,
    .page-home .metric-card:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }

    .page-home .metric-card:last-child {
        border-bottom: 0;
    }

    .category-bar {
        top: 67px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .category-bar button {
        flex: 0 0 auto;
    }

    .topic-list button {
        grid-template-columns: 34px 1fr;
    }

    .topic-list small {
        grid-column: 2;
    }
}

/* About page: editorial introduction using the light research-platform system. */
.page-about .about-hero {
    position: relative;
    min-height: auto;
    padding: clamp(64px, 8vw, 112px) 0 clamp(58px, 7vw, 96px);
    background:
        radial-gradient(circle at 82% 18%, rgba(215, 181, 109, 0.18), transparent 22%),
        linear-gradient(115deg, rgba(255, 253, 248, 0.98), rgba(239, 247, 243, 0.88));
    border-bottom: 1px solid var(--home-line);
    overflow: hidden;
}

.page-about .about-hero::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -170px;
    bottom: -250px;
    border: 1px solid rgba(0, 95, 84, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(0, 95, 84, 0.035), 0 0 0 144px rgba(0, 95, 84, 0.02);
}

.page-about .about-hero::after {
    display: none;
}

.about-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: center;
}

.about-hero-copy {
    max-width: 760px;
}

.page-about header h1 {
    margin-bottom: 24px;
    font-size: clamp(54px, 8vw, 94px);
}

.about-lead {
    max-width: 760px;
    color: #1e3036;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.5;
}

.about-note {
    max-width: 720px;
    margin-top: 24px;
    color: var(--home-muted);
    font-size: 16px;
}

.about-manifest {
    padding: clamp(26px, 3vw, 38px);
    border: 1px solid rgba(0, 95, 84, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(18px);
}

.about-manifest h2 {
    margin-bottom: 26px;
    color: var(--home-ink);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(25px, 2.5vw, 34px);
    line-height: 1.35;
}

.about-manifest ol,
.method-list,
.about-boundary ul {
    list-style: none;
}

.about-manifest li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    padding: 16px 0;
    border-top: 1px solid var(--home-line);
}

.about-manifest li > span,
.method-list li > span {
    color: var(--home-teal);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
}

.about-manifest strong,
.about-manifest small {
    display: block;
}

.about-manifest strong {
    color: #203138;
}

.about-manifest small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 13px;
}

.page-about main {
    padding: 0 0 72px;
}

.about-intro,
.about-section,
.about-stance,
.about-boundary {
    padding-top: clamp(70px, 8vw, 112px);
}

.about-section-head {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 7vw, 96px);
    padding-bottom: clamp(58px, 7vw, 92px);
    border-bottom: 1px solid var(--home-line);
}

.page-about main h2 {
    color: var(--home-ink);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.22;
}

.about-prose {
    color: #405057;
    font-size: 18px;
    line-height: 1.95;
}

.about-prose p + p {
    margin-top: 18px;
}

.about-title-row {
    align-items: end;
    margin-bottom: 32px;
}

.about-title-row > p {
    max-width: 460px;
    color: var(--home-muted);
    text-align: right;
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 52px rgba(20, 38, 44, 0.08);
    overflow: hidden;
}

.about-focus-grid article {
    min-height: 292px;
    padding: 30px 26px;
    border-right: 1px solid var(--home-line);
}

.about-focus-grid article:last-child {
    border-right: 0;
}

.about-focus-grid span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 52px;
    border: 1px solid rgba(0, 95, 84, 0.24);
    border-radius: 50%;
    color: var(--home-teal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 800;
}

.about-focus-grid h3 {
    margin-bottom: 13px;
    color: #203138;
    font-size: 20px;
}

.about-focus-grid p {
    color: var(--home-muted);
    font-size: 14px;
}

.about-method {
    margin-top: clamp(70px, 8vw, 112px);
    padding: clamp(64px, 7vw, 96px) 0;
    color: #edf8f5;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
        #073d38;
}

.about-method-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(48px, 8vw, 110px);
}

.about-method .eyebrow {
    color: #9ed9cf;
}

.page-about .about-method h2 {
    color: #ffffff;
}

.method-copy > p:last-child {
    max-width: 520px;
    margin-top: 22px;
    color: #bfd2ce;
    font-size: 17px;
}

.method-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 23px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.method-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.method-list li > span {
    color: #8fd8cb;
}

.method-list strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 18px;
}

.method-list p {
    color: #b9cbc7;
    font-size: 14px;
}

.about-stance {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: clamp(34px, 6vw, 80px);
    align-items: center;
}

.stance-mark {
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    border: 1px solid rgba(0, 95, 84, 0.32);
    border-radius: 50%;
    color: var(--home-teal);
    background: linear-gradient(145deg, #ffffff, #edf7f3);
    box-shadow: 0 22px 60px rgba(0, 95, 84, 0.12);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 800;
}

.about-stance h2 {
    max-width: 940px;
}

.about-stance > div:last-child > p:last-child {
    max-width: 900px;
    margin-top: 22px;
    color: var(--home-muted);
    font-size: 17px;
}

.about-boundary {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 7vw, 96px);
}

.about-boundary li {
    position: relative;
    padding: 21px 0 21px 28px;
    border-top: 1px solid var(--home-line);
    color: #43535a;
}

.about-boundary li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 31px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--home-teal);
    border-radius: 50%;
}

.about-boundary li:first-child {
    border-top-color: rgba(0, 95, 84, 0.34);
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    margin-top: clamp(70px, 8vw, 112px);
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid rgba(0, 95, 84, 0.2);
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(235, 247, 242, 0.96), rgba(255, 252, 244, 0.98));
    box-shadow: 0 18px 52px rgba(20, 38, 44, 0.08);
}

.about-cta h2 {
    font-size: clamp(28px, 3.5vw, 43px) !important;
}

.about-cta > div:first-child > p:last-child {
    max-width: 720px;
    margin-top: 14px;
    color: var(--home-muted);
}

.about-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

@media (max-width: 1080px) {
    .about-hero-grid,
    .about-method-grid {
        grid-template-columns: 1fr;
    }

    .about-manifest {
        max-width: 720px;
    }

    .about-focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-focus-grid article:nth-child(2) {
        border-right: 0;
    }

    .about-focus-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--home-line);
    }

    .about-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .page-about .about-hero {
        padding: 46px 0 58px;
    }

    .page-about header h1 {
        font-size: 50px;
    }

    .about-lead {
        font-size: 25px;
    }

    .about-section-head,
    .about-boundary,
    .about-stance {
        grid-template-columns: 1fr;
    }

    .about-title-row {
        display: grid;
        align-items: start;
    }

    .about-title-row > p {
        text-align: left;
    }

    .about-focus-grid {
        grid-template-columns: 1fr;
    }

    .about-focus-grid article,
    .about-focus-grid article:nth-child(2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }

    .about-focus-grid article:last-child {
        border-bottom: 0;
    }

    .about-focus-grid span {
        margin-bottom: 28px;
    }

    .stance-mark {
        width: 120px;
        height: 120px;
        font-size: 32px;
    }

    .about-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .about-cta-actions a {
        width: 100%;
    }
}

/* Download library: public, privacy-safe resources in the light site system. */
.page-downloads .download-hero {
    min-height: auto;
    padding: clamp(64px, 8vw, 108px) 0 clamp(58px, 7vw, 92px);
    border-bottom: 1px solid var(--home-line);
    background:
        radial-gradient(circle at 84% 18%, rgba(215, 181, 109, 0.2), transparent 24%),
        linear-gradient(115deg, rgba(255, 253, 248, 0.98), rgba(234, 246, 242, 0.9));
}

.page-downloads .download-hero::after {
    display: none;
}

.download-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(48px, 8vw, 108px);
    align-items: center;
}

.page-downloads header h1 {
    margin: 8px 0 22px;
    color: var(--home-ink);
    font-size: clamp(50px, 7vw, 84px);
    line-height: 1;
}

.download-lead {
    max-width: 780px;
    color: #2f4248 !important;
    font-size: clamp(21px, 2.4vw, 30px) !important;
    font-weight: 720;
    line-height: 1.48;
}

.download-note {
    max-width: 760px;
    margin-top: 20px;
    color: var(--home-muted) !important;
    font-size: 15px !important;
}

.download-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(0, 95, 84, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 22px 60px rgba(20, 38, 44, 0.1);
}

.download-summary div {
    min-height: 138px;
    padding: 26px 18px;
    border-right: 1px solid var(--home-line);
}

.download-summary div:last-child {
    border-right: 0;
}

.download-summary strong,
.download-summary span {
    display: block;
}

.download-summary strong {
    color: var(--home-teal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.download-summary span {
    margin-top: 24px;
    color: var(--home-muted);
    font-size: 12px;
}

.resource-section {
    padding: clamp(70px, 8vw, 112px) 0 0;
}

.resource-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 38px;
    margin-bottom: 30px;
}

.page-downloads main h2 {
    color: var(--home-ink);
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.14;
}

.resource-heading > p {
    max-width: 560px;
    color: var(--home-muted);
    text-align: right;
}

.resource-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: clamp(30px, 5vw, 68px);
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(0, 95, 84, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 72px rgba(20, 38, 44, 0.1);
}

.resource-file-mark {
    display: grid;
    min-height: 210px;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(0, 95, 84, 0.3);
    border-radius: 6px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 46%),
        var(--home-teal);
    box-shadow: 0 18px 42px rgba(0, 95, 84, 0.18);
}

.resource-file-mark span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 800;
}

.resource-file-mark small {
    margin-top: 10px;
    color: #c7e3de;
    font-size: 12px;
}

.resource-label {
    margin-bottom: 10px;
    color: var(--home-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.resource-copy h3 {
    max-width: 920px;
    margin-bottom: 14px;
    color: var(--home-ink);
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.24;
}

.resource-copy > p {
    max-width: 880px;
    color: var(--home-muted);
    font-size: 16px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    list-style: none;
}

.resource-tags li {
    padding: 6px 10px;
    border: 1px solid #cfe1da;
    border-radius: 999px;
    color: #33574f;
    background: #f2f8f5;
    font-size: 12px;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 20px;
    color: #7c8985;
    font-size: 13px;
}

.resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.resource-download,
.resource-preview {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid var(--home-teal);
    border-radius: 7px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-download {
    color: #ffffff;
    background: var(--home-teal);
    box-shadow: 0 12px 28px rgba(0, 95, 84, 0.18);
}

.resource-preview {
    color: var(--home-teal);
    background: #ffffff;
}

.resource-download:hover,
.resource-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(0, 95, 84, 0.16);
}

.resource-boundary {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 7vw, 96px);
    padding: clamp(70px, 8vw, 112px) 0;
}

.resource-boundary li {
    position: relative;
    padding: 20px 0 20px 28px;
    border-top: 1px solid var(--home-line);
    color: #43535a;
}

.resource-boundary li::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--home-teal);
    border-radius: 50%;
}

.download-spotlight {
    padding: 24px;
    border: 1px solid rgba(0, 95, 84, 0.2);
    border-radius: 8px;
    background: linear-gradient(145deg, #edf7f3, #fffaf0);
    box-shadow: 0 18px 44px rgba(20, 38, 44, 0.08);
}

.download-spotlight .panel-kicker {
    color: var(--home-teal);
}

.download-spotlight h2 {
    margin: 6px 0 9px;
    color: var(--home-ink);
    font-size: 20px;
    line-height: 1.35;
}

.download-spotlight p {
    color: var(--home-muted);
    font-size: 13px;
}

.download-spotlight a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--home-teal);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .download-hero-grid {
        grid-template-columns: 1fr;
    }

    .download-summary {
        max-width: 720px;
    }
}

@media (max-width: 720px) {
    .page-downloads .download-hero {
        padding: 46px 0 58px;
    }

    .page-downloads header h1 {
        font-size: 50px;
    }

    .download-summary {
        grid-template-columns: 1fr;
    }

    .download-summary div {
        display: grid;
        grid-template-columns: 90px 1fr;
        min-height: 0;
        align-items: center;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }

    .download-summary div:last-child {
        border-bottom: 0;
    }

    .download-summary span {
        margin-top: 0;
    }

    .resource-heading,
    .resource-card,
    .resource-boundary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .resource-heading {
        align-items: start;
    }

    .resource-heading > p {
        text-align: left;
    }

    .resource-file-mark {
        min-height: 150px;
    }

    .resource-actions {
        flex-direction: column;
    }

    .resource-download,
    .resource-preview {
        width: 100%;
    }
}

.resource-card + .resource-card {
    margin-top: 24px;
}

.skill-file-mark {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 46%),
        #173b57;
}

.skill-compatibility {
    display: grid;
    gap: 5px;
    margin-top: 22px;
    padding: 15px 17px;
    border-left: 3px solid var(--home-teal);
    color: #35484e;
    background: #f3f7f5;
}

.skill-compatibility strong {
    color: var(--home-ink);
    font-size: 13px;
}

.skill-compatibility span {
    font-size: 14px;
    font-weight: 760;
}

.skill-compatibility small {
    color: var(--home-muted);
    font-size: 12px;
}

.install-prompt {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.install-prompt span {
    color: #6f7d79;
    font-size: 12px;
    font-weight: 800;
}

.install-prompt code {
    display: block;
    padding: 13px 15px;
    border: 1px solid #d8e3df;
    border-radius: 6px;
    color: #254139;
    background: #fbfdfc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.resource-hash {
    display: grid;
    gap: 5px;
    margin-top: 15px;
    color: #78837f !important;
    font-size: 11px !important;
}

.resource-hash strong {
    color: #43534e;
    font-size: 11px;
}

.resource-hash code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}

/* Article 11: shareable Skill download panel. */
.article11 .skill-download-panel {
    margin: 42px 0 34px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(93, 226, 209, 0.32);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(93, 226, 209, 0.1), rgba(120, 167, 255, 0.08)),
        rgba(9, 18, 31, 0.72);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.skill-download-label {
    width: fit-content;
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-content .skill-download-panel h2 {
    margin: 0 0 15px;
    padding-top: 0;
    border-top: 0;
    color: #ffffff;
    font-size: clamp(25px, 3.2vw, 37px);
}

.skill-download-panel > p {
    color: #c7d5e2;
}

.skill-agent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.skill-agent-list span {
    padding: 6px 11px;
    border: 1px solid rgba(93, 226, 209, 0.3);
    border-radius: 999px;
    color: #b9eee7;
    background: rgba(93, 226, 209, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.skill-install-copy {
    display: grid;
    gap: 9px;
    margin: 22px 0;
}

.skill-install-copy strong {
    color: var(--gold);
    font-size: 13px;
}

.skill-install-copy code {
    display: block;
    padding: 15px 17px;
    border: 1px solid rgba(173, 207, 255, 0.2);
    border-radius: 9px;
    color: #dfeaf4;
    background: rgba(2, 8, 16, 0.5);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

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

.skill-download-primary,
.skill-download-secondary {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.skill-download-primary {
    border: 1px solid rgba(245, 198, 109, 0.55);
    color: #09111d;
    background: linear-gradient(135deg, var(--gold), #fff0b7);
    box-shadow: 0 14px 34px rgba(245, 198, 109, 0.18);
}

.skill-download-secondary {
    border: 1px solid rgba(173, 207, 255, 0.24);
    color: #dce8f3;
    background: rgba(255, 255, 255, 0.06);
}

.skill-download-hash {
    display: grid;
    gap: 5px;
    margin-top: 18px !important;
    color: #8296a8 !important;
    font-size: 11px !important;
}

.skill-download-hash strong {
    color: #a9bdcc;
    font-size: 11px;
}

.skill-download-hash code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}

.skill-download-note {
    margin-top: 16px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(173, 207, 255, 0.14);
    color: #9fb0bf !important;
    font-size: 12px !important;
}

@media (max-width: 720px) {
    .skill-download-actions {
        flex-direction: column;
    }

    .skill-download-primary,
    .skill-download-secondary {
        width: 100%;
        padding: 11px 16px;
        text-align: center;
    }
}
