:root {
  --paper: #eef6fb;
  --paper-bright: #f8fbfd;
  --surface: #ffffff;
  --ink: #0b1424;
  --ink-soft: #18273b;
  --muted: #526477;
  --muted-light: #b8c9d8;
  --line: #cddce8;
  --line-strong: #afc6d8;
  --telegram: #229ed9;
  --blue-700: #086c9c;
  --blue-800: #07557b;
  --sky: #bceaff;
  --mint: #2ac895;
  --amber: #f2b84b;
  --terminal: #0d1727;
  --terminal-line: #26364c;
  --font-display: "Arial Rounded MT Bold", "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --shadow-sm: 0 8px 24px rgba(28, 64, 91, 0.08);
  --shadow-lg: 0 28px 80px rgba(28, 64, 91, 0.16);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper-bright);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sky);
  color: var(--ink);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
pre {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(175, 198, 216, 0.78);
  background: rgba(248, 251, 253, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--telegram);
  box-shadow: inset 0 -2px 0 rgba(7, 85, 123, 0.2);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.09em;
}

.brand-name {
  font-size: 17px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.primary-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.primary-nav > a:not(.github-link)::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--telegram);
  content: "";
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav > a:hover::after {
  transform: scaleX(1);
}

.language-link {
  color: var(--blue-700);
}

.github-link {
  gap: 6px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.github-link:hover {
  transform: translateY(-1px);
  border-color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) 0 clamp(82px, 10vw, 138px);
  background:
    radial-gradient(circle at 86% 16%, rgba(34, 158, 217, 0.15), transparent 27%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-bright) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(80, 132, 165, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 132, 165, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(42, 200, 149, 0.14);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 800;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--blue-700);
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(8, 108, 156, 0.24);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--blue-800);
  box-shadow: 0 14px 30px rgba(8, 108, 156, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--blue-700);
  background: var(--surface);
}

.hero-facts {
  display: flex;
  margin: 38px 0 0;
  gap: 0;
}

.hero-facts div {
  padding: 0 24px;
  border-left: 1px solid var(--line-strong);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.signal-stage {
  position: relative;
  min-height: 550px;
  border: 1px solid rgba(151, 189, 214, 0.8);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(232, 245, 252, 0.75)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(8, 108, 156, 0.07) 31px 32px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

.signal-stage::before {
  position: absolute;
  z-index: -1;
  top: -14px;
  right: 72px;
  width: 88px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 9px 9px 0 0;
  background: var(--surface);
  content: "signal / bridge";
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 28px;
  text-align: center;
  text-transform: uppercase;
}

.stage-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-label span {
  color: var(--blue-700);
}

.stage-label-in {
  top: 27px;
  left: 28px;
}

.stage-label-out {
  right: 28px;
  bottom: 27px;
}

.signal-path {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.signal-path path {
  fill: none;
  stroke: var(--telegram);
  stroke-dasharray: 8 9;
  stroke-linecap: round;
  stroke-width: 2;
  animation: signal-flow 12s linear infinite;
}

.signal-path circle {
  fill: var(--surface);
  stroke: var(--telegram);
  stroke-width: 3;
}

.message-bubble {
  position: absolute;
  z-index: 3;
  top: 70px;
  left: -24px;
  display: grid;
  grid-template-columns: 38px 1fr;
  width: min(310px, calc(100% - 40px));
  gap: 11px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: bubble-float 6s ease-in-out infinite;
}

.message-bubble .avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #dff5ff;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
}

.message-bubble strong,
.message-bubble p,
.message-bubble small {
  display: block;
}

.message-bubble strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.message-bubble p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.message-bubble small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.terminal-card {
  position: absolute;
  z-index: 2;
  top: 162px;
  right: 28px;
  left: 48px;
  overflow: hidden;
  border: 1px solid #30435d;
  border-radius: 16px;
  background: var(--terminal);
  box-shadow: 0 24px 48px rgba(11, 20, 36, 0.28);
  color: #e7f2fa;
}

.terminal-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--terminal-line);
  background: #142136;
  color: #99adc1;
  font-family: var(--font-mono);
  font-size: 9px;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56677c;
}

.terminal-dots i:first-child {
  background: #ff6d6a;
}

.terminal-dots i:nth-child(2) {
  background: #f2b84b;
}

.terminal-dots i:last-child {
  background: var(--mint);
}

.terminal-mode {
  justify-self: end;
  color: #72c8e9;
}

.terminal-body {
  overflow-x: auto;
  padding: 20px 22px 23px;
}

.terminal-command {
  min-width: 460px;
  margin-bottom: 20px;
  color: #f5fbff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.prompt {
  margin-right: 7px;
  color: var(--mint);
}

.terminal-json {
  min-width: 410px;
  margin-bottom: 0;
  color: #dbe8f1;
  font-size: 10px;
  line-height: 1.75;
}

.json-key {
  color: #7fd5f4;
}

.json-string {
  color: #a8dfc5;
}

.json-boolean {
  color: #f6c977;
}

.json-punctuation {
  color: #8fa4b7;
}

.result-chip {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 61px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  padding: 13px 15px;
  border: 1px solid #2b405a;
  border-radius: 13px;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(11, 20, 36, 0.24);
  color: var(--surface);
  animation: bubble-float 6s 1.2s ease-in-out infinite;
}

.result-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--mint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.result-chip strong,
.result-chip small {
  display: block;
}

.result-chip strong {
  font-size: 11px;
}

.result-chip small {
  margin-top: 1px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
}

@keyframes signal-flow {
  to { stroke-dashoffset: -170; }
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.section {
  padding: clamp(86px, 10vw, 138px) 0;
}

.section-heading {
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-heading h2,
.install-heading h2,
.safety-grid h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.055em;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 80px;
}

.split-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.workflow-section {
  background: var(--surface);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  gap: 18px;
  list-style: none;
}

.workflow-card {
  position: relative;
  min-height: 370px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper-bright);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.workflow-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.workflow-card.featured {
  transform: translateY(-18px);
  border-color: rgba(34, 158, 217, 0.45);
  background:
    linear-gradient(150deg, rgba(34, 158, 217, 0.14), rgba(255, 255, 255, 0.2) 58%),
    var(--paper-bright);
}

.workflow-card.featured:hover {
  transform: translateY(-23px);
}

.workflow-number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #7790a4;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.workflow-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.workflow-card h3 {
  margin-bottom: 14px;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.workflow-card p {
  margin-bottom: 25px;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-card > code {
  display: block;
  max-width: 100%;
  padding-top: 17px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.capabilities-section {
  background: var(--paper);
}

.centered-heading {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading .eyebrow {
  justify-content: center;
}

.centered-heading h2 {
  margin-bottom: 24px;
}

.centered-heading > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

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

.capability-card {
  min-width: 0;
  min-height: 320px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.capability-wide {
  grid-column: 1 / -1;
}

.capability-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 31px;
  gap: 24px;
}

.capability-topline span {
  padding: 5px 9px;
  border-radius: 6px;
  background: #dff5ff;
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-topline code {
  overflow: hidden;
  color: #607689;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-card h3 {
  max-width: 670px;
  margin-bottom: 15px;
  font-size: clamp(27px, 3.3vw, 42px);
  letter-spacing: -0.045em;
}

.capability-card p {
  max-width: 650px;
  margin-bottom: 25px;
  color: var(--muted);
  line-height: 1.72;
}

.capability-card > code {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 9px 11px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-bright);
  color: var(--blue-800);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.capability-symbol {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 64px;
  place-items: center;
  border-radius: 13px;
  background: var(--paper);
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
}

.capability-card:not(.capability-wide) h3 {
  font-size: clamp(27px, 3vw, 36px);
}

.capability-accent {
  border-color: transparent;
  background: var(--telegram);
  color: var(--ink);
}

.capability-accent .capability-symbol {
  background: rgba(255, 255, 255, 0.84);
}

.capability-accent p {
  color: var(--ink-soft);
}

.capability-accent > code {
  border-color: rgba(7, 85, 123, 0.24);
  background: rgba(255, 255, 255, 0.8);
}

.listen-preview {
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--terminal-line);
  border-radius: 13px;
  background: var(--terminal);
  color: #e7f2fa;
  font-family: var(--font-mono);
  font-size: 10px;
}

.listen-header {
  display: flex;
  align-items: center;
  min-height: 39px;
  gap: 8px;
  padding: 0 15px;
  border-bottom: 1px solid var(--terminal-line);
  color: #a8bacb;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(42, 200, 149, 0.12);
}

.listen-row {
  display: grid;
  grid-template-columns: 54px 84px minmax(0, 1fr);
  align-items: center;
  min-height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(38, 54, 76, 0.72);
  gap: 10px;
}

.listen-row time {
  color: #6f8398;
}

.listen-row strong {
  color: #7fd5f4;
}

.listen-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-row.muted {
  color: #a7b7c6;
}

.listen-composer {
  margin: 14px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid #39506c;
  border-radius: 7px;
  color: #dbe8f1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-composer span {
  color: var(--mint);
  animation: cursor-blink 1.2s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.group-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}

.group-command-stack {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.group-command-stack code {
  display: block;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-command-stack b {
  margin-right: 6px;
  color: var(--mint);
}

.agent-section {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 11vw, 154px) 0;
  background: var(--ink);
  color: var(--surface);
}

.agent-section::after {
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(127, 213, 244, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(127, 213, 244, 0.04), 0 0 0 160px rgba(127, 213, 244, 0.025);
  content: "";
  pointer-events: none;
}

.agent-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(60px, 9vw, 120px);
}

.light-eyebrow {
  color: #7fd5f4;
}

.agent-copy h2 {
  margin-bottom: 27px;
  font-size: clamp(39px, 5vw, 64px);
  letter-spacing: -0.055em;
}

.agent-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 30px;
  color: var(--muted-light);
  font-size: 17px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 37px;
  padding: 0;
  gap: 13px 22px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #d9e5ed;
  font-size: 13px;
}

.check-list li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.check-list code {
  color: #7fd5f4;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.light-link {
  color: #7fd5f4;
}

.light-link:hover {
  color: var(--surface);
}

.agent-install-card {
  position: relative;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid #36506d;
  border-radius: 20px;
  background: #132238;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.agent-install-card::before {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border: 1px dashed rgba(127, 213, 244, 0.15);
  border-radius: 13px;
  content: "";
  pointer-events: none;
}

.agent-install-label {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 46px;
  color: #8ba1b6;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-install-card h3 {
  position: relative;
  max-width: 480px;
  margin-bottom: 28px;
  font-size: clamp(27px, 3.4vw, 40px);
  letter-spacing: -0.045em;
}

.agent-install-card h3 code {
  color: #7fd5f4;
  font-size: 0.86em;
}

.command-block {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  margin-bottom: 23px;
  padding: 17px 18px;
  overflow-x: auto;
  border: 1px solid #39516c;
  border-radius: 9px;
  background: #0c1727;
  color: #e7f2fa;
  font-size: 10px;
  line-height: 1.8;
}

.command-block code {
  min-width: 420px;
}

.command-prefix {
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 800;
}

.agent-install-card > p {
  position: relative;
  margin-bottom: 0;
  color: #9eb1c3;
  font-size: 13px;
}

.install-section {
  background: var(--surface);
}

.install-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(60px, 9vw, 120px);
}

.install-shell > * {
  min-width: 0;
}

.install-heading {
  align-self: start;
  position: sticky;
  top: 116px;
}

.install-heading h2 {
  margin-bottom: 26px;
}

.install-heading > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  padding: 29px 0 35px;
  border-top: 1px solid var(--line);
}

.install-steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-label span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 10px;
}

.install-steps pre {
  margin-bottom: 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--terminal-line);
  border-radius: 11px;
  background: var(--terminal);
  color: #e7f2fa;
  font-size: 12px;
  line-height: 1.8;
}

.next-command {
  display: grid;
  margin-top: 26px;
  padding: 21px;
  border: 1px solid rgba(34, 158, 217, 0.38);
  border-radius: 12px;
  background: #e8f7fd;
  gap: 10px;
}

.next-command span {
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 750;
}

.next-command code {
  max-width: 100%;
  overflow-x: auto;
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
}

.safety-section {
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(60px, 10vw, 140px);
}

.safety-copy > p:first-child {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.safety-switch {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  gap: 10px;
}

.safety-switch code {
  min-width: 0;
  padding: 11px 13px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-800);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.safety-switch > span {
  flex: 0 0 auto;
  color: var(--blue-700);
}

.safety-note {
  margin: 0;
  padding-left: 15px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  font-size: 12px;
}

.final-cta {
  padding: clamp(82px, 9vw, 118px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 110%, rgba(34, 158, 217, 0.2), transparent 44%),
    var(--paper);
  text-align: center;
}

.final-cta-inner {
  display: grid;
  justify-items: center;
}

.final-cta .eyebrow {
  justify-content: center;
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 34px;
}

.site-footer {
  padding: 46px 0 26px;
  border-top: 1px solid #25364b;
  background: var(--ink);
  color: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 38px;
  gap: 32px;
}

.footer-brand > span:last-child {
  display: grid;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand small {
  color: #91a6b9;
  font-size: 10px;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #b5c5d3;
  font-size: 12px;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--surface);
}

.footer-legal {
  padding-top: 22px;
  border-top: 1px solid #25364b;
  color: #7890a4;
  font-size: 10px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid transparent;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--blue-800);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .signal-stage {
    width: min(680px, calc(100% - 36px));
    margin: 18px auto 0;
  }

  .split-heading,
  .agent-grid,
  .install-shell,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 25px;
  }

  .split-heading > p {
    max-width: 680px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card,
  .workflow-card.featured {
    min-height: 0;
    transform: none;
  }

  .workflow-card.featured:hover,
  .workflow-card:hover {
    transform: translateY(-4px);
  }

  .workflow-icon {
    margin-bottom: 38px;
  }

  .agent-copy {
    max-width: 700px;
  }

  .agent-install-card {
    max-width: 720px;
  }

  .install-heading {
    position: static;
    max-width: 680px;
  }

  .install-steps {
    max-width: 800px;
  }

  .safety-grid {
    gap: 44px;
  }

  .safety-copy {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 66px;
    gap: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .primary-nav {
    margin-left: auto;
    gap: 9px;
  }

  .primary-nav > .landing-section-link {
    display: none;
  }

  .primary-nav a {
    min-height: 42px;
  }

  .github-link {
    padding: 0 12px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 66px);
    letter-spacing: -0.06em;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .hero-facts div {
    padding: 0 13px;
  }

  .hero-facts dd {
    font-size: 11px;
  }

  .signal-stage {
    width: 100%;
    min-height: 540px;
    border-radius: 22px;
  }

  .message-bubble {
    top: 66px;
    left: 14px;
  }

  .terminal-card {
    top: 172px;
    right: 14px;
    left: 14px;
  }

  .terminal-body {
    padding: 18px;
  }

  .result-chip {
    right: 14px;
    bottom: 52px;
  }

  .stage-label-in {
    left: 18px;
  }

  .stage-label-out {
    right: 18px;
    bottom: 18px;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading h2,
  .install-heading h2,
  .safety-grid h2,
  .final-cta h2 {
    font-size: clamp(37px, 10.5vw, 50px);
  }

  .workflow-card {
    padding: 25px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-wide {
    grid-column: auto;
  }

  .capability-card {
    min-height: 0;
  }

  .capability-symbol {
    margin-bottom: 48px;
  }

  .capability-topline {
    align-items: flex-start;
    margin-bottom: 27px;
  }

  .listen-row {
    grid-template-columns: 46px 74px minmax(0, 1fr);
    padding: 0 11px;
    gap: 6px;
  }

  .group-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .group-command-stack {
    padding: 14px;
  }

  .agent-section {
    padding: 90px 0;
  }

  .agent-grid {
    gap: 60px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .agent-install-card {
    padding: 30px 25px;
  }

  .safety-switch {
    display: grid;
    justify-items: start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 18px;
  }
}

@media (max-width: 460px) {
  .brand-name {
    display: none;
  }

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

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .hero-facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .message-bubble {
    width: calc(100% - 28px);
  }

  .result-chip {
    min-width: 190px;
  }

  .capability-topline code {
    display: none;
  }

  .listen-row {
    grid-template-columns: 40px 62px minmax(0, 1fr);
    font-size: 8px;
  }

  .command-block {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .status-dot,
  .pulse,
  .check-list li::before {
    border: 1px solid currentColor;
  }

  .signal-path path,
  .signal-path circle {
    stroke: CanvasText;
  }
}
