@font-face {
  font-family: "azonixregular";
  src: url("/assets/fonts/azonix-webfont.woff2") format("woff2"),
    url("/assets/fonts/azonix-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080a0d;
  --bg-alt: #0c1117;
  --text: #f4f6f8;
  --muted: #aeb8c2;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(15, 20, 26, 0.88);
  --panel-strong: #151b22;
  --primary: #d52828;
  --primary-dark: #a81818;
  --soft: rgba(255, 255, 255, 0.07);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(213, 40, 40, 0.18), transparent 34rem),
    linear-gradient(180deg, #080a0d 0%, #0c1117 46%, #080a0d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

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

.brand img {
  width: 42px;
  height: auto;
}

.brand span,
h1 {
  font-family: "azonixregular", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand span {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-action {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(48px, 8vw, 96px) 0;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 6.3rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

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

.service-map {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(21, 27, 34, 0.96), rgba(9, 12, 16, 0.88));
  box-shadow: var(--shadow-soft);
}

.map-node {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.map-node span,
.metric-row span,
.ops-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.map-node strong,
.ops-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1rem;
}

.map-line {
  height: 46px;
  width: 2px;
  margin-left: 28px;
  background: linear-gradient(180deg, var(--primary), rgba(213, 40, 40, 0));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-row strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
}

.section-band,
.split-section {
  padding: clamp(48px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.section-band.compact {
  padding-bottom: 56px;
}

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

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

.product-card,
.timeline-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.product-card {
  padding: 22px;
}

.product-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
}

.product-card p,
.timeline-item p {
  color: var(--muted);
}

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

li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

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

.timeline-item {
  padding: 22px;
}

.timeline-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-item.active {
  background: linear-gradient(145deg, rgba(213, 40, 40, 0.18), rgba(15, 20, 26, 0.9));
}

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

.ops-grid div {
  min-width: 0;
  padding: 22px;
  background: var(--panel-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 700;
}

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

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    display: block;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
  }

  .hero,
  .portfolio-grid,
  .timeline,
  .ops-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .service-map {
    padding: 18px;
  }

  .site-footer a {
    display: inline-flex;
    margin-top: 12px;
  }
}
