:root {
  --bg: #05070d;
  --bg-soft: #0b101b;
  --surface: #111827;
  --surface-light: #172033;
  --text: #f7f9ff;
  --muted: #a8b0c4;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #0878ff;
  --cyan: #00b8ff;
  --violet: #7657ff;
  --green: #14d28f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 5vw, 56px);
  background: rgba(5, 7, 13, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.92);
  border-color: var(--line);
}

.brand {
  width: min(190px, 52vw);
}

.brand img {
  max-height: 48px;
  object-fit: contain;
}

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

.nav a {
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.86) 38%, rgba(5, 7, 13, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.1) 0%, rgba(5, 7, 13, 0.92) 100%);
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.44;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

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

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 40px rgba(8, 120, 255, 0.32);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: rgba(255, 255, 255, 0.32);
}

.button.full {
  width: 100%;
}

.metrics {
  background: #080c15;
  border-bottom: 1px solid var(--line);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics-grid div {
  padding: 28px 22px;
  background: #080c15;
}

.metrics-grid strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
}

.metrics-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(76px, 10vw, 128px) 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-soft);
}

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

.services-grid,
.portfolio-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

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

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

.service-card,
.portfolio-card,
.process-step,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), rgba(17, 24, 39, 0.72));
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 310px;
  padding: 30px;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 800;
}

.service-card p,
.portfolio-card p,
.process-step p,
.benefits-list p,
.contact p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.portfolio-card {
  min-height: 245px;
  padding: 28px;
}

.portfolio-card span {
  display: block;
  margin-bottom: 38px;
  color: var(--green);
  font-weight: 800;
}

.split-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.benefits-list {
  display: grid;
  gap: 18px;
}

.benefits-list p {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.benefits-list p:first-child {
  border-top: 1px solid var(--line);
}

.benefits-list strong {
  color: var(--text);
}

.process-step {
  padding: 26px;
}

.process-step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--bg);
  background: var(--text);
  border-radius: 50%;
  font-weight: 800;
}

.contact {
  padding: clamp(72px, 9vw, 110px) 0;
  background:
    linear-gradient(135deg, rgba(8, 120, 255, 0.18), transparent 42%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(34px, 8vw, 92px);
  align-items: center;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-panel p {
  font-size: 0.9rem;
}

.site-footer {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  background: #03050a;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 18px;
    background: rgba(11, 16, 27, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .metrics-grid,
  .services-grid,
  .portfolio-grid,
  .process-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid,
  .split-grid {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 9px 14px;
  }

  .brand {
    width: min(168px, 62vw);
  }

  .brand img {
    max-height: 42px;
  }

  .nav {
    top: 60px;
    left: 14px;
    right: 14px;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 96px 0 52px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.5) 0%, rgba(5, 7, 13, 0.97) 72%),
      linear-gradient(90deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.35));
  }

  .hero-media img {
    object-position: center 26%;
    opacity: 0.28;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-copy {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics-grid,
  .services-grid,
  .portfolio-grid,
  .process-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .portfolio-card {
    min-height: auto;
  }

}
