/* Culon Cowork product and guide pages. */

.page--cowork,
.page--cowork-guide {
    --cw-dark: #13120f;
    --cw-panel: #1c1a16;
    --cw-panel-2: #24211c;
    --cw-cream: #f6f0e4;
    --cw-dim: #bdb3a2;
    --cw-orange: #df6337;
    --cw-orange-deep: #b94322;
    --cw-olive: #8f9848;
}

.page--cowork .site-header,
.page--cowork-guide .site-header {
    box-shadow: 0 1px 0 rgba(20, 16, 10, .05);
}

.cw-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 0 clamp(72px, 9vw, 118px);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 86% 28%, rgba(223,99,55,.20), transparent 32%),
        var(--cw-dark);
    background-size: 54px 54px, 54px 54px, auto, auto;
    color: var(--cw-cream);
}

.cw-hero > .container { max-width: 1560px; }

.cw-hero__glow {
    position: absolute;
    width: 540px;
    height: 540px;
    right: -160px;
    bottom: -270px;
    border-radius: 50%;
    background: rgba(223,99,55,.18);
    filter: blur(90px);
    pointer-events: none;
}

.cw-language {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
    font-size: 12px;
    color: #908778;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.cw-language a {
    color: var(--cw-cream);
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
}

.cw-language a:hover { border-color: var(--cw-orange); color: #fff; }

.cw-hero__grid {
    display: grid;
    grid-template-columns: minmax(520px, .88fr) minmax(700px, 1.12fr);
    gap: clamp(44px, 4.2vw, 78px);
    align-items: center;
}

.cw-hero h1 {
    color: #fff9ef;
    font-size: clamp(3.2rem, 4vw, 4.75rem);
    line-height: .96;
    letter-spacing: -.045em;
    max-width: 720px;
    margin-bottom: 26px;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
}

.cw-hero__title-main { display: block; }
.cw-hero h1 em {
    display: block;
    margin-top: .08em;
    color: var(--cw-orange);
    font-style: italic;
}

.cw-product-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.cw-product-mark__icon,
.cw-app-shell__brand i {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(145deg, #f07a4c, #b73e1f);
    transform: rotate(45deg) scale(.72);
    box-shadow: 0 6px 18px rgba(223,99,55,.32);
}

.cw-product-mark small {
    color: var(--cw-dim);
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    letter-spacing: .06em;
}

.cw-hero__lead {
    color: #c9c0b1;
    font-size: clamp(1.03rem, 1.18vw, 1.18rem);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.cw-hero__actions,
.cw-download__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cw-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    color: #9c9385;
    font-size: 13px;
}

.cw-hero__facts li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--cw-olive);
    box-shadow: 0 0 0 4px rgba(143,152,72,.12);
}

.cw-hero-shot {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: #090a09;
    box-shadow: 0 42px 100px -26px rgba(0,0,0,.75), 0 0 80px rgba(223,99,55,.08);
    width: 100%;
    justify-self: end;
    transform: perspective(1800px) rotateY(-1deg) rotateX(.5deg);
}

.cw-hero-shot img { display: block; width: 100%; height: auto; }
.cw-hero-shot--task img { filter: brightness(1.12) contrast(1.03); }
.cw-hero-shot figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #817a70;
    background: #161512;
    font-size: 11px;
}
.cw-hero-shot figcaption span { width: 6px; height: 6px; border-radius: 50%; background: #7c944b; }

.cw-app-shell {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: #090a09;
    box-shadow: 0 42px 100px -26px rgba(0,0,0,.75), 0 0 80px rgba(223,99,55,.08);
    overflow: hidden;
    transform: perspective(1500px) rotateY(-2deg) rotateX(1deg);
}

.cw-app-shell__top {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    color: #e4ddd2;
    font-size: 10px;
    border-bottom: 1px solid #21201d;
    background: #1b1a19;
}

.cw-app-shell__brand { display: inline-flex; align-items: center; gap: 7px; }
.cw-app-shell__brand i { width: 14px; height: 14px; border-radius: 4px; box-shadow: none; }
.cw-app-shell__window { color: #97918a; letter-spacing: 9px; }

.cw-app-shell__body {
    display: grid;
    grid-template-columns: 145px minmax(300px, 1fr) 150px;
    min-height: 470px;
}

.cw-app-nav,
.cw-app-results {
    padding: 18px 12px;
    background: #0e0f0d;
    border-right: 1px solid #1e1f1c;
    color: #7f8178;
    font-size: 9px;
}

.cw-app-nav { display: flex; flex-direction: column; gap: 5px; }
.cw-app-nav strong {
    color: #f1784b;
    border: 1px solid #5f2818;
    border-radius: 7px;
    padding: 10px 9px;
    margin-bottom: 5px;
}
.cw-app-nav > span { padding: 7px 9px; }
.cw-app-nav small,
.cw-app-results small,
.cw-app-work__eyebrow { color: #494c46; letter-spacing: .09em; font-size: 7px; margin-top: 8px; }
.cw-app-nav p { color: #777a70; font-size: 8px; line-height: 1.35; margin: 0; padding: 7px 5px; display: flex; gap: 6px; }
.cw-app-nav p i { width: 5px; height: 5px; margin-top: 3px; border-radius: 50%; background: #6a9f5b; flex: 0 0 auto; }

.cw-app-work {
    padding: 34px 26px 24px;
    background:
        linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px),
        #0c0d0b;
    background-size: 26px 26px;
    min-width: 0;
}

.cw-app-work h2 {
    font-family: var(--font-sans);
    color: #dad3c7;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 8px 0 5px;
}
.cw-app-work > p { color: #5d6059; font-size: 9px; }
.cw-app-prompt {
    min-height: 100px;
    padding: 17px;
    margin: 20px 0 10px;
    border: 1px solid #282923;
    border-radius: 10px;
    color: #b5afa3;
    background: #11120f;
    font-size: 10px;
    line-height: 1.55;
}
.cw-app-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cw-app-controls span,
.cw-app-controls button {
    font-size: 8px;
    color: #8d8a82;
    background: #171713;
    border: 1px solid #282822;
    border-radius: 7px;
    padding: 7px 9px;
}
.cw-app-controls button { color: #fff; background: #be4a27; margin-left: auto; }
.cw-app-steps { margin-top: 38px; display: grid; gap: 8px; }
.cw-app-steps span { padding: 11px 12px; border: 1px solid #23241f; border-radius: 8px; font-size: 9px; color: #777a72; }
.cw-app-steps .is-done { color: #859d69; }
.cw-app-steps .is-live { color: #d4a26c; }

.cw-app-results {
    border-right: 0;
    border-left: 1px solid #1e1f1c;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cw-app-results div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #75776f;
    background: #121310;
    border: 1px solid #20211d;
    border-radius: 8px;
    padding: 10px 8px;
}
.cw-app-results .is-result { color: #c9613d; align-items: flex-start; }
.cw-app-results div span { color: #777970; line-height: 1.25; overflow-wrap: anywhere; }

.cw-proof { background: #201e1a; color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.cw-proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cw-proof__grid div { min-height: 136px; padding: 30px 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.08); }
.cw-proof__grid div:last-child { border-right: 0; }
.cw-proof__grid strong { font: 500 clamp(2rem, 4vw, 3.3rem)/1 var(--font-serif); color: #fff4e4; }
.cw-proof__grid span { margin-top: 8px; color: #9e9587; font-size: 13px; max-width: 190px; }

.cw-context__grid { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(360px,1.15fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.cw-context .section__head { margin: 0; position: sticky; top: 110px; }
.cw-context__copy > p { font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.7; }
.cw-note { margin-top: 36px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; gap: 8px; background: var(--bg-card); }
.cw-note strong { color: var(--accent); }
.cw-note span { color: var(--text-soft); font-size: 14px; }
.cw-compare { margin-top: 30px; padding: clamp(24px,3vw,34px); border: 1px solid #2d2923; border-radius: var(--radius-lg); background: linear-gradient(145deg,#211d18,#151411 72%); box-shadow: 0 28px 70px -45px rgba(20,16,10,.75); }
.cw-compare__label { color: var(--cw-orange); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.cw-compare h3 { max-width: 650px; margin: 13px 0 12px; color: #fff4e3; font-size: clamp(1.5rem,2.4vw,2.15rem); line-height: 1.08; hyphens: none; overflow-wrap: normal; word-break: normal; }
.cw-compare > p { margin: 0; color: #b9b0a3; font-size: 15px; line-height: 1.65; }
.cw-compare__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.cw-compare__points li { padding: 8px 10px; border: 1px solid rgba(223,99,55,.26); border-radius: 999px; color: #e7ddd0; font-size: 11px; }
.cw-compare small { display: block; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); color: #8f877b; font-size: 12px; line-height: 1.55; }

.cw-capabilities .section__head--split > p { max-width: 500px; }
.cw-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cw-feature-card { min-height: 265px; display: flex; flex-direction: column; padding: 26px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.cw-feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cw-feature-card__code { width: fit-content; min-width: 42px; padding: 6px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.cw-feature-card h3 { margin: 34px 0 10px; font-size: 1.35rem; }
.cw-feature-card p { margin: 0; font-size: 14px; line-height: 1.55; }

.cw-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.cw-flow li { min-height: 260px; position: relative; padding: 28px 30px 30px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line); }
.cw-flow li:first-child { border-left: 1px solid var(--line); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.cw-flow li:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.cw-flow li > span { color: var(--accent); font-size: 12px; letter-spacing: .1em; }
.cw-flow h3 { margin: 22px 0 10px; }
.cw-flow p { margin: 0; font-size: 14px; }

.cw-engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cw-engine-grid article { min-height: 310px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-card); }
.cw-engine-grid article > span { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.cw-engine-grid h3 { margin: 20px 0 10px; font-size: 1.28rem; }
.cw-engine-grid p { margin: 0; font-size: 14px; line-height: 1.6; }

.cw-control { overflow: hidden; }
.cw-control::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(223,99,55,.16), transparent 36%); pointer-events: none; }
.cw-control__head { position: relative; display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; margin-bottom: 58px; }
.cw-control__head .eyebrow { color: var(--cw-orange); }
.cw-control__head h2 em { color: var(--cw-orange); }
.cw-control__head > p { color: #aaa092; font-size: 1.05rem; margin: 0 0 8px; }
.cw-modes { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cw-modes article { min-height: 200px; padding: 28px; border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-lg); background: rgba(255,255,255,.025); }
.cw-modes article.is-active { border-color: rgba(223,99,55,.58); background: rgba(223,99,55,.08); }
.cw-modes article > span { color: var(--cw-orange); font-size: 11px; }
.cw-modes h3 { margin: 20px 0 10px; }
.cw-modes p { color: #9e9587; margin: 0; font-size: 14px; }
.cw-checkpoint { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 16px; padding: 24px 28px; border: 1px solid rgba(143,152,72,.33); background: rgba(143,152,72,.07); border-radius: var(--radius-lg); }
.cw-checkpoint__icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(143,152,72,.38); border-radius: 50%; color: #b4bd71; font-size: 24px; }
.cw-checkpoint strong { color: #f2eadc; }
.cw-checkpoint p { color: #9e9587; margin: 5px 0 0; font-size: 14px; }

.cw-provider-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.cw-provider { min-height: 380px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-card); }
.cw-provider--local { background: var(--cw-dark); border-color: var(--cw-dark); }
.cw-provider > span { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.cw-provider h3 { margin-top: 34px; font-size: 2rem; }
.cw-provider--local h3 { color: #fff6e8; }
.cw-provider--local p { color: #a99f91; }
.cw-provider p { line-height: 1.65; }
.cw-provider ul { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.cw-provider li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font-size: 11px; }
.cw-provider--local li { border-color: rgba(255,255,255,.14); color: #aaa193; }

.cw-real-ui { background: #e8ddc9; }
.cw-real-ui .section__head--split > p { max-width: 500px; }
.cw-screenshot { margin: 0; border-radius: 22px; overflow: hidden; background: #111; border: 1px solid #b7a88d; box-shadow: 0 38px 100px -38px rgba(20,16,10,.6); }
.cw-screenshot img { width: 100%; height: auto; display: block; }
.cw-screenshot figcaption { padding: 11px 16px; color: #9e968b; background: #171613; font-size: 11px; text-align: right; }
.cw-real-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }

.cw-scenario-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.cw-scenario-grid article { min-height: 230px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,252,246,.62); }
.cw-scenario-grid article > span { color: var(--accent); font-size: 11px; }
.cw-scenario-grid h3 { margin: 20px 0 10px; }
.cw-scenario-grid p { margin: 0; font-size: 14px; }

.cw-download { background: var(--cw-dark); color: var(--cw-cream); }
.cw-download__panel { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(38px,7vw,100px); padding: clamp(32px,5vw,70px); border-radius: 32px; border: 1px solid rgba(255,255,255,.11); background: linear-gradient(135deg, #211d18, #12120f 68%); overflow: hidden; }
.cw-download__panel::after { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; top: -180px; border-radius: 50%; background: rgba(223,99,55,.22); filter: blur(70px); pointer-events: none; }
.cw-download .eyebrow { color: var(--cw-orange); }
.cw-download h2 { color: #fff5e5; }
.cw-download h2 em { color: var(--cw-orange); }
.cw-download__copy > p { color: #aaa092; max-width: 600px; }
.cw-download__actions { margin-top: 30px; }
.cw-release { position: relative; z-index: 1; margin: 0; display: grid; align-content: start; }
.cw-release > div { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.cw-release dt { color: #777066; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.cw-release dd { margin: 6px 0 0; color: #e9e0d2; overflow-wrap: anywhere; }
.cw-release code { color: #b7c078; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.cw-copy { margin-left: 8px; padding: 5px 8px; color: #c8c0b3; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; font-size: 10px; }
.cw-copy:hover { color: #fff; border-color: var(--cw-orange); }
.cw-version-control { grid-column: 1/-1; display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.cw-version-control strong { color: #c6ce86; }
.cw-version-control span { color: #9d9589; font-size: 13px; }

.cw-faq__list { border-top: 1px solid var(--line-strong); }
.cw-faq details { border-bottom: 1px solid var(--line-strong); }
.cw-faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; color: var(--text); font: 500 clamp(1.15rem,2vw,1.45rem)/1.3 var(--font-serif); list-style: none; cursor: pointer; }
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary span { color: var(--accent); font-family: var(--font-sans); font-weight: 400; transition: transform .2s var(--ease); }
.cw-faq details[open] summary span { transform: rotate(45deg); }
.cw-faq details p { max-width: 840px; padding: 0 0 24px; margin: 0; }

.cw-final .cta h2 { max-width: 880px; }

/* Home product strip */
.cw-home-product { background: var(--cw-dark, #13120f); color: #f6f0e4; overflow: hidden; }
.cw-home-product.section { padding: clamp(62px, 6vw, 88px) 0; }
.cw-home-product > .container { max-width: 1480px; }
.cw-home-product::before { content: ""; position: absolute; width: 600px; height: 600px; right: -180px; top: -280px; border-radius: 50%; background: rgba(223,99,55,.16); filter: blur(100px); }
.cw-home-product__grid { display: grid; grid-template-columns: minmax(470px,.8fr) minmax(680px,1.2fr); gap: clamp(48px,5vw,78px); align-items: center; }
.cw-home-product h2 { max-width: 650px; margin-bottom: 18px; color: #fff5e6; font-size: clamp(2.65rem,3.45vw,4rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance; hyphens: none; }
.cw-home-product h2 em { color: #df6337; }
.cw-home-product p { max-width: 620px; margin: 0; color: #afa698; font-size: 1rem; line-height: 1.58; }
.cw-home-product__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.cw-home-product__facts span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #bbb2a5; font-size: 11px; }
.cw-home-product__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-home-product__actions .btn { padding: 14px 20px; font-size: 14px; }
.cw-home-product__visual { width: 100%; margin: 0; position: relative; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(145deg, #211f1b, #0e0f0d); overflow: hidden; box-shadow: 0 35px 90px -38px rgba(0,0,0,.8); }
.cw-home-product__visual img { display: block; width: 100%; height: auto; filter: brightness(1.14) contrast(1.02); }
.cw-home-product__visual figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; color: #777065; background: #181713; font-size: 10px; }
.cw-home-product__visual figcaption span { width: 6px; height: 6px; border-radius: 50%; background: #7e944a; }
.cw-home-window { position: absolute; inset: 28px; display: grid; grid-template-columns: 120px 1fr 120px; border: 1px solid #35332e; border-radius: 12px; overflow: hidden; background: #0c0d0b; }
.cw-home-window > div { padding: 18px 12px; border-right: 1px solid #24241f; }
.cw-home-window > div:last-child { border-right: 0; }
.cw-home-window small { color: #57584f; font-size: 7px; letter-spacing: .08em; }
.cw-home-window span { display: block; margin-top: 11px; padding: 8px; border-radius: 6px; border: 1px solid #24251f; color: #73756c; font-size: 8px; }
.cw-home-window .is-orange { color: #df7048; border-color: #592817; }
.cw-home-window__main h3 { color: #d8d0c3; font: 600 19px/1.2 var(--font-sans); margin: 24px 0 8px; }
.cw-home-window__main p { color: #606158; font-size: 9px; }
.cw-home-window__main span { min-height: 90px; }

/* Guide */
.cw-guide-hero { padding: clamp(54px,8vw,100px) 0; background: var(--cw-dark); color: var(--cw-cream); }
.cw-guide-hero__row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.cw-guide-hero .eyebrow { color: var(--cw-orange); }
.cw-guide-hero h1 { color: #fff7e9; max-width: 900px; }
.cw-guide-hero p { color: #b2a99b; max-width: 780px; font-size: 1.08rem; }
.cw-guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cw-guide-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #aaa193; font-size: 11px; }
.cw-guide-layout { display: grid; grid-template-columns: 260px minmax(0,800px); gap: clamp(40px,8vw,100px); align-items: start; justify-content: center; }
.cw-guide-toc { position: sticky; top: 96px; }
.cw-guide-toc strong { display: block; color: var(--text); margin-bottom: 13px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cw-guide-toc a { display: block; padding: 7px 0; color: var(--text-muted); font-size: 13px; line-height: 1.3; }
.cw-guide-toc a:hover { color: var(--accent); }
.cw-guide-toc a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 18px;
    padding: 11px 18px;
    color: var(--bg);
    line-height: 1.2;
    white-space: nowrap;
}
.cw-guide-content section { scroll-margin-top: 100px; padding: 0 0 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
.cw-guide-content section:last-child { border-bottom: 0; }
.cw-guide-content h2 { font-size: clamp(2rem,4vw,3.2rem); }
.cw-guide-content h3 { margin-top: 32px; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.cw-guide-content p,
.cw-guide-content li { color: var(--text-soft); line-height: 1.7; }
.cw-guide-content ul,
.cw-guide-content ol { margin: 14px 0 22px; padding-left: 24px; }
.cw-guide-content ul { list-style: disc; }
.cw-guide-content ol { list-style: decimal; }
.cw-guide-content li { margin-bottom: 7px; padding-left: 4px; }
.cw-guide-content code { padding: 2px 6px; border-radius: 5px; background: #ebe1d1; color: #71321e; font: .86em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.cw-guide-content pre { position: relative; overflow-x: auto; margin: 16px 0 24px; padding: 20px; border-radius: 14px; background: #171613; color: #e9e0d1; border: 1px solid #2b2924; }
.cw-guide-content pre code { padding: 0; background: none; color: inherit; font-size: 13px; white-space: pre; }
.cw-guide-callout { margin: 22px 0; padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-card); }
.cw-guide-callout--warning { border-color: #b37b38; background: #f6e8ce; }
.cw-guide-callout--secure { border-color: var(--cw-olive); background: #e7ead5; }
.cw-guide-callout strong { display: block; margin-bottom: 5px; }
.cw-guide-callout p { margin: 0; font-size: 14px; }
.cw-guide-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.cw-guide-table th,
.cw-guide-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cw-guide-table th { background: var(--bg-warm); color: var(--text); }
.cw-guide-check { list-style: none !important; padding-left: 0 !important; }
.cw-guide-check li { position: relative; padding-left: 28px; }
.cw-guide-check li::before { content: "✓"; position: absolute; left: 0; color: var(--cw-olive); font-weight: 700; }

@media (max-width: 1320px) {
    .cw-hero__grid { grid-template-columns: 1fr; }
    .cw-hero__copy { max-width: 900px; }
    .cw-hero-shot { max-width: 1100px; justify-self: start; }
}

@media (max-width: 1180px) {
    .cw-app-shell { max-width: 900px; }
    .cw-card-grid { grid-template-columns: repeat(2,1fr); }
    .cw-engine-grid { grid-template-columns: repeat(2,1fr); }
    .cw-home-product__grid { grid-template-columns: 1fr; }
    .cw-home-product__grid > div { max-width: 820px; }
    .cw-home-product__visual { max-width: 960px; }
}

@media (max-width: 900px) {
    .cw-proof__grid { grid-template-columns: repeat(2,1fr); }
    .cw-proof__grid div:nth-child(2) { border-right: 0; }
    .cw-proof__grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
    .cw-context__grid,
    .cw-control__head,
    .cw-download__panel,
    .cw-home-product__grid,
    .cw-guide-layout { grid-template-columns: minmax(0,1fr); }
    .cw-context .section__head,
    .cw-guide-toc { position: static; }
    .cw-flow { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .cw-flow li,
    .cw-flow li:first-child,
    .cw-flow li:last-child { border: 1px solid var(--line); border-radius: var(--radius-lg); }
    .cw-provider-grid,
    .cw-scenario-grid { grid-template-columns: 1fr; }
    .cw-provider { min-height: 300px; }
    .cw-modes { grid-template-columns: 1fr; }
    .cw-guide-toc { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
    .cw-guide-toc strong { width: 100%; }
    .cw-guide-toc a { display: inline-block; }
    .cw-guide-toc a.btn { margin: 8px 0 0; }
    .cw-real-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .cw-hero { padding-top: 24px; }
    .cw-language { margin-bottom: 32px; }
    .cw-hero h1 { font-size: clamp(2.65rem,13vw,4.2rem); }
    .cw-hero__actions .btn,
    .cw-download__actions .btn { width: 100%; justify-content: center; }
    .cw-hero-shot { transform: none; }
    .cw-hero-shot--task { aspect-ratio: 4 / 5; }
    .cw-hero-shot--task img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
    .cw-card-grid,
    .cw-flow,
    .cw-engine-grid { grid-template-columns: 1fr; }
    .cw-feature-card { min-height: 230px; }
    .cw-proof__grid div { min-height: 118px; padding: 22px 16px; }
    .cw-checkpoint { grid-template-columns: 1fr; }
    .cw-download__panel { padding: 28px 20px; border-radius: 22px; }
    .cw-version-control { grid-template-columns: 1fr; }
    .cw-home-product__facts { grid-template-columns: 1fr; }
    .cw-home-product__actions .btn { width: 100%; justify-content: center; }
    .cw-home-product.section { padding: 54px 0; }
    .cw-home-product__visual { aspect-ratio: 16 / 10; }
    .cw-home-product__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: brightness(1.14) contrast(1.02); }
    .cw-guide-hero__row { grid-template-columns: 1fr; }
    .cw-guide-hero__row .btn { width: fit-content; }
    .cw-guide-toc a.btn { width: 100%; margin-top: 14px; padding: 13px 18px; }
    .cw-guide-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .cw-app-shell { transform: none; }
}
