:root {
  color-scheme: light;
  --ink: #111817;
  --muted: #65706d;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d9ddd6;
  --teal: #087b73;
  --teal-dark: #04534e;
  --coral: #c85f42;
  --gold: #c49a43;
  --shadow: 0 18px 50px rgba(27, 35, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(17, 24, 23, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 110px clamp(20px, 5vw, 72px) 12vh;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 15, 14, 0.88) 0%, rgba(7, 15, 14, 0.66) 38%, rgba(7, 15, 14, 0.12) 72%),
    linear-gradient(180deg, rgba(7, 15, 14, 0.24), rgba(7, 15, 14, 0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 550px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.section {
  padding: clamp(60px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: 840px;
}

.section-head.wide {
  max-width: 100%;
}

.section-head p,
.connect-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.section-head code,
.connect-card code {
  background: #e3f1ee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.saf-section {
  margin-top: -8vh;
  background: var(--paper);
}

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

.saf-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.saf-card p {
  color: var(--muted);
  line-height: 1.55;
}

.saf-card code {
  background: #e3f1ee;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

.saf-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e3f1ee;
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 800;
}

.tools-section {
  background: #fff;
}

.tools-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 42px;
  align-items: start;
}

.tool-group-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.tool-row:last-child {
  border-bottom: 0;
}

.tool-row strong {
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tool-row span {
  color: var(--muted);
  line-height: 1.55;
}

.mcp-section {
  background: #f1f6f4;
}

.mcp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 5vw, 64px);
  margin-top: 42px;
  align-items: start;
}

.mcp-config {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.config-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.tab {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  transition: color 120ms, background 120ms;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 1px 0 #fff;
}

.config-panel {
  display: none;
  padding: 20px 22px;
}

.config-panel.active {
  display: block;
}

.config-panel pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
}

.c-d { color: #04534e; }
.c-s { color: #9a4e2a; }
.c-k { color: #a02260; }

.mcp-flow {
  display: grid;
  gap: 14px;
}

.mcp-flow div {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mcp-flow div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -15px;
  width: 2px;
  height: 15px;
  background: var(--teal);
}

.mcp-flow strong {
  font-size: 22px;
}

.mcp-flow-note {
  border-style: dashed !important;
  background: #eaf4f2 !important;
}

.mcp-flow-note strong {
  font-size: 16px !important;
}

.security-band {
  background: #18211f;
  color: #fff;
}

.compact {
  max-width: 780px;
}

.security-band .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-grid div {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: #18211f;
}

.metric-grid strong {
  font-size: 24px;
}

.metric-grid span {
  color: rgba(255, 255, 255, 0.68);
}

.connect-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.65fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.connect-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.connect-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: center;
}

.connect-row:last-child {
  border-bottom: 0;
}

.connect-row strong {
  color: var(--teal-dark);
  font-weight: 650;
}

.connect-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #e3f1ee;
  padding: 3px 8px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.connect-row span {
  color: var(--muted);
}

.connect-row a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: #d2ebe7;
  color: var(--teal-dark) !important;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(7, 15, 14, 0.9), rgba(7, 15, 14, 0.5));
  }

  .saf-grid,
  .metric-grid,
  .tools-layout,
  .mcp-layout,
  .connect-section {
    grid-template-columns: 1fr;
  }

  .tool-row,
  .connect-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

   .tools-section {
    .tool-row {
      grid-template-columns: 1fr;
      gap: 4px;
    }
  }

  .connect-section {
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .saf-card,
  .connect-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
  }

  .config-tabs {
    flex-direction: column;
  }

  .tab {
    text-align: center;
  }
}
