/* Partners — premium editorial layout */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --pt-black: #0a0a0b;
  --pt-ink: #111827;
  --pt-muted: #6b7280;
  --pt-line: rgba(15, 23, 42, 0.08);
  --pt-blue: #2563eb;
  --pt-blue-soft: rgba(37, 99, 235, 0.08);
  --pt-green: #22c55e;
  --pt-surface: #ffffff;
  --pt-panel: #f4f6f9;
  --pt-max: 1180px;
  --pt-gutter: clamp(20px, 4vw, 40px);
  --pt-radius: 24px;
  --pt-radius-sm: 16px;
  --pt-shadow: 0 24px 64px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(37, 99, 235, 0.04);
  --pt-shadow-hover: 0 32px 80px rgba(15, 23, 42, 0.12), 0 12px 28px rgba(37, 99, 235, 0.08);
  --pt-font: "Inter", system-ui, -apple-system, sans-serif;
  --pt-grad-purple: #5546fa;
  --pt-grad-blue: #003dff;
  --pt-grad-brand: linear-gradient(332.06deg, #fff 19.21%, #5546fa 47.37%, #003dff 66.74%);
  --pt-grad-cta: linear-gradient(152deg, #fff 19.21%, #5546fa 47.37%, #003dff 66.74%);
  --pt-hero-dark: #05070a;
}

.pt-page {
  position: relative;
  overflow-x: clip;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 32%, #ffffff 100%);
  color: var(--pt-ink);
  font-family: var(--pt-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pt-page__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(37, 99, 235, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 88% 18%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(34, 197, 94, 0.04) 0%, transparent 55%);
}

.pt-wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2 * var(--pt-gutter)), var(--pt-max));
  margin-inline: auto;
}

.pt-page .footer__main,
.pt-page .footer__bar {
  padding-inline: max(var(--pt-gutter), calc((100% - var(--pt-max)) / 2));
}

.pt-page .footer__grid,
.pt-page .footer__bar-inner {
  max-width: none;
  width: 100%;
}

/* Eyebrow */
.pt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pt-muted);
}

.pt-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pt-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

/* Hero */
.pt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 80px);
  color: #fff;
}

.pt-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--pt-hero-dark);
  box-shadow: 0 0 0 100vmax var(--pt-hero-dark);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

.pt-hero__gradient {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pt-hero__glow {
  position: absolute;
  top: -25%;
  right: -28%;
  width: 92%;
  height: 150%;
  background: var(--pt-grad-brand);
  filter: blur(250px);
  pointer-events: none;
}

.pt-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.pt-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(72px, 10vw, 120px);
  background: linear-gradient(180deg, transparent 0%, #f8fafc 100%);
}

.pt-hero > .pt-wrap {
  position: relative;
  z-index: 1;
}

.pt-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

.pt-hero__title {
  margin: 0 0 20px;
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
}

.pt-hero__lead {
  margin: 0 0 28px;
  max-width: 48ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}

.pt-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(36px, 5vw, 52px);
  padding: 0;
  list-style: none;
}

.pt-hero__meta li {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.pt-hero__rail {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 920px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--pt-radius) + 8px);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.pt-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pt-hero__logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pt-hero__logo img {
  display: block;
  max-height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.pt-hero__logo--wide img {
  max-width: 130px;
  max-height: 24px;
}

.pt-hero__logo--more {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.pt-hero__logo--more span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.pt-partner__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Partners section */
.pt-section {
  padding-block: clamp(64px, 9vw, 112px);
}

.pt-section--panel {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    var(--pt-panel);
  box-shadow: 0 0 0 100vmax var(--pt-panel);
  clip-path: inset(0 -100vmax);
}

.pt-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}

.pt-section__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--pt-black);
}

.pt-section__note {
  max-width: 36ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pt-muted);
  text-align: right;
}

/* Bento grid */
.pt-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.pt-partner {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  min-height: 280px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--pt-radius);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--pt-accent-glow, rgba(37, 99, 235, 0.07)) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pt-partner:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--pt-shadow-hover);
  transform: translateY(-4px);
}

.pt-partner:hover::before {
  opacity: 1;
}

.pt-partner--featured {
  grid-column: 1 / -1;
  min-height: 0;
  padding: clamp(28px, 4vw, 40px);
}

.pt-partner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.pt-partner__logo-wrap {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.pt-partner--featured .pt-partner__logo-wrap {
  min-height: 52px;
}

.pt-partner__logo {
  display: block;
  max-height: 36px;
  width: auto;
  max-width: min(100%, 200px);
  object-fit: contain;
}

.pt-partner__logo--lg {
  max-height: 40px;
  max-width: min(100%, 220px);
}

.pt-partner__logo--hero {
  max-height: 48px;
  max-width: min(100%, 260px);
}

.pt-partner__logo--wide {
  max-height: 32px;
  max-width: min(100%, 220px);
}

.pt-partner__logo--on-dark {
  max-height: 36px;
  filter: none;
}

.pt-partner__type {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-accent, var(--pt-blue));
}

.pt-partner__desc {
  flex: 1;
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pt-muted);
}

.pt-partner__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--pt-line);
}

.pt-partner__integration {
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-muted);
}

.pt-partner__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-black);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.pt-partner__link svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pt-partner__link:hover {
  color: var(--pt-accent, var(--pt-blue));
  gap: 12px;
}

.pt-partner__link:hover svg {
  transform: translate(2px, -2px);
}

/* Process */
.pt-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.pt-process__item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pt-process__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.pt-process__rail::before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.14) 50%, rgba(15, 23, 42, 0.14) 100%);
}

.pt-process__item:first-child .pt-process__rail::before {
  left: 50%;
  right: 0;
}

.pt-process__item:nth-child(2) .pt-process__rail::before {
  left: 0;
  right: 0;
}

.pt-process__item:last-child .pt-process__rail::before {
  left: 0;
  right: 50%;
}

.pt-process__step {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--pt-black);
  color: #fff;
}

.pt-process__step svg {
  display: block;
  flex-shrink: 0;
}

.pt-process__card {
  flex: 1;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--pt-radius);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  transition:
    border-color 0.3s ease,
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-process__item:hover .pt-process__card {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--pt-shadow);
  transform: translateY(-3px);
}

.pt-process__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pt-black);
}

.pt-process__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pt-muted);
}

/* CTA */
.pt-cta {
  padding-block: clamp(24px, 4vw, 40px) clamp(64px, 9vw, 112px);
}

.pt-cta__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 80px) clamp(40px, 6vw, 72px);
  border-radius: calc(var(--pt-radius) + 12px);
  background: var(--pt-hero-dark);
  color: #fff;
  overflow: hidden;
}

.pt-cta__panel::before {
  content: "";
  position: absolute;
  bottom: -45%;
  left: -18%;
  width: 72%;
  height: 160%;
  background: var(--pt-grad-cta);
  filter: blur(140px);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.pt-cta__panel > * {
  position: relative;
  z-index: 1;
}

.pt-cta__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(85, 70, 250, 0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pt-cta__title {
  margin: 0 0 16px;
  max-width: 20ch;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.pt-cta__desc {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.pt-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: min(100%, 260px);
}

.pt-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--pt-black);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pt-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pt-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pt-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

/* Reveal */
.pt-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--pt-delay, 0ms);
}

.pt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pt-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pt-partner {
    transition: none;
  }

  .pt-process__item:hover .pt-process__card {
    transform: none;
  }
}

@media (max-width: 960px) {
  .pt-section__note {
    text-align: left;
  }

  .pt-partner,
  .pt-partner--featured {
    grid-column: 1 / -1;
  }

  .pt-process {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pt-process__rail::before {
    display: none;
  }

  .pt-process__rail {
    justify-content: flex-start;
    height: auto;
  }

  .pt-cta__panel {
    grid-template-columns: 1fr;
  }

  .pt-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .pt-hero__glow {
    top: -15%;
    right: -45%;
    width: 130%;
    height: 120%;
    filter: blur(120px);
  }

  .pt-hero__rail {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }

  .pt-hero__logo {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
  }

  .pt-hero__logo:last-child:nth-child(odd) {
    flex-basis: 100%;
    min-width: 100%;
  }

  .pt-partner__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pt-partner__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
