/*
KernWi-Fi Payment Gateway Solutions page.
*/

:root {
  --gateway-bg: #030e1b;
  --gateway-line: rgba(118, 209, 255, 0.18);
  --gateway-cyan: #76d1ff;
  --gateway-text: #edf7ff;
  --gateway-muted: #a9bfd2;
  --gateway-gold: #e4ad2e;
}

.gateway-main {
  min-width: 0;
  min-height: 100vh;
  color: var(--gateway-text);
  background: var(--gateway-bg);
}

.gateway-hero {
  min-height: 820px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 27%, rgba(31, 163, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #030e1b, #071c33);
}

.gateway-hero-copy {
  align-self: center;
  padding: 64px clamp(34px, 5vw, 90px);
  box-sizing: border-box;
}

.gateway-kicker {
  color: var(--gateway-cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gateway-message {
  position: relative;
  margin-top: 18px;
  padding-left: 29px;
}

.gateway-message::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--gateway-cyan);
  box-shadow: 0 0 18px rgba(118, 209, 255, 0.18);
}

.gateway-message h1 {
  max-width: 780px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(3.8rem, 6.4vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.gateway-message p,
.gateway-section p,
.gateway-section li {
  color: var(--gateway-muted);
  line-height: 1.68;
}

.gateway-lead {
  color: #d9eaf6 !important;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.gateway-micro {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gateway-hero-copy > .gateway-actions {
  margin-left: 29px;
}

.gateway-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(4, 20, 36, 0.72);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.gateway-button.primary {
  color: #03101d;
  border-color: var(--gateway-cyan);
  background: linear-gradient(135deg, #9ceaff, #31b4ff);
}

.gateway-hero-visual {
  min-width: 0;
  min-height: 820px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(42, 180, 255, 0.2), transparent 49%),
    linear-gradient(145deg, rgba(8, 42, 72, 0.9), rgba(3, 14, 27, 0.99));
}

.gateway-terminal {
  width: min(82%, 690px);
  aspect-ratio: 1.3;
  border: 1px solid rgba(118, 209, 255, 0.28);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(4, 20, 36, 0.9);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.42);
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
}

.gateway-terminal-bar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(118, 209, 255, 0.15);
  background: rgba(9, 42, 71, 0.94);
}

.gateway-terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(118, 209, 255, 0.66);
}

.gateway-terminal-content {
  height: calc(100% - 48px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 54px;
  box-sizing: border-box;
}

.gateway-flow {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr;
  align-items: center;
  gap: 10px;
}

.gateway-flow span {
  min-height: 92px;
  border: 1px solid rgba(118, 209, 255, 0.24);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #e7f8ff;
  background: rgba(8, 39, 67, 0.82);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.gateway-flow i {
  height: 1px;
  position: relative;
  background: var(--gateway-cyan);
}

.gateway-flow i::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--gateway-cyan);
}

.gateway-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.gateway-status-grid b {
  min-height: 54px;
  border: 1px solid rgba(118, 209, 255, 0.17);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #dff5ff;
  background: rgba(7, 31, 53, 0.82);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.gateway-section {
  padding: clamp(56px, 7vw, 90px) 0;
  border-top: 1px solid var(--gateway-line);
}

.gateway-container {
  width: min(calc(100% - 72px), 1200px);
  margin: auto;
}

.gateway-section h2 {
  max-width: 920px;
  margin: 16px 0 22px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.gateway-intro {
  max-width: 900px;
}

.gateway-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.gateway-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gateway-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gateway-grid article,
.gateway-requirement-list article,
.gateway-notice,
.gateway-assessment-inner {
  padding: 24px;
  border: 1px solid var(--gateway-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 45, 76, 0.9), rgba(6, 22, 39, 0.96));
}

.gateway-grid article > span {
  display: block;
  margin-bottom: 8px;
  color: var(--gateway-cyan);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-grid h3,
.gateway-requirement-list h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.gateway-grid p,
.gateway-requirement-list p {
  margin: 0;
  font-size: 0.9rem;
}

.gateway-grid ul,
.gateway-product-card ul {
  margin: 16px 0 0;
  padding-left: 19px;
}

.gateway-product-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.gateway-product-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(118, 209, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(10, 39, 67, 0.96), rgba(4, 18, 33, 0.99));
}


.gateway-product-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border: 1px solid #efc45e;
  border-radius: 999px;
  color: #ffffff;
  background: #986b08;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


.gateway-product-card h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}


.gateway-shared-action {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(118, 209, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gateway-shared-action p {
  max-width: 760px;
  margin: 0;
}

.gateway-shared-action .gateway-button {
  flex-shrink: 0;
}

.gateway-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.gateway-requirement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gateway-steps {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: gateway-step;
}

.gateway-steps li {
  counter-increment: gateway-step;
  padding: 22px;
  border-top: 2px solid var(--gateway-cyan);
  background: rgba(7, 28, 49, 0.8);
}

.gateway-steps li::before {
  content: counter(gateway-step);
  width: 29px;
  height: 29px;
  margin-bottom: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #04101e;
  background: var(--gateway-cyan);
  font-weight: 850;
}

.gateway-steps strong,
.gateway-steps span {
  display: block;
}

.gateway-steps span {
  margin-top: 8px;
  color: var(--gateway-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.gateway-notice h2 {
  max-width: 990px;
}

.gateway-notice p:last-child {
  margin-bottom: 0;
}

.gateway-assessment-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.gateway-assessment-inner > div:first-child {
  max-width: 730px;
}

.gateway-assessment-inner .gateway-actions {
  flex-shrink: 0;
  margin-top: 0;
}

@media (max-width: 1050px) {
  .gateway-grid.four,
  .gateway-grid.three,
  .gateway-product-grid,
  .gateway-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gateway-hero {
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
  }

  .gateway-hero-copy {
    padding: 38px 18px 56px;
  }

  .gateway-message {
    padding-left: 25px;
  }

  .gateway-hero-copy > .gateway-actions {
    margin-left: 25px;
  }

  .gateway-message h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .gateway-hero-visual {
    width: 100%;
    min-height: 340px;
    height: 340px;
  }

  .gateway-terminal {
    width: 92%;
  }

  .gateway-terminal-content {
    padding: 22px;
    gap: 30px;
  }

  .gateway-flow {
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
    gap: 4px;
  }

  .gateway-flow span {
    min-height: 70px;
    font-size: 0.55rem;
  }

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

  .gateway-container {
    width: calc(100% - 36px);
  }

  .gateway-grid.four,
  .gateway-grid.three,
  .gateway-product-grid,
  .gateway-requirement-list,
  .gateway-steps,
  .gateway-split {
    grid-template-columns: 1fr;
  }

  .gateway-product-badge {
    position: static;
    width: max-content;
    margin-bottom: 18px;
  }

  .gateway-shared-action,
  .gateway-assessment-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .gateway-button {
    width: 100%;
  }
}

/* Equal PayWay module image cards */
.gateway-product-card {
  display: flex;
  flex-direction: column;
}

.gateway-product-visual {
  position: relative;
  width: 100%;
  min-height: 316px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(118, 209, 255, 0.22);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #f7fafc,
      #e5edf5
    );
  box-sizing: border-box;
}

.gateway-product-visual::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(44, 119, 168, 0.32),
    transparent
  );
}

.gateway-product-visual img {
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
}

.gateway-product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(118, 209, 255, 0.72);
  border-radius: 999px;
  color: #ffffff;
  background: #075f94;
  box-shadow: 0 5px 16px rgba(3, 34, 57, 0.18);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.gateway-product-card h3 {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .gateway-product-visual {
    min-height: 286px;
  }

  .gateway-product-visual img {
    width: min(100%, 250px);
  }
}

@media (max-width: 700px) {
  .gateway-product-visual {
    min-height: 260px;
    padding: 14px;
  }

  .gateway-product-visual img {
    width: min(100%, 230px);
  }

  .gateway-product-badge {
    top: 12px;
    right: 12px;
  }
}

/* Kern DC style Payment Gateway hero blend */
@media (min-width: 701px) {
  .gateway-hero {
    position: relative !important;
    isolation: isolate !important;
    height: 820px !important;
    min-height: 820px !important;
    display: block !important;
    overflow: hidden !important;
    background: #030e1b !important;
  }

  .gateway-hero-copy {
    position: relative !important;
    z-index: 4 !important;
    width: 50% !important;
    height: 820px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 64px clamp(34px, 4.5vw, 80px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .gateway-message h1 {
    font-size: clamp(3.65rem, 5.7vw, 6.8rem) !important;
  }

  .gateway-hero-visual {
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 34% !important;
    width: auto !important;
    height: 820px !important;
    min-height: 820px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .gateway-hero-visual::before {
    content: "" !important;
    position: absolute !important;
    z-index: 3 !important;
    inset: 0 !important;
    display: block !important;
    background: linear-gradient(
      90deg,
      #030e1b 0%,
      rgba(3, 14, 27, 0.99) 12%,
      rgba(3, 14, 27, 0.92) 24%,
      rgba(3, 14, 27, 0.68) 38%,
      rgba(3, 14, 27, 0.34) 52%,
      rgba(3, 14, 27, 0.10) 66%,
      rgba(3, 14, 27, 0) 78%
    ) !important;
    pointer-events: none !important;
  }

  .gateway-terminal {
    position: relative !important;
    z-index: 2 !important;
    width: min(72%, 690px) !important;
    margin-left: 19% !important;
  }

  .gateway-flow {
    grid-template-columns: 1fr 54px 1.18fr 54px 1fr !important;
  }

  .gateway-flow span {
    padding: 0 10px !important;
    text-align: center !important;
  }

  .gateway-status-grid b {
    padding: 0 8px !important;
    text-align: center !important;
  }
}

@media (max-width: 700px) {
  .gateway-hero {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  .gateway-hero-copy {
    width: auto !important;
    height: auto !important;
    background: #030e1b !important;
  }

  .gateway-hero-visual {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 340px !important;
    min-height: 340px !important;
  }

  .gateway-hero-visual::before {
    content: "" !important;
    position: absolute !important;
    z-index: 3 !important;
    inset: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(3, 14, 27, 0) 48%,
      rgba(3, 14, 27, 0.60) 78%,
      #030e1b 100%
    ) !important;
    pointer-events: none !important;
  }

  .gateway-terminal {
    position: relative !important;
    z-index: 2 !important;
    margin-left: 0 !important;
  }
}

