:root {
  --bg: #030303;
  --bg-soft: #0b090b;
  --panel: #120d11;
  --panel-strong: #1b1018;
  --text: #fff8fc;
  --muted: #cbbdc6;
  --line: rgba(255, 255, 255, 0.13);
  --green: #10d47a;
  --green-soft: #6df0ad;
  --plum: #5b073b;
  --plum-light: #9d2873;
  --white: #ffffff;
  --ink: #050505;
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(16, 212, 122, 0.12) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 22% 0%, rgba(91, 7, 59, 0.55), transparent 34rem),
    linear-gradient(135deg, #000 0%, #080607 54%, #120b10 100%);
  background-size: 52px 52px, auto, auto;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  opacity: 0.22;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  width: min(100% - 40px, var(--max));
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 520px;
  gap: 14px;
  min-width: 0;
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: clamp(210px, 28vw, 320px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
  background: rgba(16, 212, 122, 0.14);
  outline: 2px solid rgba(16, 212, 122, 0.54);
  outline-offset: 2px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.language-button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--white);
  outline: 2px solid rgba(16, 212, 122, 0.54);
  outline-offset: 2px;
}

.language-button.is-active {
  color: var(--ink);
  background: var(--green);
}

.hero {
  padding: 96px 0 78px;
}

.hero-grid,
.split,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.panel-label,
.card-number {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  font-weight: 900;
  text-shadow: 3px 3px 0 var(--plum);
}

h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.7vw, 4.2rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
}

.subtitle,
.section p,
.timeline p,
.contact-card p {
  color: var(--muted);
}

.subtitle {
  max-width: 720px;
  margin-bottom: 30px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid rgba(16, 212, 122, 0.6);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(16, 212, 122, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-soft);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(16, 212, 122, 0.42);
  background: rgba(91, 7, 59, 0.42);
}

.system-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(16, 212, 122, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(91, 7, 59, 0.9), rgba(18, 13, 17, 0.9)),
    radial-gradient(circle at top right, rgba(16, 212, 122, 0.2), transparent 18rem);
  box-shadow: var(--shadow);
}

.system-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 5px;
  background: var(--green);
}

.system-flow {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  list-style: none;
  counter-reset: flow;
}

.system-flow li {
  counter-increment: flow;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.system-flow li::before {
  content: counter(flow, decimal-leading-zero);
  color: var(--green);
  font-size: 0.74rem;
}

.section {
  scroll-margin-top: 116px;
  padding: 82px 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: rgba(18, 13, 17, 0.78);
}

.compact {
  padding: 66px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.split {
  align-items: start;
}

.split p:last-child {
  max-width: 560px;
  font-size: 1.1rem;
}

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

.card {
  grid-column: span 2;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 16, 24, 0.96), rgba(10, 8, 10, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 212, 122, 0.44);
}

.card:nth-child(n + 4) {
  grid-column: span 3;
}

.card-number {
  display: inline-block;
  margin-bottom: 42px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.timeline article {
  padding: 24px;
  background: rgba(18, 13, 17, 0.9);
}

.timeline h3 {
  color: var(--green);
  font-size: 1.1rem;
}

.tags {
  margin-top: 22px;
  padding: 22px;
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.contact-section {
  padding-bottom: 94px;
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(16, 212, 122, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 212, 122, 0.13), rgba(91, 7, 59, 0.74)),
    rgba(18, 13, 17, 0.94);
  box-shadow: var(--shadow);
}

.contact-details {
  justify-self: end;
  display: grid;
  gap: 18px;
  width: min(100%, 360px);
  font-style: normal;
}

.contact-details div {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 4px solid var(--green);
}

.contact-details span {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details a,
.contact-details p {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--green-soft);
  outline: 2px solid rgba(16, 212, 122, 0.54);
  outline-offset: 2px;
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .site-header {
    gap: 18px;
  }

  .brand img {
    width: clamp(200px, 24vw, 270px);
  }

  .header-actions {
    flex-basis: 460px;
    gap: 10px;
  }

  .nav {
    font-size: 0.86rem;
  }

  .nav a {
    padding: 8px 10px;
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero-grid,
  .split,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    display: grid;
    border-radius: var(--radius);
  }

  .header-actions {
    align-items: start;
    justify-content: start;
    flex-direction: column;
    flex-basis: auto;
  }

  .nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 58px;
  }

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

  .card,
  .card:nth-child(n + 4) {
    grid-column: auto;
  }

  .contact-details {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .container,
  .site-header {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: min(100%, 270px);
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.4rem);
    text-shadow: 2px 2px 0 var(--plum);
  }

  .nav a {
    padding: 8px 9px;
  }

  .actions,
  .btn {
    width: 100%;
  }

  .grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }
}
