.page-agents {
  color: #111827;
  background: #f4f7fb;
}

.agents-container,
.agents-hero-grid {
  width: min(90vw, 1460px);
  margin: 0 auto;
}

.agents-hero {
  position: relative;
  overflow: hidden;
  color: #f8fbff;
  background:
    linear-gradient(112deg, rgba(4, 12, 20, 0.98), rgba(8, 23, 32, 0.9) 58%, rgba(15, 43, 50, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 72px),
    #05101a;
}

.agents-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(98, 202, 214, 0.3), transparent 28%),
    radial-gradient(circle at 20% 86%, rgba(224, 132, 72, 0.18), transparent 28%);
  pointer-events: none;
}

.agents-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(72px, 9vw, 128px) 0 clamp(62px, 8vw, 112px);
}

.agents-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #2f7984;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agents-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.agents-hero .agents-kicker,
.agents-demo-hero .agents-kicker,
.cta-panel .agents-kicker {
  color: #9ee2ec;
}

.agents-copy h1 {
  max-width: 960px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 6.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.agents-lead {
  max-width: 820px;
  margin: 0;
  color: rgba(248, 251, 255, 0.76);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.72;
}

.agents-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.payment-stack {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(214, 226, 236, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.payment-stack div {
  padding: 20px;
  border: 1px solid rgba(214, 226, 236, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.payment-stack span,
.proof-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(248, 251, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-stack strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.agents-demo-hero {
  position: relative;
  padding: clamp(58px, 7vw, 100px) 0;
  color: #f8fbff;
  background:
    linear-gradient(120deg, #0d1f2d, #102f38),
    #0d1f2d;
}

.agents-demo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.55;
}

.agents-demo-hero .agents-container {
  position: relative;
  z-index: 1;
}

.demo-grid,
.lane-grid,
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.agents-demo-hero h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4.35rem);
  line-height: 1.03;
}

.agents-demo-hero p {
  max-width: 720px;
  color: rgba(248, 251, 255, 0.76);
  line-height: 1.75;
}

.demo-controls {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.demo-controls label {
  display: grid;
  gap: 8px;
  color: #eaf6f8;
  font-weight: 900;
}

.demo-controls select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(210, 229, 236, 0.36);
  border-radius: 8px;
  color: #08131d;
  background: #fff;
  font: inherit;
}

.demo-output {
  padding: 26px;
  border: 1px solid rgba(158, 226, 236, 0.28);
  border-radius: 8px;
  background: #071018;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.verdict {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 12px;
  border: 1px solid rgba(158, 226, 236, 0.38);
  border-radius: 8px;
  color: #9ee2ec;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.demo-output dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.demo-output div.field-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-output dt {
  color: rgba(248, 251, 255, 0.58);
  font-weight: 900;
}

.demo-output dd {
  margin: 0;
  color: #fff;
  line-height: 1.5;
}

.proof-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(158, 226, 236, 0.34);
  border-radius: 8px;
  background: rgba(158, 226, 236, 0.08);
}

.proof-card strong {
  color: #fff;
  line-height: 1.5;
}

.agents-section {
  padding: clamp(72px, 8vw, 118px) 0;
}

.trend-section,
.examples-section,
.cta-panel-section {
  background: #fff;
}

.lane-section,
.search-section {
  background: #f4f7fb;
}

.section-intro {
  max-width: 980px;
  margin-bottom: 36px;
}

.section-intro h2,
.lane-grid h2,
.cta-panel h2 {
  margin: 0 0 18px;
  color: #0d1720;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.03;
}

.section-intro p,
.lane-grid p,
.cta-panel p,
.trend-grid p,
.query-grid p {
  color: #51606f;
  font-size: 1rem;
  line-height: 1.75;
}

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

.trend-grid article,
.query-grid article {
  min-height: 100%;
  padding: 24px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(20, 35, 52, 0.06);
}

.trend-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 38px;
  margin-bottom: 22px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0d1720;
  background: #d9eef1;
  font-size: 0.82rem;
  font-weight: 900;
}

.trend-grid h3,
.query-grid h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.28;
}

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

.lane-list div,
.example-strip div {
  padding: 22px;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  background: #fff;
}

.lane-list strong,
.lane-list span,
.example-strip strong,
.example-strip span {
  display: block;
}

.lane-list strong,
.example-strip strong {
  margin-bottom: 8px;
  color: #0f2435;
}

.lane-list span,
.example-strip span {
  color: #5b6876;
  line-height: 1.55;
}

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

.cta-panel {
  padding: clamp(34px, 5vw, 58px);
  border-radius: 8px;
  color: #f8fbff;
  background:
    linear-gradient(120deg, rgba(7, 16, 24, 0.98), rgba(17, 56, 64, 0.92)),
    #071018;
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel .btn-primary {
  background: #f5f8fb;
  border-color: #f5f8fb;
  color: #071018;
}

.cta-panel .btn-secondary {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 980px) {
  .agents-hero-grid,
  .demo-grid,
  .lane-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .trend-grid,
  .query-grid,
  .example-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .agents-container,
  .agents-hero-grid {
    width: min(92vw, 1460px);
  }

  .agents-hero-grid {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 70px;
  }

  .agents-copy h1 {
    font-size: 2.55rem;
  }

  .trend-grid,
  .query-grid,
  .example-strip {
    grid-template-columns: 1fr;
  }

  .demo-output div.field-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .agents-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agents-actions .btn,
  .cta-actions .btn {
    justify-content: center;
    width: 100%;
  }
}
