/* AGENT artwork and content; header/footer and 330px hero use the shared product styles. */
.agent-page { --agent-ink: #112440; --agent-muted: #627187; --agent-blue: #2878ff; }
.agent-opening { position: relative; isolation: isolate; background: #f5f7f9; }
.agent-opening::before { content: ''; position: absolute; z-index: -1; inset-block: 0; right: max(0px, calc((100% - 1440px) / 2)); width: min(100%, 840px); background: url('/assets/images/product/agent/pai-agent-hero-bg-hq-v3.png') right bottom / auto 112% no-repeat; mask-image: linear-gradient(90deg, transparent, #000 16%, #000 96%, transparent); pointer-events: none; }
.agent-hero { color: var(--agent-ink); }
.agent-tagline { margin-top: 12px; font-size: clamp(21px, 1.85vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -.04em; }
.agent-hero-description { max-width: 560px; margin-top: 16px; color: #526278; font-size: 14px; line-height: 1.7; letter-spacing: -.035em; }
.agent-page main { color: var(--agent-ink); }
.agent-page main h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.4; font-weight: 600; letter-spacing: -.05em; }
.agent-page .product-label { margin-bottom: 14px; color: #65758e; font-size: 12px; letter-spacing: .1em; }
.agent-page .product-copy { margin-top: 20px; color: var(--agent-muted); font-size: 16px; line-height: 1.8; letter-spacing: -.04em; }
.agent-overview { padding-block: 64px; }
.agent-overview-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.agent-overview-top > :first-child { align-self: start; }
.agent-diagram { position: relative; display: grid; grid-template-columns: 28% 27% 28%; gap: 8.5%; align-items: center; }
.agent-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.agent-nodes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.agent-nodes li { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 9px 12px; border: 1px solid #e8eef7; border-radius: 8px; background: white; box-shadow: 0 8px 24px -18px #597bb944; }
.agent-node-icon { display: grid; place-items: center; flex: 0 0 30px; height: 34px; color: var(--agent-blue); background: #f0f6ff; border-radius: 7px; }
.agent-node-icon svg { width: 24px; height: 24px; }
.agent-nodes h3 { font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: -.05em; }
.agent-nodes p { font-size: 11px; line-height: 1.5; color: var(--agent-muted); margin-top: 3px; letter-spacing: -.03em; }
.agent-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; padding: 10px 4px; border-radius: 18px; background: #f0f6ff; box-shadow: 0 5px 22px #567caa0c; }
.agent-core > span { display: grid; place-items: center; width: 54px; height: 58px; background: linear-gradient(150deg, #e1eaff, #e2e4ff); border-radius: 22px; color: #5748ff; margin-bottom: 10px; }
.agent-core svg { width: 34px; height: 34px; }
.agent-core strong { font-size: 15px; font-weight: 600; }
.agent-core small { color: #627697; font-size: 10px; margin-top: 3px; }
.agent-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.agent-features article { padding-top: 24px; border-top: 1px solid #dce5f0; }
.agent-feature-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 12px; color: var(--agent-blue); background: #f0f6ff; }
.agent-feature-icon svg { width: 30px; height: 30px; }
.agent-features h3 { font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -.045em; }
.agent-features p { margin-top: 9px; font-size: 15px; line-height: 1.85; letter-spacing: -.035em; color: var(--agent-muted); }
.agent-screen-band { background: linear-gradient(90deg, #f6f8fc, #fff 48%); }
.agent-workflow-band { background: #f6f8fc; }
.agent-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; padding-top: 48px; }
.agent-screen-frame { display: block; min-width: 0; align-self: end; cursor: zoom-in; border-radius: 12px; }
.agent-screen-frame img { display: block; width: 100%; height: auto; }
.agent-screen-frame:focus-visible { outline: 2px solid var(--agent-blue); outline-offset: 5px; }
.agent-usecases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; padding-block: 56px; }
.agent-usecase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.agent-usecase-grid article { display: flex; align-items: flex-start; gap: 12px; padding: 20px 18px; background: white; border: 1px solid #e8eef7; border-radius: 10px; box-shadow: 0 8px 24px -18px #597bb944; }
.agent-usecase-grid article > span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; color: var(--agent-blue); background: #f0f6ff; }
.agent-usecase-grid svg { width: 26px; height: 26px; }
.agent-usecase-grid h3 { font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.045em; }
.agent-usecase-grid p { margin-top: 7px; font-size: 13px; line-height: 1.7; color: var(--agent-muted); letter-spacing: -.035em; }
.agent-workflow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.85fr); gap: 48px; align-items: center; padding-block: 56px; }
.agent-page .agent-workflow h2 { font-size: clamp(26px, 2.2vw, 32px); }
.agent-workflow .product-copy { font-size: 15px; }
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.agent-steps li { position: relative; min-width: 0; }
.agent-steps h3 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: -.045em; }
.agent-step-number { flex: none; color: var(--agent-blue); font-size: 12px; letter-spacing: .04em; }
.agent-step-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-block: 16px 13px; border-radius: 12px; color: var(--agent-blue); background: #edf4ff; }
.agent-step-icon svg { width: 30px; height: 30px; }
.agent-steps p { color: var(--agent-muted); font-size: 13px; line-height: 1.8; letter-spacing: -.035em; }
.agent-steps li:not(:last-child)::after { content: '›'; position: absolute; top: 52px; right: -20px; font-size: 26px; line-height: 1; color: #7c9bc5; }
.agent-advantage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; padding-block: 56px; }
.agent-benefits { display: grid; gap: 12px; }
.agent-benefit { position: relative; isolation: isolate; padding: 16px 24px; min-height: 112px; border-radius: 10px; overflow: hidden; background-color: #14253d; background-size: cover; background-position: center; background-repeat: no-repeat; color: white; }
.agent-benefit::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #14253dba, #14253d99 40%, #14253d33 65%, transparent 85%); }
.agent-benefit.benefit-custom { background-image: url('/assets/images/product/agent/pai-agent-advantage-custom-hq-v2.webp'); }
.agent-benefit.benefit-efficiency { background-image: url('/assets/images/product/agent/pai-agent-advantage-efficiency-hq-v2.webp'); }
.agent-benefit.benefit-scale { background-image: url('/assets/images/product/agent/pai-agent-advantage-scale-hq-v2.webp'); }
.agent-benefit h3 { font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -.035em; }
.agent-benefit p { margin-top: 5px; font-size: 14px; line-height: 1.65; color: #e0e8f2; letter-spacing: -.035em; }
@media (min-width: 768px) and (max-width: 1100px) {
  .agent-opening::before { background-image: linear-gradient(90deg, #f5f7f9, #f5f7f9ef 48%, #f5f7f977 65%, transparent 90%), url('/assets/images/product/agent/pai-agent-hero-bg-hq-v3.png'); background-size: 100% 100%, auto 112%; }
  .agent-tagline { font-size: 22px; }
  .agent-hero-description { max-width: 470px; font-size: 13px; }
  .agent-page .product-copy { font-size: 15px; }
  .agent-overview-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
  .agent-nodes li { gap: 6px; padding: 8px 6px; }
  .agent-node-icon { flex-basis: 24px; }
  .agent-node-icon svg { width: 21px; height: 21px; }
  .agent-nodes h3 { font-size: 11px; }
  .agent-nodes p { font-size: 10px; }
  .agent-core { border-radius: 16px; }
  .agent-core > span { width: 42px; height: 46px; margin-bottom: 8px; }
  .agent-core svg { width: 30px; height: 30px; }
  .agent-core strong { font-size: 13px; }
  .agent-core small { font-size: 9px; }
  .agent-features { gap: 24px; }
  .agent-features h3 { font-size: 16px; }
  .agent-features p { font-size: 14px; }
  .agent-screen, .agent-usecases, .agent-advantage { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .agent-page .agent-screen h2, .agent-page .agent-advantage h2 { font-size: 28px; }
  .agent-usecase-grid { gap: 12px; }
  .agent-usecase-grid article { flex-direction: column; gap: 10px; padding: 16px; }
  .agent-usecase-grid article > span { flex-basis: auto; width: 36px; height: 36px; }
  .agent-usecase-grid h3 { font-size: 14px; }
  .agent-usecase-grid p { font-size: 13px; }
  .agent-workflow { grid-template-columns: 1fr; gap: 28px; }
  .agent-steps h3 { font-size: 15px; }
  .agent-steps p { font-size: 14px; }
  .agent-benefit { padding: 16px 20px; }
  .agent-benefit h3 { font-size: 16px; }
  .agent-benefit p { font-size: 13px; }
  .agent-desktop-break { display: none; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .agent-overview-top, .agent-usecases { grid-template-columns: 1fr; gap: 32px; }
  .agent-diagram { width: min(100%, 650px); justify-self: center; }
  .agent-nodes li { padding-inline: 12px; }
  .agent-nodes h3 { font-size: 13px; }
  .agent-nodes p { font-size: 11px; }
  .agent-core > span { width: 54px; height: 58px; }
  .agent-core strong { font-size: 15px; }
  .agent-core small { font-size: 10px; }
  .agent-usecase-grid article { flex-direction: row; gap: 12px; }
  .agent-usecase-grid article > span { flex: 0 0 40px; height: 40px; }
  .agent-usecase-grid h3 { font-size: 16px; }
}
@media (max-width: 767px) {
  .agent-opening::before { background-image: linear-gradient(90deg, #f5f7f9f5, #f5f7f9e8 48%, #f5f7f990), url('/assets/images/product/agent/pai-agent-hero-bg-hq-v3.png'); background-size: 100% 100%, auto 100%; background-position: center, 75% bottom; mask-image: none; }
  .agent-tagline { font-size: 21px; }
  .agent-hero-description { max-width: 390px; font-size: 13px; margin-top: 14px; line-height: 1.8; }
  .agent-desktop-break { display: none; }
  .agent-page .product-label { font-size: 10px; margin-bottom: 12px; }
  .agent-page main h2 { font-size: 26px; }
  .agent-page .product-copy { font-size: 14px; margin-top: 16px; }
  .agent-overview { padding-block: 40px; }
  .agent-overview-top { grid-template-columns: 1fr; gap: 28px; }
  .agent-diagram { grid-template-columns: 1fr; gap: 34px; }
  .agent-connectors { display: none; }
  .agent-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .agent-nodes li { gap: 8px; padding: 10px 8px; min-height: 64px; }
  .agent-node-icon { flex-basis: 26px; height: 30px; }
  .agent-node-icon svg { width: 21px; height: 21px; }
  .agent-nodes h3 { font-size: 12px; }
  .agent-nodes p { font-size: 10px; }
  .agent-core { width: 136px; justify-self: center; }
  .agent-core::before, .agent-core::after { content: '↓'; position: absolute; left: calc(50% - 6px); font-size: 22px; line-height: 1; color: #728ce5; }
  .agent-core::before { top: -28px; }
  .agent-core::after { bottom: -28px; }
  .agent-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; margin-top: 30px; }
  .agent-features article { padding-top: 20px; }
  .agent-feature-icon { width: 46px; height: 46px; margin-bottom: 12px; border-radius: 10px; }
  .agent-feature-icon svg { width: 27px; height: 27px; }
  .agent-features h3 { font-size: 14px; }
  .agent-features p { font-size: 13px; margin-top: 9px; }
  .agent-screen { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .agent-screen-band { background: linear-gradient(#f6f8fc, #fff 65%); }
  .agent-usecases { grid-template-columns: 1fr; gap: 26px; padding-block: 36px; }
  .agent-usecase-grid { grid-template-columns: 1fr; gap: 12px; }
  .agent-usecase-grid article { padding: 18px; }
  .agent-usecase-grid h3 { font-size: 16px; }
  .agent-usecase-grid p { font-size: 13px; }
  .agent-workflow { grid-template-columns: 1fr; gap: 26px; padding-block: 36px; }
  .agent-page .agent-workflow h2 { font-size: 26px; }
  .agent-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .agent-steps h3 { font-size: 13px; gap: 6px; }
  .agent-step-number { font-size: 11px; }
  .agent-step-icon { width: 46px; height: 46px; margin-block: 12px; }
  .agent-step-icon svg { width: 27px; height: 27px; }
  .agent-steps p { font-size: 13px; }
  .agent-steps li::after { display: none; }
  .agent-advantage { grid-template-columns: 1fr; gap: 26px; padding-block: 36px; }
  .agent-benefit { padding: 16px 18px; min-height: 108px; background-position: 60% center; }
  .agent-benefit::before { background: linear-gradient(90deg, #14253dee, #14253dbb 50%, #14253d33); }
  .agent-benefit h3 { font-size: 16px; }
  .agent-benefit p { font-size: 13px; line-height: 1.7; }
}
