:root {
  --color-bg-navy: #19182A;
  --color-bg-deep: #120F26;
  --color-accent-blue: #2846FC;
  --color-accent-purple: #7C3DF4;
  --color-text-primary: #F9F8F6;
  --color-text-secondary: #CFDBF6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(80% 110% at 36% 32%, rgba(124, 61, 244, 0.56) 0%, rgba(124, 61, 244, 0.18) 48%, rgba(124, 61, 244, 0) 80%),
    radial-gradient(70% 95% at 78% 22%, rgba(40, 70, 252, 0.45) 0%, rgba(40, 70, 252, 0.12) 50%, rgba(40, 70, 252, 0) 82%),
    radial-gradient(90% 120% at 50% 110%, rgba(40, 70, 252, 0.26) 0%, rgba(40, 70, 252, 0) 78%),
    radial-gradient(75% 100% at 56% -14%, rgba(124, 61, 244, 0.3) 0%, rgba(124, 61, 244, 0) 75%),
    linear-gradient(135deg, #090814 0%, #19182A 48%, #262B7C 100%);
  color: var(--color-text-primary);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: clamp(2.5rem, 6vw, 5rem);
}

.page {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.site-logo {
  width: min(240px, 42vw);
  height: auto;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 5vw, 3.5rem);
}

.hero__headline {
  margin: 0;
  font-size: clamp(3.2rem, 7.5vw + 1.4rem, 7.2rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-align: left;
  max-width: 18ch;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
}

.meta__left {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.4vw, 1.2rem);
  min-width: clamp(260px, 28vw, 420px);
  flex-shrink: 0;
}

.hero__contact {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.3rem);
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
  font-weight: 300;
  color: rgba(249, 248, 246, 0.78);
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.hero__contact .divider {
  color: rgba(207, 219, 246, 0.5);
}

.hero__company {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.55rem, 1.4vw, 1.2rem);
  font-size: clamp(0.85rem, 0.8rem + 0.22vw, 1.02rem);
  font-weight: 300;
  color: rgba(249, 248, 246, 0.68);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__company .divider {
  color: rgba(207, 219, 246, 0.45);
}

.hero__services {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  justify-content: flex-end;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.12rem);
  font-weight: 400;
  white-space: nowrap;
}

.service {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 219, 246, 0.4);
  color: var(--color-text-primary);
  background: rgba(22, 21, 40, 0.4);
  box-shadow: 0 10px 30px rgba(12, 19, 54, 0.25);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.service:hover,
.service:focus-visible {
  border-color: var(--color-accent-blue);
  background: rgba(40, 70, 252, 0.16);
  transform: translateY(-2px);
}

.service:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 4px;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-text-primary);
}

.contact-link:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 4px;
}

.site-header,
.hero__headline,
.hero__meta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.is-visible .site-header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

body.is-visible .hero__headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 260ms;
}

body.is-visible .hero__meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 420ms;
}

@media (max-width: 1024px) {
  body {
    padding: clamp(2rem, 6vw, 3.5rem);
  }

  .hero__headline {
    max-width: 20ch;
  }
}


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

  .site-header,
  .hero__headline,
  .hero__meta {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  body {
    align-items: stretch;
  }

  .site-header {
    justify-content: center;
    margin-bottom: clamp(2.5rem, 10vw, 3.5rem);
  }

  .site-logo {
    margin: 0 auto;
    width: min(220px, 60vw);
  }

  .hero {
    gap: clamp(2rem, 8vw, 3.5rem);
    padding-bottom: clamp(1rem, 6vw, 2.5rem);
  }

  .hero__headline {
    font-size: clamp(2.4rem, 7.5vw + 1rem, 4.4rem);
    max-width: none;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 6vw, 2.75rem);
  }

  .hero__services {
    order: -1;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
    width: 100%;
  }

  .meta__left {
    min-width: auto;
  }

  .hero__contact,
  .hero__company {
    flex-wrap: wrap;
    white-space: normal;
  }
}
