:root {
  --bg: #070707;
  --bg-soft: #0d0d0f;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --muted-dark: #8d8d8d;
  --white-soft: #e8e8e8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #050505 0%, #0a0a0b 42%, #050505 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  background: rgba(7, 7, 7, 0.78);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand {
  font-size: 1.12rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.primary-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.menu-open .menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section,
.contact-section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 112px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 64px;
  padding-top: 78px;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--white-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.1rem, 12vw, 9.6rem);
  line-height: 0.88;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 660px;
  margin-top: 30px;
  color: var(--text);
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.16;
  font-weight: 650;
}

.hero-text {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--text);
  color: #070707;
  box-shadow: 0 18px 46px rgba(255, 255, 255, 0.08);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffffff;
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.button-large {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual::before {
  position: absolute;
  inset: 34px 0 auto auto;
  width: 86%;
  height: 380px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.07) 49% 51%, transparent 51%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  transform: skewY(-7deg);
}

.signal-panel {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.panel-main {
  right: 0;
  bottom: 44px;
  width: min(420px, 100%);
  padding: 26px;
}

.panel-floating {
  left: 0;
  top: 78px;
  width: min(270px, 70%);
  padding: 20px;
}

.panel-floating small {
  display: block;
  color: var(--muted);
  font-weight: 650;
}

.panel-floating span {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.16));
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.signal-row span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white-soft);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.signal-row strong {
  font-size: 0.98rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0 28px;
}

.metric-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.metric-grid small {
  display: block;
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.metric-grid span {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
}

.performance-line {
  display: grid;
  height: 138px;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: 100% 34px;
}

.performance-line span {
  min-height: 24px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

h2 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  font-weight: 760;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.card,
.differential {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.025));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover,
.differential:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.035));
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--muted-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

h3 {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.28;
}

.card p,
.differential p,
.about-text p,
.site-footer p,
.footer-links,
.footer-links a {
  color: var(--muted);
}

.card p,
.differential p {
  margin-top: 14px;
  font-size: 0.95rem;
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-text {
  padding-top: 42px;
}

.about-text p {
  max-width: 650px;
  font-size: 1.08rem;
}

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

.differential {
  min-height: 228px;
}

.differential-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.65) 42% 48%, transparent 48%),
    rgba(255, 255, 255, 0.055);
}

.contact-section {
  margin-bottom: 96px;
  padding: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    #0b0b0c;
  box-shadow: var(--shadow);
}

.contact-section h2 {
  max-width: 720px;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.site-footer {
  padding: 32px 0 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.site-footer p,
.footer-links {
  font-size: 0.9rem;
}

.company-info {
  display: grid;
  gap: 3px;
  margin-top: 14px;
}

.company-info p {
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 64px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .panel-main {
    left: auto;
    right: 0;
    bottom: 16px;
  }

  .services-grid,
  .differentials-grid,
  .about-section {
    grid-template-columns: 1fr 1fr;
  }

  .about-text {
    padding-top: 0;
  }

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

@media (max-width: 760px) {
  :root {
    --container: min(100% - 32px, 1120px);
  }

  .site-header,
  .site-header.is-scrolled {
    width: 100%;
    padding: 0 16px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12, 12, 13, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 13px 12px;
  }

  .section {
    padding: 78px 0;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 16px;
    text-align: center;
  }

  .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
  }

  .hero-visual::before {
    display: none;
  }

  .signal-panel {
    position: relative;
  }

  .panel-main {
    width: 100%;
    right: auto;
    bottom: auto;
    padding: 20px;
  }

  .panel-floating {
    width: 100%;
    left: auto;
    top: auto;
    order: -1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div {
    min-height: auto;
  }

  .performance-line {
    height: 112px;
  }

  .services-grid,
  .differentials-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

  .card,
  .differential {
    min-height: auto;
  }

  .card-index,
  .differential-icon {
    margin-bottom: 28px;
  }

  .contact-section {
    width: calc(100% - 32px);
    margin-bottom: 70px;
    padding: 30px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 32px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(3.35rem, 20vw, 4.8rem);
  }

  .hero-subtitle {
    font-size: 1.22rem;
  }

  .contact-section {
    padding: 24px;
  }
}
