:root {
  --bg: #0b0f0f;
  --bg-2: #111615;
  --panel: #151c1a;
  --panel-soft: #1b2320;
  --ink: #f7faf7;
  --muted: #a8b4ac;
  --emerald: #22d17e;
  --emerald-soft: rgba(34, 209, 126, 0.15);
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, 0.18);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(34, 209, 126, 0.36);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 209, 126, 0.08), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(200, 169, 106, 0.08), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #090c0c 48%, #0e1211 100%);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(34, 209, 126, 0.09) 45%, rgba(200, 169, 106, 0.07) 52%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 110px);
  opacity: 0.34;
  transform: translateX(-35%);
  animation: gradient-drift 14s linear infinite;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 720px;
  margin-top: 16px;
  font-size: clamp(3rem, 8vw, 7.6rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.16rem;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 209, 126, 0.2), rgba(200, 169, 106, 0.12)),
    #0c1110;
  color: var(--emerald);
  box-shadow: 0 0 36px rgba(34, 209, 126, 0.2);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 16, 0.78);
}

.site-nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(34, 209, 126, 0.11);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 16, 0.82);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 78svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 15, 15, 0.98) 0%, rgba(11, 15, 15, 0.84) 38%, rgba(11, 15, 15, 0.28) 72%, rgba(11, 15, 15, 0.78) 100%),
    linear-gradient(180deg, rgba(11, 15, 15, 0) 62%, var(--bg) 100%),
    url("assets/guysgroupeu-fintech-apps.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 209, 126, 0.05), transparent 40%, rgba(200, 169, 106, 0.08)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
  opacity: 0.42;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 118px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin-top: 22px;
  color: #e6eee8;
  font-size: clamp(1.04rem, 1.9vw, 1.26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--emerald);
  color: #04110b;
  box-shadow: 0 0 44px rgba(34, 209, 126, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #55e89b;
}

.button-secondary {
  border-color: rgba(200, 169, 106, 0.42);
  background: rgba(21, 28, 26, 0.78);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(200, 169, 106, 0.78);
  background: rgba(200, 169, 106, 0.12);
}

.hero-metrics {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100% - 32px, var(--max));
  transform: translateX(-50%);
}

.hero-metrics div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 20, 19, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-metrics strong {
  display: block;
  color: var(--emerald);
  font-size: 0.9rem;
}

.hero-metrics span {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.signal-strip {
  padding-top: 50px;
  background: linear-gradient(180deg, rgba(34, 209, 126, 0.045), transparent);
}

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

.signal-item,
.service-card,
.process-card,
.systems-panel,
.legal-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 209, 126, 0.06), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.signal-item {
  min-height: 146px;
  padding: 22px;
}

.signal-item span,
.card-kicker,
.process-card span,
.system-row span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-item strong {
  display: block;
  margin-top: 20px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.service-card,
.process-card {
  min-height: 282px;
  padding: 22px;
}

.service-card h3,
.process-card h3 {
  margin-top: 42px;
  color: var(--ink);
}

.service-card p,
.process-card p {
  margin-top: 16px;
  color: var(--muted);
}

.systems-section {
  background:
    linear-gradient(180deg, transparent, rgba(200, 169, 106, 0.035), transparent);
}

.systems-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: start;
}

.systems-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(200, 169, 106, 0.08), transparent 38%),
    var(--panel-soft);
}

.system-row {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row strong {
  font-size: 1rem;
  line-height: 1.35;
}

.sectors-section {
  padding-top: 46px;
}

.sectors-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sector-tags span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 28, 26, 0.82);
  color: var(--ink);
}

.contact-section {
  padding-top: 50px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(34, 209, 126, 0.14), transparent 36%),
    linear-gradient(280deg, rgba(200, 169, 106, 0.12), transparent 42%),
    #101715;
  box-shadow: var(--shadow);
}

.contact-layout > div {
  display: grid;
  gap: 14px;
}

.contact-layout p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  margin-top: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:not(.brand) {
  color: #dce5de;
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus-visible {
  color: var(--emerald);
  outline: none;
}

.copyright {
  text-align: right;
}

.legal-main {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 62px 0 76px;
}

.legal-hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.legal-hero p:last-child {
  margin-top: 18px;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 24px;
  padding-top: 38px;
}

.legal-content section {
  padding: 24px;
}

.legal-content h2 {
  font-size: 1.14rem;
}

.legal-content p {
  margin-top: 12px;
  color: var(--muted);
}

.legal-content a {
  color: var(--emerald);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes gradient-drift {
  0% {
    transform: translateX(-35%);
  }
  100% {
    transform: translateX(35%);
  }
}

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

  .systems-layout,
  .sectors-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout .button {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 740px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, calc(100vw - 32px));
    padding: 8px;
    background: rgba(12, 16, 16, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 86svh;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 54px;
    padding-bottom: 280px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .signal-grid,
  .card-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .signal-item,
  .service-card,
  .process-card,
  .system-row,
  .legal-content section {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
