/* The tBelt Code identity: the --tbelt-* tokens from packages/client/ui-theme design-platform.css
   and the rules in .agents/skills/atmos-ui-stylist. Dark only, one cyan accent, depth from surface steps. */
:root {
  color-scheme: dark;
  --bg-base: #101010;
  --bg-raised: #181818;
  --bg-elevated: #1c1c1c;
  --bg-active: #262626;
  --border-subtle: #232323;
  --border-light: rgba(255, 255, 255, 0.1);
  --text-primary: #f2f2f2;
  --text-secondary: #a8a8a8;
  --text-muted: #8c8c8c;
  --accent-cyan: #3ea6f0;
  --accent-cyan-tint: #12293a;
  --accent-blue: #007acd;
  --accent-green: #0bbe82;
  --accent-red: #e5534b;
  --code-bg: #0f1014;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Google Sans", "Google Sans Text", "Product Sans", Roboto, "Segoe UI", -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", Consolas, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-cyan); }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: 0.875em; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; border-radius: 4px; }
.accent { color: var(--accent-cyan); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; padding: 8px 14px; background: var(--bg-elevated); border-radius: 8px; z-index: 2; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--measure); margin: 0 auto; padding: 20px var(--gutter);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font-size: 17px; font-weight: 500; }
.wordmark img { width: auto; height: 28px; }
.top-link { color: var(--text-secondary); text-decoration: none; font-size: 15px; padding: 12px 4px; }
.top-link:hover { color: var(--text-primary); }

/* Buttons: near-white ink is the primary action, as in the app */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.button-primary { background: var(--text-primary); color: var(--bg-base); }
.button-primary:hover { background: #ffffff; }
.button-primary:active { background: #d9d9d9; }
.button-secondary { background: var(--bg-active); color: var(--text-primary); border: 1px solid var(--border-light); }
.button-secondary:hover { border-color: rgba(255, 255, 255, 0.2); }
.button[aria-disabled="true"] { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-subtle); pointer-events: none; }

/* Hero: copy on the left, a session drawn in the app's own components on the right */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  max-width: var(--measure); margin: 0 auto; padding: clamp(32px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 128px);
}
.hero-logo { width: 72px; height: auto; margin-bottom: 32px; filter: drop-shadow(0 8px 28px rgba(0, 122, 205, 0.4)); }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; max-width: 13ch; }
.lead { margin-top: 24px; max-width: 46ch; color: var(--text-secondary); font-size: clamp(17px, 1.6vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 16px; color: var(--text-muted); font-size: 14px; }

.session {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: 24px;
}
.session-scroll { display: flex; flex-direction: column; gap: 14px; }
.msg-user {
  align-self: flex-end; max-width: 88%; padding: 12px 16px; border-radius: 18px;
  background: var(--bg-elevated); font-size: 15px;
}
.steps { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.steps li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 7px 10px; border-radius: 8px; font-size: 13px;
}
.steps li:nth-child(odd) { background: rgba(255, 255, 255, 0.015); }
.tool { color: var(--accent-cyan); font-family: var(--font-mono); font-size: 12px; }
.steps code { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.result { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.result.ok, .add { color: var(--accent-green); }
.del { color: var(--accent-red); }
.msg-agent { font-size: 15px; color: var(--text-primary); line-height: 1.6; }
.msg-agent code { color: var(--accent-cyan); }
.composer {
  margin-top: 6px; padding: 14px 14px 12px 16px; border-radius: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
}
.composer-placeholder { color: var(--text-muted); font-size: 14px; }
.composer-bar { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--bg-active); color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.send { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: var(--accent-blue); }
.send svg { width: 16px; height: 16px; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The one orchestrated moment: the session plays back once on load */
.is-playing [data-step] { opacity: 0; transform: translateY(6px); }
.is-playing [data-step].is-shown { opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }

/* Features as a list of plain statements */
.features, .download { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.features { padding-top: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.015em; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 88px); margin-top: 40px; }
.feature-list > div { display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.4fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border-subtle); }
.feature-list dt { font-weight: 500; }
.feature-list dd { color: var(--text-secondary); font-size: 15px; }
.screenshot { margin-top: clamp(48px, 7vw, 88px); border-radius: 14px; border: 1px solid var(--border-subtle); }

/* Downloads as rows */
.download { padding-top: clamp(72px, 10vw, 136px); }
.notice { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: var(--accent-cyan-tint); font-size: 15px; }
.platforms { margin-top: 32px; border-bottom: 1px solid var(--border-subtle); }
.platform {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; grid-template-areas: "name version action" "name help help";
  align-items: center; column-gap: 32px; row-gap: 10px; padding: 28px 0; border-top: 1px solid var(--border-subtle);
}
.platform-name { grid-area: name; align-self: start; }
.platform h3 { font-size: 22px; font-weight: 500; }
.platform-name p { margin-top: 4px; color: var(--text-muted); font-size: 14px; max-width: 34ch; }
.platform-version { grid-area: version; color: var(--text-secondary); font-family: var(--font-mono); font-size: 13px; }
.platform .button { grid-area: action; min-width: 190px; }
.platform-help { grid-area: help; color: var(--text-muted); font-size: 14px; }
.platform-help em { font-style: normal; color: var(--text-secondary); }
.platform-help code { color: var(--text-secondary); background: var(--code-bg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.platform.is-current h3::after { content: "Your system"; margin-left: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-cyan-tint); color: var(--accent-cyan); font-size: 12px; font-weight: 400; vertical-align: 4px; }
.requirement { margin-top: 28px; max-width: 70ch; color: var(--text-secondary); font-size: 15px; }

.bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: var(--measure); margin: clamp(80px, 10vw, 136px) auto 0; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 14px;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-list > div { grid-template-columns: 1fr; gap: 6px; }
  .platform { grid-template-columns: 1fr; grid-template-areas: "name" "version" "action" "help"; }
  .platform .button { width: 100%; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .composer-bar .chip:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-playing [data-step] { opacity: 1; transform: none; }
}
