*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #f7f2e8;
    --bg-soft: #efe7da;
    --bg-panel: rgba(255, 250, 243, 0.84);
    --bg-panel-strong: rgba(255, 252, 247, 0.96);
    --bg-sidebar: rgba(17, 28, 39, 0.96);
    --bg-sidebar-soft: rgba(27, 41, 54, 0.92);
    --bg-code: #13202b;
    --text: #1c2a33;
    --text-dim: #5f6c74;
    --text-soft: #7c888f;
    --text-strong: #0f1d26;
    --line: rgba(28, 42, 51, 0.12);
    --line-strong: rgba(28, 42, 51, 0.2);
    --shadow: 0 30px 70px rgba(20, 30, 38, 0.12);
    --shadow-soft: 0 18px 40px rgba(20, 30, 38, 0.08);
    --sidebar-w: 316px;
    --rail-w: 320px;
    --main-max: 960px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --teal: #0f766e;
    --teal-strong: #0f5d58;
    --teal-soft: rgba(15, 118, 110, 0.12);
    --copper: #b75a2f;
    --copper-soft: rgba(183, 90, 47, 0.12);
    --gold: #967a1f;
    --gold-soft: rgba(150, 122, 31, 0.12);
    --implemented: #18794e;
    --implemented-bg: rgba(24, 121, 78, 0.12);
    --partial: #a15c0f;
    --partial-bg: rgba(161, 92, 15, 0.12);
    --planned: #7b4ccb;
    --planned-bg: rgba(123, 76, 203, 0.12);
    --inferred: #526071;
    --inferred-bg: rgba(82, 96, 113, 0.12);
    --danger: #b42318;
    --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-sans: "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --pointer-x: 50%;
    --pointer-y: 16%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.78;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(15, 118, 110, 0.12), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(183, 90, 47, 0.1), transparent 26%),
        linear-gradient(180deg, #faf6ee 0%, #f3ecdf 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
    z-index: -4;
}

.noscript-home {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 1.4rem;
    border: 1px solid rgba(28, 42, 51, 0.12);
    border-radius: 8px;
    background: var(--bg-panel-strong);
    box-shadow: var(--shadow-soft);
}

.noscript-home h1 {
    margin: 0 0 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.05;
    color: var(--text-strong);
}

.noscript-home p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

a {
    color: var(--teal-strong);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--copper);
}

p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding-left: 1.2rem;
}

li + li {
    margin-top: 0.42rem;
}

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

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.14rem 0.42rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(15, 118, 110, 0.14);
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal-strong);
}

pre,
pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    font-size: 0.94rem;
}

blockquote {
    margin: 1.4rem 0;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(15, 118, 110, 0.08);
    color: var(--text-dim);
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.bg-grid,
.beam,
.orb,
.noise {
    position: fixed;
    pointer-events: none;
    z-index: -3;
}

.bg-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 42, 51, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 42, 51, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
}

.beam {
    width: 42vw;
    height: 42vw;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.35;
}

.beam-1 {
    top: -12vh;
    right: -6vw;
    background: rgba(15, 118, 110, 0.22);
}

.beam-2 {
    bottom: -18vh;
    left: -8vw;
    background: rgba(183, 90, 47, 0.18);
}

.orb {
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.2;
    animation: orbDrift 22s ease-in-out infinite alternate;
}

.orb-1 {
    top: 18%;
    left: 44%;
    width: 18rem;
    height: 18rem;
    background: rgba(150, 122, 31, 0.2);
}

.orb-2 {
    top: 58%;
    right: 10%;
    width: 16rem;
    height: 16rem;
    background: rgba(15, 118, 110, 0.16);
    animation-delay: -8s;
}

.orb-3 {
    top: 68%;
    left: 16%;
    width: 14rem;
    height: 14rem;
    background: rgba(123, 76, 203, 0.12);
    animation-delay: -14s;
}

.noise {
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.6px, transparent 0.6px);
    background-size: 12px 12px;
    opacity: 0.08;
}

@keyframes orbDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -20px, 0) scale(1.04); }
    100% { transform: translate3d(-16px, 16px, 0) scale(0.96); }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(24, 37, 48, 0.98), rgba(14, 23, 31, 0.98)),
        var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 50px rgba(12, 18, 25, 0.2);
    color: #f8f1e5;
    z-index: 60;
    transition: transform var(--transition);
}

.sidebar-header,
.sidebar-footer {
    padding: 1.3rem 1.35rem;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-title {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fffaf0;
}

.logo-sub {
    display: block;
    margin-top: 0.14rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.sidebar-intro {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.sidebar-search {
    position: relative;
    padding: 1rem 1.35rem 0.8rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.8rem 0.95rem 0.8rem 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff7eb;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.sidebar-search input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.nav-group {
    margin-bottom: 0.8rem;
}

.nav-group-title {
    padding: 0.6rem 1.35rem 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.nav-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: start;
    gap: 0.75rem;
    margin: 0.16rem 0.8rem;
    padding: 0.78rem 0.86rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-item:hover,
.nav-item:focus-visible {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fffef8;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.38), rgba(183, 90, 47, 0.14));
    border-color: rgba(93, 227, 216, 0.26);
    color: #fffef8;
}

.nav-item.visited {
    color: rgba(255, 255, 255, 0.88);
}

.nav-item.search-hidden {
    display: none;
}

.nav-icon {
    display: inline-flex;
    justify-content: center;
    padding-top: 0.05rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.48);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reading-progress {
    height: 0.34rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5de3d8, #f4c174, #bb7551);
    transition: width 220ms ease;
}

.progress-text {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.chapter-rail {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--rail-w);
    height: 100vh;
    padding: 1.35rem 1.2rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(248, 242, 231, 0.92), rgba(245, 236, 223, 0.82));
    border-left: 1px solid rgba(28, 42, 51, 0.08);
    backdrop-filter: blur(14px);
    z-index: 35;
}

.rail-card {
    margin-bottom: 0.9rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: var(--radius-md);
    background: rgba(255, 252, 247, 0.86);
    border: 1px solid rgba(28, 42, 51, 0.08);
    box-shadow: var(--shadow-soft);
}

.rail-hero {
    background:
        linear-gradient(160deg, rgba(255, 252, 247, 0.96), rgba(227, 243, 239, 0.82)),
        rgba(255, 255, 255, 0.8);
}

.rail-label {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.rail-card h2,
.rail-card h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.08;
    color: var(--text-strong);
}

.rail-card h2 {
    font-size: 1.62rem;
}

.rail-meta,
.rail-note {
    margin-top: 0.6rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

.chapter-toc {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

.toc-empty {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.toc-item {
    width: 100%;
    padding: 0.62rem 0.74rem;
    border-radius: 0.95rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dim);
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.toc-item:hover,
.toc-item:focus-visible {
    transform: translateX(2px);
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.1);
    color: var(--text-strong);
}

.toc-item.active {
    color: var(--teal-strong);
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.16);
}

.toc-h3 {
    margin-left: 0.85rem;
    font-size: 0.84rem;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-w);
    margin-right: var(--rail-w);
}

body[data-current-chapter="home"] .chapter-rail {
    display: none;
}

body[data-current-chapter="home"] .main-content {
    margin-right: 0;
}

body[data-current-chapter="home"] .chapter#home {
    max-width: min(1760px, calc(100vw - var(--sidebar-w) - 3rem));
    padding: clamp(1.7rem, 2.15vw, 3.1rem) clamp(1.45rem, 2.45vw, 3.35rem) 4.8rem;
}

.chapter {
    display: none;
    max-width: var(--main-max);
    margin: 0 auto;
    padding: 3.2rem 3.8rem 4.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
}

.chapter.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chapter.fade-in {
    animation: chapterIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chapterIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.chapter-header {
    margin-bottom: 2rem;
}

.chapter-number {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.38rem 0.82rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--teal-strong);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chapter-header h1,
.hero-title {
    margin: 0;
    font-family: var(--font-display);
    color: var(--text-strong);
    line-height: 0.97;
}

.chapter-header h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.25rem);
}

.chapter-desc,
.hero-desc {
    margin-top: 1rem;
    max-width: 48rem;
    color: var(--text-dim);
    font-size: 1.06rem;
}

.content-body {
    display: grid;
    gap: 1.6rem;
}

.content-body > h2 {
    margin: 1.1rem 0 0;
    font-family: var(--font-display);
    font-size: 2.1rem;
    line-height: 1.04;
    color: var(--text-strong);
}

.content-body > h3,
.content-body article h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--text-strong);
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal-strong), var(--copper));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero {
    display: grid;
    gap: 1.6rem;
    align-items: center;
}

.hero-home {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    margin-bottom: 2.1rem;
    padding-top: 0.6rem;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.42rem 0.86rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal-strong);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.7rem);
}

.hero-actions,
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.74rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--teal-strong), #15786f);
    color: #fefcf6;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #fff;
}

.btn-outline {
    background: rgba(255, 252, 247, 0.76);
    border-color: var(--line);
    color: var(--text-strong);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: rgba(15, 118, 110, 0.22);
    color: var(--teal-strong);
}




.hero-stage {
    position: relative;
    min-height: 27rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(28, 42, 51, 0.1);
    background:
        radial-gradient(circle at 28% 24%, rgba(15, 118, 110, 0.18), transparent 22%),
        radial-gradient(circle at 76% 22%, rgba(183, 90, 47, 0.16), transparent 22%),
        radial-gradient(circle at 50% 72%, rgba(150, 122, 31, 0.12), transparent 26%),
        linear-gradient(160deg, rgba(15, 27, 37, 0.96), rgba(28, 41, 53, 0.92));
    box-shadow: var(--shadow);
}

.ide-product-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(38rem, 42vw, 46rem);
    margin-bottom: 1.4rem;
    padding: clamp(1.7rem, 2.1vw, 2.7rem);
    overflow: hidden;
    border: 1px solid rgba(28, 42, 51, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(10, 18, 27, 0.98), rgba(15, 44, 48, 0.9) 45%, rgba(15, 27, 37, 0.95)),
        repeating-linear-gradient(112deg, rgba(45, 212, 191, 0.06) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
    box-shadow: var(--shadow);
    color: #fff7eb;
}

.ide-product-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.88));
}

.ide-product-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(8, 14, 22, 0.9) 0%, rgba(8, 14, 22, 0.68) 46%, rgba(8, 14, 22, 0.08) 88%),
        linear-gradient(0deg, rgba(8, 14, 22, 0.78) 0%, transparent 66%);
}

.ide-product-visual {
    position: absolute;
    inset: clamp(1rem, 1.4vw, 1.7rem) clamp(1rem, 1.4vw, 1.7rem) auto auto;
    z-index: 0;
    width: min(66%, 72rem);
    height: clamp(27.5rem, 30vw, 34rem);
    opacity: 0.9;
    overflow: visible;
    perspective: 1200px;
}

.ide-window {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(15, 27, 37, 0.9), rgba(5, 10, 18, 0.82)),
        rgba(8, 14, 22, 0.78);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(45, 212, 191, 0.08);
    transform: rotateX(2deg) rotateY(-4deg);
    transform-origin: 64% 28%;
}

.ide-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.13) 47%, transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
    transform: translateX(-120%);
    animation: heroScan 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ide-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.ide-titlebar {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    height: 2.2rem;
    padding: 0 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 247, 236, 0.66);
    font-size: 0.72rem;
}

.ide-titlebar span {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: rgba(255, 247, 236, 0.28);
}

.ide-titlebar strong {
    margin-left: 0.45rem;
    color: rgba(255, 247, 236, 0.78);
}

.ide-workbench {
    display: grid;
    grid-template-columns: 3rem minmax(10rem, 0.88fr) minmax(12rem, 1.25fr) minmax(10rem, 0.9fr);
    height: calc(100% - 2.2rem);
}

.ide-activity,
.ide-mission-pane,
.ide-editor-pane,
.ide-agent-pane {
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.ide-activity {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 0.7rem;
    padding-top: 0.9rem;
    background: rgba(255, 255, 255, 0.035);
}

.ide-app-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    background: rgba(255, 247, 236, 0.14);
}

.ide-app-dot.active {
    background: rgba(45, 212, 191, 0.82);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.ide-mission-pane,
.ide-agent-pane {
    padding: 0.85rem;
}

.ide-pane-title {
    margin-bottom: 0.7rem;
    color: rgba(255, 247, 236, 0.66);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ide-mission {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: start;
    margin-bottom: 0.58rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.ide-mission.active {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.08);
}

.ide-mission strong,
.ide-evidence,
.ide-provider-pill {
    color: rgba(255, 247, 236, 0.88);
}

.ide-mission small {
    display: block;
    margin-top: 0.14rem;
    color: rgba(255, 247, 236, 0.5);
    line-height: 1.35;
}

.ide-status {
    width: 0.58rem;
    height: 0.58rem;
    margin-top: 0.33rem;
    border-radius: 999px;
}

.ide-status.running { background: #2dd4bf; }
.ide-status.review { background: #f59e0b; }
.ide-status.waiting { background: #94a3b8; }

.ide-editor-pane {
    padding: 0.85rem 0.95rem;
    background: rgba(2, 6, 12, 0.2);
}

.ide-tabs {
    display: flex;
    gap: 0.38rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ide-tabs span {
    padding: 0.36rem 0.56rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 247, 236, 0.54);
    font-size: 0.72rem;
    white-space: nowrap;
}

.ide-tabs .active {
    background: rgba(45, 212, 191, 0.14);
    color: rgba(255, 247, 236, 0.9);
}

.ide-code-line {
    margin-bottom: 0.44rem;
    padding: 0.5rem 0.62rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
}

.ide-code-line.add {
    background: rgba(24, 121, 78, 0.22);
    color: #b7f4d6;
}

.ide-code-line.neutral {
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 247, 236, 0.66);
}

.ide-diff-strip {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1.2fr 0.55fr;
    gap: 0.36rem;
    margin-top: 1rem;
}

.ide-diff-strip span {
    height: 5rem;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(45, 212, 191, 0.34), rgba(45, 212, 191, 0.04)),
        rgba(255, 255, 255, 0.05);
}

.ide-agent-pane {
    border-right: none;
}

.ide-evidence,
.ide-provider-pill {
    margin-bottom: 0.58rem;
    padding: 0.62rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.052);
    font-size: 0.78rem;
    line-height: 1.45;
}

.ide-evidence.browser { border-color: rgba(45, 212, 191, 0.2); }
.ide-evidence.terminal { border-color: rgba(245, 158, 11, 0.2); }
.ide-evidence.artifact { border-color: rgba(129, 140, 248, 0.2); }

.ide-provider-pill {
    margin-top: 1rem;
    color: rgba(255, 247, 236, 0.62);
}

.ide-float-card {
    position: absolute;
    z-index: 7;
    min-width: 10.8rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(8, 14, 22, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #fff7eb;
    backdrop-filter: blur(16px);
    animation: heroFloat 5.8s ease-in-out infinite;
}

.ide-float-card span,
.ide-float-card strong {
    display: block;
}

.ide-float-card span {
    color: rgba(185, 255, 246, 0.78);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ide-float-card strong {
    margin-top: 0.2rem;
    color: rgba(255, 247, 236, 0.88);
    font-size: 0.84rem;
    line-height: 1.25;
}

.card-plan {
    top: 3.45rem;
    right: -0.35rem;
}

.card-diff {
    right: 2.1rem;
    bottom: 4.7rem;
    animation-delay: 0.9s;
}

.card-proof {
    right: 4.5rem;
    bottom: 1.25rem;
    min-width: 14.2rem;
    animation-delay: 1.8s;
}

.ide-live-rail {
    position: absolute;
    z-index: 6;
    left: 2.4rem;
    right: 2.4rem;
    bottom: 0.72rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
}

.ide-live-rail span {
    height: 0.22rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.ide-live-rail span::before {
    content: "";
    display: block;
    height: 100%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0), rgba(45, 212, 191, 0.88));
    animation: liveRail 3.2s ease-in-out infinite;
}

.ide-live-rail span:nth-child(2)::before { animation-delay: 0.3s; }
.ide-live-rail span:nth-child(3)::before { animation-delay: 0.6s; }
.ide-live-rail span:nth-child(4)::before { animation-delay: 0.9s; }

.ide-product-copy {
    position: relative;
    z-index: 2;
    max-width: min(54rem, 50%);
    padding-top: clamp(8.5rem, 8vw, 11rem);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.24);
}

.ide-product-copy .hero-badge {
    border-color: rgba(45, 212, 191, 0.24);
    background: rgba(45, 212, 191, 0.12);
    color: #b9fff6;
}

.ide-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding: 0.48rem 0.7rem 0.48rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 247, 236, 0.78);
    backdrop-filter: blur(14px);
}

.ide-brand-lockup img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    background: rgba(255, 247, 236, 0.08);
}

.ide-brand-lockup div {
    display: grid;
    line-height: 1.1;
}

.ide-brand-lockup span {
    color: rgba(255, 247, 236, 0.62);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ide-brand-lockup strong {
    color: #fff7eb;
    font-size: 0.92rem;
}

.ide-product-title {
    max-width: 50rem;
    margin: 0;
    font-family: var(--font-display);
    color: #fff7eb;
    font-size: clamp(3.6rem, 5.2vw, 6.4rem);
    line-height: 1.02;
}

.ide-product-title span {
    display: block;
}

.ide-product-subtitle {
    max-width: 45rem;
    margin: 1rem 0 1.15rem;
    color: rgba(255, 247, 236, 0.78);
    font-size: clamp(1.05rem, 1.1vw, 1.2rem);
    line-height: 1.64;
}

.ide-product-hero .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff7eb;
}

.ide-product-hero .btn-outline:hover,
.ide-product-hero .btn-outline:focus-visible {
    border-color: rgba(45, 212, 191, 0.42);
    color: #b9fff6;
}

.ide-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    max-width: 42rem;
    margin-top: 1.1rem;
}

.ide-hero-proof div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.55rem;
    align-items: baseline;
    padding: 0.74rem 0.8rem;
    border: 1px solid rgba(185, 255, 246, 0.18);
    border-radius: 8px;
    background: rgba(4, 10, 16, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.ide-hero-proof strong,
.ide-hero-proof span {
    display: block;
}

.ide-hero-proof strong {
    color: #fff7eb;
    font-family: var(--font-mono);
    font-size: 0.98rem;
    line-height: 1.1;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.34);
}

.ide-hero-proof span {
    margin-top: 0;
    color: rgba(255, 247, 236, 0.88);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.34);
}

.ide-status-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    width: min(42rem, 100%);
    margin-top: 0.8rem;
}

.ide-status-strip span {
    display: grid;
    gap: 0.12rem;
    position: relative;
    min-width: 0;
    padding: 0.58rem 0.68rem;
    overflow: hidden;
    border: 1px solid rgba(185, 255, 246, 0.16);
    border-radius: 8px;
    background: rgba(4, 10, 16, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: rgba(255, 247, 236, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
}

.ide-status-strip span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--copper));
    transform: scaleX(0.28);
    transform-origin: left;
    animation: statusFill 4.8s ease-in-out infinite;
}

.ide-status-strip span:nth-child(2)::after { animation-delay: 0.35s; }
.ide-status-strip span:nth-child(3)::after { animation-delay: 0.7s; }
.ide-status-strip span:nth-child(4)::after { animation-delay: 1.05s; }

.ide-status-strip strong {
    display: block;
    margin-bottom: 0;
    color: rgba(185, 255, 246, 0.86);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none;
}

.ide-hero-tags {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.6rem;
    max-width: 68rem;
}

.ide-hero-tags span {
    padding: 0.4rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 247, 236, 0.72);
    font-size: 0.82rem;
}

.ide-product-strip,
.ide-promise-grid,
.ide-flow {
    display: grid;
    gap: 1rem;
}

.ide-product-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.6rem;
}

.ide-product-strip div,
.ide-promise-card,
.ide-flow article,
.ide-start-panel {
    border: 1px solid rgba(28, 42, 51, 0.08);
    border-radius: 8px;
    background: var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

.ide-product-strip div {
    position: relative;
    padding: 1rem;
    overflow: hidden;
}

.ide-product-strip div::before {
    content: "";
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.72rem;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.28), rgba(183, 90, 47, 0.18)),
        rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.ide-product-strip div::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--copper), var(--gold));
    background-size: 220% 100%;
    animation: capabilitySweep 5.4s linear infinite;
    opacity: 0.64;
}

.ide-product-strip strong {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--text-strong);
    font-size: 1.04rem;
}

.ide-product-strip span,
.ide-promise-card p,
.ide-flow p,
.ide-start-panel p {
    color: var(--text-dim);
}

.ide-promise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ide-promise-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem;
}

.section-heading {
    max-width: 46rem;
    margin: 0 0 1rem;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 0.42rem;
    color: var(--teal-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 0.55rem;
}

.section-heading p {
    color: var(--text-dim);
}

.download-panel {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.6rem;
    padding: 1.1rem;
    border: 1px solid rgba(28, 42, 51, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 252, 247, 0.92), rgba(239, 247, 244, 0.88)),
        var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

body[data-current-chapter="home"] .download-panel,
body[data-current-chapter="home"] .ide-capability-board,
body[data-current-chapter="home"] .ide-interface-showcase,
body[data-current-chapter="home"] .ide-home-content {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

.download-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.download-heading span {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--teal-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-heading h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1.12;
}

.download-heading p,
.download-footer {
    color: var(--text-dim);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.download-card {
    display: grid;
    gap: 1rem;
    align-content: space-between;
    min-height: 13rem;
    padding: 1rem;
    border: 1px solid rgba(28, 42, 51, 0.09);
    border-radius: 8px;
    background: rgba(255, 252, 247, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.download-card.primary {
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(255, 252, 247, 0.9)),
        var(--bg-panel);
}

.download-platform {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.download-platform strong {
    display: block;
    color: var(--text-strong);
    font-size: 1.06rem;
}

.download-platform small {
    display: block;
    margin-top: 0.14rem;
    color: var(--text-dim);
}

.platform-mark {
    position: relative;
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid rgba(28, 42, 51, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.platform-mark::before,
.platform-mark::after {
    content: "";
    position: absolute;
    inset: 0.58rem;
    border-radius: 6px;
}

.macos-mark::before {
    background: linear-gradient(135deg, var(--teal), var(--copper));
}

.macos-mark::after {
    inset: 0.96rem 0.76rem 0.68rem;
    border: 2px solid rgba(255, 252, 247, 0.84);
    border-top: 0;
}

.windows-mark::before {
    background:
        linear-gradient(90deg, transparent 47%, rgba(255, 252, 247, 0.9) 47%, rgba(255, 252, 247, 0.9) 53%, transparent 53%),
        linear-gradient(0deg, transparent 47%, rgba(255, 252, 247, 0.9) 47%, rgba(255, 252, 247, 0.9) 53%, transparent 53%),
        var(--teal-strong);
}

.linux-mark::before {
    border-radius: 999px;
    background: var(--gold);
}

.linux-mark::after {
    inset: 1.18rem 0.88rem 0.58rem;
    border-radius: 999px 999px 6px 6px;
    background: var(--text-strong);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.download-actions .btn {
    min-height: 2.35rem;
    padding: 0.55rem 0.84rem;
    font-size: 0.86rem;
}

.download-actions.compact .btn {
    flex: 1 1 6rem;
}

.download-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    padding-top: 0.2rem;
    font-size: 0.9rem;
}

.download-footer a {
    color: var(--teal-strong);
    font-weight: 700;
}

.ide-interface-showcase {
    margin: 0 0 1.6rem;
}

.ide-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.ide-screenshot-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(28, 42, 51, 0.1);
    border-radius: 8px;
    background: var(--bg-panel-strong);
    box-shadow: var(--shadow-soft);
}

.ide-screenshot-card picture {
    display: block;
}

.ide-screenshot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: right center;
    background: #111d28;
}

.ide-screenshot-card figcaption {
    display: grid;
    gap: 0.24rem;
    padding: 0.82rem 0.95rem 0.95rem;
}

.ide-screenshot-card strong {
    color: var(--text-strong);
}

.ide-screenshot-card span {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.55;
}

.ide-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ide-flow article {
    position: relative;
    padding: 1rem;
    min-height: 11rem;
    overflow: hidden;
}

.ide-flow article::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--copper));
    opacity: 0.68;
}

.ide-flow span {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: var(--teal-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ide-flow h3 {
    margin-bottom: 0.45rem;
}

.ide-start-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1.15rem;
}

.ide-start-panel pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 8px;
    background: #111d28;
    color: #ecfdf5;
}

.ide-capability-board {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.capability-tile {
    position: relative;
    min-height: 11.6rem;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(28, 42, 51, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 252, 247, 0.95), rgba(239, 247, 244, 0.86)),
        rgba(255, 252, 247, 0.88);
    box-shadow: var(--shadow-soft);
    transition:
        transform 240ms ease,
        box-shadow 240ms ease,
        border-color 240ms ease;
}

.capability-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.82), transparent 76%);
}

.capability-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.18);
    box-shadow: 0 18px 48px rgba(28, 42, 51, 0.14);
}

.capability-tile::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--copper), var(--teal));
    background-size: 220% 100%;
    animation: capabilitySweep 4.8s linear infinite;
}

.capability-tile h2 {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.1;
    color: var(--text-strong);
}

.capability-kicker {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    z-index: 2;
    color: rgba(15, 118, 110, 0.78);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.capability-icon {
    position: absolute;
    inset: 2.35rem 1rem 3.4rem;
    z-index: 1;
    opacity: 0.98;
}

.mission-icon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mission-icon span {
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.34), rgba(15, 118, 110, 0.08)),
        rgba(255, 255, 255, 0.68);
    transform-origin: bottom;
    animation: missionBars 2.8s ease-in-out infinite;
}

.mission-icon span:nth-child(2) {
    animation-delay: 0.25s;
}

.mission-icon span:nth-child(3) {
    animation-delay: 0.5s;
}

.review-icon {
    display: grid;
    gap: 0.48rem;
}

.review-icon span {
    position: relative;
    border-radius: 999px;
    background: rgba(28, 42, 51, 0.08);
    overflow: hidden;
}

.review-icon span::before,
.review-icon span::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 46%;
    background: rgba(24, 121, 78, 0.22);
}

.review-icon span::after {
    left: 52%;
    width: 34%;
    background: rgba(183, 90, 47, 0.18);
    animation: diffGlow 2.4s ease-in-out infinite;
}

.evidence-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.evidence-icon span {
    border-radius: 8px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background:
        radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.32) 0 18%, transparent 19%),
        rgba(255, 255, 255, 0.62);
    animation: evidencePulse 3s ease-in-out infinite;
}

.evidence-icon span:nth-child(2) { animation-delay: 0.2s; }
.evidence-icon span:nth-child(3) { animation-delay: 0.4s; }
.evidence-icon span:nth-child(4) { animation-delay: 0.6s; }

.provider-icon {
    display: grid;
    place-items: center;
}

.provider-icon::before {
    content: "";
    width: 6.6rem;
    height: 6.6rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background:
        conic-gradient(from 0deg, rgba(15, 118, 110, 0.3), rgba(183, 90, 47, 0.22), rgba(150, 122, 31, 0.22), rgba(15, 118, 110, 0.3));
    animation: providerSpin 9s linear infinite;
}

.provider-icon span {
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #fffaf0;
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
}

.provider-icon span:nth-child(1) {
    transform: translate(0, -3.2rem);
}

.provider-icon span:nth-child(2) {
    transform: translate(2.8rem, 1.6rem);
}

.provider-icon span:nth-child(3) {
    transform: translate(-2.8rem, 1.6rem);
}

.ide-flow-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(28, 42, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 252, 247, 0.86);
    box-shadow: var(--shadow-soft);
}

.flow-track {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 50%;
    height: 2px;
    background: rgba(28, 42, 51, 0.1);
}

.flow-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.76rem;
    height: 0.76rem;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.12);
    transform: translate(-50%, -50%);
    animation: flowPulse 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.ide-flow-visual article {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 8.6rem;
    padding: 1rem;
    border: 1px solid rgba(28, 42, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.ide-flow-visual article::before {
    content: "";
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.62rem;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(183, 90, 47, 0.14)),
        rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.ide-flow-visual span {
    color: var(--teal-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ide-flow-visual strong {
    margin-top: 0.1rem;
    color: var(--text-strong);
}

@keyframes capabilitySweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes missionBars {
    0%, 100% { transform: scaleY(0.58); opacity: 0.7; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes diffGlow {
    0%, 100% { opacity: 0.42; transform: translateX(-4%); }
    50% { opacity: 0.9; transform: translateX(8%); }
}

@keyframes evidencePulse {
    0%, 100% { transform: scale(0.96); opacity: 0.78; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes providerSpin {
    to { transform: rotate(360deg); }
}

@keyframes heroScan {
    0%, 36% { transform: translateX(-120%); opacity: 0; }
    45% { opacity: 0.88; }
    58%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes liveRail {
    0%, 100% { transform: translateX(-18%); opacity: 0.38; }
    50% { transform: translateX(150%); opacity: 1; }
}

@keyframes statusFill {
    0%, 100% { transform: scaleX(0.28); opacity: 0.46; }
    50% { transform: scaleX(0.92); opacity: 0.95; }
}

@keyframes flowPulse {
    0% { left: 0%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes flowPulseVertical {
    0% { top: 0%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.constellation {
    position: absolute;
    inset: 0;
}

.signal-card,
.merge-core {
    position: absolute;
    width: 11.8rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 247, 236, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.signal-card h3,
.merge-core h3 {
    color: #fff7eb;
    font-size: 1.08rem;
    margin-top: 0.25rem;
}

.signal-card p,
.merge-core p {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.signal-label,
.merge-kicker {
    display: inline-flex;
    padding: 0.25rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.origin-claude {
    top: 10%;
    left: 8%;
}

.origin-gemini {
    top: 8%;
    right: 8%;
}

.origin-codex {
    bottom: 9%;
    left: 10%;
}

.merge-core {
    top: 38%;
    left: 50%;
    width: 13rem;
    transform: translateX(-50%);
    border-color: rgba(93, 227, 216, 0.26);
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.24), rgba(183, 90, 47, 0.12));
}

.merge-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(93, 227, 216, 0), rgba(93, 227, 216, 0.64), rgba(93, 227, 216, 0));
    transform-origin: left center;
    opacity: 0.86;
}

.line-1 {
    top: 30%;
    left: 28%;
    width: 38%;
    transform: rotate(14deg);
}

.line-2 {
    top: 28%;
    left: 48%;
    width: 33%;
    transform: rotate(-13deg);
}

.line-3 {
    top: 62%;
    left: 28%;
    width: 38%;
    transform: rotate(-13deg);
}

.stats-grid,
.feature-grid,
.reading-paths,
.compare-columns,
.atlas-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.8rem;
}

.reading-paths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.8rem;
}

.reading-paths.wide {
    margin-top: 0.2rem;
}

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

.feature-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.stat-card,
.feature-card,
.path-card,
.compare-card,
.atlas-card,
.layer-card,
.callout,
.comparison-preamble,
.assembly-explorer,
.gate-simulator,
.code-window,
.check-item,
.roadmap-item,
.story-step,
.story-panel {
    border-radius: var(--radius-md);
    border: 1px solid rgba(28, 42, 51, 0.08);
    background: var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

.stat-card,
.feature-card,
.path-card,
.compare-card,
.atlas-card,
.layer-card {
    padding: 1.15rem 1.15rem 1.2rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.7rem;
    line-height: 0.9;
    color: var(--text-strong);
}

.stat-label {
    margin-top: 0.45rem;
    font-weight: 600;
    color: var(--text-strong);
}

.stat-card p {
    margin-top: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.path-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.path-duration {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: rgba(183, 90, 47, 0.12);
    color: var(--copper);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.path-card p,
.feature-card p,
.compare-card p,
.atlas-card p,
.layer-card p {
    color: var(--text-dim);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-num {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.8rem;
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal-strong);
    font-weight: 700;
}

.callout {
    padding: 1.2rem 1.25rem;
}

.callout-info {
    border-color: rgba(15, 118, 110, 0.14);
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.78));
}

.callout-tip {
    border-color: rgba(150, 122, 31, 0.14);
    background: linear-gradient(145deg, rgba(150, 122, 31, 0.08), rgba(255, 255, 255, 0.78));
}

.callout-warning {
    border-color: rgba(183, 90, 47, 0.16);
    background: linear-gradient(145deg, rgba(183, 90, 47, 0.08), rgba(255, 255, 255, 0.8));
}

.callout-title {
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: var(--text-strong);
}

.layer-stack {
    display: grid;
    gap: 1rem;
}

.layer-card {
    padding-top: 1rem;
    border-left: 5px solid rgba(15, 118, 110, 0.16);
}

.layer-topline,
.atlas-topline,
.assembly-meta,
.status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.layer-source {
    color: var(--text-soft);
}

.comparison-table {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(28, 42, 51, 0.08);
    background: var(--bg-panel-strong);
    box-shadow: var(--shadow-soft);
}

.comparison-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 1rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.92rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(28, 42, 51, 0.08);
    text-align: left;
}

.comparison-table th {
    background: rgba(28, 42, 51, 0.04);
    color: var(--text-strong);
    font-weight: 700;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .is-focus {
    background: rgba(15, 118, 110, 0.08);
}

.compare-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.compare-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal-strong);
    letter-spacing: 0.1em;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.bullet-list {
    display: grid;
    gap: 0.6rem;
    padding-left: 1.15rem;
}

.comparison-preamble {
    padding: 1.2rem 1.25rem;
}

.ladder {
    display: grid;
    gap: 0.9rem;
}

.ladder-step {
    position: relative;
    padding: 1.1rem 1.15rem 1.1rem 4.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(28, 42, 51, 0.08);
    background: rgba(255, 252, 247, 0.84);
    box-shadow: var(--shadow-soft);
}

.ladder-index {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: rgba(15, 118, 110, 0.12);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--teal-strong);
}

.story {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 1rem;
    align-items: start;
}

.story-visual {
    position: sticky;
    top: 1.6rem;
    display: grid;
    gap: 0.9rem;
}

.story-panel {
    display: none;
    padding: 1.2rem 1.25rem;
    min-height: 16rem;
    background:
        radial-gradient(circle at 78% 12%, rgba(15, 118, 110, 0.1), transparent 26%),
        rgba(255, 252, 247, 0.92);
}

.story-panel.active {
    display: block;
}

.story-kicker {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal-strong);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-steps {
    display: grid;
    gap: 0.85rem;
}

.story-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.story-step:hover,
.story-step:focus-within {
    transform: translateX(2px);
}

.story-step.active {
    border-color: rgba(15, 118, 110, 0.16);
    background: rgba(15, 118, 110, 0.08);
}

.story-index {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal-strong);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.gate-simulator,
.assembly-explorer {
    padding: 1.2rem 1.2rem 1.3rem;
}

.gate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.gate-control {
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(28, 42, 51, 0.03);
    border: 1px solid rgba(28, 42, 51, 0.08);
}

.gate-label {
    margin-bottom: 0.65rem;
    font-weight: 700;
    color: var(--text-strong);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.46rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 42, 51, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.chip:hover,
.chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.2);
}

.chip.active {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.22);
    color: var(--teal-strong);
}

.gate-output {
    margin-top: 1rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 252, 247, 0.84);
    border: 1px solid rgba(28, 42, 51, 0.08);
}

.gate-output h3 {
    margin-bottom: 0.7rem;
}

.gate-results {
    display: grid;
    gap: 0.55rem;
    padding-left: 1rem;
}

.assembly-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.assembly-tab {
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 42, 51, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-dim);
    font-family: var(--font-sans);
    cursor: pointer;
}

.assembly-tab.active {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.18);
    color: var(--teal-strong);
}

.assembly-panel {
    display: none;
}

.assembly-panel.active {
    display: block;
}

.assembly-panel p + p {
    margin-top: 0.8rem;
}

.atlas-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.atlas-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.atlas-type {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.atlas-signal {
    font-weight: 600;
    color: var(--text-strong);
}

.atlas-card.is-hidden {
    display: none;
}

.checklist {
    display: grid;
    gap: 0.9rem;
}

.check-item {
    padding: 1rem 1.1rem 1.05rem;
}

.check-item p {
    margin-top: 0.5rem;
    color: var(--text-dim);
}

.roadmap {
    display: grid;
    gap: 0.9rem;
}

.roadmap-item {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
}

.roadmap-marker {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal-strong);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.roadmap-content p {
    margin-top: 0.4rem;
    color: var(--text-dim);
}

.code-window {
    overflow: hidden;
}

.code-window.slim {
    margin-top: 0.9rem;
}

.window-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    background: rgba(19, 32, 43, 0.92);
    color: rgba(255, 247, 236, 0.78);
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.window-body {
    background: var(--bg-code);
    color: #e9f2f7;
    padding: 1rem 1rem 1.05rem;
    overflow-x: auto;
}

.copy-btn {
    margin-left: auto;
    padding: 0.34rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff7eb;
    font-size: 0.76rem;
    cursor: pointer;
}

.copy-btn:disabled {
    opacity: 0.72;
    cursor: default;
}

.token.keyword,
.token.operator,
.token.builtin,
.token.function {
    color: #92e1ff;
}

.token.comment {
    color: #7fa6b5;
}

.token.string {
    color: #f3c27a;
}

.token.number,
.token.boolean {
    color: #f39f7a;
}

.token.class-name,
.token.property {
    color: #9ad8b9;
}

.external-link::after {
    content: " ↗";
    font-size: 0.84em;
}

.chapter-nav {
    margin-top: 2rem;
}

.back-to-top {
    position: fixed;
    right: calc(var(--rail-w) + 1.6rem);
    bottom: 1.6rem;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 252, 247, 0.94);
    color: var(--text-strong);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 30;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 120;
    display: none;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 42, 51, 0.14);
    background: rgba(255, 252, 247, 0.94);
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.26rem;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--text-strong);
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.revealable {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.revealable.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1380px) {
    :root {
        --rail-w: 284px;
    }

    .chapter {
        padding-left: 2.8rem;
        padding-right: 2.8rem;
    }

    .feature-grid.compact,
    .stats-grid,
    .reading-paths,
    .compare-columns,
    .atlas-grid,
    .download-grid,
    .ide-product-strip,
    .ide-promise-grid,
    .ide-capability-board,
    .ide-screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ide-flow,
    .ide-flow-visual {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ide-product-copy {
        max-width: min(46rem, 56%);
    }

    .ide-product-title {
        font-size: clamp(3.1rem, 4.35vw, 4.35rem);
    }
}

@media (min-width: 1100px) and (max-width: 1380px) {
    body[data-current-chapter="home"] .download-grid,
    body[data-current-chapter="home"] .ide-product-strip,
    body[data-current-chapter="home"] .ide-screenshot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body[data-current-chapter="home"] .ide-capability-board {
        grid-template-columns: 1.1fr 1fr 1fr 1fr;
    }

    body[data-current-chapter="home"] .download-card {
        min-height: 12rem;
        padding: 0.9rem;
    }

    body[data-current-chapter="home"] .download-actions .btn {
        font-size: 0.8rem;
    }
}

@media (max-width: 1160px) {
    :root {
        --sidebar-w: 288px;
    }

    .chapter-rail {
        display: none;
    }

    .main-content {
        margin-right: 0;
    }

    .back-to-top {
        right: 1.3rem;
    }
}

@media (max-width: 920px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .chapter {
        padding: 4.8rem 1.3rem 4rem;
    }

    body[data-current-chapter="home"] .chapter#home {
        max-width: none;
        padding: 4.8rem 1.3rem 4rem;
    }

    .hero-home,
    .story {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 24rem;
    }

    .story-visual {
        position: relative;
        top: 0;
    }

    .feature-grid,
    .feature-grid.compact,
    .stats-grid,
    .reading-paths,
    .compare-columns,
    .atlas-grid,
    .gate-grid,
    .download-grid,
    .ide-product-strip,
    .ide-promise-grid,
    .ide-capability-board,
    .ide-screenshot-grid,
    .ide-flow,
    .ide-flow-visual,
    .ide-start-panel {
        grid-template-columns: 1fr;
    }

    .download-heading,
    .download-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-track {
        top: 1rem;
        bottom: 1rem;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
    }

    .flow-pulse {
        top: 0;
        left: 50%;
        animation-name: flowPulseVertical;
    }

    .ide-product-hero {
        min-height: 49rem;
        padding: 1.35rem;
    }

    .ide-product-visual {
        inset: 1rem 1rem auto;
        width: auto;
        height: 23rem;
        opacity: 0.58;
    }

    .ide-workbench {
        grid-template-columns: 2.8rem minmax(10rem, 1fr) minmax(12rem, 1.2fr);
    }

    .ide-agent-pane {
        display: none;
    }

    .ide-window {
        transform: none;
    }

    .ide-float-card {
        display: none;
    }

    .ide-status-strip {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin-top: 0.85rem;
    }

    .ide-live-rail {
        left: 1rem;
        right: 1rem;
        bottom: 0.55rem;
    }

    .ide-product-copy {
        max-width: 100%;
        padding-top: 20rem;
    }

    .ide-product-title {
        font-size: 3.7rem;
    }

    .roadmap-item,
    .story-step {
        grid-template-columns: 1fr;
    }

    .story-index,
    .roadmap-marker {
        width: 2.4rem;
        height: 2.4rem;
    }

    .origin-claude {
        top: 8%;
        left: 6%;
    }

    .origin-gemini {
        top: 8%;
        right: 6%;
    }

    .origin-codex {
        bottom: 8%;
        left: 8%;
    }

    .merge-core {
        top: 44%;
        width: 12rem;
    }

    .line-1 {
        top: 30%;
        left: 26%;
        width: 42%;
    }

    .line-2 {
        top: 30%;
        left: 50%;
        width: 30%;
    }

    .line-3 {
        top: 64%;
        left: 28%;
        width: 38%;
    }
}

@media (max-width: 720px) {
    html {
        font-size: 15px;
    }

    .chapter-header h1,
    .hero-title {
        line-height: 1.02;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }

    .chapter-header h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .ide-product-hero {
        min-height: 54rem;
    }

    .ide-product-title {
        font-size: 2.95rem;
        line-height: 1.02;
    }

    .ide-product-subtitle {
        font-size: 1rem;
    }

    .ide-hero-proof {
        grid-template-columns: 1fr;
        max-width: 18rem;
    }

    .ide-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 20rem;
    }

    .ide-product-visual {
        height: 20rem;
    }

    .ide-workbench {
        grid-template-columns: 2.6rem 1fr;
    }

    .ide-editor-pane {
        display: none;
    }

    .comparison-table {
        overflow: visible;
    }

    .comparison-table table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table th,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tr {
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(28, 42, 51, 0.08);
    }

    .comparison-table tbody tr:last-child {
        border-bottom: none;
    }

    .comparison-table td {
        padding: 0.45rem 1rem;
        border-bottom: none;
    }

    .comparison-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.16rem;
        color: var(--text-soft);
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .revealable {
        opacity: 1;
        transform: none;
    }
}
