:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e1ea;
  --surface: #ffffff;
  --surface-alt: #f4f8fb;
  --navy: #132238;
  --teal: #0f766e;
  --cyan: #0e9fbc;
  --lime: #b8d935;
  --coral: #bd4b33;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(19, 34, 56, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

main,
.site-header,
.hero,
.section,
.closing-cta,
footer {
  max-width: 100vw;
}

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;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 750;
}

.brand {
  gap: 10px;
  color: var(--navy);
}

.brand-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--teal);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 0;
  max-width: 100%;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

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

.brand:focus-visible,
nav a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible,
footer a:focus-visible,
.text-link:focus-visible,
.insight-card a:focus-visible,
.post-list-card a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.header-cta {
  padding: 0 18px;
  color: #ffffff;
  background: var(--navy);
}

.hero {
  min-height: min(760px, calc(100vh - 81px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) 56px;
  background:
    linear-gradient(90deg, rgba(244, 248, 251, 0.95), rgba(244, 248, 251, 0.62)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(19, 34, 56, 0.045) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(19, 34, 56, 0.045) 32px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 870px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.08rem;
}

.hero-body,
.section-heading p,
.closing-cta p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.hero-body {
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-copy,
.section-heading,
.module-card,
.solution-card,
.control-card,
.agent-card,
.insight-card {
  min-width: 0;
}

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

.button {
  min-width: 160px;
  padding: 0 22px;
  border: 1px solid transparent;
}

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

.button-secondary {
  color: var(--navy);
  border-color: var(--line);
  background: #ffffff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 680px;
  margin-top: 46px;
}

.metric {
  border-top: 2px solid var(--line);
  padding-top: 16px;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

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

.inner-animated-slider {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 420px;
  justify-self: end;
  border: 1px solid rgba(19, 34, 56, 0.15);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.module-card,
.solution-card,
.insight-card,
.control-card,
.agent-card,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.insight-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.post-meta {
  display: block;
  margin-top: 20px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.ag_title {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #ffffff;
  font-size: 2rem;
  z-index: 10;
}

#ag_slider-background {
  width: 100%;
  height: 100%;
  background-color: #222222;
  position: absolute;
  overflow: hidden;
  margin: 0;
}

.ag_blur-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.75;
  transition: all 10s ease;
}

#ag_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(100px);
  transition: backdrop-filter 0.5s ease;
  z-index: 0;
}

.section {
  scroll-margin-top: 110px;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.intro,
.method {
  background: #ffffff;
}

.solutions,
.insights,
.agent-management {
  background: var(--surface-alt);
}

.control,
.faq {
  background: #ffffff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.module-grid,
.solution-grid,
.insight-grid,
.control-grid,
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.module-card,
.solution-card,
.insight-card,
.control-card,
.agent-card {
  padding: 24px;
}

.module-mark {
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--lime);
}

.module-card p,
.solution-card p,
.insight-card p,
.control-card p,
.agent-card p,
.faq p,
.method p,
.post-list-card p,
.post-page p,
.post-page li {
  color: var(--muted);
  line-height: 1.65;
}

.control-grid {
  counter-reset: control;
}

.control-card {
  position: relative;
  padding-top: 58px;
}

.control-card::before {
  counter-increment: control;
  content: "0" counter(control);
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--coral);
  font-weight: 900;
}

.agent-card {
  border-color: rgba(15, 118, 110, 0.24);
}

.agent-card h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--teal);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq details {
  padding: 20px 22px;
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
}

.faq summary:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.faq details p {
  margin: 16px 0 0;
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--teal);
  font-weight: 850;
}

.empty-state {
  max-width: 640px;
  color: var(--muted);
}

.content-page {
  background: var(--surface-alt);
  min-height: calc(100vh - 81px);
}

.page-hero,
.post-hero {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 58px);
  background: #ffffff;
}

.page-hero h1,
.post-hero h1 {
  max-width: 920px;
  margin-bottom: 20px;
}

.page-hero p,
.post-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.post-list {
  display: grid;
  gap: 16px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 72px) clamp(64px, 8vw, 100px);
}

.post-list-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.post-list-card time,
.post-byline,
.post-tags {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-list-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.post-list-card > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #e8f3f2;
  font-size: 0.84rem;
  font-weight: 800;
}

.post-page {
  background: #ffffff;
}

.post-byline,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.post-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #e8f3f2;
}

.post-content {
  max-width: 820px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(70px, 9vw, 120px);
}

.post-content h2 {
  margin-top: 44px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.post-content p,
.post-content li {
  font-size: 1.06rem;
}

.post-content blockquote {
  margin: 34px 0;
  padding: 22px;
  border-left: 4px solid var(--teal);
  color: var(--navy);
  background: var(--surface-alt);
  font-size: 1.18rem;
  line-height: 1.65;
}

.solution-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.solution-card li {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #e8f3f2;
  font-size: 0.84rem;
  font-weight: 750;
}

.method ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: method;
}

.method li {
  border-left: 2px solid var(--teal);
  padding-left: 20px;
}

.method li span {
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(56px, 8vw, 86px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: var(--navy);
}

.closing-cta div {
  max-width: 760px;
}

.closing-cta h2,
.closing-cta p {
  color: #ffffff;
}

.closing-cta .eyebrow {
  color: var(--lime);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #ffffff;
}

footer strong {
  color: var(--navy);
}

.footer-social {
  display: inline-flex;
  gap: 14px;
}

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

  nav {
    order: 3;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .inner-animated-slider {
    justify-self: start;
  }

  .module-grid,
  .control-grid,
  .method ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid,
  .agent-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .closing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-list-card {
    flex-direction: column;
  }
}

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

  .header-cta {
    display: none;
  }

  .hero,
  .section,
  .closing-cta {
    width: 100vw;
    max-width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2rem, 9.5vw, 2.35rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.05rem);
  }

  h1,
  h2,
  h3,
  p,
  li,
  summary {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-copy,
  .section-heading,
  .post-content,
  .page-hero,
  .post-hero {
    max-width: calc(100vw - 36px);
  }

  .metrics,
  .module-grid,
  .control-grid,
  .method ol {
    grid-template-columns: 1fr;
  }

  .inner-animated-slider {
    height: min(420px, 78vw);
  }
}
