.ag-section {
  --ag-bg: #111;
  --ag-surface: #191919;
  --ag-accent: #7626e8;
  --ag-lavender: #d19aee;
  --ag-text: #f7f4f8;
  --ag-muted: #aaa4ad;
  --ag-line: rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 104px) 0;
  color: var(--ag-text);
  background: var(--ag-bg);
}

.ag-section *,
.ag-section *::before,
.ag-section *::after { box-sizing: border-box; }

.ag-section h2,
.ag-section h3,
.ag-section p { margin-top: 0; }

.ag-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.ag-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--ag-lavender);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ag-kicker::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.ag-kicker--light { color: #fff; }

.ag-title {
  max-width: 860px;
  margin-bottom: 24px;
  color: var(--ag-text);
  font-family: var(--font-display, sans-serif);
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .99;
}

.ag-heading { margin-bottom: 60px; }
.ag-heading > p,
.ag-faq__head > p {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--ag-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ag-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 64px;
  align-items: end;
}

.ag-heading--split .ag-title { margin-bottom: 0; }
.ag-heading--split > p { padding-bottom: 6px; }

/* About */
.ag-about { padding-top: 132px; }
.ag-about::before {
  position: absolute;
  top: 0;
  right: -12%;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: rgba(118, 38, 232, .14);
  filter: blur(100px);
  content: "";
  pointer-events: none;
}

.ag-about__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(54px, 8vw, 118px);
  align-items: center;
}

.ag-about__visual {
  position: relative;
  min-height: 620px;
}

.ag-about__visual::before {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 42%;
  height: 42%;
  border-top: 1px solid var(--ag-lavender);
  border-left: 1px solid var(--ag-lavender);
  content: "";
}

.ag-about__visual img {
  width: 100%;
  height: 620px;
  border-radius: 2px 92px 2px 2px;
  object-fit: cover;
  filter: saturate(.78) contrast(1.06);
}

.ag-about__visual::after {
  position: absolute;
  inset: 0;
  border-radius: 2px 92px 2px 2px;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 17, 17, .72));
  content: "";
}

.ag-about__stamp {
  position: absolute;
  right: -30px;
  bottom: 42px;
  z-index: 1;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  background: var(--ag-accent);
  font-family: var(--font-display, sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.6;
  text-align: center;
}

.ag-about__copy { padding-top: 74px; }
.ag-about__copy .ag-lead {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--ag-text);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

.ag-about__copy > p:not(.ag-lead) {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--ag-muted);
  font-size: 16px;
  line-height: 1.8;
}

.ag-about__note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  color: #ddd7df;
  background: var(--ag-surface);
  font-size: 13px;
  font-weight: 700;
}
.ag-about__note svg { color: var(--ag-lavender); }

/* Honest metrics */
.ag-metrics { padding: 0 0 112px; }
.ag-metrics__panel {
  display: grid;
  grid-template-columns: .82fr 1.48fr;
  gap: clamp(44px, 7vw, 92px);
  padding: clamp(48px, 7vw, 84px);
  border-radius: 34px;
  background: var(--ag-accent);
  box-shadow: 0 28px 80px rgba(72, 13, 150, .25);
}

.ag-metrics__intro h2 {
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -.045em;
  line-height: 1.04;
}

.ag-metrics__intro p,
.ag-metric p { color: rgba(255, 255, 255, .7); line-height: 1.65; }
.ag-metrics__intro p { margin-bottom: 0; }

.ag-metrics__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.ag-metric {
  padding: 6px 30px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.ag-metric:first-child { padding-left: 0; border-left: 0; }
.ag-metric:last-child { padding-right: 0; }
.ag-metric__value {
  display: block;
  margin-bottom: 22px;
  color: #fff;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(58px, 6vw, 86px);
  letter-spacing: -.07em;
  line-height: .8;
}
.ag-metric h3 { margin-bottom: 10px; color: #fff; font-size: 16px; }
.ag-metric p { margin-bottom: 0; font-size: 13px; }

/* Services */
.ag-services { background: #141414; }
.ag-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ag-line);
  border-left: 1px solid var(--ag-line);
}

.ag-service {
  min-height: 330px;
  padding: clamp(32px, 4.2vw, 52px);
  border-right: 1px solid var(--ag-line);
  border-bottom: 1px solid var(--ag-line);
  background: var(--ag-surface);
  transition: background .25s ease, transform .25s ease;
}
.ag-service:hover { position: relative; z-index: 1; background: #211a29; transform: translateY(-4px); }
.ag-service:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 260px; }
.ag-service:last-child:nth-child(odd) .ag-service__top { margin-bottom: 34px; }
.ag-service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 68px; }
.ag-service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ag-lavender);
  background: rgba(118, 38, 232, .18);
}
.ag-service__number { color: #655f68; font-family: var(--font-display, sans-serif); font-size: 13px; font-weight: 700; }
.ag-service h3 { margin-bottom: 16px; color: var(--ag-text); font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -.035em; }
.ag-service p { max-width: 500px; margin-bottom: 0; color: var(--ag-muted); font-size: 15px; line-height: 1.75; }
.ag-service__outcomes { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.ag-service__outcomes li { display: inline-flex; align-items: center; gap: 6px; color: #d7cfe0; font-size: 11px; font-weight: 700; }
.ag-service__outcomes svg { color: var(--ag-lavender); }
.ag-service__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ag-lavender); font-size: 12px; font-weight: 800; text-decoration: none; transition: gap .2s ease, color .2s ease; }
.ag-service__link:hover { gap: 12px; color: #fff; }

/* Process */
.ag-process__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2, 300px);
  gap: 18px;
}
.ag-process-card { position: relative; min-height: 300px; overflow: hidden; border-radius: 18px; background: var(--ag-surface); }
.ag-process-card--1 { grid-row: 1 / 3; }
.ag-process-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ag-process-card:hover img { transform: scale(1.04); }
.ag-process-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .08) 15%, rgba(10, 10, 10, .94) 100%);
}
.ag-process-card--1 .ag-process-card__shade { background: linear-gradient(180deg, rgba(10, 10, 10, .05) 30%, rgba(10, 10, 10, .94) 100%); }
.ag-process-card__content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: clamp(28px, 4vw, 48px); }
.ag-process-card__content > span { display: block; margin-bottom: 13px; color: var(--ag-lavender); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.ag-process-card h3 { margin-bottom: 12px; color: #fff; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.04em; }
.ag-process-card p { max-width: 540px; margin-bottom: 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.7; }

/* Automation orbit */
.ag-automation { padding-bottom: 88px; background: #0d0d0f; }
.ag-automation::after {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(118, 38, 232, .13);
  filter: blur(110px);
  transform: translateX(-50%);
  content: "";
}
.ag-automation__head { position: relative; z-index: 2; text-align: center; }
.ag-automation__head .ag-title { max-width: 900px; margin-right: auto; margin-left: auto; }
.ag-automation__head p { max-width: 700px; margin: 0 auto 60px; color: var(--ag-muted); font-size: 16px; line-height: 1.75; }
.ag-automation-stage { position: relative; z-index: 1; width: min(100%, 1600px); min-height: 370px; display: grid; place-items: center; overflow: hidden; margin: 0 auto; }
.ag-automation-stage::before { position: absolute; inset: 14% 28%; border-radius: 50%; background: rgba(118, 38, 232, .18); filter: blur(90px); content: ""; }
.ag-tool-streams { position: absolute; inset: 42px 0; display: grid; align-content: center; gap: 16px; }
.ag-tool-streams::before,
.ag-tool-streams::after { position: absolute; z-index: 4; top: -10px; bottom: -10px; width: clamp(110px, 18vw, 310px); content: ""; pointer-events: none; }
.ag-tool-streams::before { left: 0; background: linear-gradient(90deg, #0d0d0f 8%, rgba(13, 13, 15, .96) 32%, rgba(13, 13, 15, .68) 62%, transparent); }
.ag-tool-streams::after { right: 0; background: linear-gradient(270deg, #0d0d0f 8%, rgba(13, 13, 15, .96) 32%, rgba(13, 13, 15, .68) 62%, transparent); }
.ag-tool-stream { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent); mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent); }
.ag-tool-stream__track { display: flex; width: max-content; animation: ag-tool-scroll 34s linear infinite; }
.ag-tool-stream--reverse .ag-tool-stream__track { animation-direction: reverse; animation-duration: 40s; }
.ag-tool { width: 138px; height: 102px; display: grid; place-items: center; align-content: center; gap: 8px; margin-right: 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 15px; background: linear-gradient(145deg, rgba(31, 31, 35, .92), rgba(18, 18, 21, .9)); box-shadow: inset 0 1px rgba(255, 255, 255, .04); transition: border-color .25s ease, transform .25s ease, opacity .25s ease; }
.ag-tool:hover { border-color: rgba(209, 154, 238, .4); transform: translateY(-4px); }
.ag-tool img { width: 38px; height: 38px; object-fit: contain; }
.ag-tool__fallback { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(209, 154, 238, .35); border-radius: 10px; color: #fff; background: rgba(118, 38, 232, .28); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.ag-tool.is-fallback img { display: none; }
.ag-tool.is-fallback .ag-tool__fallback { display: grid; }
.ag-tool small { max-width: 120px; overflow: hidden; color: rgba(255, 255, 255, .62); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ag-automation-core { position: relative; z-index: 3; width: 250px; height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(209, 154, 238, .2); border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 42%, rgba(118, 38, 232, .28), rgba(20, 17, 26, .96) 65%); box-shadow: 0 0 90px rgba(118, 38, 232, .24), inset 0 0 45px rgba(209, 154, 238, .06); backdrop-filter: blur(16px); }
.ag-automation-core__logo { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 24px; background: linear-gradient(145deg, #8f38f0, #5b16bb); box-shadow: 0 18px 50px rgba(118, 38, 232, .45); }
.ag-automation-core__logo img { width: 57px; height: 57px; object-fit: contain; }
.ag-automation-core strong { font-size: 16px; letter-spacing: .12em; }
.ag-automation-core > small { margin-top: 5px; color: var(--ag-lavender); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ag-automation-core__ring { position: absolute; border: 1px solid rgba(209, 154, 238, .16); border-radius: 50%; }
.ag-automation-core__ring--outer { inset: -34px; }
.ag-automation-core__ring--inner { inset: 28px; }
.ag-automation-core__orbit { position: absolute; inset: -20px; border-radius: 50%; animation: ag-orbit 12s linear infinite; }
.ag-automation-core__orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ag-accent); box-shadow: 0 0 18px var(--ag-accent); }
.ag-automation-core__orbit i:nth-child(1) { top: 8%; left: 22%; }
.ag-automation-core__orbit i:nth-child(2) { top: 55%; right: -3px; width: 6px; height: 6px; background: var(--ag-lavender); }
.ag-automation-core__orbit i:nth-child(3) { bottom: 4%; left: 32%; width: 5px; height: 5px; }
@keyframes ag-tool-scroll { to { transform: translateX(-50%); } }
@keyframes ag-orbit { to { transform: rotate(360deg); } }

/* Product */
.ag-product__card {
  position: relative;
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  overflow: hidden;
  padding: clamp(46px, 7vw, 88px);
  border: 1px solid rgba(209, 154, 238, .22);
  border-radius: 34px;
  background: linear-gradient(130deg, #1a1520 0%, #241335 52%, #49149a 100%);
}
.ag-product__card::before {
  position: absolute;
  right: -10%;
  bottom: -55%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
  content: "";
}
.ag-product__copy { position: relative; z-index: 2; }
.ag-product__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; color: var(--ag-lavender); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ag-product__copy h2 { margin-bottom: 22px; color: #fff; font-family: var(--font-display, sans-serif); font-size: clamp(48px, 6vw, 78px); letter-spacing: -.065em; line-height: .95; }
.ag-product__copy h2 span { color: var(--ag-lavender); }
.ag-product__copy p { max-width: 610px; margin-bottom: 34px; color: rgba(255, 255, 255, .7); font-size: 16px; line-height: 1.75; }
.ag-product__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 21px;
  border-radius: 999px;
  color: #151117;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.ag-product__cta:hover { color: #151117; background: var(--ag-lavender); transform: translateY(-2px); }
.ag-product__visual { position: relative; z-index: 1; min-height: 320px; }
.ag-product__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 50px rgba(255, 255, 255, .08), 0 30px 80px rgba(28, 5, 57, .5);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
}
.ag-product__chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #fff; background: rgba(17, 17, 17, .58); backdrop-filter: blur(10px); font-size: 12px; font-weight: 700; }
.ag-product__chip svg { color: var(--ag-lavender); }
.ag-product__chip--one { top: 12%; left: 0; }
.ag-product__chip--two { top: 46%; right: -8%; }
.ag-product__chip--three { bottom: 8%; left: 7%; }

/* FAQ */
.ag-faq { background: #141414; }
.ag-faq__layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.ag-faq__head { position: sticky; top: 100px; }
.ag-faq__head .ag-title { font-size: clamp(38px, 4vw, 58px); }
.ag-faq__list { border-top: 1px solid var(--ag-line); }
.ag-faq__item { border-bottom: 1px solid var(--ag-line); }
.ag-faq__item h3 { margin: 0; }
.ag-faq__item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border: 0;
  color: #e9e5eb;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.ag-faq__item button:focus-visible { outline: 2px solid var(--ag-lavender); outline-offset: 7px; }
.ag-faq__plus { position: relative; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--ag-line); border-radius: 50%; }
.ag-faq__plus::before,
.ag-faq__plus::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 1px; background: var(--ag-lavender); transform: translate(-50%, -50%); content: ""; transition: transform .2s ease; }
.ag-faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.ag-faq__item.is-open .ag-faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.ag-faq__item.is-open button { color: var(--ag-lavender); }
.ag-faq__answer p { max-width: 690px; margin: -4px 54px 28px 0; color: var(--ag-muted); line-height: 1.75; }

@media (max-width: 900px) {
  .ag-section { padding: 88px 0; }
  .ag-about__grid,
  .ag-metrics__panel,
  .ag-product__card,
  .ag-faq__layout { grid-template-columns: 1fr; }
  .ag-about__copy { padding-top: 0; }
  .ag-about__visual { width: 82%; min-height: 520px; }
  .ag-about__visual img { height: 520px; }
  .ag-metrics { padding-top: 0; }
  .ag-metrics__list { margin-top: 8px; }
  .ag-heading--split { grid-template-columns: 1fr; gap: 18px; }
  .ag-process__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 340px; }
  .ag-process-card--1 { grid-column: 1 / 3; grid-row: auto; }
  .ag-product__visual { min-height: 280px; }
  .ag-faq__head { position: static; }
}

@media (max-width: 640px) {
  .ag-section { padding: 74px 0; }
  .ag-container { width: min(100% - 32px, 1180px); }
  .ag-title { font-size: clamp(35px, 11vw, 50px); }
  .ag-heading { margin-bottom: 42px; }
  .ag-about { padding-top: 96px; }
  .ag-about__grid { gap: 48px; }
  .ag-about__visual { width: calc(100% - 18px); min-height: 420px; }
  .ag-about__visual img { height: 420px; border-radius: 2px 58px 2px 2px; }
  .ag-about__visual::after { border-radius: 2px 58px 2px 2px; }
  .ag-about__stamp { right: -22px; bottom: 24px; width: 112px; height: 112px; font-size: 9px; }
  .ag-about__note { align-items: flex-start; border-radius: 18px; }
  .ag-metrics { padding-top: 0; }
  .ag-metrics__panel { gap: 40px; padding: 38px 28px; border-radius: 24px; }
  .ag-metrics__list { grid-template-columns: 1fr; }
  .ag-metric,
  .ag-metric:first-child,
  .ag-metric:last-child { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .2); border-left: 0; }
  .ag-metric:last-child { padding-bottom: 0; }
  .ag-metric__value { margin-bottom: 16px; }
  .ag-services__grid { grid-template-columns: 1fr; }
  .ag-service { min-height: 280px; }
  .ag-service__top { margin-bottom: 48px; }
  .ag-process__grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .ag-process-card,
  .ag-process-card--1 { grid-column: auto; grid-row: auto; min-height: 420px; }
  .ag-process-card__content { padding: 28px; }
  .ag-automation__head { text-align: left; }
  .ag-automation__head p { margin-bottom: 42px; }
  .ag-automation-stage { min-height: 390px; }
  .ag-tool-streams { inset: 56px 0; }
  .ag-tool { width: 118px; height: 96px; margin-right: 12px; }
  .ag-tool small { display: none; }
  .ag-automation-core { width: 220px; height: 220px; }
  .ag-automation-core__logo { width: 68px; height: 68px; }
  .ag-automation-core__logo img { width: 46px; height: 46px; }
  .ag-product__card { min-height: 720px; padding: 38px 28px; border-radius: 24px; }
  .ag-product__copy h2 { font-size: 48px; }
  .ag-product__visual { min-height: 270px; }
  .ag-product__orb { width: 150px; height: 150px; }
  .ag-product__chip--two { right: -14px; }
  .ag-faq__layout { gap: 44px; }
  .ag-faq__item button { padding: 24px 0; font-size: 16px; }
  .ag-faq__answer p { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-tool-stream__track,
  .ag-automation-core__orbit { animation: none; }
  .ag-service,
  .ag-service:hover,
  .ag-process-card img,
  .ag-process-card:hover img,
  .ag-product__cta { transition: none; transform: none; }
}
