/* ==========================================================================
   AGP — Home
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(96px, 11vw, 160px);
}

.hero__blob {
  top: -200px;
  right: -160px;
  width: 620px;
  height: 620px;
}

.hero__ring {
  bottom: -140px;
  left: -140px;
  width: 340px;
  height: 340px;
}

.hero__line {
  top: 14%;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero__title {
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__proof svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.hero__visual {
  position: relative;
  min-height: 560px;
}

.hero__arch {
  position: relative;
  overflow: hidden;
  width: 76%;
  margin-left: auto;
  aspect-ratio: 4 / 5.1;
  border-radius: 999px 999px 44px 14px;
  background: var(--surface-gold);
  box-shadow: var(--shadow-float);
  transform: rotate(1.5deg);
}

.hero__arch::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px 999px 34px 8px;
  pointer-events: none;
}

[data-theme="dark"] .hero__arch::after {
  border-color: rgba(207, 165, 101, 0.3);
}

.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__contours path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.2;
}

[data-theme="dark"] .hero__contours path {
  stroke: rgba(207, 165, 101, 0.28);
}

.hero__monogram {
  position: absolute;
  top: 26%;
  left: 50%;
  font-family: var(--font-mark);
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(42, 31, 18, 0.82);
  transform: translateX(-50%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .hero__monogram {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero__seal {
  position: absolute;
  top: 4%;
  left: 6%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-200);
  box-shadow: var(--shadow-float);
}

.hero__seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: seal-spin 36s linear infinite;
}

.hero__seal text {
  font-family: var(--font-body);
  font-size: 8.4px;
  font-weight: 700;
  letter-spacing: 2.2px;
  fill: var(--gold-300);
}

.hero__seal > span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 600;
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__chat {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 2%;
  width: min(330px, 78%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px 10px 28px 10px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-float);
  font-size: 0.84rem;
  line-height: 1.5;
  animation: float-y 7s ease-in-out infinite;
}

@keyframes float-y {
  50% {
    transform: translateY(-8px);
  }
}

.hero__chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero__chat-head strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink);
}

.hero__chat-head small {
  display: block;
  font-size: 0.72rem;
  color: var(--success);
}

.hero__chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px 4px 12px 4px;
  background: var(--night);
  font-family: var(--font-mark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-200);
}

.hero__bubble {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-2);
  color: var(--ink-soft);
}

.hero__bubble--user {
  margin-left: 18%;
  border-radius: 16px 16px 4px 16px;
  background: var(--night);
  color: var(--gold-100);
}

.hero__chat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.hero__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__source svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust {
  margin-top: calc(clamp(96px, 11vw, 160px) * -0.55);
  z-index: 3;
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-asym);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.trust__item:nth-child(even) {
  border-radius: var(--r-asym-2);
  transform: translateY(18px);
}

.trust__item:nth-child(even).reveal:not(.is-in) {
  transform: translateY(44px);
}

.trust__item strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust__item small {
  font-size: 0.5em;
  font-weight: 500;
}

.trust__item span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */
.pillars {
  padding-top: calc(var(--section) + 40px);
}

.pillars__ring {
  top: 18%;
  right: -220px;
  width: 460px;
  height: 460px;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  padding-bottom: 56px;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-asym);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}

.pillar-card:nth-child(even) {
  top: 56px;
  border-radius: var(--r-asym-2);
}

.pillar-card:nth-child(3) {
  background: var(--night-gold-glow), var(--night);
  border-color: rgba(207, 165, 101, 0.22);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(169, 122, 60, 0.4);
  box-shadow: var(--shadow-float);
}

.pillar-card__letter {
  position: absolute;
  top: -0.18em;
  right: 0.06em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 13vw, 11rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(169, 122, 60, 0.35);
  pointer-events: none;
}

.pillar-card h3 {
  padding-right: clamp(48px, 8vw, 96px);
}

.pillar-card p {
  color: var(--muted);
}

.pillar-card .check-list {
  margin: 6px 0 26px;
  font-size: 0.92rem;
}

.pillar-card .link-arrow {
  margin-top: auto;
}

.pillar-card:nth-child(3) h3 {
  color: #fff;
}

.pillar-card:nth-child(3) p,
.pillar-card:nth-child(3) .check-list {
  color: var(--on-night-muted);
}

.pillar-card:nth-child(3) .card__icon {
  background: rgba(207, 165, 101, 0.14);
  color: var(--gold-300);
}

.pillar-card:nth-child(3) .link-arrow {
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   Challenges
   -------------------------------------------------------------------------- */
.challenges__blob {
  bottom: -220px;
  left: -200px;
  width: 520px;
  height: 520px;
  opacity: 0.4;
}

.challenges__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}

.challenges__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.challenges__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(207, 165, 101, 0.35);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-200);
}

.challenges__hint svg {
  width: 18px;
  height: 18px;
}

.challenges__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenges__list li:nth-child(even) {
  margin-left: clamp(0px, 5vw, 56px);
}

.challenge {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px 8px 26px 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
  transition: transform var(--dur-fast) var(--ease-spring), background-color var(--dur-base) ease, border-color var(--dur-base) ease;
}

.challenges__list li:nth-child(even) .challenge {
  border-radius: 8px 26px 8px 26px;
}

.challenge:hover {
  border-color: rgba(207, 165, 101, 0.5);
  background: linear-gradient(120deg, rgba(207, 165, 101, 0.16), rgba(207, 165, 101, 0.03));
}

.challenge:active {
  transform: scale(0.98);
}

.challenge__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
  color: var(--gold-400);
}

.challenge__title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.challenge__go {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #15120e;
  transition: transform var(--dur-base) var(--ease-spring);
}

.challenge__go svg {
  width: 20px;
  height: 20px;
}

.challenge:hover .challenge__go {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   How the AI works
   -------------------------------------------------------------------------- */
.how {
  overflow: hidden;
}

.how__blob {
  top: 10%;
  right: -240px;
  width: 520px;
  height: 520px;
  opacity: 0.6;
}

.how__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.how__steps::before {
  content: "";
  position: absolute;
  top: 62px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 16px);
  opacity: 0.6;
}

.how__step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-asym);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.how__step:nth-child(even) {
  top: 36px;
  border-radius: var(--r-asym-2);
}

.how__step:last-child {
  background: var(--surface-gold);
  border-color: transparent;
}

.how__step:last-child p {
  color: var(--ink-soft);
}

.how__step:last-child .how__num {
  color: rgba(42, 31, 18, 0.45);
}

[data-theme="dark"] .how__step:last-child p {
  color: var(--on-night-muted);
}

.how__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent-soft);
}

.how__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-200);
  box-shadow: 0 0 0 8px var(--bg);
}

.how__icon svg {
  width: 26px;
  height: 26px;
}

.how__step h3 {
  font-size: 1.4rem;
}

.how__step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.how__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin-top: calc(36px + clamp(40px, 5vw, 64px));
}

/* --------------------------------------------------------------------------
   Sectors strip
   -------------------------------------------------------------------------- */
.sectors-strip {
  overflow: hidden;
}

.sectors-strip__track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2)) 40px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sectors-strip__track::-webkit-scrollbar {
  display: none;
}

.sector-tile {
  flex: 0 0 clamp(230px, 24vw, 280px);
  scroll-snap-align: start;
}

.sector-tile:nth-child(even) {
  margin-top: 28px;
}

.sector-tile a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-asym);
  background: var(--card);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.sector-tile:nth-child(even) a {
  border-radius: var(--r-asym-2);
}

.sector-tile a:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 122, 60, 0.4);
  box-shadow: var(--shadow-soft);
}

.sector-tile h3 {
  font-size: 1.35rem;
}

.sector-tile p {
  margin: auto 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Insights preview
   -------------------------------------------------------------------------- */
.insights-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 22px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-asym-2);
  background: var(--card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 122, 60, 0.4);
  box-shadow: var(--shadow-float);
}

.insight-card--lead {
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 420px;
  border-radius: 48px 14px 48px 14px;
  border-color: rgba(207, 165, 101, 0.22);
  background: var(--night-gold-glow), var(--night);
  color: var(--on-night);
}

.insight-card--lead::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  left: 0.12em;
  font-family: var(--font-display);
  font-size: 16rem;
  line-height: 1;
  color: rgba(207, 165, 101, 0.16);
}

.insight-card--lead h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: #fff;
}

.insight-card--lead p,
.insight-card--lead time {
  color: var(--on-night-muted);
}

.insight-card--lead .tag {
  color: var(--gold-300);
}

.insight-card--lead .insight-card__foot {
  margin-top: 18px;
}

.insight-card--lead .insight-card__foot strong {
  color: #fff;
}

.insight-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.insight-card h3 {
  font-size: 1.4rem;
}

.insight-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.insight-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.82rem;
}

.insight-card__foot .avatar {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

.insight-card__foot strong {
  display: block;
  color: var(--ink);
}

.insight-card__foot small {
  color: var(--muted);
}

.insight-card--lead .insight-card__foot small {
  color: var(--on-night-muted);
}

/* --------------------------------------------------------------------------
   Team preview
   -------------------------------------------------------------------------- */
.team-preview__ring {
  bottom: -160px;
  left: -160px;
  width: 380px;
  height: 380px;
}

.team-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.team-preview__grid .heading-block {
  margin-bottom: 0;
}

.team-preview__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 18px 24px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 999px 28px 28px 999px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: left;
  --blob-size: 76px;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-base) ease;
}

.member:hover {
  border-color: rgba(169, 122, 60, 0.4);
}

.member:active {
  transform: scale(0.98);
}

.team-preview__list li:nth-child(2) {
  margin-left: clamp(0px, 6vw, 72px);
}

.member__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.member__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.member__role {
  font-weight: 700;
  color: var(--accent);
}

.member__focus {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .how__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .how__steps::before {
    display: none;
  }

  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero__grid,
  .challenges__grid,
  .team-preview__grid,
  .insights-preview__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    min-height: 0;
    padding-bottom: 150px;
  }

  .hero__arch {
    width: 78%;
    max-width: 380px;
    margin-inline: auto 4%;
  }

  .hero__seal {
    top: 2%;
    left: 0;
    width: 104px;
    height: 104px;
  }

  .hero__chat {
    bottom: 0;
    width: min(320px, 88%);
  }

  .challenges__intro {
    position: static;
  }

  .insight-card--lead {
    grid-row: auto;
    min-height: 360px;
  }

  .pillars__grid {
    padding-bottom: 0;
  }

  .pillar-card:nth-child(even) {
    top: 0;
  }
}

@media (max-width: 640px) {
  .pillars__grid,
  .how__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .how__step:nth-child(even) {
    top: 0;
  }

  .how__steps {
    row-gap: 16px;
  }

  .how__actions {
    margin-top: 40px;
  }

  .trust {
    margin-top: -48px;
  }

  .trust__list {
    gap: 12px;
  }

  .trust__item {
    padding: 20px 18px;
  }

  .trust__item:nth-child(even) {
    transform: translateY(14px);
  }

  .challenges__list li:nth-child(even) {
    margin-left: 0;
  }

  .challenge {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 16px;
  }

  .challenge__num {
    font-size: 1.6rem;
  }

  .challenge__title {
    font-size: 0.95rem;
  }

  .challenge__go {
    width: 34px;
    height: 34px;
  }

  .member {
    gap: 16px;
    padding: 14px 18px 14px 14px;
    --blob-size: 64px;
  }

  .team-preview__list li:nth-child(2) {
    margin-left: 0;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 400px) {
  .trust__item strong {
    font-size: 1.8rem;
  }

  .hero__chat {
    width: 92%;
  }
}
