:root {
  --violet: #6f4df6;
  --plum: #21122f;
  --ink: #100b17;
  --muted: #645a70;
  --gold: #d6b66a;
  --teal: #3fb8a7;
  --paper: #f7f2e8;
  --surface: #fffcf6;
  --surface-2: #f0e8da;
  --line: rgba(25, 17, 32, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 64px rgba(24, 15, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(111, 77, 246, 0.12), transparent 28rem),
    linear-gradient(180deg, #f7f2e8 0%, #fffcf6 42%, #f4efe6 100%);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(16, 11, 23, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 54px rgba(11, 6, 17, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.merchant-entry {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 8px;
}

.nav-links a:hover,
.merchant-entry:hover,
.language-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.merchant-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.merchant-entry.is-active {
  color: #f1dc9c;
}

.language-toggle {
  min-width: 42px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(214, 182, 106, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 95vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  align-items: center;
  column-gap: 48px;
  padding: 156px max(24px, calc((100vw - 1120px) / 2)) 44px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 242, 232, 0), rgba(247, 242, 232, 0.98));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 8, 17, 0.94), rgba(24, 15, 33, 0.78) 48%, rgba(16, 11, 23, 0.5)),
    linear-gradient(0deg, rgba(12, 8, 17, 0.5), rgba(255, 255, 255, 0.02));
}

.hero-bg,
.hero-character {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  filter: saturate(0.55) contrast(1.06);
  opacity: 0.42;
  object-position: center;
}

.hero-content {
  width: min(720px, 100%);
  padding: 28px 0 70px;
  color: white;
}

.hero-logo-art {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(420px, 100%);
  margin-bottom: 72px;
}

.hero-logo-art::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(214, 182, 106, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 26%, rgba(214, 182, 106, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.hero-logo-art img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-content .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.2vw, 5.15rem);
  line-height: 1.02;
  max-width: 760px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.hero-copy,
.section-heading p,
.partner-content > p,
.contact-section p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.partner-content .primary-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  color: #130d18;
  background: linear-gradient(135deg, #f1dc9c, #c9a150);
  box-shadow: 0 16px 36px rgba(106, 77, 34, 0.2);
}

.secondary-action {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-dashboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(860px, 100%);
}

.hero-dashboard div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(24, 15, 33, 0.12);
}

.hero-dashboard span,
.hero-dashboard strong {
  display: block;
}

.hero-dashboard span {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-dashboard strong {
  font-size: 1.1rem;
}

.section {
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

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

.solution-card,
.network-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.86);
  box-shadow: var(--shadow);
}

.solution-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.solution-card.is-featured {
  background: var(--surface);
}

.solution-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.02);
}

.solution-card div {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: #8a6a26;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.solution-card p,
.network-grid p,
.partner-list span {
  color: var(--muted);
  line-height: 1.65;
}

.partner-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 18% 20%, rgba(111, 77, 246, 0.18), transparent 26rem),
    linear-gradient(135deg, #100b17, #21122f 54%, #111b1f);
  color: white;
}

.partner-visual {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.32);
}

.partner-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.partner-content .eyebrow,
.partner-content > p,
.partner-list span {
  color: rgba(255, 255, 255, 0.7);
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.partner-list div {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.partner-list strong,
.partner-list span {
  display: block;
}

.partner-list strong {
  margin-bottom: 10px;
  color: #ead08a;
  font-size: 1.06rem;
}

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

.network-grid article {
  background: var(--surface);
}

.network-grid img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.network-grid h3,
.network-grid p {
  padding: 0 20px;
}

.network-grid h3 {
  margin-top: 20px;
}

.network-grid p {
  margin-bottom: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 86% 18%, rgba(63, 184, 167, 0.14), transparent 23rem),
    linear-gradient(180deg, var(--surface), var(--paper));
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: #100b17;
}

.site-footer span:first-child {
  color: white;
  font-weight: 900;
}

.portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 16%, rgba(214, 182, 106, 0.12), transparent 22rem),
    radial-gradient(circle at 18% 20%, rgba(111, 77, 246, 0.18), transparent 24rem),
    linear-gradient(135deg, #100b17, #21122f 58%, #111b1f);
}

.portal-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 136px 24px 72px;
}

.portal-panel {
  width: min(980px, 100%);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  color: white;
}

.portal-intro {
  width: min(680px, 100%);
  margin-bottom: 30px;
}

.portal-intro h1 {
  max-width: 720px;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.portal-intro p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.country-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.country-card:hover {
  border-color: rgba(214, 182, 106, 0.55);
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 182, 106, 0.16), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.country-card span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(214, 182, 106, 0.48);
  border-radius: 50%;
  color: #f1dc9c;
  font-weight: 900;
}

.country-card strong {
  display: block;
  font-size: 1.45rem;
}

.country-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.portal-back {
  width: fit-content;
  margin-top: 20px;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 900px;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero-logo-art {
    justify-self: start;
    width: min(300px, 72vw);
    margin: 0 0 34px;
  }

  .hero-dashboard,
  .solution-grid,
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-section,
  .contact-section,
  .country-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    gap: 6px;
  }

  .merchant-entry {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .language-toggle {
    min-width: 38px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 860px;
    padding-top: 118px;
  }

  .hero-content {
    padding-bottom: 30px;
  }

  .hero-logo-art {
    display: none;
  }

  .hero-actions,
  .partner-content .primary-action {
    display: grid;
  }

  .hero-dashboard,
  .solution-grid,
  .partner-list,
  .network-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: auto;
  }

  .section,
  .partner-section,
  .contact-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .portal-main {
    padding: 112px 16px 52px;
  }

  .country-card {
    min-height: 174px;
  }
}
