:root {
  --bg: #f3f4f6;
  --bg-soft: #eef1f4;
  --text: #13161a;
  --muted: #5e6770;
  --line: #c9d0d7;
  --brand: #0c1f33;
  --brand-strong: #07121e;
  --metal: #bfc7cf;
  --accent: #00a0df;
  --accent-2: #15c6ff;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 48px rgba(7, 18, 30, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 160, 223, 0.08), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(21, 198, 255, 0.08), transparent 30%),
    linear-gradient(150deg, #f8fafc 0%, #f1f4f7 36%, #eef1f5 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max-width), calc(100vw - 3rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 26, 38, 0.1);
  background: rgba(247, 250, 252, 0.86);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.topbar.scrolled {
  box-shadow: 0 8px 28px rgba(11, 21, 33, 0.12);
  background: rgba(250, 252, 255, 0.94);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

.brand span {
  font-size: 0.95rem;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.92rem;
}

.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(12, 31, 51, 0.2);
  background: rgba(12, 31, 51, 0.07);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(12, 31, 51, 0.2);
  border-radius: 50%;
  background: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  padding: 6.3rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(6, 16, 28, 0.74), rgba(7, 18, 30, 0.38)),
    url("../images/hero-tech.png") center/cover no-repeat;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  transform: scale(1.03);
}

.hero .container {
  position: relative;
  z-index: 2;
  color: white;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  opacity: 0.86;
}

.hero h1,
.page-hero h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 17ch;
}

.hero p {
  max-width: 60ch;
  color: rgba(233, 243, 251, 0.95);
}

.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #042037;
  box-shadow: 0 10px 26px rgba(21, 198, 255, 0.35);
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero {
  padding: 5.4rem 0 2.9rem;
}

.page-hero .shell {
  position: relative;
  padding: 3.2rem;
  border-radius: 26px;
  color: white;
  background:
    linear-gradient(120deg, rgba(5, 13, 22, 0.88), rgba(10, 27, 44, 0.78)),
    url("../images/services-grid.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 65ch;
  color: rgba(230, 239, 247, 0.95);
}

.section {
  padding: 4.4rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.7vw, 2.7rem);
  letter-spacing: -0.015em;
}

.section p.lead {
  color: var(--muted);
  max-width: 72ch;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card {
  background: var(--card);
  border: 1px solid rgba(11, 20, 30, 0.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.45rem;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -72% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 160, 223, 0.16), transparent 68%);
  pointer-events: none;
}

.card h3 {
  margin: 0.8rem 0 0.7rem;
  font-size: 1.12rem;
}

.card p,
.card li {
  color: #47515b;
}

.card ul {
  margin: 0;
  padding-left: 1rem;
}

.icon-wrap {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(7, 18, 30, 0.18);
  background: white;
}

.icon-wrap svg {
  width: 25px;
  height: 25px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat {
  background: white;
  border: 1px solid rgba(6, 16, 26, 0.1);
  border-radius: 16px;
  padding: 1.15rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.42rem;
}

.timeline {
  border-left: 2px solid rgba(12, 31, 51, 0.18);
  padding-left: 1.2rem;
}

.timeline-item {
  margin-bottom: 1.3rem;
}

.timeline-item h3 {
  margin: 0 0 0.35rem;
}

.news-list article {
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(11, 20, 30, 0.18);
  padding-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(8, 18, 30, 0.12);
  background: linear-gradient(150deg, rgba(8, 18, 30, 0.98), rgba(15, 30, 45, 0.98));
  color: #eaf3fc;
}

.footer-shell {
  padding: 2.4rem 0 1.2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2.4fr 1.2fr 1.2fr;
  gap: 1.35rem;
}

.footer-main h3 {
  margin-top: 0;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d9ecff;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: #d9ecff;
}

.footer-note {
  border-top: 1px solid rgba(222, 234, 246, 0.2);
  margin-top: 1.4rem;
  padding-top: 0.95rem;
  font-size: 0.9rem;
  color: #c4d2e0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.marquee {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 18, 30, 0.14);
  background: white;
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  white-space: nowrap;
  min-width: max-content;
  animation: scroll-left 24s linear infinite;
  padding-left: 1.25rem;
}

.marquee-track span {
  font-size: 0.92rem;
  color: #435260;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-45%);
  }
}

@media (max-width: 1060px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 78px;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.45rem;
    background: #f5f8fb;
    border: 1px solid rgba(7, 18, 30, 0.14);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.8rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.24s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .grid.cols-2,
  .grid.cols-3,
  .stats {
    grid-template-columns: 1fr;
  }

  .page-hero .shell {
    padding: 2rem 1.35rem;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
