:root {
  --bg: #070c16;
  --bg-panel: rgba(14, 24, 43, 0.88);
  --bg-panel-soft: rgba(11, 19, 35, 0.8);
  --ink: #edf3ff;
  --muted: #a5b3cf;
  --line: rgba(144, 170, 221, 0.3);
  --blue: #4f90c5;
  --blue-strong: #2d5d93;
  --red: #e03638;
  --red-strong: #b62428;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% -10%, #132848 0%, #070c16 45%);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.bg-orb-blue {
  width: 360px;
  height: 360px;
  left: -60px;
  top: 15%;
  background: rgba(79, 144, 197, 0.45);
}

.bg-orb-red {
  width: 340px;
  height: 340px;
  right: -90px;
  top: 65%;
  background: rgba(224, 54, 56, 0.28);
}

.site-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 0 3rem;
  position: relative;
  z-index: 1;
}

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

.hero-shell {
  position: relative;
  overflow: hidden;
  width: 100vw;
  min-height: clamp(560px, 82vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: #050912;
  margin-left: calc(50% - 50vw);
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  background-image: url("assets/bg-2.webp");
  background-image: image-set(
    url("assets/bg-2.webp") type("image/webp"),
    url("assets/bg-2.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.35) 0%, rgba(4, 8, 16, 0.62) 58%, rgba(7, 12, 22, 0.94) 100%),
    radial-gradient(circle at 86% 16%, rgba(224, 54, 56, 0.24), transparent 36%),
    radial-gradient(circle at 16% 16%, rgba(79, 144, 197, 0.24), transparent 38%);
  z-index: 1;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 0.3rem 1rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-chip {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.topbar-link {
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.06);
}

.topbar-link:hover {
  background: rgba(255, 255, 255, 0.13);
}

.topbar-link:focus-visible {
  outline: 2px solid rgba(79, 144, 197, 0.95);
  outline-offset: 2px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  border: 0;
  border-radius: 999px;
  padding: 0.14rem;
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  color: var(--ink);
  background: rgba(79, 144, 197, 0.35);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(79, 144, 197, 0.95);
  outline-offset: 1px;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  padding: 0.2rem 0.35rem 2.2rem;
  text-align: center;
}

.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  width: clamp(210px, 30vw, 430px);
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
}

.lead {
  margin: 1.05rem 0 0;
  color: #dce8ff;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-size: 1.02rem;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.14rem;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid rgba(79, 144, 197, 0.95);
  outline-offset: 2px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--blue-strong));
  box-shadow: 0 10px 25px rgba(44, 86, 145, 0.45);
}

.button-secondary {
  color: #ffd6d6;
  border-color: transparent;
  background: rgba(224, 54, 56, 0.12);
}

.service-tags {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.service-tags li {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.84rem;
  color: #dce7ff;
  background: rgba(109, 145, 208, 0.12);
}

.services {
  margin-top: -3.6rem;
  position: relative;
  z-index: 4;
}

.section-head {
  max-width: 72ch;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.4rem, 2.9vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.service-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-card {
  border: 0;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(
    145deg,
    rgba(23, 38, 68, 0.86),
    rgba(14, 26, 50, 0.86)
  );
  box-shadow: var(--shadow);
}

.card-kicker {
  margin: 0;
  color: #90addd;
  font-family: "IBM Plex Mono", monospace;
}

.service-card h3 {
  margin: 0.6rem 0 0;
  font-size: 1.22rem;
}

.service-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.split-panel {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.9rem;
}

.split-panel article {
  border: 0;
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(11, 21, 40, 0.78);
  box-shadow: var(--shadow);
}

.facts h3 {
  margin: 0;
}

.facts ul {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.facts li {
  color: var(--muted);
  line-height: 1.45;
}

.facts strong {
  color: var(--ink);
  margin-right: 0.45rem;
}

.cta {
  margin-top: 1.2rem;
  border: 0;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(79, 144, 197, 0.2),
    rgba(224, 54, 56, 0.16)
  );
  box-shadow: var(--shadow);
}

.cta p {
  margin: 0.65rem 0 0.95rem;
  color: #d9e6ff;
  max-width: 64ch;
}

.footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 920px) {
  .hero-shell {
    min-height: clamp(500px, 80vh, 760px);
  }

  .topbar {
    flex-wrap: wrap;
    padding-top: 0.95rem;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .brand-logo {
    width: clamp(170px, 46vw, 280px);
    height: auto;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3.3rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .services {
    margin-top: -2rem;
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 0.35rem;
  }
}
