:root {
  --ink: #091128;
  --ink-2: #18233f;
  --muted: #59657c;
  --line: #dce3ef;
  --paper: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.9);
  --violet: #4f46d8;
  --violet-2: #2736a8;
  --mint: #d8f8ef;
  --amber: #fff1bf;
  --blue: #e7eeff;
  --dark: #07101f;
  --green: #187a59;
  --orange: #a85d00;
  --shadow: 0 22px 58px rgba(25, 37, 70, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 48%, #ffffff 100%);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(79, 70, 216, 0.34);
  outline-offset: 3px;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

code,
pre {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

.site-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(9, 17, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 17, 40, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.site-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: linear-gradient(135deg, rgba(9, 17, 40, 0.035) 25%, transparent 25%),
    linear-gradient(225deg, rgba(9, 17, 40, 0.026) 25%, transparent 25%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, transparent 100%);
}

.site-header,
.hero,
.principles,
.workflow,
.local-system,
.sequence,
.extensions,
.final-cta,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(219, 226, 240, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(30, 40, 72, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
  font-weight: 850;
  font-size: 1.02rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(87, 76, 210, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #2f3c59;
  font-weight: 650;
  font-size: 0.92rem;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--violet);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: fit-content;
}

.github-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  color: #2f3c59;
  border: 1px solid rgba(219, 226, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 240ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.github-stars:hover {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: rgba(79, 70, 216, 0.26);
  background: #fff;
}

.github-stars svg {
  width: 16px;
  height: 16px;
  color: var(--violet);
  fill: currentColor;
  stroke-width: 2.1;
}

.header-action {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(9, 17, 40, 0.2);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.header-action svg,
.button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: 720px;
  padding: 88px 0 52px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--violet);
  font-weight: 850;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  display: grid;
  gap: 0;
  max-width: 600px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.25rem, 5.45vw, 5.85rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-subcopy {
  max-width: 690px;
  margin: 28px 0 0;
  color: #33415f;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 1rem;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #1b2550 70%, var(--violet-2));
  box-shadow: 0 18px 42px rgba(52, 48, 117, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 14px 32px rgba(31, 43, 76, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 550px;
}

.command-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: min(100%, 560px);
  margin: 0 auto;
  border: 1px solid rgba(120, 135, 168, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(145deg, #07101f, #111b2d);
  box-shadow: 0 34px 76px rgba(7, 16, 31, 0.36);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(231, 236, 249, 0.11);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) {
  background: #ff6b66;
}

.window-bar span:nth-child(2) {
  background: #ffc45b;
}

.window-bar span:nth-child(3) {
  background: #58d878;
}

.command-window pre {
  margin: 0;
  min-height: 286px;
  padding: 26px;
  overflow: hidden;
  color: #f6f8ff;
  font-size: clamp(0.78rem, 1.04vw, 0.94rem);
  line-height: 1.6;
  white-space: pre-wrap;
}

.command-window span {
  color: #98a6c5;
}

.command-window em {
  color: #78f29a;
  font-style: normal;
}

.hero-character {
  position: absolute;
  z-index: 3;
  right: clamp(-96px, -6vw, -62px);
  bottom: 18px;
  width: min(30vw, 285px);
  max-width: none;
  filter: drop-shadow(0 32px 34px rgba(67, 74, 190, 0.22));
  transform-origin: 64% 76%;
  transform: rotate(1.4deg);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.principles article {
  min-height: 184px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.principles svg,
.file-card > svg,
.extension-grid svg,
.sequence-list svg {
  width: 28px;
  height: 28px;
  color: var(--violet);
  stroke-width: 2;
}

.principles h2,
.file-card h3,
.extension-grid h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.principles p,
.file-card p,
.extension-grid p,
.local-copy p,
.section-intro p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.workflow,
.local-system,
.sequence,
.extensions {
  padding: 132px 0 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 38px;
}

.section-intro h2,
.local-copy h2,
.final-cta h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.local-copy h2 {
  font-size: clamp(2.25rem, 3.2vw, 3.35rem);
}

.section-intro p,
.local-copy p {
  font-size: 1.04rem;
  max-width: 640px;
}

.agent-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.agent-rail article,
.file-card,
.extension-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(222, 228, 242, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(30, 42, 80, 0.075);
  transition: transform 700ms ease, border-color 700ms ease, box-shadow 700ms ease;
}

.agent-rail article {
  min-height: 350px;
  padding: 28px;
}

.agent-rail article::after,
.file-card::after {
  display: none;
}

.agent-rail article:hover,
.file-card:hover,
.extension-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(98, 82, 243, 0.38);
  box-shadow: 0 34px 86px rgba(30, 42, 80, 0.13);
}

.agent-rail article:hover::after,
.file-card:hover::after {
  transform: scale(1.18);
}

.agent-rail article.is-active {
  color: #fff;
  background: linear-gradient(145deg, #081124, #1b2550 66%, #2736a8);
}

.agent-rail article.is-active p,
.agent-rail article.is-active span {
  color: rgba(255, 255, 255, 0.76);
}

.agent-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--blue);
}

.agent-icon svg {
  width: 29px;
  height: 29px;
  color: var(--violet);
}

.is-active .agent-icon {
  background: rgba(255, 255, 255, 0.14);
}

.is-active .agent-icon svg {
  color: #fff;
}

.agent-rail span {
  display: block;
  margin-top: 62px;
  color: var(--violet);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.agent-rail h3 {
  margin: 12px 0 14px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.agent-rail p {
  max-width: 330px;
  margin: 0;
  color: #57637d;
  line-height: 1.64;
}

.local-system {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.local-copy {
  position: relative;
  top: auto;
}

.local-character {
  width: min(78%, 340px);
  margin: 36px auto 0;
  filter: drop-shadow(0 22px 28px rgba(67, 74, 190, 0.16));
}

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

.file-card {
  display: flex;
  min-height: 278px;
  padding: 28px;
  flex-direction: column;
}

.file-goal,
.file-state,
.file-notes,
.file-install {
  grid-column: auto;
}

.file-goal {
  border-top: 4px solid var(--green);
}

.file-state {
  border-top: 4px solid var(--violet);
}

.file-notes {
  border-top: 4px solid var(--orange);
}

.file-install {
  color: #fff;
  background: linear-gradient(145deg, #07101f, #17223a);
}

.file-install svg,
.file-install h3 {
  color: #fff;
}

.file-install p {
  color: rgba(255, 255, 255, 0.72);
}

.file-card code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  color: #2c3753;
  border: 1px solid rgba(203, 213, 230, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.55;
}

.copy-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 420px);
  margin-top: auto;
  padding: 8px 8px 8px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.copy-command:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.copy-command code {
  margin: 0;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
}

.copy-command span {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 12px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(9, 17, 40, 0.22);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sequence-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  list-style: none;
}

.sequence-list li {
  display: grid;
  align-content: space-between;
  min-height: 174px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
}

.sequence-list span {
  color: var(--ink-2);
  font-size: 1.08rem;
  font-weight: 780;
  line-height: 1.24;
}

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

.extension-grid article {
  display: flex;
  min-height: 330px;
  padding: 28px;
  flex-direction: column;
}

.extension-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--violet);
}

.extension-grid article:nth-child(2)::before,
.extension-grid article:nth-child(5)::before {
  background: var(--green);
}

.extension-grid article:nth-child(3)::before,
.extension-grid article:nth-child(6)::before {
  background: var(--orange);
}

.extension-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  margin-top: auto;
  padding: 8px 8px 8px 14px;
  color: var(--ink);
  border-color: rgba(203, 213, 230, 0.78);
  border-radius: 14px;
  background: #f8fafc;
  text-align: left;
}

.extension-bulk-command {
  width: min(100%, 460px);
  margin-top: 24px;
}

.extension-command:hover {
  border-color: rgba(79, 70, 216, 0.34);
  background: #fff;
}

.extension-command code {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  color: #26324d;
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  line-height: 1.45;
}

.extension-command span {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
  font-size: 0.82rem;
}

.final-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 150px;
  margin-bottom: 42px;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(222, 228, 242, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.final-cta img {
  width: clamp(96px, 12vw, 158px);
  filter: drop-shadow(0 18px 22px rgba(67, 74, 190, 0.18));
}

.final-cta h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.final-cta p {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer .brand img {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.repo-link svg {
  width: 16px;
  height: 16px;
}

.built-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.built-by a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  transition: color 180ms ease;
}

.built-by a:hover {
  color: var(--violet);
}

.built-by svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .github-stars {
    display: none;
  }

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

  .local-system,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 82px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .command-window {
    right: 0;
  }

  .principles,
  .agent-rail,
  .extension-grid,
  .sequence-list {
    grid-template-columns: 1fr;
  }

  .local-copy {
    position: static;
  }

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

  .file-goal,
  .file-state,
  .file-notes,
  .file-install {
    grid-column: auto;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .principles,
  .workflow,
  .local-system,
  .sequence,
  .extensions,
  .final-cta,
  .site-footer {
    width: min(1180px, calc(100% - 40px));
  }

  .site-header {
    top: 10px;
    gap: 8px;
    min-height: 58px;
    padding: 8px 8px 8px 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .header-action {
    width: 44px;
    min-width: 44px;
    min-height: 40px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.18rem);
    line-height: 0.95;
    text-wrap: balance;
  }

  .hero-subcopy {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 440px;
  }

  .command-window {
    right: 0;
  }

  .command-window pre {
    min-height: 272px;
    padding: 20px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .hero-character {
    right: -84px;
    bottom: -34px;
    width: 220px;
  }

  .local-character {
    width: min(82%, 300px);
    margin-top: 28px;
  }

  .principles article,
  .agent-rail article,
  .file-card,
  .extension-grid article,
  .sequence-list li {
    padding: 24px;
  }

  .section-intro h2,
  .local-copy h2,
  .final-cta h2 {
    font-size: 2.55rem;
    line-height: 1.04;
    text-wrap: balance;
  }

  .workflow,
  .local-system,
  .sequence,
  .extensions {
    padding-top: 104px;
  }

  .copy-command {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
    padding: 16px;
  }

  .extension-command {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
