/* Folio landing. Colors from design/icon/folio-icon.svg, motion from Sources/Folio/Motion.swift. */
:root {
  /* space above each section: about 155px on a 1440px screen, 96px on phones */
  --section-gap: clamp(96px, 8vw + 40px, 180px);
  --bg: #E9ECF6;
  --bg-2: #E2E7F4;
  --navy: #1E2A6E;
  --blue: #2A5FD0;
  --sky: #4C97F0;
  --light: #2A5FD0;
  --face: #B0CBF6;
  --pale: #0E1533;
  --muted: #4A5578;
  --line: rgba(30, 42, 110, .12);
  --glass: rgba(255, 255, 255, .55);

  /* FolioMotion tokens, approximated as CSS curves */
  --selection: .30s cubic-bezier(.34, 1.32, .64, 1);
  --panel: .5s cubic-bezier(.32, .72, 0, 1);
  --state: .28s cubic-bezier(.25, .9, .3, 1);
  --content: .16s ease-out;
  --feedback: .12s ease-out;

  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(60vw 40vw at 80% -5%, rgba(76, 151, 240, .14), transparent 70%),
    radial-gradient(50vw 40vw at -10% 30%, rgba(255, 255, 255, .70), transparent 70%),
    linear-gradient(#EEF1F9, var(--bg-2));
  background-repeat: no-repeat;
  color: var(--pale);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--light); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--pale); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
}
/* Tint and blur sit on a layer that runs past the header and fades out, so there is no hard bottom edge. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(233, 236, 246, .78), rgba(233, 236, 246, .5) 60%, rgba(233, 236, 246, 0));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--pale); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.nav-brand img { width: 32px; height: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform var(--feedback), background var(--feedback);
}
.btn:active { transform: scale(.97); }
/* Like macOS app sites (Raycast, Claude): a squared-off button. Flat: no highlight, edge or glow. */
.btn-primary { background: #2f6ee0; color: #fff; box-shadow: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary:hover { background: #3a78e8; }
/* The hero download: a filled Apple mark (Simple Icons, CC0) instead of the stroked arrow. */
.btn:has(svg.apple) { min-height: 56px; padding: 0 30px; gap: 10px; border-radius: 14px; font-size: 18px; font-weight: 600; }
.btn svg.apple { width: 21px; height: 21px; fill: currentColor; stroke: none; margin-top: -4px; }
/* The same download button inside an install step card, a size down to fit the card. */
.steps .btn:has(svg.apple) { min-height: 46px; margin-top: 14px; padding: 0 22px; gap: 8px; border-radius: 12px; font-size: 16px; }
.steps .btn svg.apple { width: 18px; height: 18px; margin-top: -3px; }


/* RisingLetters: each letter rises and fades in, 0.06s stagger. No blur: animating a blur repaints every frame,
   which stutters on computers without a strong GPU. */
[data-rise] .w { display: inline-block; white-space: nowrap; }
[data-rise] .ch { display: inline-block; opacity: 0; transform: translateY(.45em); }
[data-rise].in .ch { animation: letterIn .55s cubic-bezier(.3, 1.2, .5, 1) forwards; animation-delay: calc(var(--i) * .06s); }
@keyframes letterIn { to { opacity: 1; transform: none; } }

.section-title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; margin: 0 0 24px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
  max-width: 1240px; margin: 0 auto; padding: clamp(48px, 9vh, 120px) var(--gutter) 64px;
  min-height: calc(100vh - 60px);
}
.hero-title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; margin: 0 0 24px; }
.hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 32em; margin: 0 0 36px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(100%, 560px); margin-bottom: 0; }
/* One-line install command: the whole chain stays on one line and scrolls sideways when the column is narrower. */
.cmdbar {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 52px; padding: 0 8px 0 18px; border-radius: 12px;
  background: rgba(22, 22, 26, .92); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .4);
}
.cmdbar code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  font: 14px/52px ui-monospace, "SF Mono", Menlo, monospace; color: #ececf0;
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.cmdbar code::-webkit-scrollbar { display: none; }
.cmdbar .pr { color: rgba(235, 235, 245, .45); user-select: none; -webkit-user-select: none; }
.cmdbar .copy { margin-left: 0; width: 36px; height: 36px; border-radius: 8px; }
.cmdbar .copy svg { width: 17px; height: 17px; }

.hero-mark { margin: 0; position: relative; }
.hero-mark::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 203, 246, .45), rgba(76, 151, 240, .08) 55%, transparent 70%);
  filter: blur(40px);
}
.hero-mark svg { position: relative; width: 100%; height: auto; overflow: visible; }
.hero-mark .layer { opacity: 0; transform: translateY(-90px); animation: stackIn .5s cubic-bezier(.32, .72, 0, 1) forwards; animation-delay: calc(.25s + var(--i) * .18s); }
/* Each layer's shadow comes in only after it lands, so the big blurred shadows are not redrawn while it falls. */
.hero-mark .layer > use { filter: drop-shadow(10px 22px 44px rgba(30, 42, 110, .30)); animation: shadowIn .25s ease-out both; animation-delay: calc(.7s + var(--i) * .18s); }
@keyframes shadowIn { from { filter: none; } }
/* the glass face casts no drop shadow: it would show through the glass as a gray cast */
@keyframes stackIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Quiet segmented control (the app's SlidingPicker): a faint track, a light-gray thumb that slides */
.lens-tabs {
  position: relative; display: inline-flex; padding: 3px; border-radius: 10px; max-width: 100%;
  background: rgba(14, 21, 51, .06); border: 1px solid rgba(14, 21, 51, .08);
}
.lens-tabs button {
  position: relative; z-index: 1; flex: none; height: 28px; padding: 0 14px; border: 0; border-radius: 7px; background: none;
  color: rgba(14, 21, 51, .80); font: inherit; font-size: 14.5px; font-weight: 500; line-height: 28px; cursor: pointer; white-space: nowrap;
  transition: color var(--state);
}
.lens-tabs button:hover { color: rgba(14, 21, 51, .90); }
.lens-tabs button[aria-selected="true"] { color: var(--pale); }
.lens {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px;
  /* The app's accent, flat: no glow, so it sits in the track instead of floating above it. */
  background: #2f6ee0; box-shadow: none;
  transition: transform var(--selection), width var(--selection);
}

/* Showcase: the app window (assets/css/app-demo.css); a tab plays its scene */
.showcase {
  max-width: 1240px; margin: 0 auto; padding: var(--section-gap) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.showcase .section-title { text-align: center; margin: 0; font-size: clamp(26px, 3.2vw, 44px); }
.showcase .app-frame { width: min(1180px, 100%); }
.scene-tabs { overflow-x: auto; scrollbar-width: none; flex: none; }
.scene-tabs::-webkit-scrollbar { display: none; }
.caption { min-height: 3.4em; max-width: 40em; margin: 0; text-align: center; color: var(--muted); transition: opacity var(--content); }
.caption strong { color: var(--pale); font-weight: 600; }
.caption.swap { opacity: 0; }


/* Features */
.features, .mcp, .install { max-width: 1240px; margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.card { padding: 32px 28px 36px; background: rgba(255, 255, 255, .62); }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.card h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* MCP */
.mcp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 32em; }
.lead code, .steps code { color: var(--blue); }
.rules { margin: 0; display: grid; gap: 14px; }
.rules div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rules dt { font-weight: 600; }
.rules dd { margin: 0; color: var(--muted); }
.mcp-demo { min-width: 0; display: grid; gap: 20px; justify-items: start; }
/* Both looks share one grid cell, so the panel keeps the taller one's size on either tab. */
.chats { display: grid; width: 100%; }
.chats > .chat { grid-area: 1 / 1; }
.chats > .chat[hidden] { display: flex; visibility: hidden; }
.chat {
  min-height: 460px; min-width: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(14, 21, 51, .06), 0 12px 32px rgba(30, 42, 110, .10), 0 30px 80px rgba(30, 42, 110, .14);
  display: flex; flex-direction: column;
}
.typed:empty::after, .typing .typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Steps hidden until played; .shown reveals them in order */
.chat.js .step { opacity: 0; transform: translateY(8px); transition: opacity var(--state), transform var(--state); }
.chat.js .result { transform: scale(.9); transition: opacity var(--state), transform var(--selection); }
.chat .shown { opacity: 1 !important; transform: none !important; }

/* A neutral AI chat: frosted white glass in the page's own blues, user bubble on the right, plain reply text. */
.chat-claude {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 255, .86)); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); color: var(--pale); font-size: 15px;
}
.cl-thread { flex: 1; padding: 22px 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.cl-me { align-self: flex-end; max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--blue); color: #fff; min-height: 1.6em; }
.cl-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cl-tools li {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 10px;
  background: rgba(42, 95, 208, .05); border: 1px solid rgba(42, 95, 208, .10); font-size: 13.5px; color: var(--muted);
}
.cl-tools code { color: var(--blue); font-size: 12.5px; flex: none; }
.cl-tools span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-tools .ic, .cl-tools .chev { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-tools .chev { margin-left: auto; }
.cl-ai { display: flex; gap: 10px; align-items: flex-start; }
.cl-ai p { margin: 0; line-height: 1.6; }
.spark { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: var(--sky); }
.chat-claude .result {
  display: flex; gap: 12px; align-items: center; margin-left: 0; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(30, 42, 110, .08);
}
.result img { flex: none; border-radius: 9px; }
.result strong { display: block; font-weight: 600; }
.result span { font-size: 13.5px; color: var(--muted); }
.cl-input {
  display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 10px 10px 10px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); color: #8a93ad; box-shadow: 0 2px 10px rgba(30, 42, 110, .06);
}
.cl-input span { flex: 1; }
.cl-input i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); }
.cl-input svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Codex look: a terminal CLI in a light profile. White, mono, muted gray, green check for the saved result. */
.chat-codex {
  background: #fff; border: 1px solid rgba(14, 21, 51, .1); color: #2b2b2b;
  font: 13.5px/1.65 ui-monospace, "SF Mono", Menlo, monospace; padding: 18px 18px 20px; gap: 12px;
}
.chat-codex p { margin: 0; }
.chat-codex code { font: inherit; color: #1f1f1f; }
.cx-banner { align-self: flex-start; max-width: 100%; padding: 8px 14px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 6px; color: #1f1f1f; }
.cx-banner span, .cx-tool, .cx-out { color: #6e6e6e; }
.cx-me { display: flex; gap: 10px; color: #111; min-height: 1.65em; }
.cx-me b { color: #6e6e6e; font-weight: 400; }
.cx-tool { white-space: pre-wrap; padding-left: 1.2em; text-indent: -1.2em; }
.cx-out { padding-left: 1.2em; }
.cx-ai { color: #1f1f1f; }
.cx-done b { color: #1a8f4c; font-weight: 400; margin-right: 6px; }
.cx-done span { display: block; padding-left: 1.6em; color: #6e6e6e; }
.cx-cursor { display: inline-block; width: .6em; height: 1.15em; margin-left: .35em; vertical-align: -.2em; background: rgba(20, 20, 20, .75); animation: caret 1.1s steps(1) infinite; }

/* Install */
.install { text-align: center; }
.install-tabs { margin-bottom: 40px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.steps li { counter-increment: s; padding: 28px 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }
.pane { animation: paneIn .16s ease-out; }
@keyframes paneIn { from { opacity: 0; } }
.req { color: var(--muted); font-size: 15px; margin: 28px 0 0; }

.footer {
  max-width: 1240px; margin: var(--section-gap) auto 0; padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--pale); font-weight: 700; font-size: 16px; text-decoration: none; }
.foot-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; }
.footer a { color: var(--muted); text-decoration: none; transition: color var(--feedback); }
.footer a:hover { color: var(--pale); }
.pop summary { cursor: pointer; list-style: none; transition: color var(--feedback); }
.pop summary::-webkit-details-marker { display: none; }
.pop summary:hover, .pop[open] summary { color: var(--pale); }
.pop-card { list-style: none; font-size: 12.5px; line-height: 1.7; color: rgba(14, 21, 51, .75); }
.foot-privacy { margin: 24px 0 16px; }

/* Narrow screens and reduced motion */
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; }
  .hero-mark { order: -1; width: min(300px, 70%); justify-self: center; }
  .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .mcp { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rules div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 760px) {
  .scene-tabs button { font-size: 14px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-rise] .ch, .hero-mark .layer { opacity: 1; transform: none; filter: none; }
}

/* macOS Terminal window with the three install commands */
.term {
  width: min(100%, 440px); border-radius: 11px; overflow: hidden; text-align: left;
  background: rgba(22, 22, 26, .92); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), 0 22px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.term-bar {
  position: relative; display: flex; align-items: center; height: 30px; padding: 0 6px 0 12px;
  background: linear-gradient(#34343a, #2a2a2f); border-bottom: 1px solid rgba(0, 0, 0, .5);
}
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.term-title {
  position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 150px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: rgba(235, 235, 245, .55);
}
.copy {
  position: relative; margin-left: auto; width: 30px; height: 24px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: rgba(235, 235, 245, .88); cursor: pointer;
  transition: background var(--feedback), color var(--feedback);
}
.copy:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.copy svg { grid-area: 1 / 1; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity var(--feedback), transform var(--feedback); }
.copy .ic-done { opacity: 0; transform: scale(.6); stroke: #32d74b; stroke-width: 1.8; }
.copy.done .ic-copy { opacity: 0; transform: scale(.6); }
.copy.done .ic-done { opacity: 1; transform: none; }
.term-body {
  margin: 0; padding: 14px 16px 16px; overflow-x: auto; scrollbar-width: none;
  font: 13.5px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: #ececf0; white-space: pre;
}
.term-body .pr { color: rgba(235, 235, 245, .45); user-select: none; -webkit-user-select: none; }
.caret { display: inline-block; width: .6em; height: 1.15em; margin-left: .35em; vertical-align: -.2em; background: rgba(236, 236, 240, .8); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.steps .term { width: 100%; margin-top: 12px; }
.steps .term-title { display: none; }

/* Centered hero: the stacked F on top, then the headline, one line of copy, the command and the button. */
.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 8px; min-height: 0; padding-top: clamp(32px, 6vh, 72px); }
.hero-mark { order: -1; width: min(260px, 60vw); }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-sub { margin-inline: auto; }
.hero-actions { width: min(100%, 800px); }
.hero-sub { max-width: 40em; }

/* Terminal colors: a bright prompt like starship, then command, subcommand, arguments and flags in their own colors. */
.term-body .pr, .cmdbar .pr { color: #4c97f0; font-weight: 700; }
.c-cmd { color: #8eb1ee; font-weight: 600; }
.c-sub { color: #ececf0; }
.c-arg { color: #7ee2a0; }
.c-flag { color: #f5c26b; }
.c-op { color: rgba(235, 235, 245, .4); }
/* Smaller headline, bigger mark: the F carries the hero. */
.hero-title { font-size: clamp(34px, 4.4vw, 60px); }
.hero-mark { width: min(360px, 72vw); }
@media (max-width: 760px) { .hero-sub br { display: none; } }

/* Copy button with a turning chromatic metal ring (our own CSS take on a metal ring button).
   --a turns the ring, --mx/--my follow the pointer for a small pressed-in highlight. */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.copy.metal {
  --ring: conic-gradient(from var(--a), #f4f6fb, #8b93a7 12%, #6ee7ff 22%, #a78bfa 32%, #f9a8d4 40%, #fde68a 48%, #e5e7eb 58%, #4b5263 70%, #c7d2fe 82%, #f4f6fb);
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 60%), #1b1b21;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .12), inset 0 -2px 6px rgba(0, 0, 0, .6);
  animation: ringTurn 3.2s linear infinite;
  transition: transform var(--feedback), color var(--feedback);
}
.copy.metal::before, .copy.metal::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--ring); pointer-events: none;
  animation: inherit;
}
/* the 2px ring: the gradient shows only between the outer edge and the padding box */
.copy.metal::before {
  inset: -2px; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
/* soft glow of the same metal behind the button */
.copy.metal::after { inset: -5px; z-index: -1; filter: blur(9px); opacity: .45; }
.copy.metal:hover { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .24), transparent 55%), #1f1f26; color: #fff; }
.copy.metal:active { transform: scale(.93); }
.copy.metal.done::after { opacity: .7; }
.term-bar .copy.metal { width: 24px; height: 24px; margin-right: 4px; }
.term-bar .copy.metal svg { width: 13px; height: 13px; }
@keyframes ringTurn { to { --a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .copy.metal, .copy.metal::before, .copy.metal::after { animation: none; } }
/* With WebGL2, assets/js/metal.js wraps each copy button in the real metal-fx ring and adds .fx. */
.metal-slot, .metal-host { display: inline-flex; flex: none; }
.term-bar .metal-slot { margin-left: auto; }
.copy.metal.fx { animation: none; }
/* The ring is painted under the button, so the button itself must stay see-through or it hides the ring. */
.copy.metal.fx { background: transparent; }
/* Hover light inside the button only; it fades out before the edge so the ring stays clear. */
.copy.metal.fx:hover { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 60%); }
.copy.metal.fx::before, .copy.metal.fx::after { content: none; }
/* A smaller window (the whole app and its caption fit on a 900px-tall screen) under bigger scene tabs. */
.showcase .app-frame { width: min(1000px, 100%); }
.showcase { gap: 24px; }
.scene-tabs { padding: 4px; border-radius: 12px; }
.scene-tabs button { height: 38px; line-height: 38px; padding: 0 22px; font-size: 16px; border-radius: 8px; }
.scene-tabs .lens { top: 4px; bottom: 4px; border-radius: 8px; }
@media (max-width: 760px) { .scene-tabs button { height: 34px; line-height: 34px; padding: 0 14px; font-size: 15px; } }

/* Underline tabs (chosen from the tab bar variants, "UI A"): no box, big labels, a 2px accent bar slides under
   the selected one on a hairline. Same component for the scene tabs and the install tabs. */
.lens-tabs, .scene-tabs { gap: 40px; padding: 0 4px; border: 0; border-radius: 0; background: none; }
.lens-tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(14, 21, 51, .10); }
.lens-tabs button, .scene-tabs button {
  height: auto; line-height: 1.3; padding: 6px 0 16px; border-radius: 0;
  font-size: 20px; font-weight: 600; color: rgba(14, 21, 51, .52); transition: color .2s;
}
.lens-tabs button:hover { color: rgba(14, 21, 51, .80); }
.lens-tabs button[aria-selected="true"] { color: var(--pale); }
.lens, .scene-tabs .lens { top: auto; bottom: 0; height: 2px; border-radius: 2px; background: #2f6ee0; z-index: 2; }
.install-tabs { gap: 32px; }
.install-tabs button { font-size: 17px; }
@media (max-width: 760px) {
  .lens-tabs, .scene-tabs { gap: 20px; }
  .lens-tabs button, .scene-tabs button { height: auto; line-height: 1.3; padding: 6px 0 14px; font-size: 16px; }
}

/* Lineage: one resume keeps versions, each posting branches its own copy. Drawn once on scroll (main.js adds .js, then .in). */
.lineage { max-width: 1240px; margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; text-align: center; }
.lineage .section-title { margin: 0 0 14px; }
.lineage-sub { max-width: 44em; margin: 0 auto 56px; color: rgba(14, 21, 51, .80); font-size: clamp(16px, 1.4vw, 19px); }
.lineage svg { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; overflow: visible; }
.lineage .lineage-tall { display: none; max-width: 340px; }
/* Below 800px the wide tree would shrink its labels under 11px, so switch to the tall one. */
@media (max-width: 800px) {
  .lineage .lineage-wide { display: none; }
  .lineage .lineage-tall { display: block; }
}
.lineage text { fill: rgba(14, 21, 51, .80); font-size: 15px; font-weight: 500; text-anchor: middle; }
.lineage text.side, .lineage text.row, .lineage text.br, .lineage text.cap { text-anchor: start; }
.lineage text.row { fill: var(--pale); font-size: 17px; font-weight: 600; }
.lineage text.br { fill: var(--pale); font-size: 15px; font-weight: 600; }
.lineage text.cap { font-size: 14px; fill: rgba(14, 21, 51, .65); }
.lineage .ln { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.lineage .ln.main { stroke: var(--blue); }
.lineage stop { stop-color: var(--blue); }
.lineage .ln.dg { stroke: #ff6f0f; }
.lineage .ln.wt { stroke: #00b852; }
.lineage .nd.main circle { fill: var(--blue); }
.lineage .nd.dg circle { fill: #ff6f0f; }
.lineage .nd.wt circle { fill: #00b852; }
.lineage .nd { transform-box: fill-box; transform-origin: center; }
.lineage.js .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lineage.js .nd { opacity: 0; transform: scale(.6); }
.lineage.js .fd { opacity: 0; }
.lineage.js.in .ln { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t, .7s) cubic-bezier(.32, .72, 0, 1) var(--d, 0s); }
.lineage.js.in .nd { opacity: 1; transform: none; transition: opacity .3s ease-out var(--d), transform .45s cubic-bezier(.34, 1.32, .64, 1) var(--d); }
.lineage.js.in .fd { opacity: 1; transition: opacity .35s ease-out var(--d); }
.lineage text.side-l { text-anchor: end; }

/* Lineage: "제출 완료" badges at the branch ends, light flowing along the lines, a breathing newest version */
.lineage .badge rect { stroke-width: 1.2; }
.lineage .badge text { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.lineage .badge.dg rect { fill: #e8650a; stroke: #e8650a; }
.lineage .badge.dg text { fill: #fff; stroke: none; }
.lineage .badge.dg path { stroke: #fff; }
.lineage .badge.wt rect { fill: #12a150; stroke: #12a150; }
.lineage .badge.wt text { fill: #fff; stroke: none; }
.lineage .badge.wt path { stroke: #fff; }
.lineage .badge text { stroke: none; }
.lineage .badge path { fill: none; }
.lineage .flow.main { fill: #fff; }
.lineage .flow.dg { fill: #ffb27a; }
.lineage .flow.wt { fill: #7dffb4; }
/* On the pale page a pale dot vanishes: a white bead ringed in its line's color. */
.lineage .flow { stroke-width: 2; r: 4.5px; }
.lineage .flow.main { stroke: var(--blue); }
.lineage .flow.dg { fill: #fff; stroke: #e8650a; }
.lineage .flow.wt { fill: #fff; stroke: #12a150; }
.lineage .ping { fill: none; stroke: var(--blue); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.lineage.flowing .ping { animation: ping 2.4s cubic-bezier(.32, .72, 0, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lineage .flow { display: none; } .lineage .ping { animation: none; } }
.lineage text.cap-l { text-anchor: end; }

/* The scene caption sits right under the tabs, one short line. */
.showcase .caption { min-height: 1.6em; margin: -8px 0 4px; font-size: 16px; }
/* A short footnote line under a scene caption (e.g. HTML-only diff); the space is kept so the window does not jump. */
.showcase .caption { min-height: 3.1em; }
.cap-note { display: block; margin-top: 4px; font-size: 13px; color: rgba(14, 21, 51, .62); }
/* the pile of "final" files the lineage section starts from */
.lineage-sub .fname { display: inline-block; margin: 2px 2px; padding: 1px 8px; border-radius: 6px; font: 14px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: rgba(14, 21, 51, .90); background: rgba(14, 21, 51, .06); border: 1px solid rgba(14, 21, 51, .08); text-decoration: line-through; text-decoration-color: #e5484d; text-decoration-thickness: 1.5px; }
@media (max-width: 760px) { .lineage-sub br { display: none; } }
.features .section-title, #mcp-title { font-size: clamp(26px, 3.4vw, 44px); }
/* Feature card icons: bare line icons, no tile. */
.card-ic { display: block; margin-bottom: 18px; }
.card-ic svg { width: 30px; height: 30px; margin: 0; stroke: var(--blue); stroke-width: 1.6; }
.mcp-note { margin: -12px 0 20px; font-size: 14px; color: rgba(14, 21, 51, .65); }
/* A small, quiet download button that sits in a step card like the other cards' text, not a hero CTA. */
.steps .btn-quiet { min-height: 36px; padding: 0 14px; margin-top: 14px; font-size: 14px; border-radius: 9px; gap: 6px;
  color: var(--blue); background: rgba(47, 110, 224, .10); border: 1px solid rgba(42, 95, 208, .28); }
.steps .btn-quiet:hover { background: rgba(47, 110, 224, .18); color: var(--blue); }
.steps .btn-quiet svg { width: 14px; height: 14px; }
/* The result card hugs the left like the reply it belongs to, so it never reads as the user's message. */
.chat-claude .result { width: fit-content; max-width: 100%; align-self: flex-start; padding-right: 22px; }

/* Header download button: hidden while the hero's install button is on screen, then fades in. */
.nav-cta { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; gap: 6px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--state), transform var(--state); }
.nav-cta svg { width: 14px; height: 14px; }
.nav.cta-on .nav-cta { opacity: 1; transform: none; pointer-events: auto; }
.foot-top { align-items: flex-start; }
/* Open-source notice opens as a small popover above its link, so the link row never re-wraps. */
.pop { position: relative; }
.pop-card { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5; margin: 0;
  width: max-content; max-width: min(30em, calc(100vw - 32px)); padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(30, 42, 110, .16); }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 15em; }
.rel-list li { display: flex; justify-content: space-between; gap: 24px; }
.rel-list b { color: var(--pale); font-weight: 600; }
.pop-card > a { color: var(--blue); }
.foot-privacy { margin: 24px 0 10px; }
.foot-contact { margin: 0 0 24px; }
.foot-contact a { color: var(--pale); margin-left: 6px; }
.foot-copy { margin: 0; font-size: 13px; color: rgba(14, 21, 51, .65); }

/* Footer: brand, privacy and copyright on the left; contact, releases and notices stacked on the right. */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.foot-main .foot-privacy { margin: 16px 0 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; justify-items: start; }
.foot-links li { margin: 0; }
.foot-links .mail { color: var(--pale); margin-left: 6px; }
@media (max-width: 760px) { .foot-links .pop-card { left: 0; right: auto; } }

/* "Copied" note: above the hero copy button, left of the button inside the terminal title bar. */
.cmdbar { position: relative; }
.copy-tip {
  position: absolute; z-index: 6; pointer-events: none; white-space: nowrap;
  padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: #fff;
  background: #2b2b31; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity var(--state), transform var(--state);
}
.cmdbar .copy-tip { right: 0; bottom: calc(100% + 10px); transform: translateY(4px); }
.term-bar .copy-tip { right: 40px; top: 50%; padding: 2px 8px; font-size: 12px; transform: translate(4px, -50%); }
.cmdbar .copy-tip.on { opacity: 1; transform: none; }
.term-bar .copy-tip.on { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .copy-tip { transition: none; } }

/* Header: FAQ always on the right; the download button fades in to its left once the hero's button is gone. */
.nav-end { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; transition: color var(--feedback); }
.nav-link:hover { color: var(--pale); }
/* Light and dark switch: a pill whose knob slides across; on it the sun's rays fold away and a bite turns it into a moon. */
.theme-toggle {
  position: relative; flex: none; width: 56px; height: 30px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(30, 42, 110, .12); box-shadow: inset 0 0 0 1px rgba(30, 42, 110, .10), inset 0 1px 2px rgba(14, 21, 51, .08);
  transition: background .35s ease-out, box-shadow .35s ease-out;
}
.theme-toggle:hover { background: rgba(30, 42, 110, .18); }
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #f5a524; box-shadow: 0 1px 3px rgba(14, 21, 51, .25), 0 2px 8px rgba(14, 21, 51, .10);
  transition: transform .45s cubic-bezier(.34, 1.32, .64, 1), background .35s ease-out, color .35s ease-out;
}
.theme-toggle:active .tt-knob { width: 28px; }
.tt-side { position: absolute; top: 8px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; color: var(--muted); opacity: .7; transition: opacity .3s ease-out, color .3s ease-out; }
.tt-sun { left: 8px; }
.tt-moon { right: 8px; }
:root[data-theme="dark"] .tt-side { color: #fff; opacity: .75; }
.tt-knob svg { width: 16px; height: 16px; overflow: visible; }
.tt-core { fill: currentColor; transition: r .5s cubic-bezier(.34, 1.32, .64, 1); }
.tt-bite { transition: cx .5s cubic-bezier(.32, .72, 0, 1), cy .5s cubic-bezier(.32, .72, 0, 1); }
.tt-rays { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-origin: 12px 12px;
  transition: transform .5s cubic-bezier(.34, 1.32, .64, 1), opacity .3s ease-out; }
:root[data-theme="dark"] .theme-toggle { background: #2A5FD0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 2px rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .theme-toggle:hover { background: #3a6ee0; }
:root[data-theme="dark"] .tt-knob { transform: translateX(26px); background: #0E1533; color: #dbe7ff; }
:root[data-theme="dark"] .theme-toggle:active .tt-knob { transform: translateX(22px); }
:root[data-theme="dark"] .tt-core { r: 8.5px; }
:root[data-theme="dark"] .tt-bite { cx: 16.5px; cy: 7px; }
:root[data-theme="dark"] .tt-rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
/* The new theme spreads out from the toggle as a circle (main.js); no cross-fade under it. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .theme-toggle, .theme-toggle * { transition: none !important; } }

/* FAQ: one line per question; the answer opens under it. */
.faq { max-width: 1240px; margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.faq .section-title { text-align: center; font-size: clamp(26px, 3.4vw, 44px); margin-bottom: 40px; }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px;
  font-size: 18px; font-weight: 600; color: var(--pale); cursor: pointer; list-style: none; transition: color var(--feedback);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--state); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 4px 24px; color: rgba(14, 21, 51, .90); font-size: 16px; line-height: 1.75; }
.faq-item[open] .faq-a { animation: faqIn var(--state) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
.faq-a p { margin: 0 0 12px; }
.faq-a ul, .faq-a ol { margin: 0 0 12px; padding-left: 1.3em; }
.faq-a li { margin: 0 0 8px; }
.faq-a code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 14px; color: var(--pale); background: rgba(14, 21, 51, .06); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.faq-a .faq-note { font-size: 14px; color: var(--muted); margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-a { animation: none; } }

/* Dark theme: the look the page first shipped with, restored over the light defaults. Generated from the
   deployed dark CSS (only the declarations that differ); hand-tuned parts follow. */
:root[data-theme="dark"] { --bg: #05070F; --bg-2: #0A0F22; --light: #8EB1EE; --pale: #EEF1F9; --muted: #8C97B8; --line: rgba(142, 177, 238, .16); --glass: rgba(30, 42, 110, .22); color-scheme: dark; }
:root[data-theme="dark"] body { background: radial-gradient(60vw 40vw at 80% -5%, rgba(42, 95, 208, .28), transparent 70%), radial-gradient(50vw 40vw at -10% 30%, rgba(30, 42, 110, .35), transparent 70%), var(--bg); }
:root[data-theme="dark"] .nav::before { background: linear-gradient(rgba(5, 7, 15, .72), rgba(5, 7, 15, .45) 60%, rgba(5, 7, 15, 0)); }
:root[data-theme="dark"] .hero-mark::before { background: radial-gradient(circle, rgba(76, 151, 240, .45), rgba(42, 95, 208, .1) 55%, transparent 70%); }
:root[data-theme="dark"] .hero-mark .layer > use { filter: drop-shadow(10px 22px 22px rgba(0, 0, 0, .45)); }
:root[data-theme="dark"] .lens-tabs button:hover { color: rgba(235, 235, 245, .6); }
:root[data-theme="dark"] .lens-tabs button[aria-selected="true"] { color: #eef1f9; }
:root[data-theme="dark"] .card { background: rgba(8, 12, 28, .92); }
:root[data-theme="dark"] .lead code, :root[data-theme="dark"] .steps code { color: var(--face); }
:root[data-theme="dark"] .cx-banner { border: 1px solid rgba(255, 255, 255, .22); color: #e6e6e6; }
:root[data-theme="dark"] .cx-banner span, :root[data-theme="dark"] .cx-tool, :root[data-theme="dark"] .cx-out { color: #8b8b8b; }
:root[data-theme="dark"] .cx-me { color: #f0f0f0; }
:root[data-theme="dark"] .cx-me b { color: #8b8b8b; }
:root[data-theme="dark"] .cx-ai { color: #e6e6e6; }
:root[data-theme="dark"] .cx-done b { color: #4ec27a; }
:root[data-theme="dark"] .cx-done span { color: #8b8b8b; }
:root[data-theme="dark"] .cx-cursor { background: rgba(230, 230, 230, .8); }
:root[data-theme="dark"] .pop-card { color: rgba(235, 235, 245, .55); background: #0b1020; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .lens-tabs::after { background: rgba(255, 255, 255, .10); }
:root[data-theme="dark"] .lens-tabs button, :root[data-theme="dark"] .scene-tabs button { color: rgba(235, 235, 245, .32); }
:root[data-theme="dark"] .lineage-sub { color: rgba(235, 235, 245, .6); }
:root[data-theme="dark"] .lineage text { fill: rgba(235, 235, 245, .6); }
:root[data-theme="dark"] .lineage text.row { fill: #eef1f9; }
:root[data-theme="dark"] .lineage text.br { fill: #eef1f9; }
:root[data-theme="dark"] .lineage text.cap { fill: rgba(235, 235, 245, .45); }
:root[data-theme="dark"] .lineage .ln.main { stroke: #8EB1EE; }
:root[data-theme="dark"] .lineage stop { stop-color: #8EB1EE; }
:root[data-theme="dark"] .lineage .ln.wt { stroke: #00dc64; }
:root[data-theme="dark"] .lineage .nd.main circle { fill: #8EB1EE; }
:root[data-theme="dark"] .lineage .nd.wt circle { fill: #00dc64; }
:root[data-theme="dark"] .lineage .badge.dg text { fill: #ffa060; }
:root[data-theme="dark"] .lineage .badge.wt text { fill: #4fe896; }
:root[data-theme="dark"] .lineage .badge.dg rect { fill: rgba(255, 111, 15, .14); stroke: rgba(255, 138, 61, .7); }
:root[data-theme="dark"] .lineage .badge.dg path { stroke: #ff8a3d; }
:root[data-theme="dark"] .lineage .badge.wt rect { fill: rgba(0, 220, 100, .12); stroke: rgba(34, 224, 122, .65); }
:root[data-theme="dark"] .lineage .badge.wt path { stroke: #22e07a; }
:root[data-theme="dark"] .lineage .flow.main { fill: #dbe7ff; }
:root[data-theme="dark"] .lineage .flow { stroke: none; r: 3px; }
:root[data-theme="dark"] .lineage .flow.main { r: 3.5px; }
:root[data-theme="dark"] .lineage .flow.dg { fill: #ffb27a; }
:root[data-theme="dark"] .lineage .flow.wt { fill: #7dffb4; }
:root[data-theme="dark"] .lineage .ping { stroke: #8EB1EE; }
:root[data-theme="dark"] .cap-note { color: rgba(235, 235, 245, .42); }
:root[data-theme="dark"] .lineage-sub .fname { color: rgba(235, 235, 245, .7); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); text-decoration-color: #ff6b6b; }
:root[data-theme="dark"] .card-ic svg { stroke: #b0cbf6; }
:root[data-theme="dark"] .mcp-note { color: rgba(235, 235, 245, .45); }
:root[data-theme="dark"] .pop-card > a { color: #8eb1ee; }
:root[data-theme="dark"] .foot-copy { color: rgba(235, 235, 245, .45); }
:root[data-theme="dark"] .faq-item summary:hover { color: #fff; }
:root[data-theme="dark"] .faq-a { color: rgba(235, 235, 245, .72); }
:root[data-theme="dark"] .faq-a code { background: rgba(255, 255, 255, .06); }
/* Hand-tuned for dark: the AI chat in the same design as light, as dark glass. */
:root[data-theme="dark"] .chat { box-shadow: 0 0 0 1px rgba(142, 177, 238, .10), 0 30px 80px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .chat-claude { background: linear-gradient(180deg, rgba(22, 28, 52, .92), rgba(12, 16, 33, .92)); border-color: rgba(142, 177, 238, .14); }
:root[data-theme="dark"] .cl-tools li { background: rgba(142, 177, 238, .06); border-color: rgba(142, 177, 238, .12); }
:root[data-theme="dark"] .cl-tools code { color: var(--light); }
:root[data-theme="dark"] .chat-claude .result { background: rgba(255, 255, 255, .04); border-color: var(--line); box-shadow: none; }
:root[data-theme="dark"] .cl-input { background: rgba(255, 255, 255, .04); border-color: var(--line); color: #6f7896; box-shadow: none; }
:root[data-theme="dark"] .app { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .25) inset; }
