*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #090909;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-strong: rgba(255, 255, 255, 0.04);
  --surface-soft: rgba(255, 255, 255, 0.018);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #ededef;
  --dim: #8f9097;
  --muted: #636368;
  --white: #f5f5f7;
  --glow: rgba(110, 140, 255, 0.12);
  --glow-soft: rgba(92, 120, 214, 0.08);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  --w: 1040px;
  --narrow: 720px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at top, rgba(92, 120, 214, 0.07), transparent 32%),
    linear-gradient(180deg, #090909 0%, #080808 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
  opacity: 0.6;
  animation: floatGlow 18s ease-in-out infinite;
}

.ambient-a {
  top: 8rem;
  left: -6rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, var(--glow) 0%, transparent 72%);
}

.ambient-b {
  right: -5rem;
  top: 22rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 72%);
  animation-delay: -6s;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
}

.logo {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--dim);
  text-decoration: none;
  text-align: center;
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--text); }

main {
  position: relative;
  z-index: 1;
  padding-top: 56px;
}

section {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 1.75rem;
  text-align: center;
}

.section-head {
  max-width: var(--narrow);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-head-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero {
  position: relative;
  padding-top: 8.75rem;
  padding-bottom: 5.75rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 50%;
  width: 42rem;
  height: 24rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 45%, rgba(110, 140, 255, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.repo-meta-strip {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.repo-meta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.016);
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.repo-meta-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.024);
}

h1 {
  max-width: 15ch;
  margin: 0 auto 1.1rem;
  font-size: clamp(2.6rem, 7vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: var(--white);
}

.sub {
  max-width: 37rem;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--dim);
}

.sub-line {
  display: block;
}

.actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .actions { margin-bottom: 2.5rem; }

.mini-points {
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--white);
  color: #0a0a0b;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.btn-ghost {
  color: var(--dim);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  justify-content: center;
}

.mini-points {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.mini-points span {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.016);
  color: var(--dim);
  font-size: 0.79rem;
}

.terminal-shell {
  width: min(100%, 42rem);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.015)),
    rgba(11, 11, 13, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-terminal {
  position: relative;
  margin-top: 0;
}

.hero-terminal::after {
  content: "";
  position: absolute;
  inset: auto 8% -20% 8%;
  height: 7rem;
  background: radial-gradient(circle, rgba(110, 140, 255, 0.12), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.terminal-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
  position: static;
  left: auto;
}

.terminal-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.terminal-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.terminal-body {
  padding: 1.2rem 1.25rem 1.3rem;
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.terminal-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 1.65rem;
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
}

.terminal-line + .terminal-line { margin-top: 0.25rem; }

.terminal-line-static {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.terminal-line-muted {
  color: #a2a4ac;
  min-height: 1.5rem;
}

.prompt {
  color: #4d4f5a;
  flex-shrink: 0;
}

.terminal-text {
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  border-radius: 2px;
  background: var(--dim);
  animation: blink 1.1s step-end infinite;
}

.trust-section,
.mcp-section,
.install,
.flow,
.exec-feature,
.features,
.how,
.oss,
.final-cta {
  border-top: 1px solid var(--border);
}

.trust-section,
.mcp-section,
.install,
.flow,
.exec-feature,
.features,
.how,
.oss,
.final-cta {
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
}

h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--white);
}

.section-head p {
  margin-top: 0.45rem;
  color: var(--dim);
  font-size: 0.95rem;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.install-card,
.workflow-card,
.feature-card,
.how-step,
.code-wrap,
.usage-line,
.flow-shell {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
}

.install-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
  text-align: center;
}

.connect-card {
  max-width: 42rem;
  margin: 1rem auto 0;
}

.install-kicker,
.workflow-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.code-wrap code,
.usage-line code,
.workflow-card code,
.flow-meta {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.code-wrap code,
.usage-line code {
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}

.code-wrap code {
  width: 100%;
  white-space: pre-wrap;
  overflow: visible;
  overflow-wrap: anywhere;
  user-select: all;
}

button[id^="copy-"] {
  align-self: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 0.76rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
}

button[id^="copy-"]:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.usage-line {
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.usage-line code {
  display: block;
  width: 100%;
  color: var(--text);
  user-select: all;
}

.flow-shell {
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(11, 11, 13, 0.9);
  box-shadow: var(--shadow);
}

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: center;
  min-height: 4.25rem;
  margin-bottom: 1.15rem;
}

.flow-line {
  position: absolute;
  left: var(--flow-line-left, 8%);
  right: auto;
  width: var(--flow-line-width, 84%);
  top: var(--flow-line-top, 50%);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(110, 140, 255, 0.28), rgba(255, 255, 255, 0.08));
  transform: translateY(-50%);
}

.flow-pulse {
  position: absolute;
  top: var(--flow-pulse-top, 50%);
  left: var(--flow-pulse-left, 8%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(235, 237, 239, 0.9);
  box-shadow: 0 0 0 0 rgba(110, 140, 255, 0.35);
  transition:
    left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease;
  will-change: left, top;
}

.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.3rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.flow-dot {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 0 rgba(110, 140, 255, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.flow-label {
  display: block;
}

.flow-node.active {
  color: var(--text);
}

.flow-node.active .flow-dot {
  background: rgba(235, 237, 239, 0.92);
  box-shadow: 0 0 0 0.35rem rgba(110, 140, 255, 0.12);
}

.flow-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-card {
  padding: 1rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.flow-panel.is-active {
  border-color: rgba(110, 140, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(110, 140, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

.workflow-card pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.workflow-card code {
  font-size: 0.83rem;
  line-height: 1.7;
  color: #d6d7dc;
}

.workflow-copy {
  margin-top: 0.7rem;
  color: var(--dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

.workflow-copy code,
.exec-support-copy code,
.mcp-capability p code,
.mcp-support-copy code,
.install-support-copy code,
.feature-card code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
}

.flow-meta {
  margin-top: 0.7rem;
  color: #aeb4c8;
  font-size: 0.8rem;
}

.shell-stack {
  margin-bottom: 1rem;
}

.shell-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.shell-compact-card,
.exec-command-card,
.mcp-card,
.oss-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.014);
}

.shell-compact-card {
  padding: 1rem 1.05rem;
  text-align: center;
}

.shell-compact-line {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.shell-compact-line + .shell-compact-line {
  margin-top: 0.32rem;
  color: var(--dim);
  font-weight: 400;
}

.exec-feature {
  position: relative;
}

.exec-feature .section-head {
  margin-bottom: 2rem;
}

.exec-head {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.exec-terminal {
  position: relative;
  width: min(100%, 58rem);
  min-height: 430px;
}

.exec-terminal::after {
  content: "";
  position: absolute;
  inset: auto 12% -16% 12%;
  height: 7rem;
  background: radial-gradient(circle, rgba(110, 140, 255, 0.1), transparent 72%);
  filter: blur(26px);
  pointer-events: none;
}

.exec-status-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.014);
  text-align: left;
}

.exec-status-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.exec-status-badge {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  color: #8b8f9d;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.exec-status-badge[data-tone="neutral"] {
  color: #b3b7c2;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.exec-status-badge[data-tone="running"] {
  color: #87dbb2;
  border-color: rgba(100, 200, 160, 0.34);
  background: rgba(100, 200, 160, 0.08);
}

.exec-status-badge[data-tone="lost"] {
  color: #e2ac77;
  border-color: rgba(214, 150, 92, 0.36);
  background: rgba(214, 150, 92, 0.09);
}

.exec-status-badge[data-tone="resumed"] {
  color: #87dbb2;
  border-color: rgba(100, 200, 160, 0.36);
  background: rgba(100, 200, 160, 0.09);
}

.exec-status-meta {
  margin-left: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #9da2af;
  text-align: left;
}

.exec-scene {
  min-height: 17rem;
  padding-top: 1.45rem;
  padding-bottom: 1.55rem;
}

.exec-prefix {
  flex: 0 0 auto;
  color: #666b78;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exec-scene .terminal-line {
  align-items: flex-start;
}

.exec-scene .terminal-text {
  flex: 1 1 auto;
  min-width: 0;
}

.exec-scene .exec-reveal {
  opacity: 0;
  max-height: 0;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  transform: translateY(6px);
  filter: blur(2px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.exec-scene .exec-reveal.is-visible {
  opacity: 1;
  max-height: 4.8rem;
  min-height: 1.45rem;
  margin-top: 0.32rem;
  transform: translateY(0);
  filter: blur(0);
}

.exec-scene .terminal-line-muted {
  color: var(--dim);
  font-size: 0.82rem;
}

.exec-event-line {
  color: var(--dim);
}

#exec-drop-line {
  color: #d8a675;
}

#exec-resumed-line {
  color: #86d6ad;
}

.exec-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 54rem;
  margin-top: 1.3rem;
}

.exec-command-card {
  padding: 1rem 1.05rem;
  text-align: center;
}

.exec-command-label {
  display: block;
  margin-bottom: 0.48rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.exec-command-card code {
  display: block;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e0e2ea;
  text-align: center;
}

.exec-command-card p {
  margin-top: 0.55rem;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

.exec-support-copy {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--dim);
  font-size: 0.88rem;
  text-align: center;
}

.mcp-head {
  max-width: 36rem;
}

.mcp-stage {
  max-width: 48rem;
  margin: 0 auto;
}

.mcp-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  padding: 0.25rem 0;
}

.mcp-line {
  position: absolute;
  left: var(--mcp-line-left, 16%);
  width: var(--mcp-line-width, 68%);
  top: var(--mcp-line-top, 50%);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(110, 140, 255, 0.18), rgba(255, 255, 255, 0.08));
  transform: translateY(-50%);
  z-index: 0;
}

.mcp-pulse {
  position: absolute;
  top: var(--mcp-pulse-top, 50%);
  left: var(--mcp-pulse-left, 16%);
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(237, 237, 239, 0.92);
  box-shadow: 0 0 0 0.16rem rgba(237, 237, 239, 0.03);
  z-index: 1;
  transition:
    left 1.12s cubic-bezier(0.22, 1, 0.36, 1),
    top 1.12s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.mcp-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.6rem;
  padding: 1rem 1.05rem;
  text-align: center;
  color: var(--muted);
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.mcp-card.is-active {
  color: var(--text);
  border-color: rgba(110, 140, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(110, 140, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 0.24rem rgba(110, 140, 255, 0.035);
}

.mcp-card-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: currentColor;
}

.mcp-card-subtitle {
  margin-top: 0.22rem;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.mcp-card.is-active .mcp-card-subtitle {
  color: var(--dim);
}

.mcp-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 44rem;
  margin: 1.8rem auto 0;
}

.mcp-tool {
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.014);
  text-align: center;
}

.mcp-tool code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
}

.mcp-sample {
  max-width: 26rem;
  margin: 0.9rem auto 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  color: var(--dim);
  text-align: center;
}

.mcp-sample code {
  display: block;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.65;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mcp-support-copy,
.install-support-copy {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--dim);
  font-size: 0.88rem;
  text-align: center;
}

.inline-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.inline-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compact-five .feature-card:last-child {
  grid-column: 1 / -1;
}

.feature-card {
  padding: 1.35rem 1.4rem;
}

.feature-card strong,
.how-step strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature-card span,
.how-step p {
  color: var(--dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.how-step {
  padding: 1.25rem 1.3rem;
}

.how-step span {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}

footer {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.5rem 1.75rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.8125rem;
  color: #4c4e57;
  text-align: center;
}

.footer-trust-strip,
.footer-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.footer-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.014);
  color: var(--dim);
}

.footer-meta {
  flex-direction: column;
  justify-content: center;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover { color: var(--dim); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@media (max-width: 900px) {
  .install-grid,
  .mcp-tool-grid,
  .flow-panels,
  .shell-compact-grid,
  .feature-grid,
  .how-grid,
  .exec-command-grid,
  .oss-grid {
    grid-template-columns: 1fr;
  }

  .mcp-track {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin: 0 auto;
    gap: 0.85rem;
  }

  .mcp-line {
    top: var(--mcp-line-top, 0.5rem);
    left: var(--mcp-line-left, 50%);
    width: 1px;
    height: var(--mcp-line-height, calc(100% - 1rem));
    transform: none;
  }

  .exec-terminal {
    min-height: 392px;
  }

  .compact-five .feature-card:last-child {
    grid-column: auto;
  }

  .hero {
    padding-top: 7.5rem;
    padding-bottom: 4.75rem;
  }

  .flow-track {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    min-height: auto;
    padding-left: 1.4rem;
  }

  .flow-line {
    top: var(--flow-line-top, 0.3rem);
    bottom: auto;
    left: var(--flow-line-left, 0.3rem);
    right: auto;
    width: 1px;
    height: var(--flow-line-height, calc(100% - 0.6rem));
    transform: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(110, 140, 255, 0.28), rgba(255, 255, 255, 0.08));
  }

  .flow-node {
    justify-content: center;
    padding-top: 0;
    padding-left: 0;
    text-align: center;
    min-height: 1.2rem;
  }

  .flow-dot {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }

  .flow-pulse {
    transform: translate(-50%, -50%);
  }

  .footer-trust-strip,
  .footer-meta {
    flex-direction: column;
    align-items: center;
  }

  .footer-trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  nav,
  section,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  nav {
    height: 54px;
  }

  .nav-actions {
    gap: 0.85rem;
  }

  .hero::before {
    width: 24rem;
    height: 16rem;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .sub {
    max-width: 22rem;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .mini-points {
    gap: 0.5rem;
  }

  .mini-points span {
    font-size: 0.75rem;
  }

  .mcp-card {
    min-height: 5rem;
    padding: 0.92rem 0.95rem;
  }

  .repo-meta-link {
    max-width: 100%;
    font-size: 0.76rem;
  }

  .terminal-shell {
    border-radius: 16px;
  }

  .terminal-top,
  .terminal-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .terminal-line {
    font-size: 0.83rem;
    gap: 0.45rem;
  }

  .exec-terminal {
    min-height: 360px;
  }

  .exec-status-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .exec-status-badge,
  .exec-status-label {
    font-size: 0.64rem;
  }

  .exec-status-meta {
    width: 100%;
    margin-left: 0;
    font-size: 0.74rem;
    text-align: left;
  }

  .exec-command-card {
    padding: 0.92rem 0.95rem;
  }

  .exec-command-card code {
    font-size: 0.79rem;
  }

  .code-wrap {
    flex-direction: column;
    align-items: center;
  }

  .code-wrap code {
    font-size: 0.82rem;
  }

  button[id^="copy-"] {
    width: 100%;
  }

  .flow-shell {
    padding: 1rem;
  }

  .trust-section,
  .mcp-section,
  .install,
  .flow,
  .exec-feature,
  .features,
  .how,
  .oss,
  .final-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  footer {
    padding-bottom: 2rem;
  }
}
