:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #edf4f8;
  --ink: #122033;
  --muted: #5b6676;
  --line: #d9e1ea;
  --primary: #0f66d0;
  --primary-dark: #094891;
  --accent: #1b9c6b;
  --shadow: 0 22px 60px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px;
}

.site-header {
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 251, 0.88);
  border-bottom: 1px solid rgba(217, 225, 234, 0.75);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.nav-links {
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.nav-links a,
.text-link,
.site-footer a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 400px;
  padding: 54px 24px 42px;
  place-items: center;
}

.hero-copy {
  max-width: 890px;
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  /*max-width: 13ch;*/
}

h3 {
  font-size: 1.15rem;
}

.hero-lede,
.section-heading p,
.split p,
.agent-hero p,
.agent-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-lede {
  max-width: 58ch;
}

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

.button {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

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

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-media {
  align-self: stretch;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.hero-media img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.visual-banners {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.visual-banner {
  margin: 0;
}

.visual-banner img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.visual-banner figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 10px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 74px 24px;
}

.section-muted {
  background: var(--surface-muted);
  max-width: none;
}

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

/*.section-heading {*/
/*  max-width: 760px;*/
/*}*/

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

.feature-card,
.agent-panel,
.metrics > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  min-height: 210px;
  padding: 22px;
}

.feature-card p,
.metrics span {
  color: var(--muted);
}

.split,
.agent-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

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

.metrics > div {
  min-height: 136px;
  padding: 20px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.agent-hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: 82px 24px 30px;
}

.agent-hero h1 {
  max-width: 12ch;
}

.agent-hero p {
  max-width: 760px;
}

.agent-panel {
  padding: 28px;
}

.agent-details dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.agent-details div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.agent-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.agent-details dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.user-agent {
  background: #0d1726;
  border-radius: 8px;
  color: #dff7ff;
  font-size: 1rem;
  overflow-x: auto;
  padding: 18px;
  white-space: pre;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .agent-layout {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 12ch;
  }

  .feature-grid,
  .visual-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .agent-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-media img {
    min-height: 250px;
  }

  .feature-grid,
  .visual-banners,
  .metrics {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
