.partner-page { background: #fff; }

.partner-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(65, 213, 214, .2), transparent 29%),
    radial-gradient(circle at 83% 14%, rgba(130, 92, 255, .2), transparent 34%),
    linear-gradient(145deg, #f8ffff 0%, #f5f1ff 52%, #edfaff 100%);
}

.partner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(98, 81, 243, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 81, 243, .055) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.partner-hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 610px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 125px;
  text-align: center;
}

.partner-kicker,
.partner-heading > span,
.apply-copy > span {
  color: #6251f3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
}

.partner-hero h1 {
  margin: 16px 0 18px;
  color: #181b2b;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.partner-hero h1 em {
  color: transparent;
  background: linear-gradient(110deg, #4434ca, #7b45ff 52%, #1caec6);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.partner-hero-inner > p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #5f687e;
  font-size: 16px;
  line-height: 1.85;
}

.partner-hero-note {
  margin-top: 18px;
  color: #7b8498;
  font-size: 12px;
}

.partner-orb {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(98, 81, 243, .22);
  border-radius: 15px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 14px 40px rgba(81, 62, 187, .12);
  backdrop-filter: blur(10px);
}

.partner-orb::before,
.partner-orb::after {
  content: "";
  position: absolute;
  border: 2px solid #715cf6;
}

.partner-orb::before { inset: 13px; border-radius: 50%; }
.partner-orb::after { top: 22px; left: 10px; width: 24px; border-width: 1px 0 0; transform: rotate(-28deg); }
.orb-one { top: 29%; left: 13%; transform: rotate(-8deg); }
.orb-two { right: 14%; bottom: 28%; transform: scale(.82) rotate(9deg); }

.partner-wave {
  position: absolute;
  right: -8%;
  bottom: -165px;
  left: -8%;
  z-index: 1;
  height: 300px;
  border: 5px solid transparent;
  border-top-color: rgba(103, 78, 238, .35);
  border-radius: 50%;
  transform: rotate(-3deg);
  box-shadow: 0 -18px 50px rgba(52, 186, 218, .1);
}

.wave-two {
  bottom: -120px;
  border-top-color: rgba(43, 183, 221, .34);
  transform: rotate(4deg) scaleX(1.08);
}

.partner-summary {
  position: relative;
  z-index: 5;
  margin-top: -46px;
}

.partner-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #e8e8f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 55px rgba(39, 37, 78, .1);
}

.partner-summary-grid > div { padding: 25px; text-align: center; }
.partner-summary-grid > div + div { border-left: 1px solid #ececf3; }
.partner-summary-grid b { display: block; color: #2c2e43; font-size: 24px; }
.partner-summary-grid span { display: block; margin-top: 5px; color: #81889b; font-size: 11px; }

.partner-section { padding: 100px 0; }
.partner-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.partner-heading h2 {
  margin: 12px 0 13px;
  color: #202334;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.partner-heading p { margin: 0; color: #747c90; font-size: 14px; line-height: 1.8; }

.partner-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 22px;
  border: 1px solid #e8e9f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 42, 78, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: #d9d4f5;
  box-shadow: 0 18px 40px rgba(68, 55, 160, .1);
}

.partner-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.partner-card-top i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #6251f3;
  background: #f0edff;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.partner-card-top span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6251f3;
  background: #f3f0ff;
  font-size: 12px;
  font-weight: 750;
}

.partner-card h3 {
  margin: 0 0 18px;
  color: #1f2335;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.partner-card-block { margin-bottom: 14px; }
.partner-card-block b {
  display: block;
  margin-bottom: 4px;
  color: #30364a;
  font-size: 13px;
}
.partner-card-block p {
  margin: 0;
  color: #6b7388;
  font-size: 13px;
  line-height: 1.7;
}

.partner-card-incentives {
  flex: 1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed #e7e8f0;
}

.partner-card-incentives em {
  display: block;
  margin-bottom: 8px;
  color: #8a92a6;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.partner-card-incentives ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-card-incentives li {
  position: relative;
  padding-left: 14px;
  color: #5d6579;
  font-size: 13px;
  line-height: 1.7;
}

.partner-card-incentives li + li { margin-top: 8px; }
.partner-card-incentives li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6251f3;
}
.partner-card-incentives strong { color: #6251f3; font-weight: 800; }

.partner-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
  color: #3d4355;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.partner-card-cta:hover {
  color: #fff;
  border-color: #6251f3;
  background: linear-gradient(120deg, #4938d1, #7563ff);
}

.partner-system { color: #fff; background: #151729; }
.partner-heading.light h2 { color: #fff; }
.partner-heading.light p { color: #9ea5bd; }
.partner-heading.light > span { color: #7aebdd; }

.system-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.system-flow > span { color: #545b78; }
.system-flow article {
  min-height: 186px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.system-flow article b { color: #69718f; font: 10px/1 Consolas, monospace; }
.system-flow article i {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 13px 0;
  place-items: center;
  border-radius: 11px;
  color: #82e7dc;
  background: rgba(62, 211, 199, .1);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}
.system-flow h3 { margin: 0 0 8px; font-size: 14px; }
.system-flow p { margin: 0; color: #9199b1; font-size: 11px; line-height: 1.6; }

.system-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(119, 226, 215, .18);
  border-radius: 12px;
  background: rgba(57, 199, 190, .05);
}
.system-rail span { padding: 13px 8px; color: #8bded7; font-size: 11px; font-weight: 700; text-align: center; }
.system-rail span + span { border-left: 1px solid rgba(119, 226, 215, .12); }

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid #e8e9f1;
  border-radius: 17px;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.benefit-grid article:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(41, 42, 77, .07); }

.benefit-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #efeaff, #e8f9fb);
}
.benefit-icon span {
  position: absolute;
  border-radius: 6px;
  background: #6251f3;
}
.benefit-icon span:first-child {
  top: 14px;
  left: 12px;
  width: 24px;
  height: 8px;
  opacity: .9;
}
.benefit-icon span:last-child {
  top: 26px;
  left: 12px;
  width: 16px;
  height: 8px;
  opacity: .45;
}
.benefit-icon.icon-tech span:first-child {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid #6251f3;
}
.benefit-icon.icon-tech span:last-child {
  top: 28px;
  left: 24px;
  width: 10px;
  height: 3px;
  transform: rotate(40deg);
}
.benefit-icon.icon-promo span:first-child {
  top: 12px;
  left: 16px;
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.benefit-icon.icon-promo span:last-child {
  top: 28px;
  left: 12px;
  width: 24px;
  height: 6px;
  opacity: .35;
}
.benefit-icon.icon-trust span:first-child {
  top: 12px;
  left: 14px;
  width: 20px;
  height: 24px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #7a67ff, #3ec9c4);
}
.benefit-icon.icon-trust span:last-child { display: none; }

.benefit-grid h3 { margin: 22px 0 10px; color: #2c3043; font-size: 20px; }
.benefit-grid p { margin: 0; color: #747c90; font-size: 14px; line-height: 1.75; }

.partner-apply { background: linear-gradient(145deg, #f5f2ff, #f2fcfd); }
.apply-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.apply-copy { padding-top: 24px; }
.apply-copy h2 { margin: 12px 0; color: #222538; font-size: clamp(30px, 3.5vw, 42px); letter-spacing: -.04em; }
.apply-copy > p { margin: 0; color: #697187; font-size: 14px; line-height: 1.8; }
.apply-copy ul { margin: 25px 0 0; padding: 0; list-style: none; }
.apply-copy li { position: relative; padding: 10px 0 10px 25px; color: #50586d; font-size: 12px; line-height: 1.6; }
.apply-copy li::before { content: "✓"; position: absolute; left: 0; color: #2baea4; font-weight: 900; }

.partner-form {
  padding: 30px;
  border: 1px solid rgba(226, 225, 239, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 60px rgba(56, 48, 115, .1);
}
.partner-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.partner-form label { display: block; margin-bottom: 15px; color: #4d5468; font-size: 12px; font-weight: 700; }
.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #dfe2eb;
  border-radius: 9px;
  outline: none;
  color: #30364a;
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus { border-color: #7363ee; box-shadow: 0 0 0 3px rgba(98, 81, 243, .09); }
.partner-form textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.partner-form .partner-consent { display: flex; align-items: center; gap: 8px; color: #767e91; font-weight: 500; }
.partner-consent input { width: auto; margin: 0; }
.partner-honeypot { position: absolute !important; left: -10000px !important; }
.partner-submit { border: 0; }
.partner-form-result { min-height: 20px; margin-top: 12px; color: #198b64; font-size: 12px; }
.partner-form-result.error { color: #c94747; }

@media (max-width: 1050px) {
  .partner-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-flow { grid-template-columns: repeat(3, 1fr); }
  .system-flow > span { display: none; }
}

@media (max-width: 780px) {
  .partner-hero, .partner-hero-inner { min-height: 560px; }
  .partner-hero-inner { padding-bottom: 90px; }
  .partner-hero h1 { font-size: 43px; }
  .partner-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-summary-grid > div:nth-child(3) { border-top: 1px solid #ececf3; border-left: 0; }
  .partner-summary-grid > div:nth-child(4) { border-top: 1px solid #ececf3; }
  .partner-section { padding: 72px 0; }
  .apply-layout { grid-template-columns: 1fr; gap: 34px; }
  .benefit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .partner-card-grid,
  .partner-form-grid,
  .system-flow { grid-template-columns: 1fr; }
  .system-rail { grid-template-columns: repeat(2, 1fr); }
  .system-rail span { border-bottom: 1px solid rgba(119, 226, 215, .12); }
  .partner-form { padding: 22px; }
  .partner-card h3 { font-size: 22px; }
}
