:root {
  --bg: #07090d;
  --panel: rgba(15, 20, 29, 0.82);
  --panel-strong: #101722;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f7fb;
  --muted: #a2adbc;
  --subtle: #687487;
  --red: #f20d19;
  --red-dark: #7f050c;
  --gold: #d7a646;
  --gold-soft: #ffe0a0;
  --cyan: #32d8ff;
  --green: #7cf7b6;
  --radius: 8px;
  font-family: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 4%, rgba(242, 13, 25, 0.28), transparent 34rem),
    radial-gradient(circle at 78% 16%, rgba(215, 166, 70, 0.16), transparent 28rem),
    linear-gradient(145deg, #050303 0%, #120607 50%, #070504 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(215, 166, 70, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 13, 25, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

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

#core-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(215, 166, 70, 0.18);
  background: rgba(6, 3, 3, 0.82);
  backdrop-filter: blur(18px);
}

.site-header .main-nav {
  margin-right: auto;
}

.brand,
.main-nav,
.hero-actions,
.panel-topline,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff4df;
  font-size: 18px;
}

.brand img {
  width: 220px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: transparent;
  filter: saturate(1.2) contrast(1.08) drop-shadow(0 0 18px rgba(242, 13, 25, 0.28));
}

.brand span {
  display: inline;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 48, 72, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 0 28px rgba(255, 48, 72, 0.32);
}

.main-nav {
  gap: 26px;
  color: #cfc2ad;
  font-size: 14px;
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(215, 166, 70, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.language-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.main-nav a:hover,
.header-action:hover {
  color: var(--text);
}

.header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid rgba(215, 166, 70, 0.34);
  border-radius: 8px;
  color: #fff5df;
  font-size: 14px;
  font-weight: 700;
  background: rgba(215, 166, 70, 0.08);
}

.section-band,
.content-section,
.split-section,
.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 6vw, 82px);
  min-height: calc(100svh - 72px);
  align-items: center;
  padding: 74px 0 54px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  box-shadow: 0 16px 44px rgba(242, 13, 25, 0.34);
}

.button.secondary {
  border: 1px solid rgba(215, 166, 70, 0.3);
  color: #f4dec0;
  background: rgba(215, 166, 70, 0.06);
}

.system-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(215, 166, 70, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(215, 166, 70, 0.12), transparent),
    var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.system-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(215, 166, 70, 0.16), transparent);
  transform: translateX(-70%);
  animation: scan 4.5s linear infinite;
}

.panel-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-dot {
  color: var(--green);
}

.circuit-core {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 22px auto 26px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 166, 70, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(242, 13, 25, 0.2), transparent 48%),
    linear-gradient(135deg, rgba(215, 166, 70, 0.1), transparent),
    #090607;
  box-shadow:
    inset 0 0 46px rgba(242, 13, 25, 0.18),
    0 0 52px rgba(242, 13, 25, 0.14);
}

.circuit-core::before {
  position: absolute;
  content: "";
  inset: 34%;
  border: 2px solid rgba(242, 13, 25, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 13, 25, 0.32), rgba(127, 5, 12, 0.18));
  box-shadow: 0 0 34px rgba(242, 13, 25, 0.34);
}

.trace {
  position: absolute;
  background: rgba(215, 166, 70, 0.24);
}

.trace-h {
  left: 18px;
  right: 18px;
  height: 2px;
}

.trace-v {
  top: 18px;
  bottom: 18px;
  width: 2px;
}

.trace-1 { top: 25%; }
.trace-2 { top: 50%; }
.trace-3 { top: 75%; }
.trace-4 { left: 25%; }
.trace-5 { left: 50%; }
.trace-6 { left: 75%; }

.pulse {
  position: absolute;
  border-radius: 999px;
  filter: drop-shadow(0 0 12px var(--gold-soft));
}

.pulse-h {
  left: -80px;
  width: 76px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), #fff);
  animation: circuit-x 2.8s linear infinite;
}

.pulse-v {
  top: -80px;
  width: 3px;
  height: 76px;
  background: linear-gradient(180deg, transparent, var(--red), #fff);
  animation: circuit-y 3.1s linear infinite;
}

.pulse-1 { top: 25%; }
.pulse-2 { top: 75%; animation-delay: 1.1s; }
.pulse-3 { left: 50%; animation-delay: 0.55s; }
.pulse-4 { left: 75%; animation-delay: 1.6s; }

.circuit-core strong {
  z-index: 1;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--gold-soft);
  text-shadow: 0 0 24px rgba(215, 166, 70, 0.45);
}

.metrics-grid,
.service-grid,
.process-line {
  display: grid;
  gap: 14px;
}

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

.metrics-grid div {
  padding: 16px;
  border: 1px solid rgba(215, 166, 70, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

small {
  display: block;
  margin-bottom: 7px;
  color: var(--subtle);
  font-weight: 700;
  text-transform: uppercase;
}

.metrics-grid strong {
  font-size: 20px;
}

.ticker {
  display: flex;
  width: 100%;
  gap: 12px;
  overflow: hidden;
  padding: 18px clamp(18px, 5vw, 72px);
  border-block: 1px solid rgba(215, 166, 70, 0.18);
  color: #ead6b7;
  background: rgba(215, 166, 70, 0.045);
}

.ticker span {
  flex: 1 0 max-content;
  min-width: 180px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-section,
.split-section,
.contact-section {
  padding: clamp(74px, 10vw, 118px) 0;
}

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

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  min-height: 270px;
  padding: 22px;
  border: 1px solid rgba(215, 166, 70, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
}

.card-index {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--gold);
  font-weight: 900;
}

.service-card p,
.process-line p,
.contact-section p,
.industry-list span {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  border-block: 1px solid rgba(215, 166, 70, 0.18);
}

.industry-list {
  display: grid;
  gap: 12px;
}

.industry-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(215, 166, 70, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.compact {
  padding-bottom: 70px;
}

.process-line {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: process;
}

.process-line div {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid rgba(215, 166, 70, 0.72);
}

.process-line span {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: end;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(215, 166, 70, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(242, 13, 25, 0.18), rgba(215, 166, 70, 0.1));
}

.contact-panel a {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-panel span {
  color: var(--muted);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 14px;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan {
  to {
    transform: translateX(70%);
  }
}

@keyframes circuit-x {
  to {
    transform: translateX(440px);
  }
}

@keyframes circuit-y {
  to {
    transform: translateY(440px);
  }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .site-header {
    justify-content: flex-end;
  }

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

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .service-grid,
  .process-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand span {
    max-width: 120px;
    font-size: 14px;
    line-height: 1.1;
  }

  .brand img {
    width: 148px;
    height: 50px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .language-switch button {
    min-width: 38px;
    height: 30px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .button {
    width: 100%;
  }

  .system-panel {
    padding: 16px;
  }

  .circuit-core {
    width: min(100%, 280px);
  }

  .ticker {
    padding-inline: 14px;
  }

  .content-section,
  .split-section,
  .contact-section {
    padding: 58px 0;
  }

  .service-grid,
  .process-line,
  .metrics-grid,
  .industry-list div {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .card-index {
    margin-bottom: 34px;
  }

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

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