.agency-page {
  --agency-green: #86b58f;
  --agency-blue: #7b9ed1;
  background: #0a0a0a;
}

.agency-page::before { display: none; }
.agency-page .site-header { max-width: 100%; }
.agency-page .nav { gap: 22px; }
.agency-page .nav a { color: var(--muted); font-size: 14px; }
.agency-page .nav a:hover { color: var(--text); }

.agency-hero,
.agency-inner {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.agency-hero {
  display: grid;
  gap: 38px;
  padding: 58px 0 68px;
}

.agency-hero-copy { align-self: center; max-width: 670px; }
.agency-hero h1 { max-width: 720px; font-size: 38px; letter-spacing: 0; }
.agency-page h2 { font-size: 30px; letter-spacing: 0; }
.agency-lead { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; }
.agency-actions { display: grid; gap: 10px; margin-top: 28px; }
.agency-note { margin: 16px 0 0; color: var(--muted-2); font-size: 13px; }

.product-frame {
  overflow: hidden;
  align-self: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.frame-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.frame-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.frame-status { color: var(--agency-green); font-family: var(--mono); font-size: 11px; }
.client-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; }
.client-chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}
.client-chip.active { border-color: rgba(204, 120, 92, 0.62); background: rgba(204, 120, 92, 0.12); color: var(--text); }
.module-board { display: grid; gap: 10px; padding: 14px 16px 16px; }
.product-module { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.product-module.live { border-left: 3px solid var(--agency-green); }
.product-module.optional { border-left: 3px solid var(--agency-blue); }
.module-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.module-head b { color: var(--agency-green); font-weight: 600; }
.product-module.optional .module-head b { color: var(--agency-blue); }
.product-module > strong { display: block; margin-bottom: 3px; font-size: 16px; }
.product-module > small { display: block; color: var(--muted); font-size: 12px; }
.mini-action { margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--accent-soft); font-size: 12px; font-weight: 700; }

.agency-band { padding: 66px 0; border-top: 1px solid var(--line); }
.agency-band:nth-of-type(even) { background: #0d0d0d; }
.agency-page .section-head { margin-bottom: 30px; }
.economics-grid { display: grid; gap: 12px; }
.economics-item { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.economics-item.featured { border-color: rgba(204, 120, 92, 0.58); }
.economics-item span { display: block; color: var(--muted); font-size: 13px; }
.economics-item strong { display: block; margin: 24px 0 12px; color: var(--accent-soft); font-family: var(--mono); font-size: 48px; line-height: 1; }
.economics-item p { margin: 0; color: var(--muted); font-size: 15px; }
.math-line { display: grid; gap: 7px; margin-top: 12px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: #111; }
.math-line span { color: var(--muted); font-size: 14px; }
.math-line strong { font-family: var(--mono); font-size: 22px; }

.comparison-table { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; }
.comparison-row { display: grid; gap: 9px; padding: 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row strong { color: var(--accent-soft); }
.comparison-row span { color: var(--muted); font-size: 14px; }
.comparison-head { display: none; }
.stack-total { margin-top: 16px; padding: 22px; border: 1px solid rgba(204, 120, 92, 0.52); border-radius: 8px; background: rgba(204, 120, 92, 0.07); }
.stack-total span { display: block; color: var(--muted); font-size: 13px; }
.stack-total strong { display: block; margin: 7px 0; color: var(--accent-soft); font-family: var(--mono); font-size: 28px; }
.stack-total p { margin: 0; color: var(--muted); font-size: 13px; }
.source-box { margin-top: 16px; padding: 20px; border-left: 3px solid var(--agency-blue); background: rgba(123, 158, 209, 0.07); }
.source-box strong { display: block; margin-bottom: 7px; }
.source-box p { margin: 0; color: var(--muted); font-size: 13px; }
.source-box a { color: #aec5ea; text-decoration: underline; text-underline-offset: 2px; }

.launch-layout { display: grid; gap: 18px; }
.launch-steps { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); list-style: none; }
.launch-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; background: var(--surface); }
.launch-steps li > span { color: var(--accent); font-family: var(--mono); font-size: 13px; }
.launch-steps strong { display: block; margin-bottom: 4px; }
.launch-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.marketing-layout { display: grid; gap: 24px; }
.marketing-flow { display: grid; gap: 8px; }
.marketing-flow span { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-weight: 700; }
.marketing-flow i { color: var(--accent); font-style: normal; text-align: center; }
.marketing-note { margin: 0; color: var(--muted-2); font-size: 13px; }

.partner-card { display: grid; gap: 28px; padding: 28px; border: 1px solid rgba(204, 120, 92, 0.5); border-radius: 8px; background: rgba(204, 120, 92, 0.07); }
.partner-card h2 { max-width: 680px; }
.partner-card p { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.partner-actions { display: grid; gap: 10px; align-content: center; }

.agency-mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(15px);
}

@media (min-width: 720px) {
  .agency-hero h1 { font-size: 60px; }
  .agency-page h2 { font-size: 38px; }
  .agency-hero { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); min-height: 680px; }
  .agency-actions { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .agency-actions .button { width: auto; }
  .module-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-module.optional { grid-column: 1 / -1; }
  .economics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .math-line { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .math-line span:last-child { text-align: right; }
  .comparison-row { grid-template-columns: 0.55fr 1.15fr 1.15fr; align-items: start; }
  .comparison-head { display: grid; background: #111; }
  .comparison-head span { color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; }
  .launch-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .marketing-flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr; align-items: center; }
  .partner-card { grid-template-columns: 1fr 330px; padding: 38px; }
  .agency-mobile-cta { display: none; }
  .agency-page { padding-bottom: 0; }
}

@media (min-width: 980px) {
  .agency-hero h1 { font-size: 68px; }
  .agency-page h2 { font-size: 42px; }
  .agency-page .nav { display: flex; }
  .agency-hero { padding-top: 78px; padding-bottom: 86px; }
  .agency-band { padding: 84px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
