:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f2f2f3;
  --surface-hover: #eaeaea;
  --ink: #0a0a0a;
  --muted: #7d8187;
  --muted-light: #a1a5ac;
  --line: rgba(10, 10, 10, 0.07);
  --line-strong: rgba(10, 10, 10, 0.13);
  --accent: #0a0a0a;
  --accent-hover: #262626;
  --accent-soft: #ededef;
  --brand-green: #287755;
  --shadow-window: 0 24px 64px rgba(10, 10, 10, 0.06);
  --shadow-card: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-soft: #1b1b1e;
  --surface-hover: #232327;
  --ink: #f5f5f7;
  --muted: #8b8f96;
  --muted-light: #64686f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
  --accent-hover: #e4e4e7;
  --accent-soft: #222226;
  --brand-green: #3ea87b;
  --shadow-window: 0 28px 72px rgba(0, 0, 0, 0.55);
  --shadow-card: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.88em;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 5px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { border-radius: 7px; display: block; }
.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-ver {
  display: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.site-nav a { transition: color 140ms ease; }
.site-nav a:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background-color 140ms ease, color 140ms ease;
}
.icon-btn:hover { background: var(--surface-soft); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms ease, opacity 150ms ease, transform 150ms cubic-bezier(0.16, 1, 0.3, 1), border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { opacity: 0.86; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: var(--surface-soft); }
.btn-white { background: #ffffff; color: #0a0a0a; }
.btn-white:hover { opacity: 0.9; }
.btn-xs { height: 34px; padding: 0 14px; font-size: 12px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 14px; }

/* Clean Centered macOS App Hero */
.hero {
  position: relative;
  padding: 68px 0 48px;
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-center {
  position: relative;
  z-index: 1;
  max-width: 740px;
  text-align: center;
}
.hero-app-icon {
  margin-bottom: 20px;
}
.hero-app-icon img {
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(40, 119, 85, 0.22);
  display: inline-block;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.72;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-meta {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted-light);
}

/* Elevated Interactive Shitu Workbench */
.demo-stage {
  position: relative;
  z-index: 1;
  margin-top: 44px;
}
.app-window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.window-chrome {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.traffic-lights { display: flex; gap: 7px; }
.traffic-lights span { width: 10px; height: 10px; border-radius: 50%; }
.traffic-lights span:nth-child(1) { background: #ff5f57; }
.traffic-lights span:nth-child(2) { background: #febc2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }
.window-shortcut {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.window-body {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  min-height: 468px;
}
.demo-sidebar {
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 45%, var(--surface));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-sidebar-title { font-size: 13px; font-weight: 600; padding: 4px 10px 10px; }
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: background-color 140ms ease, color 140ms ease;
}
.demo-nav:hover { background: var(--surface-soft); color: var(--ink); }
.demo-nav.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.demo-nav span { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.85; }

.demo-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.demo-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-search {
  flex: 1;
  min-width: 220px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.demo-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 13px;
}
.demo-search kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.demo-quick-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-quick-tags button {
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--surface-soft);
  font-size: 12px;
  color: var(--muted);
  transition: background-color 140ms ease, color 140ms ease;
}
.demo-quick-tags button:hover { background: var(--surface-hover); color: var(--ink); }

.demo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 18px;
  flex: 1;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  align-content: start;
}
.demo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 8px 12px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink);
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), background-color 140ms ease, box-shadow 140ms ease;
}
.demo-card:hover { background: var(--surface-hover); transform: translateY(-2px); }
.demo-card.selected { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.demo-card span {
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-detail {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-preview {
  position: relative;
  height: 136px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.demo-preview.preview-light { background: #f3f5f3; }
.demo-preview.preview-dark { background: #181c1a; }
.demo-preview.preview-checker {
  background-color: #f3f5f3;
  background-image:
    linear-gradient(45deg, rgba(18, 25, 21, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(18, 25, 21, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(18, 25, 21, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(18, 25, 21, 0.08) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.preview-bg-dots {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 10, 10, 0.08);
}
.bg-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); }
.bg-dot.is-light { background: #ffffff; }
.bg-dot.is-dark { background: #181c1a; }
.bg-dot.is-checker {
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
}
.bg-dot.active { box-shadow: 0 0 0 2px var(--accent); }

.demo-size-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 6px;
  border-radius: 9px;
  background: var(--surface-soft);
  text-align: center;
}
.demo-size-strip > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.demo-size-strip small { font-size: 10px; color: var(--muted); }
.demo-detail-meta { display: flex; flex-direction: column; gap: 2px; }
.demo-detail-meta strong { font-size: 14px; font-weight: 600; }
.demo-detail-meta span { font-size: 12px; color: var(--muted); }
.demo-colors { display: flex; align-items: center; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 140ms ease; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.demo-copy-row { display: flex; gap: 6px; margin-top: auto; }

/* Sections */
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.25;
}
.section-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Framed Precision Isometric Cards */
.illu-recolor-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.recolor-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.recolor-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.14);
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms ease;
}
.recolor-dot:hover { transform: scale(1.15); }
.recolor-dot.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }

.iso-cards {
  --illu-accent: #0a0a0a;
  --iso-face-hi: #ffffff;
  --iso-face-lo: #f4f4f5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
:root[data-theme="dark"] .iso-cards {
  --illu-accent: #f5f5f7;
  --iso-face-hi: #1b1b1e;
  --iso-face-lo: #121214;
}
.iso-card-box {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 32px 24px;
  display: flex;
  flex-direction: column;
}
.iso-card-box:first-child { border-left: 0; padding-left: 0; }
.iso-card-box:last-child { padding-right: 0; }
.iso-stage {
  height: 224px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.iso-svg {
  width: 256px;
  height: 202px;
  overflow: visible;
  color: var(--ink);
}
.iso-slab-rim {
  fill: var(--iso-face-lo);
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.28;
}
.iso-edge {
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-opacity: 0.48;
  transition: stroke-opacity 260ms ease, stroke 260ms ease;
}
.iso-edge-soft {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.24;
  transition: stroke-opacity 260ms ease;
}
.iso-edge-focus {
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-opacity: 0.72;
  transition: stroke 260ms ease, stroke-opacity 260ms ease;
}
.iso-edge-target {
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-opacity: 0.45;
  transition: stroke 260ms ease, stroke-opacity 260ms ease;
}
.iso-hairline { stroke: var(--ink); stroke-width: 0.9; stroke-opacity: 0.13; }
.iso-dot-muted { fill: var(--ink); fill-opacity: 0.26; }
.iso-dot-accent { fill: var(--illu-accent); transition: fill 260ms ease; }
.iso-accent-stroke { stroke: var(--illu-accent); transition: stroke 260ms ease; }
.iso-accent-soft-fill { fill: color-mix(in srgb, var(--illu-accent) 16%, transparent); transition: fill 260ms ease; }
.iso-handle { fill: var(--iso-face-hi); stroke: var(--illu-accent); stroke-width: 1.5; transition: stroke 260ms ease; }
.iso-drop-zone { stroke: var(--ink); stroke-width: 1.15; stroke-opacity: 0.24; transition: stroke 260ms ease, stroke-opacity 260ms ease; }
.iso-flight-arc { stroke: var(--ink); stroke-width: 1.15; stroke-opacity: 0.26; transition: stroke 260ms ease, stroke-opacity 260ms ease; }

.iso-motion-tile,
.iso-motion-badge,
.iso-layer-bot,
.iso-layer-mid,
.iso-layer-top,
.iso-motion-fly,
.iso-target-slab {
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.iso-card-box:hover .iso-motion-tile { transform: translateY(-10px); }
.iso-card-box:hover .iso-motion-badge { transform: translate(-10px, -6px); }
.iso-card-box:hover .iso-layer-top { transform: translateY(-14px); }
.iso-card-box:hover .iso-layer-mid { transform: translateY(-4px); }
.iso-card-box:hover .iso-layer-bot { transform: translateY(4px); }
.iso-card-box:hover .iso-motion-fly { transform: translate(42px, 14px); }
.iso-card-box:hover .iso-edge-target,
.iso-card-box:hover .iso-drop-zone,
.iso-card-box:hover .iso-flight-arc { stroke: var(--illu-accent); stroke-opacity: 0.88; }
.iso-card-box:hover .iso-edge-focus { stroke: var(--illu-accent); stroke-opacity: 1; }

.iso-chip {
  display: none;
}
.iso-copy h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.iso-copy p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* Asymmetric 12-Column Feature Bento (soft flat minimalist surfaces) */
.asym-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.ab-card {
  background: var(--surface-soft);
  border: 0;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: background-color 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ab-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.ab-span-7 { grid-column: span 7; }
.ab-span-5 { grid-column: span 5; }
.ab-span-4 { grid-column: span 4; }
.ab-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.ab-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ab-chips span {
  font-size: 12px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* High-Contrast Dark MCP + Download Band */
.mcp-panel {
  background: #141716;
  color: #f1f5f3;
  border-radius: 20px;
  padding: 34px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 36px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
:root[data-theme="dark"] .mcp-panel {
  background: #141716;
  border-color: rgba(255, 255, 255, 0.11);
}
.mcp-code-col {
  background: #1f2422;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px 22px 18px;
  min-height: 272px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.mcp-code-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #8f9c95;
}
.mcp-code-foot span {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 5px;
}
.mcp-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #a6b2ac;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.copy-pill {
  font-family: inherit;
  font-size: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 11px;
  border-radius: 9999px;
  transition: background-color 140ms ease, transform 140ms ease;
}
.copy-pill:hover { background: rgba(255, 255, 255, 0.2); }
.code-box {
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.62;
  color: #f0f5f2;
}
.code-box code { background: transparent; padding: 0; color: inherit; }
.mcp-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #6ee7b7;
  background: rgba(62, 168, 123, 0.16);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.mcp-info-col h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 30px);
}
.mcp-info-col p {
  margin: 0 0 22px;
  font-size: 14px;
  color: #a6b0aa;
  line-height: 1.75;
}
.mcp-info-col code {
  background: rgba(255, 255, 255, 0.1);
  color: #e2ebe6;
}
.mcp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mcp-tip {
  margin: 18px 0 0 !important;
  font-size: 12px !important;
  color: #77827c !important;
  line-height: 1.65 !important;
}

/* Single-Row Compact Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-left img { border-radius: 5px; }
.footer-left strong { color: var(--ink); font-weight: 600; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a:hover { color: var(--ink); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Micro-Interactions (uiverse / kinetics / microinteractions / animorio inspired) */
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  opacity: 0.45;
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Sun <-> Moon smooth spring morph */
.theme-morph-btn {
  position: relative;
  overflow: hidden;
}
.theme-morph-btn svg {
  position: absolute;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}
.theme-morph-btn .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
:root[data-theme="dark"] .theme-morph-btn .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
:root[data-theme="dark"] .theme-morph-btn .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Magnetic CTA + delicate sheen sweep + download arrow bounce */
.btn-sheen {
  position: relative;
  overflow: hidden;
}
.btn-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.24) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-sheen:hover::after {
  transform: translateX(130%);
}
.btn-dl-icon {
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover .btn-dl-icon {
  transform: translateY(2px);
}
.magnetic-btn {
  will-change: transform;
}

/* Hero App Icon tactile 3D tilt + glow */
.hero-app-icon img {
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 320ms ease;
}
.hero-app-icon img:hover {
  transform: translateY(-4px) scale(1.06) rotate(-3deg);
  box-shadow: 0 18px 40px rgba(40, 119, 85, 0.32);
}

/* Morphing inline copied state */
.is-copied {
  background: var(--brand-green) !important;
  color: #ffffff !important;
  border-color: var(--brand-green) !important;
  transform: scale(1.02);
}

/* Bento card subtle cursor spotlight */
.ab-card {
  position: relative;
  overflow: hidden;
}
.ab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, -200px) var(--my, -200px), rgba(40, 119, 85, 0.075), transparent 72%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
:root[data-theme="dark"] .ab-card::before {
  background: radial-gradient(280px circle at var(--mx, -200px) var(--my, -200px), rgba(255, 255, 255, 0.06), transparent 72%);
}
.ab-card:hover::before {
  opacity: 1;
}

/* Size strip tactile micro-lift */
.demo-size-strip > div {
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 6px;
  padding: 4px 0;
}
.demo-size-strip > div:hover {
  transform: translateY(-2px) scale(1.08);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .window-body { grid-template-columns: 1fr; }
  .demo-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-sidebar-title { display: none; }
  .demo-workspace { grid-template-columns: 1fr; }
  .demo-detail { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .iso-cards { grid-template-columns: 1fr; }
  .ab-span-7, .ab-span-5, .ab-span-4 { grid-column: span 12; }
  .mcp-panel { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding: 44px 0 36px; }
  .section { padding: 52px 0; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

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