:root {
  --ink: #f8f7ff;
  --muted: #a9a5b8;
  --paper: #08080d;
  --panel: #111119;
  --panel-2: #171722;
  --line: #28283a;
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --brand-dark: #4c1d95;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(8, 8, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.filter-bar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  height: 44px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

.brand img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand span {
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--brand-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 8vw, 86px) clamp(18px, 5vw, 72px) 38px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 92px);
}

h2 {
  max-width: 860px;
  font-size: clamp(30px, 4.5vw, 58px);
}

h3 {
  font-size: 21px;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.system-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.3);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  min-width: 0;
  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: 8px;
  background: #0d0d12;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d0d12;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metrics div {
  min-height: 126px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(54px, 9vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-width: 92px;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

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

.system-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.system-card:hover {
  border-color: var(--brand);
}

.system-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d0d12;
}

.system-content {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.system-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 999px;
}

.system-content p {
  margin: 0;
  color: var(--muted);
}

.system-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-list li {
  position: relative;
  padding-left: 18px;
  color: #e9e6ff;
  font-weight: 650;
}

.system-list li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  content: "";
}

.card-action {
  justify-self: start;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--brand-2);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.process-section {
  background: #0d0d12;
  color: #fff;
}

.process-section .eyebrow,
.process-section p {
  color: #c9bbff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.process-steps div {
  min-height: 240px;
  padding: 28px;
  background: #0d0d12;
}

.process-steps span {
  color: var(--brand-2);
  font-weight: 900;
}

.process-steps h3 {
  margin-top: 42px;
}

.process-steps p {
  margin: 12px 0 0;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(44px, 8vw, 82px) clamp(18px, 5vw, 72px);
  background: #12121c;
  border-bottom: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 54px);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-weight: 800;
}

.case-dialog {
  width: min(920px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(8, 8, 13, 0.84);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.dialog-body img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #0d0d12;
}

.dialog-content {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.dialog-content p {
  margin: 0;
  color: var(--muted);
}

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

.dialog-columns h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 780px;
  }

  .metrics,
  .system-grid,
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: column;
    gap: 12px;
  }

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

  .metrics,
  .system-grid,
  .process-steps,
  .dialog-columns {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
