/* ============================================================
   commonconsole — landing page
   design language: deepsource.com
   light theme · juniper green · Google Sans / Instrument Serif
   ============================================================ */

:root {
  /* gray scale — light surfaces + text */
  --gray-1: #fcfcfd;
  --gray-2: #f8f9fb;
  --gray-3: #eff0f4;
  --gray-4: #e6e8ed;
  --gray-5: #dfe1e7;
  --gray-6: #d7dae1;
  --gray-7: #cbcfd7;
  --gray-8: #b7bcc6;
  --gray-9: #8a8e98;
  --gray-10: #7f838d;
  --gray-11: #60646d;
  --gray-12: #1d1f25;

  /* juniper — brand green */
  --juniper-1: #fafefc;
  --juniper-2: #f2fcf7;
  --juniper-3: #e0f8ed;
  --juniper-4: #cdf3e2;
  --juniper-5: #b7ecd4;
  --juniper-6: #9be2c4;
  --juniper-7: #73d3ae;
  --juniper-8: #1cbf8f;
  --juniper-9: #33cb9a;
  --juniper-10: #1ec08f;
  --juniper-11: #00825b;
  --juniper-12: #0b3d2c;

  /* ink — dark surfaces */
  --ink-50: #303540;
  --ink-100: #2a2e37;
  --ink-200: #23262e;
  --ink-300: #16181d;
  --ink-400: #121317;

  /* functional */
  --robin: #ee7c4b;
  --orange: #ef5f00;
  --orange-dark: #c24e00;
  --cherry: #dd4425;
  --honey: #bf8700;

  --banner-h: 40px;
  --nav-h: 72px;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "Google Sans Code", "JetBrains Mono", "SF Mono", ui-monospace,
    Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--gray-1);
  color: var(--gray-12);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--juniper-4); }

main { position: relative; z-index: 1; }

/* ============ surfaces (0.5px hairline + whisper shadow) ============ */
.surface {
  background: #fff;
  border: 0.5px solid var(--gray-6);
  box-shadow: 0 3px 6px -2px #00000006, 0 1px 1px #0000000b;
  border-radius: 6px;
}
/* deepsource card bloom: green radial from bottom-right + blurred blob */
.bloom {
  position: relative;
  overflow: clip;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.bloom::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 100% 100%,
    var(--juniper-4) 0%,
    var(--juniper-3) 25%,
    var(--juniper-2) 50%,
    #fff 80%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.bloom::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  background: var(--juniper-5);
  filter: blur(56px);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bloom:hover {
  border-color: var(--juniper-6);
  box-shadow: 0 4px 8px -2px #00000008, 0 2px 2px #0000000f;
}
.bloom:hover::before { opacity: 1; }
.bloom:hover::after { opacity: 0.5; }
.bloom > * { position: relative; z-index: 1; }

/* ============ announcement banner ============ */
.banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--juniper-12);
  z-index: 110;
  padding: 0 16px;
}
.banner a {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner a:hover { opacity: 0.82; }

/* ============ nav ============ */
.nav {
  position: fixed;
  top: var(--banner-h); left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 28px;
  background: rgba(252, 252, 253, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-4);
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray-12);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 16.5px;
}
.nav-brand .mark { width: 24px; height: 24px; color: var(--juniper-11); }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--gray-12);
  opacity: 0.75;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; }

/* ============ buttons (ring-inset style) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--juniper-11);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 61, 44, 0.35), 0 1px 2px #00000012;
}
.btn-primary:hover { background: rgba(0, 130, 91, 0.9); }
.btn-ghost {
  background: #fff;
  color: var(--gray-12);
  box-shadow: inset 0 0 0 1px var(--gray-5), 0 1px 2px #00000008;
}
.btn-ghost:hover { background: var(--gray-2); box-shadow: inset 0 0 0 1px var(--gray-6); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* nav CTA — light juniper ring button (deepsource "Contact Sales" style) */
.btn-nav {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: var(--juniper-11);
  background: var(--juniper-2);
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--juniper-9), 0 1px 2px #0000000a;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--juniper-3); }

/* ============ hero ============ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--banner-h) + var(--nav-h) + 72px) 28px 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--juniper-11);
  background: var(--juniper-2);
  border: 1px solid var(--juniper-5);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--juniper-12);
  max-width: 36rem;
}
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 34rem;
  margin-top: 22px;
  color: rgba(29, 31, 37, 0.9);
  font-size: 19px;
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* "Quickstart with" segmented pill — deepsource hero pattern */
.quickstart {
  display: inline-flex;
  align-items: center;
  margin-top: 36px;
  background: #fff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--gray-4), 0 1px 2px #00000008;
  overflow: hidden;
}
.qs-label {
  padding: 10px 6px 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-10);
  white-space: nowrap;
}
.qs {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--juniper-12);
  text-decoration: none;
  border-left: 1px solid var(--gray-4);
  transition: background 0.15s;
  white-space: nowrap;
}
.qs:hover { background: var(--juniper-3); }

/* ============ console card ============ */
.console {
  overflow: hidden;
  text-align: left;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-4);
  background: var(--gray-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-6); }
.console-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-9);
  letter-spacing: 0.02em;
}
.console-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 300px;
}
.term {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  border-right: 1px solid var(--gray-4);
  overflow: hidden;
  background: var(--gray-1);
}
.term-line { white-space: pre-wrap; word-break: break-all; color: var(--gray-12); }
.prompt { color: var(--juniper-11); font-weight: 600; }
.caret {
  display: inline-block;
  width: 7px; height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--juniper-9);
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-out { margin-top: 10px; }
.term-out .ok { color: var(--juniper-11); }
.term-out .dim { color: var(--gray-9); }
.term-out .go { color: var(--juniper-12); font-weight: 500; }

.dispatch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--ink-300);
  background: radial-gradient(circle at 60% 50%, var(--juniper-2), transparent 68%);
}
.dispatch-svg { width: 84%; max-width: 270px; }
.dispatch .node {
  animation: nodePulse 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.dispatch .n1 { animation-delay: 0.9s; }
.dispatch .n2 { animation-delay: 1.83s; }
.dispatch .n3 { animation-delay: 2.76s; }
@keyframes nodePulse {
  0%, 26%, 100% { transform: scale(1); }
  10% { transform: scale(1.22); }
}
.pulses circle { filter: drop-shadow(0 0 4px rgba(51, 203, 154, 0.9)); }
.dispatch-labels { position: absolute; inset: 0; pointer-events: none; }
.dl {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--gray-9);
}
.dl1 { right: 4%; top: 22%; }
.dl2 { right: 1%; top: 47%; }
.dl3 { right: 4%; top: 71%; }

/* ============ stats ============ */
.stats {
  display: flex;
  margin-top: 80px;
  border-top: 1px solid var(--gray-4);
  border-bottom: 1px solid var(--gray-4);
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 180px;
  padding: 24px 18px 22px;
  text-align: center;
  border-right: 1px solid var(--gray-4);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--juniper-12);
}
.stat span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gray-10);
  letter-spacing: 0.02em;
}

/* ============ sections ============ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 28px 24px;
  border-top: 1px solid var(--gray-3);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.15;
  color: var(--juniper-12);
}
.section-sub {
  margin-top: 18px;
  color: var(--gray-10);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.65;
}

/* ============ stack diagram ============ */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.stack-layers { display: flex; flex-direction: column; }
.layer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--gray-12);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.layer:hover {
  border-color: var(--juniper-6);
  box-shadow: 0 4px 8px -2px #00000008, 0 2px 2px #0000000f;
}
.layer.active {
  border-color: var(--juniper-9);
  background: linear-gradient(90deg, var(--juniper-2), #fff);
}
.layer-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.layer-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-9);
  text-align: right;
}
.layer-link {
  width: 2px;
  height: 20px;
  margin-left: 34px;
  background: repeating-linear-gradient(
    to bottom,
    var(--juniper-7) 0 4px,
    transparent 4px 9px
  );
  animation: flow 1.4s linear infinite;
  opacity: 0.75;
}
@keyframes flow { to { background-position: 0 9px; } }
.stack-detail {
  position: sticky;
  top: calc(var(--nav-h) + var(--banner-h) + 24px);
  padding: 30px 32px;
  min-height: 300px;
}
.stack-detail h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--gray-12);
  margin-bottom: 12px;
}
.stack-detail p { color: var(--gray-10); font-size: 15px; font-weight: 500; }
.stack-detail ul { margin-top: 18px; list-style: none; }
.stack-detail li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--gray-11);
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--gray-3);
}
.stack-detail li::before {
  content: "→";
  position: absolute;
  left: 2px;
  color: var(--juniper-11);
  font-family: var(--mono);
}

/* ============ builder ============ */
.builder {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}
.pick-group { margin-bottom: 28px; }
.pick-group label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-9);
  margin-bottom: 11px;
}
.pick-group label em {
  font-style: normal;
  color: var(--juniper-10);
  font-size: 10px;
  margin-left: 8px;
  letter-spacing: 0.05em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px;
  background: #fff;
  border: none;
  border-radius: 999px;
  color: var(--gray-11);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--gray-5);
  transition: box-shadow 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--gray-7); color: var(--gray-12); }
.chip.on {
  background: var(--juniper-2);
  color: var(--juniper-11);
  box-shadow: inset 0 0 0 1px var(--juniper-9);
}
.chip-cloud.on {
  background: var(--juniper-11);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--juniper-11);
}
.builder-out {
  position: sticky;
  top: calc(var(--nav-h) + var(--banner-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.out-card {
  overflow: hidden;
}
.out-card.dark { background: var(--ink-400); border-color: var(--ink-100); }
.out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--gray-4);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-9);
  background: var(--gray-2);
}
.out-card.dark .out-head {
  background: var(--ink-300);
  border-bottom-color: var(--ink-100);
  color: var(--gray-8);
}
.copy {
  background: #fff;
  border: none;
  border-radius: 5px;
  color: var(--gray-11);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--gray-5);
  transition: box-shadow 0.15s, color 0.15s;
}
.copy:hover { color: var(--juniper-11); box-shadow: inset 0 0 0 1px var(--juniper-9); }
.out-card.dark .copy {
  background: var(--ink-200);
  color: var(--gray-7);
  box-shadow: inset 0 0 0 1px var(--ink-50);
}
.out-card.dark .copy:hover { color: var(--juniper-9); box-shadow: inset 0 0 0 1px var(--juniper-8); }
.out-cmd {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.out-card.dark .out-cmd { color: var(--gray-3); }
.out-cmd .flag { color: var(--juniper-9); }
.out-cmd .val { color: inherit; }
.out-summary { list-style: none; padding: 6px 0; }
.out-summary li {
  padding: 10px 20px 10px 42px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-11);
  border-bottom: 1px solid var(--gray-3);
}
.out-summary li:last-child { border-bottom: none; }
.out-summary li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: var(--juniper-9);
  font-weight: 600;
}
.out-summary li.warn::before { content: "~"; color: var(--honey); }

/* ============ deploy ============ */
.deploy-toggle {
  position: relative;
  display: flex;
  margin: 0 auto;
  width: fit-content;
  padding: 4px;
  background: var(--gray-2);
  box-shadow: inset 0 0 0 1px var(--gray-4);
  border-radius: 999px;
}
.dt {
  position: relative;
  z-index: 2;
  padding: 9px 22px;
  background: none;
  border: none;
  border-radius: 999px;
  color: var(--gray-10);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s;
}
.dt.active { color: var(--juniper-11); }
.dt-slider {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--juniper-9), 0 1px 3px #0000000f;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s;
  z-index: 1;
}
.deploy-panels { margin-top: 32px; }
.deploy-panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  padding: 34px 36px;
}
.deploy-panel.active { display: grid; }
.deploy-panel ul { list-style: none; align-self: center; }
.deploy-panel li {
  padding: 11px 0 11px 26px;
  position: relative;
  color: var(--gray-10);
  font-size: 14.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-3);
}
.deploy-panel li:last-child { border-bottom: none; }
.deploy-panel li b { color: var(--gray-12); font-weight: 600; }
.deploy-panel li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--juniper-11);
  font-family: var(--mono);
}
.deploy-panel code, .tier code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--juniper-11);
  background: var(--juniper-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.code-block {
  align-self: center;
  background: var(--ink-400);
  border: 0.5px solid var(--ink-100);
  border-radius: 6px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--gray-3);
  white-space: pre-wrap;
  box-shadow: 0 3px 6px -2px #00000014;
}

/* ============ observe ============ */
.observe-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.observe-tiers { display: flex; flex-direction: column; gap: 12px; }
.tier {
  padding: 18px 20px;
  color: var(--gray-12);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}
.tier b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.tier span { font-size: 13px; color: var(--gray-10); font-weight: 500; }
.tier.active {
  border-color: var(--juniper-9);
  background: linear-gradient(90deg, var(--juniper-2), #fff);
}
.observe-stage {
  min-height: 380px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-1);
}
.stage-pane { display: none; width: 100%; }
.stage-pane.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* chat mock — light */
.chat-mock { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: 0 auto; }
.msg {
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 85%;
}
.msg-user {
  align-self: flex-end;
  background: var(--juniper-12);
  color: #fff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.msg-bot {
  align-self: flex-start;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--gray-5), 0 1px 2px #00000008;
  color: var(--gray-11);
  border-bottom-left-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
}
.msg-shot {
  box-shadow: none;
  border: 1px dashed var(--juniper-7);
  background: var(--juniper-2);
  color: var(--juniper-11);
}

/* snapshots mock — light */
.shots { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.shot {
  width: 170px;
  background: #fff;
  border: 0.5px solid var(--gray-6);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 6px -2px #00000006, 0 1px 1px #0000000b;
}
.shot-bar { height: 16px; background: var(--gray-2); border-bottom: 1px solid var(--gray-4); }
.shot-lines { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.shot-lines i { display: block; height: 7px; border-radius: 4px; background: var(--gray-4); }
.shot-lines i:nth-child(1) { width: 88%; }
.shot-lines i:nth-child(2) { width: 62%; background: var(--juniper-4); }
.shot-lines i:nth-child(3) { width: 74%; }
.shot span {
  display: block;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gray-9);
  border-top: 1px solid var(--gray-4);
}

/* live mock — light */
.live-window {
  max-width: 480px;
  margin: 0 auto;
  border: 0.5px solid var(--gray-6);
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-1);
  box-shadow: 0 3px 6px -2px #00000006, 0 1px 1px #0000000b;
}
.live-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--gray-2);
  border-bottom: 1px solid var(--gray-4);
}
.live-url {
  flex: 1;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-9);
  background: #fff;
  padding: 5px 12px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--gray-5);
  white-space: nowrap;
  overflow: hidden;
}
.live-status {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--juniper-11);
  box-shadow: inset 0 0 0 1px var(--juniper-7);
  background: var(--juniper-2);
  white-space: nowrap;
}
.live-status.you {
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px var(--robin);
  background: #ef5f001a;
}
.live-page { position: relative; padding: 18px; height: 210px; }
.lp-hero {
  height: 54px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--juniper-3), var(--juniper-1));
  border: 0.5px solid var(--juniper-5);
  margin-bottom: 14px;
}
.lp-row { display: flex; gap: 10px; margin-bottom: 10px; }
.lp-row i { height: 26px; border-radius: 5px; background: var(--gray-3); }
.lp-row i:first-child { flex: 2; }
.lp-row i:last-child { flex: 1; }
.cursor {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--juniper-9);
  box-shadow: 0 0 0 4px rgba(51, 203, 154, 0.22), 0 0 10px rgba(51, 203, 154, 0.7);
  top: 30px; left: 40px;
  transition: background 0.3s, box-shadow 0.3s;
  animation: roam 6s ease-in-out infinite;
}
.cursor.you {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 95, 0, 0.18), 0 0 10px rgba(239, 95, 0, 0.6);
}
@keyframes roam {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(190px, 34px); }
  50%  { transform: translate(320px, 110px); }
  75%  { transform: translate(120px, 130px); }
  100% { transform: translate(0, 0); }
}
.takeover {
  margin: 20px auto 0;
  display: flex;
  background: #fff;
  color: var(--gray-12);
  box-shadow: inset 0 0 0 1px var(--gray-5), 0 1px 2px #00000008;
}
.takeover:hover { background: var(--gray-2); }
.takeover.you {
  background: #ef5f001a;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px var(--robin);
}

/* ============ cta ============ */
.cta { text-align: center; padding-bottom: 110px; border-top: none; }
.cta h2 { font-size: clamp(30px, 3.8vw, 46px); }
.cta .hero-ctas { justify-content: center; }

/* ============ footer — dark ink ============ */
.footer {
  background: var(--ink-400);
  border-top: 1px solid var(--ink-100);
  padding: 72px 28px 44px;
  text-align: center;
}
.footer-brand { display: flex; justify-content: center; }
.lockup { width: min(400px, 80vw); height: auto; color: var(--gray-1); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}
.footer-links a {
  color: var(--gray-8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--juniper-5); }
.footer-note {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gray-10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.aiayn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-8);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.aiayn-link:hover { color: var(--juniper-5); }
.aiayn-logo {
  height: 14px;
  width: auto;
  filter: invert(1);
  opacity: 0.85;
  transition: opacity 0.15s;
}
.aiayn-link:hover .aiayn-logo { opacity: 1; }

/* ============ reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .console-body { grid-template-columns: 1fr; }
  .dispatch { padding: 30px; border-top: 1px solid var(--gray-4); }
  .dispatch-svg { max-width: 230px; }
  .stack-grid, .builder, .observe-grid { grid-template-columns: 1fr; }
  .stack-detail, .builder-out { position: static; }
  .deploy-panel { grid-template-columns: 1fr; }
  .observe-grid { gap: 20px; }
}
@media (max-width: 640px) {
  .nav { padding: 0 18px; gap: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--banner-h) + var(--nav-h) + 48px); }
  .section { padding: 72px 20px 10px; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--gray-4); }
  .stat:last-child { border-bottom: none; }
  .quickstart { flex-wrap: wrap; border-radius: 12px; }
  .qs { flex: 1 1 40%; text-align: center; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
