:root {
  --ink: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --paper: #fafafa;
  --white: #ffffff;
  --teal: #145c59;
  --teal-dark: #0d3836;
  --amber: #e08a1e;
  --graphite: #171717;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.hero-metrics,
.dashboard-header,
.bar-row,
.contact-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  font-weight: 700;
}

.header-cta {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 90svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 38%, rgba(255, 255, 255, 0.28) 74%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.4) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 126px 0 42px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.primary-button {
  color: var(--white);
  background: var(--ink);
  box-shadow: none;
}

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

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--ink);
}

.hero-metrics {
  align-items: stretch;
  gap: 1px;
  width: min(900px, 100%);
  margin: 0;
}

.hero-metrics div {
  flex: 1 1 220px;
  min-height: 96px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  font-size: 20px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.intro-band,
.section,
.contact-section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.intro-band {
  background: var(--white);
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(160px, 0.24fr) 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-kicker span {
  font-size: 13px;
  font-weight: 900;
}

.section-kicker p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid article,
.capability-list article,
.operations-grid article {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid h2 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.icon-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
}

.intro-grid p,
.section-heading p,
.split-section p,
.operations-grid p,
.agent-panel p,
.logs-copy p,
.contact-section p,
.capability-list p {
  color: var(--muted);
}

.section {
  max-width: 1260px;
  margin: 0 auto;
}

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

.section-heading.compact {
  margin-bottom: 28px;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px) 1fr;
  gap: 20px;
  align-items: center;
}

.lane {
  display: grid;
  gap: 14px;
}

.lane span,
.core-grid span,
.agent-flow span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-weight: 700;
}

.platform-core {
  padding: 26px;
  color: var(--white);
  border-radius: 0;
  background: var(--ink);
  box-shadow: none;
}

.core-title {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 800;
}

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

.core-grid span {
  min-height: 72px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.split-section,
.logs-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list article,
.operations-grid article {
  padding: 22px;
}

.operations-section {
  max-width: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operations-section .section-heading,
.operations-grid {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

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

.operations-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.agent-section {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  color: var(--white);
  background: var(--ink);
}

.agent-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.agent-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.agent-flow span {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.dashboard-header {
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 800;
}

.dashboard-header span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.bar-row i {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf1;
}

.bar-row i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  content: "";
  background: var(--ink);
}

.log-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
  font-size: 14px;
}

.log-table span {
  min-height: 42px;
  padding: 10px;
  background: var(--white);
}

.log-table span:nth-child(-n + 3) {
  color: var(--muted);
  font-weight: 800;
  background: #f1f5f8;
}

.contact-section {
  justify-content: space-between;
  gap: 32px;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section > div {
  max-width: 780px;
}

.contact-section p {
  color: var(--muted);
}

.contact-section .primary-button {
  background: var(--ink);
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px minmax(260px, 0.8fr);
  gap: 40px;
  padding: 54px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0 0 10px;
}

.site-footer h2 {
  font-size: 24px;
}

.site-footer h3 {
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer a {
  margin-bottom: 6px;
}

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

  .intro-grid,
  .operations-grid,
  .agent-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture,
  .split-section,
  .logs-section,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 108px;
    padding-bottom: 28px;
  }

  .section-kicker {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-metrics,
  .contact-section {
    display: grid;
  }

  .hero-metrics {
    display: none;
  }

  .hero-metrics div {
    min-height: auto;
  }

  .intro-grid,
  .operations-grid,
  .agent-flow {
    grid-template-columns: 1fr;
  }

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

  .bar-row {
    grid-template-columns: 96px 1fr 36px;
    gap: 8px;
  }
}
