:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #526176;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #d7e0ea;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #d58a15;
  --blue: #2563eb;
  --green: #15a46a;
  --charcoal: #101826;
  --charcoal-soft: #172235;
  --shadow: 0 24px 60px rgba(15, 35, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(215, 224, 234, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  background: var(--teal-dark);
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-cta,
.primary-button {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.25);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid rgba(19, 32, 51, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 84px);
  background: #eaf2f6;
}

.vault-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #eaf2f6;
}

.vault-scene::before {
  content: "";
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(19, 32, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 51, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: rotate(-7deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  color: #2e3f56;
  font-size: 21px;
  line-height: 1.52;
}

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

.proof-note {
  max-width: 680px;
  color: #42536a;
  font-size: 15px;
}

.source,
.agent,
.wiki-preview {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.source {
  z-index: 1;
  width: min(260px, 34vw);
  padding: 18px;
}

.source span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--charcoal-soft);
  font-size: 11px;
  font-weight: 850;
}

.source strong,
.source small {
  display: block;
}

.source small {
  margin-top: 6px;
  color: var(--muted);
}

.source-a {
  top: 126px;
  right: 8%;
}

.source-b {
  top: 382px;
  right: 3%;
}

.source-c {
  display: none;
}

.wiki-preview {
  right: 5%;
  bottom: 92px;
  z-index: 1;
  width: min(390px, 34vw);
  overflow: hidden;
  background: rgba(16, 24, 38, 0.86);
  color: #e9f6f4;
}

.wiki-toolbar {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wiki-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8ccdc5;
}

.wiki-toolbar span:nth-child(2) {
  background: #f0bd62;
}

.wiki-toolbar span:nth-child(3) {
  background: #7ea6f2;
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.wiki-grid div {
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
}

.agent {
  display: grid;
  place-items: center;
  z-index: 1;
  min-width: 98px;
  min-height: 46px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  background: var(--teal-dark);
}

.agent-a {
  right: 43%;
  top: 254px;
}

.agent-b {
  right: 8%;
  top: 284px;
  background: var(--blue);
}

.agent-c {
  right: 20%;
  bottom: 52px;
  background: var(--gold);
}

.line {
  position: absolute;
  z-index: 0;
  height: 2px;
  transform-origin: left center;
  background: rgba(15, 118, 110, 0.35);
}

.line-1 {
  top: 264px;
  right: 31%;
  width: 230px;
  transform: rotate(17deg);
}

.line-2 {
  top: 384px;
  right: 19%;
  width: 280px;
  transform: rotate(-13deg);
}

.line-3 {
  bottom: 248px;
  left: 24%;
  width: 360px;
  transform: rotate(-9deg);
}

.line-4 {
  bottom: 142px;
  right: 25%;
  width: 180px;
  transform: rotate(24deg);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: -64px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 4;
}

.metric-band article {
  min-height: 150px;
  padding: 28px;
  border: 1px solid rgba(215, 224, 234, 0.86);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 35, 55, 0.08);
}

.metric-band article:first-child {
  border-radius: 8px 0 0 8px;
}

.metric-band article:last-child {
  border-radius: 0 8px 8px 0;
}

.metric-band strong {
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
  color: var(--teal-dark);
}

.metric-band span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 20px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p,
.split-section p,
.example-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.steps,
.pricing-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps article,
.pricing-grid article,
.example-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.07);
}

.steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 850;
}

.steps p,
.pricing-grid p,
.example-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: #26364b;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--green);
}

.terminal-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.terminal-title {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8d7d2;
  font-weight: 800;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #e9f6f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
}

.dark-section {
  max-width: none;
  color: #fff;
  background: var(--charcoal);
}

.dark-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.dark-section .eyebrow {
  color: #8ccdc5;
}

.dark-section .section-heading p,
.dark-section .pricing-grid p {
  color: #b8c6d8;
}

.pricing-grid article {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--charcoal-soft);
  box-shadow: none;
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.final-cta {
  display: grid;
  place-items: center;
  padding: 88px 20px;
  text-align: center;
  color: #fff;
  background: var(--teal-dark);
}

.final-cta h2 {
  max-width: 820px;
}

.final-cta p {
  max-width: 650px;
  color: #d8efec;
  font-size: 18px;
  line-height: 1.55;
}

.final-cta .primary-button {
  margin-top: 16px;
  color: var(--teal-dark);
  background: #fff;
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 1fr));
  gap: 34px;
  padding: 58px clamp(20px, 6vw, 84px) 28px;
  color: #dce7f2;
  background: #0c1420;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer address,
.site-footer a {
  color: #aebed0;
  line-height: 1.6;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 700px;
    padding-top: 84px;
    padding-bottom: 84px;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 42px;
  }

  .vault-scene {
    opacity: 0.52;
  }

  .source,
  .agent,
  .wiki-preview {
    transform: scale(0.82);
  }

  .source-a,
  .source-b,
  .agent-a,
  .agent-b {
    right: 2%;
  }

  .wiki-preview {
    right: 4%;
    width: 520px;
    max-width: 86vw;
  }

  .metric-band,
  .steps,
  .pricing-grid,
  .example-grid,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metric-band article,
  .metric-band article:first-child,
  .metric-band article:last-child {
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .source,
  .agent,
  .line,
  .wiki-preview {
    display: none;
  }

  .metric-band {
    margin-top: 0;
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
  }
}
