/* CEG website. Layout switches at 960px: above it the story stage is pinned
   beside the steps; below it every step carries its own copy of the stage. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #e6e5e1; color: #18181a; font-family: Inter, system-ui, sans-serif; line-height: 1.5; }
a { color: #5a5a5f; text-decoration: none; }
a:hover { color: #18181a; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
:focus-visible { outline: 2px solid #3f76c0; outline-offset: 2px; }
.dim { color: #a4a4ae; }
.contents { display: contents; }
.tlink { color: #18181a; text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5a5a5f; }

@keyframes cegIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cegDot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.page { position: relative; isolation: isolate; background: #e6e5e1; overflow-x: clip; }

/* ---------- glass background ---------- */
.glass { position: sticky; top: 0; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh; overflow: hidden; pointer-events: none; z-index: -1; background: linear-gradient(135deg, #cfdaea, #dde1e6); }
.glass-shapes { position: absolute; inset: 0; }
.glass-pane { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(226,238,255,0.5), rgba(200,218,244,0.4) 45%, rgba(188,208,238,0.46)); -webkit-backdrop-filter: blur(15px) saturate(1.45) brightness(1.04); backdrop-filter: blur(15px) saturate(1.45) brightness(1.04); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-shapes { filter: blur(15px); }
}
.gw { position: absolute; border-radius: 16px; overflow: hidden; background: var(--b); border: 1.5px solid var(--o); box-shadow: 0 40px 80px -30px rgba(24,24,26,0.5); display: flex; flex-direction: column; }
.gw-bar { height: 46px; flex: none; background: var(--bar); display: flex; align-items: center; gap: 9px; padding: 0 18px; }
.gw-bar i { width: 13px; height: 13px; border-radius: 50%; background: #ee6a5f; }
.gw-bar i:nth-child(2) { background: #f5bd4f; }
.gw-bar i:nth-child(3) { background: #61c454; }
.gw-main { flex: 1; display: flex; min-height: 0; }
.gw-side { width: 26%; background: var(--side); }
.gw-doc { flex: 1; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.gw-doc span { height: 12px; border-radius: 6px; background: var(--line); width: 72%; }
.gw-doc span:first-child { height: 120px; border-radius: 14px; background: var(--hero); width: auto; }
.gw-doc span:nth-child(3) { width: 54%; }
.gw-doc span:nth-child(4) { width: 64%; }
.gw-doc span:nth-child(5) { width: 38%; }
.gw-a { left: -150px; top: 16vh; width: 720px; height: 480px; --b: #d8e2f2; --o: rgba(34,48,78,0.55); --bar: #7798ce; --side: #becee9; --hero: #97b2e0; --line: #b5c6e6; }
.gw-b { right: -130px; top: -5vh; width: 680px; height: 450px; --b: #f6e4d4; --o: rgba(92,58,36,0.5); --bar: #dc996e; --side: #eeceb4; --hero: #e5b08a; --line: #eac6aa; }
.gw-c { left: 36%; top: 56vh; width: 760px; height: 500px; --b: #d8eae1; --o: rgba(34,74,60,0.5); --bar: #6faf97; --side: #bcdacd; --hero: #92c6b1; --line: #b2d5c6; }

/* ---------- nav ---------- */
.nav { width: calc(100% - 48px); max-width: 1192px; margin: 14px auto 0; padding: 8px 10px 8px 18px; border-radius: 20px; background: rgba(255,255,255,0.36); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7); border: 1px solid rgba(255,255,255,0.72); box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 10px 28px -14px rgba(24,24,26,0.28); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.nav-logo { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #3f3f43; padding: 12px 0; white-space: nowrap; }
.nav-links a:hover { color: #18181a; }
.nav-links .nav-cta { background: #18181a; color: #e9e8e4; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.nav-links .nav-cta:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { max-width: 1100px; margin: 0 auto; padding: 104px 24px 124px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-eyebrow { font-size: 14px; }
.hero h1 { max-width: 1050px; font-size: clamp(40px, 5.7vw, 76px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 36px; padding-top: 10px; }
.hero-bar { flex: none; max-width: 100%; display: inline-flex; align-items: center; gap: 12px; background: #202123; color: #ededf0; border-radius: 14px; padding: 13px 16px; font-size: 15px; white-space: nowrap; box-shadow: 0 24px 50px -24px rgba(24,24,26,0.6); }
.hero-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e8c468; flex: none; }
.hero-bar b { font-weight: 600; letter-spacing: 0.06em; }
.hero-row p { flex: 0 1 520px; text-align: left; font-size: 18px; color: #3f3f43; }

/* ---------- stories ---------- */
.story { max-width: 1240px; margin: 0 auto; padding: 0 24px 96px; scroll-margin-top: 24px; }
.story--code { padding-top: 72px; }
.step h3 { font-size: 34px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.step p { font-size: 17px; color: #3f3f43; }
.step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.lang { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(24,24,26,0.25); background: rgba(255,255,255,0.4); color: #18181a; font-size: 15px; font-weight: 500; transition: background .25s, color .25s; }
.lang.is-on { background: #18181a; color: #f3f2ee; border-color: #18181a; }

/* pinned stage, wide screens */
@media (min-width: 960px) {
  .story { display: flex; align-items: flex-start; gap: 56px; }
  .story--chat { flex-direction: row-reverse; }
  .stage-col { flex: 2 1 560px; min-width: 0; position: sticky; top: max(28px, calc(50vh - var(--stage-h, 660px) / 2)); z-index: 2; }
  .stage-host { zoom: var(--stage-zoom, 1); }
  /* room below the last step, so the pinned stage stays in view while that step is centred */
  .steps { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; padding-bottom: max(0px, calc((var(--stage-h, 660px) - 440px) / 2)); }
  .step { min-height: 440px; justify-content: center; border-left: 2px solid #18181a; padding: 8px 0 8px 28px; transition: opacity .3s, border-color .3s; }
  .step:not(.step--langs) { cursor: pointer; }
  .js .step:not(.is-active) { opacity: 0.4; border-left-color: #cfcdc7; }
  .slot { display: none; }
}

/* stacked, phones and tablets: each step shows its own stage */
@media (max-width: 959.98px) {
  .stage-col { display: none; }
  .steps { display: flex; flex-direction: column; gap: 72px; max-width: 640px; margin: 0 auto; }
  .slot { margin-top: 14px; }
  .slot:empty { display: none; }
  .story { padding-bottom: 72px; }
  .story--code { padding-top: 24px; }
}

/* ---------- stage: shared ---------- */
.stage { position: relative; }
.win-bar i, .term-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
mark { background: transparent; color: inherit; }

/* chat window */
.stage--chat { height: 620px; }
.chat { position: absolute; left: 0; top: 0; bottom: 0; width: min(100%, max(80%, 320px)); background: #1f1e1d; color: #faf9f5; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(24,24,26,0.45); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-size: 13px; color: #c2c0b6; }
.win-bar i { background: #4a4a46; }
.win-bar span { margin: 0 auto; padding-right: 49px; }
.chat-body { flex: 1; min-height: 0; padding: 14px 28px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.6; overflow: hidden; }
.greet { margin: auto 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: 'Source Serif 4', Georgia, serif; font-size: 30px; color: #e8e6dc; text-align: center; }
.greet svg { flex: none; }
.bubble { align-self: flex-end; max-width: 88%; background: #2f2e2b; border-radius: 14px; padding: 11px 15px; animation: cegIn .4s ease; overflow-wrap: anywhere; }
.bubble mark { border-radius: 3px; padding: 1px 2px; transition: background .4s; }
.held-note { align-self: flex-end; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #e8c468; font-weight: 500; }
.held-note i { width: 8px; height: 8px; background: #e8c468; }
.received { align-self: flex-end; max-width: 88%; border-left: 3px solid #4a4a46; padding: 2px 0 2px 12px; font-size: 13px; color: #c2c0b6; animation: cegIn .4s ease; overflow-wrap: anywhere; }
.received b { display: block; font-weight: 600; color: #e8e6dc; padding-bottom: 3px; }
.ph { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: #e8e6dc; }
.dots { display: flex; gap: 5px; padding: 6px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #d97757; animation: cegDot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
.reply { font-family: 'Source Serif 4', Georgia, serif; font-size: 16px; line-height: 1.65; animation: cegIn .5s ease; overflow-wrap: anywhere; }
.reply mark { background: rgba(140,200,160,0.25); border-radius: 3px; padding: 1px 3px; }
.reply .ph { font-size: 12.5px; }
.peek { align-self: flex-start; min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid #4a4a46; background: #30302e; color: #faf9f5; font-size: 13px; font-weight: 500; }
.composer { margin: 0 20px 20px; background: #30302e; border: 1px solid #3e3e3b; border-radius: 16px; padding: 14px 14px 10px 16px; font-size: 15px; line-height: 1.6; box-shadow: 0 4px 20px -8px rgba(20,20,19,0.15); display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.caret { display: inline-block; width: 2px; height: 17px; background: #faf9f5; vertical-align: -3px; margin-left: 1px; animation: cegDot 1s infinite; }
.composer-ph { color: #a6a49b; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-send { width: 32px; height: 32px; border-radius: 8px; background: #d97757; display: flex; align-items: center; justify-content: center; }

/* CEG widget */
.widget { background: #202123; color: #ededf0; border: 1px solid #3b3b40; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -10px rgba(24,24,26,0.45); transition: width .45s cubic-bezier(.2,.8,.2,1); font-family: Inter, system-ui, sans-serif; font-size: 13px; line-height: 1.5; }
.stage--chat .widget { position: absolute; right: 0; bottom: -24px; max-width: 100%; }
.stage--code .widget { position: absolute; left: 24px; top: 454px; max-width: calc(100% - 48px); }
.w-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; white-space: nowrap; }
.w-bar i { flex: none; width: 8px; height: 8px; border-radius: 50%; transition: background .3s; }
.w-bar span { color: #a4a4ae; overflow: hidden; text-overflow: ellipsis; }
.w-bar svg { margin-left: auto; flex: none; transition: transform .3s; }
.w-body { border-top: 1px solid #3b3b40; animation: cegIn .45s ease; }
.w-src { padding: 8px 12px; color: #a4a4ae; font-size: 12px; border-bottom: 1px solid #3b3b40; }
.w-list { padding: 4px 12px 8px; }
.w-level { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #303034; }
.w-level > span:first-child { color: #a4a4ae; font-size: 12px; min-width: 0; }
.seg { display: inline-flex; flex: none; border: 1px solid #3b3b40; border-radius: 8px; overflow: hidden; }
.seg button { min-height: 30px; padding: 4px 10px; border: 0; font-size: 12px; font-weight: 600; }
.find { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #303034; }
.find.last { border-bottom: 0; }
.find .v { min-width: 0; overflow-wrap: anywhere; }
.found { background: rgba(232,196,104,0.25); border-radius: 3px; padding: 1px 4px; }
.cat { color: #a4a4ae; font-size: 12px; }
.chip { font-size: 11px; border-radius: 4px; padding: 2px 6px; flex: none; white-space: nowrap; background: #263f32; color: #a1d8b4; transition: background .3s, color .3s, opacity .18s ease; }
.fa { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.find > span { transition: opacity .18s ease; }
@media (hover: hover) {
  .fr:hover .fa { opacity: 1; pointer-events: auto; }
  .fr:hover > span { opacity: .25; }
}
@media (hover: none) {
  .fr { cursor: pointer; }
}
.fb { min-width: 74px; line-height: 1.15; font-weight: 600; border-radius: 6px; white-space: pre-line; }
.fb.w { border: 1px solid #a1d8b4; color: #a1d8b4; background: #263f32; }
.fb.s { border: 1px solid #f0b0b3; color: #f0b0b3; background: #492e32; }
.w-hint { padding: 8px 0 2px; font-size: 11.5px; color: #a4a4ae; }
.w-draft { padding: 10px 12px 12px; animation: cegIn .4s ease; }
.w-draft-h { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #a4a4ae; padding-bottom: 6px; }
.draft { background: #292a2d; border: 1px solid #3b3b40; border-radius: 8px; padding: 10px 12px; line-height: 1.75; overflow-wrap: anywhere; }
.del { color: #f0b0b3; text-decoration: line-through; }
.ins { color: #a1d8b4; background: #263f32; border-radius: 3px; padding: 1px 3px; }
.w-note { padding-top: 8px; font-size: 12px; color: #a4a4ae; }
.w-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid #3b3b40; background: #292a2d; font-size: 12px; }
.w-foot.end { justify-content: flex-end; }
.pill { padding: 5px 9px; border: 1px solid #3b3b40; border-radius: 7px; background: #292a2d; white-space: nowrap; }
.pill.go { padding: 5px 12px; border-color: transparent; background: #c9d8ee; color: #18233a; font-weight: 600; transition: opacity .3s; }
.push { margin-left: auto; }
.seg2 { display: inline-flex; border: 1px solid #3b3b40; border-radius: 7px; overflow: hidden; background: #292a2d; }
.seg2 span { padding: 5px 9px; transition: background .3s; }
.seg2 span + span { border-left: 1px solid #3b3b40; }
.seg2 .on { background: #c9d8ee; color: #18233a; }
.w-head2 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; border-bottom: 1px solid #3b3b40; font-size: 12px; }
.w-head2 > span:last-child { display: inline-flex; gap: 6px; align-items: center; }
.tag { border: 1px solid #3b3b40; border-radius: 6px; padding: 2px 7px; background: #292a2d; }
.tag.go { border-color: transparent; padding: 2px 8px; background: #c9d8ee; color: #18233a; font-weight: 600; }
.w-rows { padding: 4px 12px 10px; }
.w-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #303034; }
.w-rows div:last-child { border-bottom: 0; }
.w-rows div span:last-child { flex: none; }
.w-call { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.w-call > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.w-call .cmdline { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; background: #292a2d; border: 1px solid #3b3b40; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.w-call .from { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; background: #3a3a40; border-radius: 3px; padding: 1px 4px; overflow-wrap: anywhere; min-width: 0; }
.w-call .to { background: rgba(232,196,104,0.25); border-radius: 3px; padding: 1px 4px; overflow-wrap: anywhere; min-width: 0; }
.w-call strong span { font-weight: 400; }

/* terminal */
.stage--code { height: 710px; }
.term { position: absolute; left: 0; right: 0; top: 0; container-type: inline-size; transition: height .35s cubic-bezier(.2,.8,.2,1); background: #1b1b1d; color: #ededf0; border: 1px solid #33333a; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(24,24,26,0.45); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.7; }
.term-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #26262c; font-size: 12px; color: #a9adb6; }
.term-bar i { background: #33333a; }
.term-bar .name { padding-left: 8px; }
.flag { font-family: inherit; font-size: 12px; padding: 5px 9px; border-radius: 7px; border: 1px dashed #6b6c74; background: transparent; color: #c9ccd3; transition: background .2s, color .2s; }
.flag[aria-pressed="true"] { border: 1px solid #c9d8ee; background: #c9d8ee; color: #18233a; }
.term-hint { margin-left: auto; font-family: Inter, system-ui, sans-serif; font-size: 11.5px; color: #8a8d96; }
.term-body { flex: 1; min-height: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; overflow-wrap: anywhere; }
.term-body .in { animation: cegIn .4s ease; }
.cc { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.cc svg { flex: none; }
.cc b { font-weight: 600; display: block; }
.t-prompt { background: #2c2c30; margin: 0 -18px; padding: 3px 18px; }
.c-dim { color: #a9adb6; }
.c-soft { color: #c9ccd3; }
.c-warn { color: #e8c468; }
.c-ok { color: #7fbf95; }
.c-w { color: #ededf0; }
.ind { padding-left: 18px; }
.gap-t { padding-top: 10px; }
.gap-b { padding-bottom: 10px; }
.t-hl { padding: 0 3px; transition: background .4s; }
.t-held { background: #e8c468; color: #18181a; padding: 0 3px; }
.t-ok { background: rgba(140,200,160,0.3); color: #ededf0; padding: 0 3px; }
.term-input { padding: 0 18px 10px; }
.term-input > div:first-child { border-top: 1px solid #55555e; border-bottom: 1px solid #55555e; padding: 6px 0; }
.term-input > div:last-child { text-align: right; color: #a9adb6; font-size: 11.5px; padding-top: 4px; }
.t-caret { display: inline-block; width: 8px; height: 15px; background: #ededf0; vertical-align: -2px; animation: cegDot 1s infinite; }
.tui-min { flex: none; border-top: 1px solid #87d7ff; padding: 6px 18px 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; font-size: 12px; line-height: 18px; }
.tui { flex: none; padding: 10px 18px 20px; font-size: 12px; line-height: 18px; color: #d0d0d0; }
.tui-frame { position: relative; border: 1px solid #87d7ff; padding: 10px 10px 12px; }
.tui-title, .tui-keys { position: absolute; padding: 0 6px; background: #1b1b1d; color: #87d7ff; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.tui-title { left: 10px; top: -10px; }
.tui-keys { right: 10px; bottom: -10px; max-width: calc(100% - 32px); }
.tui-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.tui-top > span { white-space: nowrap; }
.tui-tabs { display: inline-flex; gap: 8px; }
.tui-tabs span, .tui-mode span span { padding: 0 6px; color: #808080; }
.tui .sel { background: #87d7ff !important; color: #000 !important; }
.tui-mode { color: #808080; }
.tui-main { min-height: 126px; padding-top: 6px; display: flex; flex-direction: column; }
.tl { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 18px; }
.tui-boxes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 12px 0 8px; }
.tui-box { position: relative; border: 1px solid #6c6c6c; padding: 9px 8px 5px; }
.tui-box > span { position: absolute; left: 8px; top: -10px; padding: 0 5px; background: #1b1b1d; }
.tf { display: flex; justify-content: space-between; gap: 8px; padding: 0 4px; }
.tf span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.tf span:last-child { flex: none; }
@container (max-width: 480px) {
  .tui-boxes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .term-hint { margin-left: 0; flex-basis: 100%; }
}

/* stage in the stacked layout: natural height, widget under the window */
@media (max-width: 959.98px) {
  .stage--chat, .stage--code { height: auto; display: flex; flex-direction: column; }
  .chat { position: relative; width: 100%; }
  .chat-body { min-height: 150px; padding: 12px 18px 16px; overflow: visible; }
  .composer { margin: 0 12px 12px; }
  .term { position: relative; height: auto !important; }
  .term-body { overflow: visible; }
  .stage--chat .widget { position: relative; right: auto; bottom: auto; margin: 10px 0 0 auto; }
  .stage--code .widget { position: relative; left: auto; top: auto; margin: 10px auto 0 0; max-width: 100%; }
  .w-call > div { flex-wrap: wrap; }
}

/* ---------- works with ---------- */
.apps { max-width: 1240px; margin: 0 auto; padding: 96px 24px 72px; display: flex; flex-direction: column; gap: 40px; scroll-margin-top: 0; }
.apps h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.app { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.app-win { height: 250px; background: #202123; color: #ededf0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -30px rgba(24,24,26,0.5); }
.app-dots { display: flex; gap: 7px; padding: 14px 16px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b3b40; }
.app-icons { flex: 1; display: flex; align-items: center; justify-content: center; gap: 28px; }
.app-icon { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.app-icon span { width: 84px; height: 84px; border-radius: 21px; background: #303034; display: flex; align-items: center; justify-content: center; }
.app-tabs { display: flex; align-items: flex-end; gap: 4px; padding: 10px 12px 0; font-size: 13px; }
.app-tabs span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: #a4a4ae; }
.app-tabs .on { background: #303034; border-radius: 10px 10px 0 0; color: #ededf0; }
.app-url { background: #303034; padding: 10px 12px; }
.app-url div { background: #202123; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #a4a4ae; }
.app-sites { flex: 1; display: flex; align-items: center; justify-content: center; gap: 22px; }
.app-sites .off { opacity: 0.45; }
.app-cmds { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 24px 16px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; }
.app-cmds > div { display: flex; align-items: center; gap: 14px; }
.app-cmd-icon { width: 44px; height: 44px; border-radius: 11px; background: #303034; display: flex; align-items: center; justify-content: center; flex: none; }
.app-text { display: flex; flex-direction: column; gap: 4px; }
.app-text h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.5; }
.app-text p { color: #5a5a5f; }
.app-text code { font-size: 0.92em; }
.app-os { font-size: 13px; color: #5a5a5f; padding-top: 6px; }

/* ---------- statement ---------- */
.stmt { max-width: 1240px; margin: 0 auto; padding: 72px 24px 120px; }
.stmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.stmt-grid > div { border-top: 2px solid #18181a; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.stmt h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.stmt p { font-size: 17px; color: #3f3f43; }

/* ---------- closing ---------- */
.end { background: #18181a; color: #f3f2ee; position: relative; z-index: 1; }
.end-in { max-width: 1240px; margin: 0 auto; padding: 96px 24px 40px; display: flex; flex-direction: column; gap: 56px; }
.end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.end h2 { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.end h2 svg { height: 1.66em; width: auto; flex: none; }
.end-get { flex: 1 1 420px; max-width: 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.end-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 15px; color: #a4a4ae; }
.end-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 16px; background: #f3f2ee; color: #18181a; }
.end-btn:hover { background: #fff; color: #18181a; }
.cmd { display: flex; align-items: stretch; background: #202123; border: 1px solid #3b3b40; border-radius: 12px; overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: #ededf0; overflow-wrap: anywhere; }
.cmd button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; padding: 0 16px; border: 0; border-left: 1px solid #3b3b40; background: #292a2d; color: #ededf0; font-size: 14px; font-weight: 600; }
.cmd button:hover { background: #303034; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: #c9ccd3; border-top: 1px solid #3b3b40; padding-top: 20px; }
.foot-org { color: #f3f2ee; text-decoration: underline; text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { color: #f3f2ee; padding: 12px 0; }
.foot a:hover { color: #fff; }

/* ---------- smaller screens ---------- */
@media (max-width: 820px) {
  .nav-inpage { display: none; }
  .nav-links { gap: 20px; }
}
@media (max-width: 640px) {
  .nav { width: calc(100% - 24px); margin-top: 10px; padding: 6px 8px 6px 14px; border-radius: 16px; }
  .nav-logo svg:first-child { width: 28px; height: 28px; }
  .nav-logo svg:last-child { width: 55px; height: 20px; }
  .nav-links .nav-cta { padding: 10px 14px; }
  .hero { padding: 56px 20px 72px; gap: 22px; }
  .hero h1 { font-size: clamp(32px, 9.6vw, 44px); line-height: 1.06; }
  .hero-row p { font-size: 17px; }
  .hero-bar { font-size: 14px; gap: 9px; padding: 12px 13px; }
  .story, .apps, .stmt { padding-left: 20px; padding-right: 20px; }
  .story { padding-bottom: 56px; }
  .steps { gap: 60px; }
  .step h3 { font-size: 28px; }
  .step p { font-size: 16px; }
  .greet { font-size: 24px; }
  .chat-body, .composer { font-size: 14px; }
  .term { font-size: 11.5px; }
  .term-body { padding: 14px; }
  .t-prompt { margin: 0 -14px; padding: 3px 14px; }
  .term-input { padding: 0 14px 10px; }
  .tui, .tui-min { padding-left: 14px; padding-right: 14px; }
  .apps { padding-top: 40px; padding-bottom: 48px; gap: 28px; }
  .stmt { padding-top: 40px; padding-bottom: 72px; }
  .stmt-grid { gap: 32px; }
  .end-in { padding: 64px 20px 28px; gap: 40px; }
  .end-get { flex-basis: 100%; }
  .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 380px) {
  .hero-bar .dim { display: none; }
  .nav-links { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
