:root {
  --agent-bg: #f7e0cf;
  --agent-panel: #fbe9db;
  --agent-border: rgba(31, 111, 100, 0.15);
  --agent-text: #1f1a16;
  --agent-muted: #6d5c52;
  --agent-accent: #1f6f64;
  --agent-accent-soft: rgba(31, 111, 100, 0.12);
}

body.agent-page {
  --page-bg: var(--agent-bg);
  --page-bg-layers:
    radial-gradient(60vmax 38vmax at 10% 16%, rgba(247, 165, 123, 0.35), transparent 60%),
    radial-gradient(52vmax 32vmax at 88% 12%, rgba(171, 110, 212, 0.22), transparent 60%),
    radial-gradient(62vmax 40vmax at 86% 88%, rgba(94, 191, 151, 0.22), transparent 60%),
    radial-gradient(44vmax 28vmax at 12% 86%, rgba(255, 214, 134, 0.3), transparent 60%);
  color: var(--agent-text);
  font-family: "Space Grotesk", "Noto Sans SC", "Noto Sans", sans-serif;
}

.agent-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.agent-hero {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--agent-accent-soft);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 34px rgba(15, 23, 21, 0.1);
  position: relative;
  overflow: hidden;
}

.agent-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle at center, rgba(31, 111, 100, 0.18), transparent 65%);
  pointer-events: none;
}

.agent-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--agent-accent);
}

.agent-hero h1 {
  margin: 12px 0 10px;
  font-size: 40px;
  font-weight: 700;
}

.agent-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--agent-muted);
  line-height: 1.7;
}

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

.agent-btn {
  background: var(--agent-accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agent-ghost {
  border: 1px solid var(--agent-accent);
  color: var(--agent-accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
}

.agent-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.agent-meta-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--agent-accent-soft);
  border-radius: 16px;
  padding: 14px 16px;
}

.agent-meta-card span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agent-muted);
  margin-bottom: 6px;
}

.agent-meta-card strong {
  font-size: 14px;
}

.agent-section {
  background: var(--agent-panel);
  border: 1px solid var(--agent-border);
  border-radius: 26px;
  padding: 28px 32px;
  box-shadow: 0 16px 30px rgba(15, 23, 21, 0.08);
}

.agent-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.agent-section p {
  margin: 0;
  color: var(--agent-muted);
  line-height: 1.7;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.agent-card {
  background: #fff;
  border: 1px solid var(--agent-accent-soft);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 21, 0.08);
}

.agent-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.agent-card p {
  margin: 0;
  color: var(--agent-muted);
  line-height: 1.6;
}

.agent-embed {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--agent-accent-soft);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 34px rgba(15, 23, 21, 0.1);
}

.agent-embed__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agent-accent);
  font-weight: 700;
}

.agent-embed__frame {
  position: relative;
  background: #f5efe6;
  border-radius: 20px;
  border: 1px solid var(--agent-accent-soft);
  min-height: 620px;
  overflow: hidden;
  margin-top: 16px;
}

.agent-embed__frame iframe {
  width: 100%;
  height: 860px;
  border: 0;
}

.agent-embed__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(248, 244, 238, 0.8);
  backdrop-filter: blur(2px);
}

.agent-embed__lock p {
  margin: 0;
  color: var(--agent-muted);
}

.agent-embed__lock a {
  background: var(--agent-accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.agent-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.agent-result {
  background: #fff;
  border: 1px solid var(--agent-accent-soft);
  border-radius: 16px;
  padding: 14px 16px;
}

.agent-result span {
  display: block;
  font-size: 12px;
  color: var(--agent-muted);
}

.agent-result strong {
  font-size: 20px;
}

.agent-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--agent-muted);
}

@media (max-width: 720px) {
  .agent-shell {
    padding-top: 120px;
  }

  .agent-hero h1 {
    font-size: 30px;
  }

  .agent-embed__frame iframe {
    height: 620px;
  }

  body.agent-page > .site-top {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    margin-top: 0;
    padding: 0 18px;
    flex-direction: row;
    align-items: center;
  }

  body.agent-page > .site-top .site-nav {
    flex-wrap: nowrap;
  }
}
