:root {
  --blue: #009dff;
  --cyan: #00c8ff;
  --bg: #05070a;
  --bg-elev: #0b1118;
  --card: #12161c;
  --white: #ffffff;
  --ink: #e8eef4;
  --muted: rgba(255, 255, 254, 0.62);
  --faint: rgba(255, 255, 254, 0.38);
  --line: rgba(0, 200, 255, 0.16);
  --line-strong: rgba(0, 157, 255, 0.42);
  --glass: rgba(10, 16, 22, 0.58);
  --glass-border: rgba(255, 255, 254, 0.1);
  --grad: linear-gradient(120deg, #00c8ff 0%, #009dff 100%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header: 84px;
  --max: 1180px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Exo 2", "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(0, 157, 255, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 10%, rgba(0, 200, 255, 0.08), transparent 50%);
  z-index: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(0, 200, 255, 0.28);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.7);
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h1,
.display {
  font-size: clamp(2.4rem, 6vw, 5.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.15rem);
  font-weight: 700;
}

h3 {
  font-size: 1.28rem;
  font-weight: 650;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px 56px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #001018;
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.25), 0 10px 30px rgba(0, 157, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.4), 0 16px 36px rgba(0, 157, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 254, 0.03);
  border-color: var(--glass-border);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(0, 157, 255, 0.1);
}

.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(0, 7, 10, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img,
.logo svg {
  height: 38px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 254, 0.03);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  margin: 0 auto;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header) + 36px) 0 36px;
  isolation: isolate;
}

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

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

.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.32) 0%, rgba(5, 7, 10, 0.48) 42%, rgba(5, 7, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.82) 0%, rgba(5, 7, 10, 0.28) 58%, rgba(5, 7, 10, 0.55) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: 52rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 4.35rem);
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-rail {
  justify-self: end;
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  min-width: 220px;
}

.hero-rail span {
  display: block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-rail span.is-accent {
  color: var(--cyan);
}

.hero-spec {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--glass-border);
  background: rgba(0, 7, 10, 0.46);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  overflow: hidden;
}

.hero-spec article {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.hero-spec article:last-child {
  border-right: 0;
}

.hero-spec strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}

.hero-spec p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Glass cards */
.glass {
  background: linear-gradient(180deg, rgba(26, 31, 38, 0.72), rgba(10, 16, 22, 0.6));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.bento,
.identity-grid {
  display: grid;
  gap: 16px;
}

.bento {
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
}

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

.identity-grid .service-card {
  min-height: 200px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.service-card.feature {
  grid-row: span 2;
  min-height: 476px;
  background:
    linear-gradient(180deg, rgba(0, 7, 10, 0.18), rgba(0, 7, 10, 0.78)),
    url("../img/network-bg.jpg") center/cover;
}

.service-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--cyan);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card a.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--cyan);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
}

.service-card .glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .glow {
  opacity: 1;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill-list a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 254, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-list a:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

/* Capability split */
.capabilities {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.cap-visual {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.cap-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-visual figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 7, 10, 0.62);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.cap-list {
  display: grid;
  gap: 14px;
}

.cap-item {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
}

.cap-item b {
  font-family: var(--display);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.cap-item h3 {
  margin-bottom: 8px;
}

.cap-item p {
  margin: 0;
  color: var(--muted);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.process article {
  background: #070d12;
  padding: 28px 24px 32px;
  min-height: 240px;
}

.process span {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.process p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .meta {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0, 7, 10, 0.66);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.project-card .meta small {
  color: var(--cyan);
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-card .meta h3 {
  margin: 8px 0 6px;
}

.project-card .meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 340px;
  display: grid;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--glass-border);
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 7, 10, 0.86), rgba(0, 7, 10, 0.42));
}

.cta-band .content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header) + 72px) 0 72px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 7, 10, 0.55), var(--bg)),
    url("../img/network-bg.jpg") center/cover;
  z-index: 0;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 16ch;
}

/* Services catalog */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.catalog article {
  padding: 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.catalog .num {
  color: var(--faint);
  font-family: var(--display);
  letter-spacing: 0.14em;
  margin-bottom: auto;
}

.catalog h3 {
  margin: 18px 0 8px;
}

.catalog p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-panel {
  padding: 32px;
}

.stat-stack {
  display: grid;
  gap: 14px;
}

.stat-stack div {
  padding: 22px 24px;
}

.stat-stack strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--white);
}

.stat-stack span {
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principles article {
  padding: 28px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}

.contact-aside {
  padding: 32px;
}

.contact-aside a {
  color: var(--cyan);
}

.contact-aside dl {
  margin: 28px 0 0;
}

.contact-aside dt {
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--display);
}

.contact-aside dd {
  margin: 6px 0 20px;
  color: var(--white);
}

.form {
  padding: 32px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.88rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--glass-border);
  background: rgba(0, 7, 10, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--white);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.is-ok {
  color: #7ee0ff;
}

.form-status.is-err {
  color: #ffb4b4;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.consent input {
  margin-top: 5px;
}

/* Service detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.detail-body p {
  color: var(--muted);
}

.detail-body ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.detail-body li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.detail-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 2px;
  background: var(--cyan);
}

.side-card {
  padding: 28px;
}

.side-card + .side-card {
  margin-top: 16px;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background:
    linear-gradient(180deg, rgba(0, 12, 18, 0.6), var(--bg)),
    url("../img/network-bg.jpg") center/cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer h3 {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-brand p {
  max-width: 32ch;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.legal {
  color: var(--muted);
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 1.4rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .service-card img,
  .project-card img,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .section-head,
  .hero-grid,
  .capabilities,
  .about-grid,
  .contact-grid,
  .detail-grid,
  .project-grid,
  .principles,
  .related,
  .catalog,
  .bento,
  .identity-grid,
  .process,
  .footer-grid,
  .field-row,
  .hero-spec {
    grid-template-columns: 1fr;
  }

  .nav,
  .header-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: rgba(0, 7, 10, 0.94);
    border-bottom: 1px solid var(--line);
  }

  .hero-rail,
  .hero-spec article {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .service-card.feature {
    grid-row: auto;
    min-height: 320px;
  }

  .cap-visual {
    min-height: 320px;
  }

  .cta-band {
    padding: 28px;
  }

  .header-inner {
    width: calc(100% - 24px);
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap-wide {
    width: calc(100% - 24px);
  }

  .section {
    padding: 72px 0;
  }

  h1,
  .display {
    font-size: 2.15rem;
  }
}
