:root {
  --bg: #021327;
  --bg-header: #041328;
  --accent: #0053df;
  --accent-hover: #1a6bff;
  --text: #c5c9d4;
  --text-muted: #8b93a7;
  --heading: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1140px;
  --header-h: 88px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: Roboto, "Segoe UI", sans-serif;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  min-height: var(--header-h);
  isolation: isolate;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo img {
  height: 52px;
  width: auto;
  mix-blend-mode: lighten;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.site-nav a:visited {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.hero-art {
  justify-self: end;
  width: min(100%, 480px);
}

.hero-art img {
  width: 100%;
  border-radius: 2px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* Services */
.section {
  padding: 72px 0;
  scroll-margin-top: var(--header-h);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 2.5rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
}

.service-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 1.1rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Technologies */
.tech {
  max-width: 920px;
  margin: 0 auto;
}

.tech-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem 3rem;
  margin-bottom: 2.4rem;
}

.tech-row:last-child {
  margin-bottom: 0;
}

.tech-row h3 {
  font-size: 1.35rem;
  margin: 0;
}

.tech-row p,
.tech-row ul {
  margin: 0;
  color: var(--text-muted);
}

.tech-row ul {
  list-style: none;
  padding: 0.5rem 0 0.7rem;
}

.tech-row li {
  padding-left: 1.1rem;
  position: relative;
}

.tech-row li::before {
  content: "*";
  position: absolute;
  left: 0;
}

.tech-row b {
  color: var(--heading);
  font-weight: 700;
}

/* Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  aspect-ratio: 1;
  background: #010b16;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-track img.is-active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(2, 19, 39, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--accent);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--accent);
}

.solutions-copy p {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.industry-list button {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
}

.industry-list button:hover,
.industry-list button.is-active {
  color: var(--accent);
}

/* Contact */
.contact {
  text-align: center;
}

.contact p {
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.btn {
  display: inline-block;
  margin-top: 1.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Legal pages */
.page-main {
  padding: 72px 0 96px;
}

.page-main h1 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.page-main h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.page-main p,
.page-main li {
  color: var(--text-muted);
  max-width: 720px;
}

.page-main ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  padding: 1.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  z-index: 40;
}

.back-top:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid,
  .solutions-grid,
  .tech-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-art {
    justify-self: center;
    order: -1;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .tech-row h3 {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg-header);
    border-top: 1px solid var(--line);
    padding: 1rem 20px 1.4rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 560px) {
  .services {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
