:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-soft: #0d121b;
  --surface: #111821;
  --surface-2: #151d28;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(104, 230, 255, 0.35);
  --text: #f4f7fb;
  --muted: #9ca8b7;
  --cyan: #1cd9ff;
  --cyan-dark: #087f9a;
  --gold: #d69b31;
  --ember: #dc493a;
  --jade: #35c58c;
  --rose: #e05b78;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: min(1140px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(18px);
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 15, 0.94);
  border-color: rgba(28, 217, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(28, 217, 255, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(28, 217, 255, 0.2), rgba(214, 155, 49, 0.12)),
    #0b111a;
  box-shadow: 0 0 28px rgba(28, 217, 255, 0.16);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linejoin: round;
}

.brand-mark svg path:last-child {
  fill: var(--text);
  stroke: none;
}

.brand-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.16rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
}

.main-nav a {
  color: rgba(244, 247, 251, 0.86);
  font-weight: 800;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--cyan);
}

.btn svg,
.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(620px, calc(100svh - 116px));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.68) 42%, rgba(7, 10, 15, 0.26) 70%, rgba(7, 10, 15, 0.82) 100%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.96) 0%, rgba(7, 10, 15, 0.04) 28%, rgba(7, 10, 15, 0.72) 100%),
    url("assets/xranzei-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  animation: heroDrift 12s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(28, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 217, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 54px;
}

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

.hero h1,
.section h2,
.contact-band h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(2.45rem, 5.8vw, 4.85rem);
  text-wrap: balance;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(244, 247, 251, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.contact-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--gold));
  box-shadow: 0 14px 38px rgba(214, 155, 49, 0.23);
}

.btn-primary:hover {
  box-shadow: 0 18px 46px rgba(214, 155, 49, 0.32);
}

.btn-secondary {
  border-color: rgba(214, 155, 49, 0.42);
  background: rgba(7, 10, 15, 0.52);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(28, 217, 255, 0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 120px));
  gap: 14px;
  max-width: 650px;
  margin: 30px 0 0;
}

.hero-metrics div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(17, 24, 33, 0.58);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  margin: 0;
  color: var(--cyan);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 950;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section h2,
.contact-band h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.section-head p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
}

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

.service-card,
.reference-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 246px;
  padding: 24px;
}

.service-card h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.service-card p,
.reference-card p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(28, 217, 255, 0.1);
  border: 1px solid rgba(28, 217, 255, 0.26);
}

.icon-box.ember {
  color: var(--gold);
  background: rgba(214, 155, 49, 0.1);
  border-color: rgba(214, 155, 49, 0.28);
}

.icon-box.jade {
  color: var(--jade);
  background: rgba(53, 197, 140, 0.1);
  border-color: rgba(53, 197, 140, 0.28);
}

.icon-box.rose {
  color: var(--rose);
  background: rgba(224, 91, 120, 0.1);
  border-color: rgba(224, 91, 120, 0.28);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.files-section {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1140px) / 2));
  background:
    linear-gradient(180deg, rgba(28, 217, 255, 0.04), transparent 30%),
    #090d14;
}

.files-section .section-head {
  width: min(760px, 100%);
}

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

.file-card {
  min-width: 0;
}

.file-open {
  display: grid;
  width: 100%;
  min-height: 330px;
  padding: 0;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.file-open:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 90px rgba(28, 217, 255, 0.15);
}

.file-visual {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 48%, rgba(17, 24, 33, 0.82)),
    url("assets/xranzei-hero.png");
  background-size: cover;
  background-position: center;
}

.file-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(28, 217, 255, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(214, 155, 49, 0.18), transparent 36%);
  mix-blend-mode: screen;
}

.file-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.28;
}

.visual-lord {
  background-position: 58% 36%;
}

.visual-old {
  background-position: 34% 48%;
  filter: sepia(0.1);
}

.visual-new {
  background-position: 75% 36%;
}

.visual-emek {
  background-position: 44% 58%;
  filter: saturate(0.88) hue-rotate(-18deg);
}

.visual-files {
  background-position: 66% 58%;
  filter: saturate(1.1);
}

.file-badge,
.file-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 950;
}

.file-badge {
  top: 16px;
  left: 16px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--ember), var(--gold));
}

.file-badge.locked {
  background: rgba(7, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.file-mark {
  right: 16px;
  bottom: 16px;
  width: 42px;
  border: 1px solid rgba(28, 217, 255, 0.38);
  background: rgba(7, 10, 15, 0.7);
  color: var(--cyan);
}

.file-content {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.file-content strong {
  font-size: 1.18rem;
  line-height: 1.15;
}

.file-content small {
  color: var(--muted);
  font-weight: 800;
}

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

.reference-card {
  padding: 22px;
}

.reference-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.reference-top > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(28, 217, 255, 0.2), rgba(214, 155, 49, 0.18));
  color: var(--text);
  font-weight: 950;
}

.reference-top div {
  display: grid;
}

.reference-top small,
.rating {
  color: var(--muted);
}

.rating {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-weight: 850;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  gap: 36px;
  width: var(--container);
  margin: 0 auto 80px;
  padding: 40px;
  border: 1px solid rgba(28, 217, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(28, 217, 255, 0.12), transparent 35%),
    linear-gradient(315deg, rgba(214, 155, 49, 0.12), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(244, 247, 251, 0.9);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.55);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 112px;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(28, 217, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(28, 217, 255, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - 1140px) / 2));
  border-top: 1px solid var(--line);
  background: #080c13;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a,
.site-footer p {
  color: var(--muted);
  font-weight: 760;
}

dialog {
  color: var(--text);
}

.file-modal {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(28, 217, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(13, 18, 27, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.file-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.72);
  color: var(--text);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  min-height: 560px;
}

.modal-art {
  min-height: 100%;
  background:
    linear-gradient(180deg, transparent 40%, rgba(13, 18, 27, 0.88)),
    url("assets/xranzei-hero.png");
  background-size: cover;
  background-position: center;
}

.modal-copy {
  padding: 44px 34px 34px;
}

.modal-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.modal-copy p {
  color: var(--muted);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.modal-tags span {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(28, 217, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(28, 217, 255, 0.08);
  color: rgba(244, 247, 251, 0.9);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.spec-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.spec-grid small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.spec-grid strong {
  display: block;
  margin-top: 2px;
}

.old-hero {
  position: relative;
  min-height: min(690px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.old-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.96) 0%, rgba(7, 10, 15, 0.74) 46%, rgba(7, 10, 15, 0.38) 72%, rgba(7, 10, 15, 0.94) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 10, 15, 0.08) 34%, rgba(7, 10, 15, 0.82) 100%),
    url("assets/xranzei-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  animation: heroDrift 12s ease-in-out infinite alternate;
}

.old-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(214, 155, 49, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 217, 255, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  opacity: 0.36;
}

.old-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.old-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.56fr);
  align-items: end;
  gap: 34px;
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0 62px;
}

.old-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.old-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(244, 247, 251, 0.8);
  font-size: 1.12rem;
}

.old-hero-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(28, 217, 255, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(28, 217, 255, 0.13), transparent 40%),
    linear-gradient(315deg, rgba(214, 155, 49, 0.13), transparent 42%),
    rgba(13, 18, 27, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.old-card-kicker {
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ember), var(--gold));
  font-size: 0.72rem;
  font-weight: 950;
}

.old-hero-card > strong {
  font-size: 1.7rem;
  line-height: 1.04;
}

.old-hero-card p {
  margin: 0;
  color: var(--muted);
}

.old-hero-card dl {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}

.old-hero-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.45);
}

.old-hero-card dt,
.old-hero-card dd {
  margin: 0;
}

.old-hero-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.old-hero-card dd {
  color: var(--cyan);
  font-weight: 950;
}

.old-system-showcase {
  padding: 84px max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(9, 13, 20, 0.92), rgba(7, 10, 15, 0.98)),
    linear-gradient(90deg, rgba(28, 217, 255, 0.06), transparent 30%),
    linear-gradient(270deg, rgba(214, 155, 49, 0.08), transparent 34%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.old-showcase-head {
  width: min(780px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.old-showcase-head h2 {
  margin-inline: auto;
}

.old-showcase-head p:not(.eyebrow) {
  margin-inline: auto;
}

.old-systems-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 24, 33, 0.86), rgba(8, 12, 19, 0.96)),
    var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

.old-systems-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.old-systems-kpis div {
  display: grid;
  gap: 2px;
  min-height: 72px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.48);
  text-align: center;
}

.old-systems-kpis strong {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 950;
}

.old-systems-kpis span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.old-system-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 398px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.old-system-card:hover {
  transform: translateY(-7px);
  border-color: rgba(28, 217, 255, 0.38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), 0 0 34px rgba(28, 217, 255, 0.11);
}

.old-system-card > * {
  position: relative;
  z-index: 1;
}

.old-system-media {
  --card-image: url("assets/xranzei-hero.png");
  position: relative;
  min-height: 198px;
  overflow: hidden;
  cursor: zoom-in;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.02), rgba(7, 10, 15, 0.86)),
    var(--card-image),
    url("assets/xranzei-hero.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  isolation: isolate;
}

.old-system-media:focus-visible {
  outline: 3px solid rgba(28, 217, 255, 0.68);
  outline-offset: 3px;
}

.old-system-media::before {
  content: "";
  position: absolute;
  inset: 12% 12% 10%;
  z-index: -1;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(28, 217, 255, 0.18), rgba(214, 155, 49, 0.12) 38%, transparent 72%);
  filter: blur(24px);
  opacity: 0.95;
}

.old-system-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, transparent 48%, rgba(7, 10, 15, 0.9));
  background-size: 34px 34px, 34px 34px, auto;
  opacity: 0.42;
}

.old-system-badge,
.old-media-mark {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 950;
}

.old-system-badge {
  top: 14px;
  right: 14px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  color: var(--text);
  box-shadow: 0 10px 24px rgba(214, 155, 49, 0.18);
}

.old-media-mark {
  left: 16px;
  bottom: 16px;
  width: 48px;
  border: 1px solid rgba(28, 217, 255, 0.38);
  background: rgba(7, 10, 15, 0.72);
  color: var(--cyan);
}

.media-offline {
  background-position: 32% 46%;
}

.media-market {
  background-position: 52% 44%;
  filter: hue-rotate(12deg) saturate(1.08);
}

.media-dew {
  background-position: 68% 52%;
  filter: hue-rotate(-18deg) saturate(1.04);
}

.media-menu {
  background-position: 42% 62%;
  filter: sepia(0.12) saturate(1.1);
}

.media-stats {
  background-position: 76% 40%;
  filter: contrast(1.04);
}

.media-shout {
  background-position: 58% 70%;
  filter: hue-rotate(28deg) saturate(1.06);
}

.media-chat {
  background-position: 44% 34%;
  filter: saturate(0.92);
}

.media-pass {
  background-position: 72% 48%;
  filter: hue-rotate(-28deg) saturate(1.08);
}

.media-cube {
  background-position: 36% 60%;
  filter: sepia(0.14);
}

.media-maintenance {
  background-position: 64% 34%;
  filter: saturate(0.86) contrast(1.06);
}

.media-bonus {
  background-position: 48% 52%;
  filter: hue-rotate(42deg) saturate(1.08);
}

.media-comfort {
  background-position: 82% 58%;
  filter: saturate(1.14);
}

.old-system-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.old-system-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.14;
  text-align: center;
}

.old-system-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.old-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(28, 217, 255, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(28, 217, 255, 0.1), rgba(214, 155, 49, 0.08));
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.old-card-action:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 155, 49, 0.46);
  background: linear-gradient(135deg, rgba(214, 155, 49, 0.15), rgba(28, 217, 255, 0.1));
}

.old-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.old-info-grid article {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.48);
}

.old-info-grid strong {
  color: var(--cyan);
  font-size: 1rem;
}

.old-info-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.old-intro {
  padding-bottom: 52px;
}

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

.old-pill-grid span {
  display: grid;
  min-height: 54px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(28, 217, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(28, 217, 255, 0.07);
  color: rgba(244, 247, 251, 0.92);
  font-weight: 900;
}

.old-showcase {
  padding-top: 64px;
}

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

.old-feature-card {
  min-height: 232px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.old-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(28, 217, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(28, 217, 255, 0.08), transparent 48%),
    var(--surface);
}

.old-feature-card span {
  display: inline-grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(214, 155, 49, 0.28);
  border-radius: var(--radius);
  background: rgba(214, 155, 49, 0.1);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.old-feature-card h3 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
  line-height: 1.16;
}

.old-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.old-band {
  padding: 64px 0;
  background:
    linear-gradient(90deg, rgba(28, 217, 255, 0.07), transparent 30%),
    linear-gradient(270deg, rgba(214, 155, 49, 0.08), transparent 28%),
    #090d14;
}

.old-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(210px, 0.42fr));
  gap: 18px;
  width: var(--container);
  margin: 0 auto;
}

.old-band h2,
.old-cta h2 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1;
}

.old-band p,
.old-cta p {
  color: var(--muted);
}

.old-note-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(17, 24, 33, 0.7);
}

.old-note-card strong {
  color: var(--cyan);
  font-size: 1.18rem;
}

.old-note-card p {
  margin: 0;
}

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

.old-gallery-slot {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 245px;
  padding: 20px;
  border: 1px solid rgba(28, 217, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 20%, rgba(7, 10, 15, 0.88)),
    linear-gradient(135deg, rgba(28, 217, 255, 0.22), transparent 38%),
    linear-gradient(315deg, rgba(214, 155, 49, 0.18), transparent 40%),
    var(--surface-2);
}

.old-gallery-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.old-gallery-slot strong,
.old-gallery-slot small {
  position: relative;
  z-index: 1;
}

.old-gallery-slot strong {
  font-size: 1.18rem;
}

.old-gallery-slot small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.old-cta {
  width: var(--container);
  margin: 0 auto 82px;
}

.old-cta-inner {
  padding: 38px;
  border: 1px solid rgba(214, 155, 49, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(214, 155, 49, 0.14), transparent 38%),
    linear-gradient(315deg, rgba(28, 217, 255, 0.1), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.old-cta-inner p:not(.eyebrow) {
  max-width: 720px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(28, 217, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 18, 27, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.image-lightbox {
  width: min(96vw, 1400px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(28, 217, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.98);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.74);
  overflow: auto;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.image-lightbox-stage {
  display: grid;
  min-width: min-content;
  min-height: 220px;
  place-items: center;
  padding: 18px;
}

.image-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
}

.image-lightbox-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
}

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateX(0);
  }

  to {
    transform: scale(1.08) translateX(-12px);
  }
}

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

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

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

  .main-nav {
    gap: 16px;
  }

  .old-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .old-hero-card {
    max-width: 560px;
  }

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

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

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

  .old-band-inner > article:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 18, 27, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border-radius: var(--radius);
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(7, 10, 15, 0.9) 0%, rgba(7, 10, 15, 0.66) 50%, rgba(7, 10, 15, 0.96) 100%),
      url("assets/xranzei-hero.png");
    background-size: cover;
    background-position: 67% center;
  }

  .hero-content {
    padding-top: 42px;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11.5vw, 3.15rem);
  }

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

  .section {
    padding: 70px 0;
  }

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

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

  .modal-art {
    min-height: 260px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 20px;
  }

  .old-hero {
    min-height: calc(100svh - 72px);
  }

  .old-hero-backdrop {
    background:
      linear-gradient(180deg, rgba(7, 10, 15, 0.94) 0%, rgba(7, 10, 15, 0.68) 52%, rgba(7, 10, 15, 0.98) 100%),
      url("assets/xranzei-hero.png");
    background-size: cover;
    background-position: 67% center;
  }

  .old-hero-inner {
    padding: 48px 0 54px;
  }

  .old-hero h1 {
    font-size: 3.5rem;
  }

  .old-system-showcase {
    padding-block: 68px;
  }

  .old-info-grid {
    grid-template-columns: 1fr;
  }

  .old-band h2,
  .old-cta h2 {
    font-size: 2.25rem;
  }

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

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 1140px);
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

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

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

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.86rem;
  }

  .hero-actions .btn svg {
    width: 16px;
    height: 16px;
  }

  .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .hero-metrics div {
    padding: 10px 6px;
  }

  .hero-metrics dt {
    font-size: 1.18rem;
  }

  .hero-metrics dd {
    margin-top: 5px;
    font-size: 0.62rem;
  }

  .service-grid,
  .files-grid,
  .reference-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .file-open {
    min-height: 310px;
  }

  .file-visual {
    min-height: 205px;
  }

  .contact-band {
    width: calc(100% - 28px);
    padding: 24px;
    margin-bottom: 54px;
  }

  .modal-copy {
    padding-inline: 22px;
  }

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

  .old-hero h1 {
    font-size: 2.65rem;
  }

  .old-lead {
    font-size: 1rem;
  }

  .old-pill-grid,
  .old-feature-grid,
  .old-systems-kpis,
  .old-systems-grid,
  .old-band-inner,
  .old-gallery-grid {
    grid-template-columns: 1fr;
  }

  .old-systems-shell {
    padding: 12px;
  }

  .old-system-card {
    min-height: 374px;
  }

  .old-system-media {
    min-height: 190px;
  }

  .old-hero-card,
  .old-cta-inner {
    padding: 24px;
  }

  .old-gallery-slot {
    min-height: 220px;
  }

  .old-cta {
    width: calc(100% - 28px);
    margin-bottom: 54px;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
