/* ==========================================================================
   GreenPay Services - Home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + 40px) 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 28%, rgba(10, 124, 255, 0.26), transparent 70%),
    radial-gradient(700px 460px at 4% 88%, rgba(37, 192, 90, 0.17), transparent 70%),
    var(--c-bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 55% -20% 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 56px 40px;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000 70%);
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 32px;
}

.hero__content {
  min-width: 0;
}

.hero__title {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.hero__script {
  align-self: center;
  margin-bottom: -0.2em;
  padding-inline: 0.2em;
  color: var(--c-green);
  font-family: var(--font-script);
  font-size: clamp(4.2rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 0 34px rgba(37, 192, 90, 0.5);
}

.hero__headline {
  background: linear-gradient(180deg, #4fdcff 0%, #0a7cff 68%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-headline);
  font-size: clamp(3.4rem, 8.2vw, 6.9rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 8px 26px rgba(10, 124, 255, 0.45));
}

.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  max-width: 560px;
  margin: 4px 0 24px;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  background: var(--grad-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  box-shadow: var(--shadow-glow);
}

.hero__lead {
  max-width: 560px;
  color: var(--c-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 28px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}

.hero__pills li {
  padding: 5px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__visual {
  min-width: 0;
  perspective: 1100px;
}

.hero__art {
  width: 100%;
  max-width: 620px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease-out;
}

.hero__art text {
  font-family: var(--font-display);
}

.art-float {
  animation: float 6s ease-in-out infinite;
}

.art-float--b {
  animation-delay: -1.5s;
}

.art-float--c {
  animation-delay: -3s;
}

.art-float--d {
  animation-delay: -4.5s;
}

.art-link {
  fill: none;
  stroke: #4fb8ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
  animation: dash 1.4s linear infinite;
}

.art-ring {
  fill: none;
  stroke: rgba(42, 212, 255, 0.42);
  stroke-width: 1.5;
}

.art-ring--dashed {
  stroke-dasharray: 14 10;
  animation: dash-ring 3s linear infinite;
}

.art-pulse {
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -26;
  }
}

@keyframes dash-ring {
  to {
    stroke-dashoffset: -48;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero__title,
  .hero__tagline,
  .hero__lead,
  .hero__pills {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__pills {
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .hero__headline {
    font-size: 15vw;
  }

  .hero__tagline {
    justify-content: center;
    padding-inline: 12px;
  }
}

/* ---------- API ticker ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(110, 168, 255, 0.28);
  background: linear-gradient(90deg, #07163f, #0c2a6e, #07163f);
  color: #fff;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
}

.ticker__group li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0 16px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

.ticker__group li::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--c-green);
  box-shadow: 0 0 12px var(--c-green);
  transform: rotate(45deg);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- IT services ---------- */
.service-card h3 {
  font-size: 1.2rem;
}

/* ---------- Products ---------- */
.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.product-card .icon {
  width: 25px;
  height: 25px;
}

/* ---------- Integration process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 62px 20px 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  counter-increment: step;
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 20px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
}

.steps__item::after {
  content: "";
  position: absolute;
  inset: -1px 20px auto;
  height: 2px;
  background: var(--grad-brand);
}

.steps__item h3 {
  font-size: 1rem;
}

.steps__item p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
}

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

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

/* ---------- Developers ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}

.split p {
  color: var(--c-muted);
}

.split .check-list {
  margin-block: 22px 28px;
}

.split .check-list li {
  font-size: 0.97rem;
}

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

/* ---------- Security ---------- */
.feature {
  display: flex;
  gap: 18px;
}

.feature .icon-badge {
  width: 52px;
  height: 52px;
  margin: 0;
}

.feature .icon {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

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

.card.feature {
  flex-direction: row;
  padding: 24px 22px;
}

/* ---------- Industries ---------- */
.industry {
  text-align: center;
  align-items: center;
}

.industry p {
  margin: 0;
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(110, 168, 255, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 240px at 92% 10%, rgba(42, 212, 255, 0.35), transparent 70%),
    radial-gradient(420px 220px at 4% 100%, rgba(37, 192, 90, 0.3), transparent 70%),
    var(--c-navy);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.cta h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.cta p {
  margin: 0;
  color: #c3d4f7;
}

.cta > div {
  flex: 1 1 420px;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 28px;
}

.contact__list {
  display: grid;
  gap: 16px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.2s, transform 0.2s;
}

a.contact__item:hover {
  border-color: var(--c-border-strong);
  text-decoration: none;
  transform: translateX(4px);
}

.contact__item .icon-badge {
  width: 50px;
  height: 50px;
  margin: 0;
  border: 0;
  background: linear-gradient(135deg, #2fd668, #148f41);
  color: #fff;
}

.contact__item .icon {
  width: 23px;
  height: 23px;
}

.contact__item small {
  display: block;
  color: var(--c-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__item strong {
  display: block;
  color: var(--c-heading);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.contact__item > span:last-child {
  min-width: 0;
}

.contact__panel {
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
}

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