/* =========================================================
   Helmrig Landing — styles
   Themes are applied by app.js setting custom properties on :root.
   ========================================================= */

:root {
  /* Marketing palette — light mode (Apple WWDC). Theme-independent. */
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface2: #f5f5f7;
  --surface3: #ebebed;
  --surface-chrome: #f5f5f7;
  --surface-accent: #e6f0ff;
  --surface-highlight: #f5f5f7;
  --chat-bg: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #4d4d52;
  --text-tertiary: #6e6e73;
  --text-disabled: #a1a1a6;
  --accent: #db2777;
  --accent-soft: #f472b6;
  --accent-muted: rgba(219, 39, 119, 0.10);
  --accent2: #1f2430;
  --accent-text: #ffffff;
  --link: #db2777;
  --warning: #ff9500;
  --success: #34c759;
  --error: #ff3b30;
  --border: #d2d2d7;
  --border-subtle: #ebebed;
  --shadow: rgba(0, 0, 0, 0.10);
  --glow: rgba(244, 114, 182, 0.14);
  --selection-bg: #fbcfe8;
  --bubble-user: #db2777;
  --bubble-user-text: #ffffff;

  --syn-keyword: #ffad66;
  --syn-string: #d5ff80;
  --syn-number: #dfbfff;
  --syn-type: #73d0ff;
  --syn-function: #ffd173;
  --syn-variable: #cbccc6;
  --syn-attribute: #ffd173;
  --syn-tag: #5ccfe6;
  --syn-comment: #7a838f;
  --syn-operator: #f29e74;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;

  --max-w: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 260ms ease, color 260ms ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--selection-bg); color: var(--text); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

code, kbd, pre { font-family: var(--font-mono); }

/* ========== Layout primitives ========== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section + .section { border-top: 1px solid var(--border-subtle); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
h3 { font-size: 18px; }

p { color: var(--text-secondary); max-width: 62ch; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--text-secondary); max-width: 56ch; }

/* ========== Nav ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 260ms ease, border-color 260ms ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand .dot { color: var(--accent); }

.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-picker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-right: 4px;
}
.theme-dots {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}
.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: var(--swatch, #888);
  transition: transform 160ms ease, border-color 160ms ease;
  position: relative;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}
.theme-dot::after {
  content: attr(data-name);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
.theme-dot:hover::after { opacity: 1; }

/* ========== Hero ========== */
.hero {
  padding-block: clamp(72px, 11vw, 130px);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 14ch;
  color: var(--text);
}

.glitch {
  position: relative;
  display: inline-block;
  color: var(--text);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch::before {
  color: var(--error);
  transform: translateX(-1px);
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  animation: glitch-top 4s steps(2, end) infinite;
  opacity: 0.55;
}
.glitch::after {
  color: var(--accent2);
  transform: translateX(1px);
  mix-blend-mode: screen;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
  animation: glitch-bottom 4s steps(2, end) infinite;
  opacity: 0.55;
}
@keyframes glitch-top {
  0%, 92%, 100% { transform: translate(0,0); }
  93% { transform: translate(-3px, -1px); }
  96% { transform: translate(2px, 1px); }
}
@keyframes glitch-bottom {
  0%, 92%, 100% { transform: translate(0,0); }
  94% { transform: translate(3px, 1px); }
  97% { transform: translate(-2px, -1px); }
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 60ch;
}
.hero-sub .caret { color: var(--accent); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, transform 80ms ease;
}
.btn:hover { background: var(--surface2); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn .chip { font-size: 11px; letter-spacing: 0.08em; opacity: 0.7; }
.btn .copy-icon { opacity: 0.6; }

/* ========== Section: terminal demo ========== */
.terminal-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .terminal-demo { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}

.term-copy h2 { margin-bottom: 14px; }
.term-copy ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.term-copy li { color: var(--text-secondary); display: flex; gap: 10px; }
.term-copy li::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}

/* Window chrome — reused for terminal + code-file mockups */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px var(--shadow);
  font-family: var(--font-mono);
}
.window-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-chrome);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
}
.window-chrome .traffic {
  display: flex; gap: 6px;
}
.window-chrome .traffic span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--surface3);
}
.window-chrome .title {
  flex: 1; text-align: center; font-size: 11px; letter-spacing: 0.08em;
}

.terminal-body {
  padding: 18px 20px;
  min-height: 260px;
  font-size: 13.5px;
  line-height: 1.55;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--success); }
.term-at { color: var(--accent2); }
.term-path { color: var(--link); }
.term-cmd { color: var(--text); }
.term-out { color: var(--text-secondary); }
.term-accent { color: var(--accent); }
.term-warn { color: var(--warning); }
.term-err { color: var(--error); }
.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ========== Phones grid ========== */
.phones-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.phones-head p { margin: 0; }

.phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.phone-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.phone-caption {
  text-align: center;
  max-width: 32ch;
}
.phone-caption h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.phone-caption p { color: var(--text-secondary); font-size: 14px; margin: 0 auto; }

.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 0 0 2px var(--surface3) inset,
    0 40px 80px -30px var(--shadow),
    0 0 0 8px color-mix(in srgb, var(--bg) 60%, #000);
  position: relative;
  transition: transform 300ms ease;
}
.phone:hover { transform: translateY(-4px); }
.phone::before {
  /* dynamic island */
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 14px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}
.phone-status .signal { display: inline-flex; gap: 2px; }
.phone-status .signal i { display: inline-block; width: 3px; background: var(--text); border-radius: 1px; }
.phone-status .signal i:nth-child(1) { height: 4px; }
.phone-status .signal i:nth-child(2) { height: 6px; }
.phone-status .signal i:nth-child(3) { height: 8px; }
.phone-status .signal i:nth-child(4) { height: 10px; }
.phone-status .battery {
  width: 22px; height: 10px; border: 1px solid var(--text); border-radius: 2px;
  position: relative; padding: 1px;
}
.phone-status .battery::after {
  content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px;
  background: var(--text); border-radius: 0 1px 1px 0;
}
.phone-status .battery span {
  display: block; height: 100%; background: var(--success); border-radius: 1px; width: 78%;
}


/* ========== How it works diagram ========== */
.how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .how { grid-template-columns: 1fr auto 1fr auto 1fr; }
}

.how-node {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  text-align: center;
}
.how-node .how-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
}
.how-node .how-ico .ic { width: 20px; height: 20px; stroke-width: 1.8; }
.how-node .how-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.how-node .how-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.how-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  min-width: 0;
  color: var(--text-tertiary);
}
.how-wire-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.how-wire-svg {
  width: 100%;
  min-width: 80px;
  height: 8px;
  color: var(--accent);
  display: block;
}
@media (max-width: 719px) {
  .how-wire-svg { transform: rotate(90deg); height: 24px; width: 24px; min-width: 0; }
}
.how-foot {
  margin-top: 36px;
  max-width: 60ch;
  font-size: 14px;
}
.how-foot code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ========== Themes gallery ========== */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.theme-card {
  background: var(--swatch-bg, var(--surface));
  border: 1px solid var(--swatch-border, var(--border-subtle));
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 160ms ease, border-color 160ms ease;
  color: var(--swatch-text, var(--text));
}
.theme-card:hover { transform: translateY(-2px); border-color: var(--swatch-accent, var(--accent)); }
.theme-card.current { border-color: var(--swatch-accent); box-shadow: 0 0 0 1px var(--swatch-accent); }
.theme-card .tc-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--swatch-text);
  letter-spacing: 0.04em;
}
.theme-card .tc-swatches { display: flex; gap: 6px; }
.theme-card .tc-swatch { width: 18px; height: 18px; border-radius: 4px; }
.theme-card .tc-code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--swatch-surface);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  color: var(--swatch-text);
}
.theme-card .tc-code .k { color: var(--swatch-kw); }
.theme-card .tc-code .s { color: var(--swatch-str); }
.theme-card .tc-code .c { color: var(--swatch-cm); font-style: italic; }

/* ========== CTA / Footer ========== */
.cta {
  text-align: center;
  padding-block: clamp(80px, 12vw, 140px);
}
.cta h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.cta-commands {
  margin-top: 28px;
  display: inline-grid;
  gap: 10px;
  text-align: left;
}
.cta-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  min-width: min(420px, 90vw);
}
.cta-cmd .prompt { color: var(--accent); }
.cta-cmd .txt { color: var(--text); flex: 1; }
.cta-cmd .copy-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 160ms ease, border-color 160ms ease;
}
.cta-cmd .copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.cta-cmd .copy-btn.ok { color: var(--success); border-color: var(--success); }

footer {
  padding: 40px 0 60px;
  text-align: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border-subtle);
}

/* =========================================================
   Phone mockups — mirror the real Helmrig mobile app.
   Names line up with component filenames where practical.
   ========================================================= */

/* Feather icons */
.ic {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ic.accent { color: var(--accent); }
.ic.success { color: var(--success); }

/* Generic phone-body (shared between mockups) */
.phone-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* -------------------- HOME screen -------------------- */
.ph-home {
  padding: 12px 12px 0;
  gap: 14px;
  background: var(--bg);
  position: relative;
}
.ph-home::before {
  /* soft vertical gradient on top, as in app's LinearGradient */
  content: '';
  position: absolute;
  inset: 0 0 50% 0;
  background: radial-gradient(ellipse 220px 140px at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
}
.ph-hero {
  text-align: center;
  padding: 18px 0 4px;
  position: relative;
}
.ph-hero-title {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 4px;
}
.ph-hero-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.ph-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

/* Device rows (home) — surface2 card, mono name + comment sub */
.row-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
}
.row-device .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.device-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev { color: var(--text-secondary); width: 12px; height: 12px; }
.chev.accent { color: var(--accent); }

.grow { flex: 1; min-width: 0; }

/* Dashed add buttons ("scan QR" / "add manually") */
.ph-add-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.btn-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  background: transparent;
}
.btn-add .ic { color: var(--accent); width: 12px; height: 12px; }

/* Home footer links */
.ph-foot {
  margin-top: auto;
  padding: 14px 0 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}
.ph-foot .sep { color: var(--border-subtle); }
.ph-foot .muted { color: var(--border-subtle); }

/* -------------------- App header (back + segments) -------------------- */
.app-header {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.app-back {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  padding: 0;
  cursor: default;
}
.app-back .ic { width: 16px; height: 16px; stroke-width: 2.25; }
.app-segments {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.seg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.seg-ic {
  width: 13px;
  height: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.seg-ic.success { color: var(--success); }
.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}
.seg-label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-label.mono { font-family: var(--font-mono); font-size: 11.5px; }

/* -------------------- PROJECTS screen -------------------- */
.pb-list {
  padding: 6px 6px 6px;
  gap: 2px;
  overflow: hidden;
}
.row-project {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
}
.row-project.top {
  background: var(--surface2);
}
.row-project .folder-ic {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.row-project.top .folder-ic { color: var(--accent); }
.project-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-project.top .project-name {
  color: var(--accent);
  font-weight: 600;
}
.project-path {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------- Workspace tabs -------------------- */
.ws-tabs {
  display: flex;
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.ws-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 0;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  background: transparent;
  cursor: default;
}
.ws-tab .ic { width: 11px; height: 11px; }
.ws-tab.active {
  color: var(--accent);
  background: var(--accent-muted);
  font-weight: 600;
}
.ws-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% / 3);
  padding: 0 14%;
  box-sizing: border-box;
  pointer-events: none;
}
.ws-indicator::before {
  content: '';
  display: block;
  height: 2.5px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 6px var(--accent);
}
.ws-indicator[data-index="1"] { transform: translateX(100%); }
.ws-indicator[data-index="2"] { transform: translateX(200%); }

/* -------------------- Workspace body (Activity tab) -------------------- */
.ws-body {
  overflow: hidden;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.ws-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 6px;
}
.ws-divider::before {
  content: '';
  width: 8px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.ws-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ws-divider span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.row-activity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin: 0 6px;
  border-radius: var(--radius-sm);
  position: relative;
}
.row-activity.pinned {
  background: var(--surface-highlight);
  margin: 2px 6px;
}
.ar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ar-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.ar-time {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.ar-time.exited { color: var(--text-tertiary); opacity: 0.7; }
.ar-bookmark {
  width: 12px;
  height: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.ar-preview {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.ar-preview.thinking { color: var(--accent); }
.ar-preview code {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--text);
  font-size: 10.5px;
}

/* Avatars */
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
}
.avatar.av-sm { width: 18px; height: 18px; font-size: 10px; }
.av-claude { background: #D97757; color: #ffffff; }
.av-codex { background: #111111; color: #ffffff; }
.av-gemini { background: #1A73E8; color: #ffffff; }
.av-icon {
  background: var(--surface2);
  color: var(--text-secondary);
}
.av-icon .ic { width: 12px; height: 12px; }
.av-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--bg);
  animation: av-pulse 1.4s ease-in-out infinite;
}
@keyframes av-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* FAB */
.ws-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -6px var(--shadow);
  z-index: 3;
}
.ws-fab .ic { width: 18px; height: 18px; stroke-width: 2.4; color: var(--accent-text); }

/* -------------------- Command bar (workspace bottom) -------------------- */
.cmd-bar {
  display: flex;
  gap: 2px;
  padding: 6px 6px 10px;
  background: var(--surface2);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.cmd-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: default;
  min-width: 0;
}
.cmd-btn .ic { width: 12px; height: 12px; color: var(--text-secondary); }
.cmd-btn.cmd-proj {
  flex: 1.3;
  color: var(--accent);
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.cmd-btn.cmd-proj .ic { color: var(--accent); }
.cmd-btn.cmd-proj span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.cmd-lines {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.1;
  min-width: 0;
}
.cmd-branch {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.cmd-stats {
  font-family: var(--font-mono);
  font-size: 9.5px;
  display: inline-flex;
  gap: 4px;
}
.cmd-stats .add { color: var(--success); }
.cmd-stats .warn { color: var(--warning); }

/* -------------------- Chat screen -------------------- */
.chat-body {
  padding: 0;
  background: var(--bg);
}
.chat-scroll {
  flex: 1;
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.chat-bub {
  padding: 9px 12px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  max-width: 82%;
}
.chat-bub code {
  font-family: var(--font-mono);
  background: var(--surface2);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10.5px;
}
.chat-bub.me {
  align-self: flex-end;
  background: var(--bubble-user);
  color: var(--bubble-user-text);
  border-bottom-right-radius: 4px;
}
.chat-bub.ai {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

/* Tool invocation pill inside chat */
.tool-pill {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.tool-pill .ic { width: 13px; height: 13px; }
.tool-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.tool-body {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.tool-body .add { color: var(--success); }
.tool-body .del { color: var(--error); }

/* Chat composer */
.chat-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.chat-composer > .ic {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}
.composer-field {
  flex: 1;
  padding: 7px 12px;
  background: var(--surface2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.composer-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.composer-send .ic { width: 13px; height: 13px; color: var(--accent-text); stroke-width: 2.4; }

/* ========== Misc ========== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   TestFlight signup form
   ========================================================= */
.signup {
  margin-top: 28px;
  max-width: 520px;
}
.cta .signup-cta {
  margin-inline: auto;
  margin-top: 36px;
  text-align: left;
}

.signup-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 6px 6px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.signup-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.signup[data-state="error"] .signup-row {
  border-color: var(--error);
}

.signup-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-tertiary);
}
.signup-icon .ic {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.signup-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 4px;
  caret-color: var(--accent);
}
.signup-input::placeholder { color: var(--text-tertiary); }

.signup-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 160ms ease, transform 80ms ease, opacity 160ms ease;
}
.signup-btn:hover:not(:disabled) { filter: brightness(1.08); }
.signup-btn:active:not(:disabled) { transform: translateY(1px); }
.signup-btn:disabled { cursor: default; }

.signup-btn .signup-btn-spin,
.signup-btn .signup-btn-check {
  display: none;
  width: 14px;
  height: 14px;
  color: var(--accent-text);
  stroke-width: 2.4;
}
.signup[data-state="loading"] .signup-btn-label { opacity: 0.55; }
.signup[data-state="loading"] .signup-btn-spin {
  display: inline-block;
  animation: signup-spin 1.1s linear infinite;
}
.signup[data-state="success"] .signup-btn-label { display: none; }
.signup[data-state="success"] .signup-btn-check { display: inline-block; }

@keyframes signup-spin { to { transform: rotate(360deg); } }

.signup-help {
  margin: 12px 2px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.signup-count { color: var(--accent); }

.signup-status {
  margin: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  min-height: 1.4em;
  letter-spacing: 0.01em;
}
.signup-status[data-kind="success"] { color: var(--text); }
.signup-status[data-kind="error"] { color: var(--error); }

/* Success card — replaces the input + button on confirmed signup */
.signup-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
}
.signup[data-state="success"] .signup-row,
.signup[data-state="success"] .signup-help,
.signup[data-state="success"] .signup-status { display: none; }
.signup[data-state="success"] .signup-success { display: flex; }

.signup-success-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
}
.signup-success-mark .ic { width: 16px; height: 16px; stroke-width: 2.6; }

.signup-success-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.signup-success-headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.signup-success-sub {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.signup-success-email {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  background: transparent;
  padding: 0;
  word-break: break-all;
}

@media (max-width: 520px) {
  .signup-row {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 10px;
  }
  .signup-row:focus-within { box-shadow: none; }
  .signup-row > .signup-icon { display: none; }
  .signup-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .signup-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-muted);
  }
  .signup-btn { width: 100%; padding: 14px; }
}

/* =========================================================
   v2: nav CTA, proof split, FAQ, footer
   ========================================================= */

/* Nav CTA replaces inline theme picker */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.nav-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
  text-decoration: none;
}

/* Proof: split layout (copy + phone) */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 880px) {
  .proof-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
}

.proof-copy h2 { margin-bottom: 22px; max-width: 18ch; }

.usecases {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.usecases li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.usecases .uc-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.usecases .uc-ic .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.usecases li > div { display: flex; flex-direction: column; gap: 2px; }
.usecases strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.usecases span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.proof-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.proof-phone .phone { max-width: 300px; }
.proof-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  max-width: 36ch;
  margin: 0;
  letter-spacing: 0.02em;
}

/* FAQ */
.faq-section h2 { margin-bottom: 32px; max-width: 16ch; }
.faq {
  display: grid;
  gap: 8px;
  max-width: 720px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 160ms ease;
}
.faq-item[open] { border-color: var(--accent-muted); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chev {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: transform 220ms ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 60ch;
}
.faq-item code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Secondary CTA — slimmer than v1 */
.cta {
  text-align: center;
  padding-block: clamp(64px, 9vw, 100px);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 4px;
}
.cta p { margin: 0 auto; }
.cta .signup-cta { margin-top: 18px; text-align: left; }

/* Footer */
.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

/* Footer theme picker — flip tooltip up */
.site-footer .theme-picker .theme-picker-label {
  font-size: 10px;
}
.site-footer .theme-dot::after {
  top: auto;
  bottom: calc(100% + 10px);
}

/* =========================================================
   v4: hero with terminal → wire pulse → bezel-less video frame
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: start;
  }
}

.hero-copy { min-width: 0; position: relative; z-index: 1; padding-top: 8px; }

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 46ch;
}

.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

.demo-window {
  width: 100%;
  max-width: 460px;
  border-radius: 10px;
  box-shadow: 0 24px 60px -28px var(--shadow);
}
.demo-window .terminal-body {
  padding: 16px 18px 18px;
  font-size: 13px;
  line-height: 1.55;
  min-height: 200px;
}

.demo-wire {
  position: relative;
  height: 96px;
  width: 8px;
  color: var(--accent);
  display: flex;
  justify-content: center;
}
.demo-wire-svg { width: 8px; height: 100%; display: block; overflow: visible; }
.demo-wire-pulse {
  filter: drop-shadow(0 0 4px currentColor);
  animation: wire-pulse 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes wire-pulse {
  0%   { transform: translateY(0);     opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(96px);  opacity: 0; }
}

/* Stage that wraps the phone bezel and any drawn-on annotations */
.video-stage {
  position: relative;
  width: 100%;
  max-width: 264px;
}

/* Bezel-less screen frame (placeholder for screencast video) */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 264px;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 30px 80px -28px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
}

/* Hand-drawn annotation layer over the phone */
.demo-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.demo-annotations .annot-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.demo-annotations .annot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 520ms ease;
}
.demo-annotations .annot.is-active { opacity: 1; }
.demo-annotations .annot > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.annot-text {
  font-family: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive;
  font-weight: 600;
  font-size: 22px;
  fill: var(--text);
  opacity: 0.92;
  letter-spacing: 0.5px;
}
.annot-text-sub {
  font-size: 17px;
  font-weight: 500;
  opacity: 0.7;
}
.annot-stroke {
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}
.annot-stroke.annot-thin {
  stroke-width: 1.1;
  opacity: 0.55;
}
@media (max-width: 600px) {
  .annot-text { font-size: 19px; }
  .annot-text-sub { font-size: 15px; }
}
/* Phone-screen carousel inside the bezel-less frame */
.video-frame .phone-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}
.video-frame .phone-frame.is-active {
  opacity: 1;
  z-index: 1;
}
.video-frame .phone-frame .phone-status { padding: 11px 18px 5px; font-size: 10.5px; }
.video-frame .phone-frame .phone-body { flex: 1; min-height: 0; }

/* Servers screen tweaks for the small frame */
.video-frame .ph-home {
  padding: 8px 10px 0;
  gap: 10px;
}
.video-frame .ph-hero { padding: 10px 0 0; }
.video-frame .ph-hero-title { font-size: 22px; letter-spacing: 5px; }
.video-frame .ph-hero-sub { font-size: 8.5px; letter-spacing: 1.6px; margin-top: 8px; }
.video-frame .row-device { padding: 9px 11px; gap: 10px; }
.video-frame .row-device .device-name { font-size: 11.5px; }
.video-frame .row-device .device-sub { font-size: 9.5px; }
.video-frame .btn-add { padding: 8px 12px; font-size: 11px; gap: 8px; }
.video-frame .ph-foot {
  padding: 10px 0 8px;
  font-size: 9.5px;
  gap: 18px;
}
.video-frame .ph-foot .muted { color: var(--text-disabled); }

/* Projects screen — header + connection card + dense rows */
.video-frame .ph-projects {
  padding: 8px 8px 0;
  gap: 4px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.video-frame .ph-projects .ph-server-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}
.video-frame .ph-projects .ph-server-card .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 6px color-mix(in srgb, var(--success) 70%, transparent);
}
.video-frame .ph-projects .ph-server-card .device-name { font-size: 11px; }
.video-frame .ph-projects .ph-server-card .device-sub { font-size: 9.5px; }
.video-frame .ph-projects .ph-server-card .ic-lock { color: var(--success); width: 12px; height: 12px; }

.video-frame .pb-list { padding: 0; gap: 2px; display: flex; flex-direction: column; }
.video-frame .row-project { padding: 7px 9px; gap: 9px; }
.video-frame .row-project .project-name { font-size: 11.5px; }
.video-frame .row-project .project-path { font-size: 9.5px; }

.video-frame .ph-projects .ph-add-stack { padding: 6px 0 0; }

/* Chat screen — meta-bar + tighter bubbles + tiny code block */
.video-frame .ph-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
}
.video-frame .ph-chat-meta .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.video-frame .ph-chat-meta .meta-chip .ic { width: 9px; height: 9px; color: var(--text-secondary); }
.video-frame .ph-chat-meta .meta-lbl { color: var(--text-tertiary); }
.video-frame .ph-chat-meta .meta-sep { color: var(--text-disabled); }
.video-frame .ph-chat-meta .meta-chip.accent {
  color: var(--accent);
  font-weight: 600;
  padding: 1px 7px;
  background: var(--accent-muted);
  border-radius: 999px;
}

.video-frame .chat-body { background: var(--bg); }
.video-frame .chat-scroll { padding: 8px 8px 6px; gap: 6px; }
.video-frame .chat-bub { font-size: 10.5px; padding: 7px 10px; line-height: 1.4; max-width: 92%; }
.video-frame .chat-bub.ai { display: flex; flex-direction: column; gap: 6px; }
.video-frame .tool-pill { padding: 6px 8px; gap: 7px; }
.video-frame .tool-pill .tool-name { font-size: 10px; }
.video-frame .tool-pill .tool-body { font-size: 9px; }

.video-frame .cb-code {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.45;
  padding: 6px 8px;
  margin: 0;
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  white-space: pre;
  overflow: hidden;
}
.video-frame .cb-code .cb-lang {
  display: block;
  font-size: 7.5px;
  color: var(--text-tertiary);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.video-frame .cb-code .syn-k { color: var(--syn-keyword); }
.video-frame .cb-code .syn-fn { color: var(--syn-function); }
.video-frame .cb-code .syn-s { color: var(--syn-string); }

.video-frame .chat-composer { padding: 7px 9px; gap: 6px; }
.video-frame .chat-composer > .ic { width: 12px; height: 12px; }
.video-frame .composer-field { padding: 5px 10px; font-size: 9.5px; }
.video-frame .composer-send { width: 22px; height: 22px; }
.video-frame .composer-send .ic { width: 11px; height: 11px; }

/* Files screen — workspace tabs + path bar + entries + cmd-bar */
.video-frame .ws-tabs { background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
.video-frame .ws-tab { padding: 7px 0; font-size: 10px; gap: 4px; }
.video-frame .ws-tab .ic { width: 10px; height: 10px; }

.video-frame .ph-path {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.video-frame .ph-path .ic { width: 11px; height: 11px; color: var(--text-secondary); }
.video-frame .ph-path .ph-path-name {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.video-frame .ph-files {
  background: var(--bg);
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.video-frame .file-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.video-frame .file-row .folder-ic {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}
.video-frame .file-row .file-name {
  flex: 1;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-frame .file-row .file-name.file {
  color: var(--text-secondary);
  font-weight: 500;
}
.video-frame .file-row .chev { width: 11px; height: 11px; color: var(--text-tertiary); }

.video-frame .file-badge {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.video-frame .file-badge.fb-ts { background: #3178c6; color: #ffffff; }
.video-frame .file-badge.fb-json { background: #f7df1e; color: #1f2430; }
.video-frame .file-badge.fb-md { background: var(--surface3); color: var(--text-secondary); }
.video-frame .file-badge.fb-git { background: #f05032; color: #ffffff; font-size: 8.5px; }
.video-frame .file-badge.fb-npm { background: #cb3837; color: #ffffff; font-size: 6.5px; }

.video-frame .cmd-bar { padding: 4px 4px 6px; gap: 1px; }
.video-frame .cmd-btn { font-size: 10px; height: 28px; gap: 5px; padding: 0 4px; }
.video-frame .cmd-btn .ic { width: 10px; height: 10px; }
.video-frame .cmd-branch { font-size: 10.5px; }
.video-frame .cmd-stats { font-size: 8.5px; gap: 3px; }

/* Terminal screen — monospace output + accessory key row */
.video-frame .ph-term {
  background: var(--bg);
  padding: 8px 8px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-frame .term-out-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre;
  overflow: hidden;
}
.video-frame .term-out-pre .t-user { color: var(--success); }
.video-frame .term-out-pre .t-path { color: var(--accent); }
.video-frame .term-out-pre .t-ok { color: var(--success); font-weight: 700; }
.video-frame .term-out-pre .t-dim { color: var(--text-tertiary); }
.video-frame .term-out-pre .t-run {
  background: var(--success);
  color: var(--bg);
  padding: 1px 4px;
  font-weight: 700;
}
.video-frame .term-out-pre .t-cursor {
  display: inline-block;
  width: 5px;
  height: 9px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 1px;
  animation: blink 1.1s steps(2, end) infinite;
}

.video-frame .kb-acc {
  display: flex;
  gap: 3px;
  padding: 5px 6px 7px;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.video-frame .kb-acc .kb-key {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
}
.video-frame .kb-acc .kb-key .ic { width: 10px; height: 10px; }

/* Compact app-header in tiny phone frame */
.video-frame .app-header { height: 36px; padding: 0 8px; gap: 6px; }
.video-frame .app-header .app-back { width: 26px; height: 26px; }
.video-frame .app-header .app-back .ic { width: 13px; height: 13px; }
.video-frame .app-segments { gap: 6px; }
.video-frame .app-segments .seg-ic { width: 11px; height: 11px; }
.video-frame .app-segments .seg-label.mono { font-size: 10.5px; }
.video-frame .seg-dot { width: 6px; height: 6px; }

.demo-video {
  display: block;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 30px 80px -28px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
  object-fit: cover;
}

/* ========== Use-case section (detoxified) ========== */
.usecase-section h2 { margin-bottom: 18px; max-width: 16ch; }
.usecase-lead {
  margin: 0 0 36px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.usecase-section .usecases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}
.usecase-section .usecases li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}
.usecase-section .usecases strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.usecase-section .usecases span {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 38ch;
}
@media (min-width: 720px) {
  .usecase-section .usecases {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

/* ========== FAQ (less decorative) ========== */
.faq-section h2 {
  margin-bottom: 28px;
  max-width: 16ch;
}

/* ========== Hero form refinements ========== */
.hero .signup { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .demo-wire-pulse { display: none; }
}

/* =========================================================
   v5 — premium refresh: atmosphere, typography, hero glow
   ========================================================= */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html, body {
  font-feature-settings: "ss01", "cv11";
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg,
      #ffffff 0%,
      #fbfaf7 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::before { content: none; }

.nav, main { position: relative; z-index: 1; }

/* ----- nav refresh ----- */
.nav {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
}
.brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand .dot { color: var(--accent); }
.nav-cta {
  border-radius: 999px;
  padding: 7px 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.nav-cta:hover {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ----- hero ----- */
.hero {
  padding-block: clamp(72px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}

.hero-glow { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
  }
}

.hero-copy { min-width: 0; max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 28px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: hero-eyebrow-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-eyebrow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 20ch;
}
.hero-h1-accent {
  color: var(--accent);
  font-weight: 700;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 46ch;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero-cmd {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 36px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.hero-cmd-prompt {
  color: var(--text-tertiary);
  user-select: none;
}
.hero-cmd code {
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
}

/* ----- hero demo (the phone video) ----- */
.hero-demo {
  display: flex;
  justify-content: center;
  position: relative;
  min-width: 0;
  width: 100%;
}

.hero-demo-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-demo-glow { display: none; }

.hero-demo-floor {
  position: absolute;
  bottom: -8px;
  left: 8%;
  right: 8%;
  height: 60px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(0, 0, 0, 0.18),
    transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.hero-demo .demo-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: #0e0b08;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.20),
    0 12px 30px -10px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

/* ----- signup form refresh ----- */
.signup { margin-top: 0; max-width: 520px; }
.hero .signup { margin-top: 0; }

.signup-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.signup-row:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-muted),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.signup-input {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 4px;
  color: var(--text);
}
.signup-input::placeholder {
  color: var(--text-tertiary);
}

.signup-btn {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px -4px rgba(219, 39, 119, 0.40);
  transition: filter 160ms ease, transform 80ms ease, box-shadow 200ms ease, background 200ms ease;
}
.signup-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px -4px rgba(219, 39, 119, 0.50);
}

.signup-help {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin: 14px 4px 0;
}

@media (max-width: 600px) {
  .hero-glow { right: -40%; top: -200px; }
  .hero-demo-stage { max-width: 100%; }
  .hero-demo .demo-video { max-width: 100%; border-radius: 22px; }
}

@media (max-width: 520px) {
  .signup-row {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 10px;
    border-radius: 0;
  }
  .signup-row:focus-within {
    box-shadow: none;
    background: transparent;
  }
  .signup-row > .signup-icon { display: none; }
  .signup-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .signup-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-muted);
  }
  .signup-btn { width: 100%; padding: 14px; }
}

/* =========================================================
   Brand mark + nav refresh
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-transform: none;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
  /* The wordmark PNG is grayscale-black on transparent.
     Stays black on light, gracefully tints in dark contexts via filter. */
}

/* nav cta — quieter, lowercase */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.nav-cta:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  background: var(--surface);
  text-decoration: none;
}

/* =========================================================
   hero-cmd as click-to-copy button
   ========================================================= */
button.hero-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0 0 32px;
  padding: 8px 8px 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
  text-align: left;
}
button.hero-cmd:hover {
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
button.hero-cmd:active { transform: translateY(1px); }
button.hero-cmd .hero-cmd-prompt { color: var(--text-tertiary); }
button.hero-cmd code {
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  flex: 1;
}
.hero-cmd-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text-tertiary);
  position: relative;
}
.hero-cmd-icon {
  width: 13px;
  height: 13px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  transition: opacity 160ms ease, transform 160ms ease;
}
.hero-cmd-icon-check { opacity: 0; transform: scale(0.6); color: var(--success); }
button.hero-cmd[data-state="copied"] .hero-cmd-icon-copy { opacity: 0; transform: scale(0.6); }
button.hero-cmd[data-state="copied"] .hero-cmd-icon-check { opacity: 1; transform: scale(1); }
button.hero-cmd[data-state="copied"] .hero-cmd-action {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
}

/* =========================================================
   hero meta chips (encrypted · self-hosted · open core)
   ========================================================= */
.hero-meta {
  list-style: none;
  margin: 22px 4px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-tertiary);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
  display: inline-block;
}

/* =========================================================
   FEATURES — three columns of typography, no cards
   ========================================================= */
.features {
  padding-block: clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--border-subtle);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 760px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
  }
}
.feature { display: block; max-width: 36ch; }
.feature-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.feature-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}
.feature-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: none;
}

/* =========================================================
   FOOTER — single quiet line
   ========================================================= */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 32px;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
}
.footer-glyph {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-meta a {
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}
.footer-meta a:hover { color: var(--accent); }
@media (max-width: 520px) {
  .footer-inner { justify-content: flex-start; }
}
