:root {
  --bg: #05060b;
  --panel: rgba(11, 16, 29, 0.74);
  --panel-strong: rgba(14, 23, 39, 0.92);
  --text: #f4f7fb;
  --muted: #a8b2c5;
  --cyan: #28f4ff;
  --pink: #ff3df2;
  --lime: #c6ff4d;
  --amber: #ffc24b;
  --line: rgba(105, 245, 255, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 52% 28%, rgba(40, 244, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(255, 61, 242, 0.18), transparent 24rem),
    radial-gradient(circle at 18% 82%, rgba(198, 255, 77, 0.1), transparent 22rem),
    linear-gradient(145deg, #03040a 0%, #090817 42%, #05060b 100%);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.grid-overlay,
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  z-index: 0;
  background-image:
    linear-gradient(rgba(40, 244, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 244, 255, 0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

.noise-overlay {
  z-index: 1;
  opacity: 0.15;
  background-image:
    repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.site-header,
main {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.nav-links,
.header-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #071015;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 24px rgba(40, 244, 255, 0.45);
}

.nav-links {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
}

.nav-links a,
.header-action {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--text);
  background: rgba(40, 244, 255, 0.12);
  border-color: rgba(40, 244, 255, 0.32);
}

.header-action {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(340px, 520px) minmax(190px, 0.42fr);
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 30px 0 70px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.primary-button,
.secondary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-button,
.contact-button {
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 38px rgba(40, 244, 255, 0.28);
}

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

.primary-button:hover,
.secondary-button:hover,
.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(40, 244, 255, 0.2);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span,
.case-strip span {
  border: 1px solid rgba(40, 244, 255, 0.22);
  color: #d7fbff;
  background: rgba(40, 244, 255, 0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 9px 11px;
}

.hologram-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  perspective: 1000px;
}

.hologram-stage::before {
  content: "";
  position: absolute;
  width: min(78vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(40, 244, 255, 0.22), transparent 59%),
    conic-gradient(from 120deg, rgba(40, 244, 255, 0.06), rgba(255, 61, 242, 0.24), rgba(198, 255, 77, 0.08), rgba(40, 244, 255, 0.06));
  filter: blur(2px);
  animation: pulse 4s ease-in-out infinite;
}

.robot {
  position: relative;
  z-index: 3;
  width: min(100%, 500px);
  max-height: 640px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(40, 244, 255, 0.78))
    drop-shadow(0 0 54px rgba(255, 61, 242, 0.34));
  animation: hover 5.2s ease-in-out infinite;
}

.ring {
  position: absolute;
  z-index: 2;
  width: min(82%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(40, 244, 255, 0.42);
  border-radius: 50%;
  transform: rotateX(70deg);
  box-shadow: 0 0 28px rgba(40, 244, 255, 0.22);
}

.ring-one {
  bottom: 92px;
  animation: spin 8s linear infinite;
}

.ring-two {
  bottom: 132px;
  width: min(65%, 330px);
  border-color: rgba(255, 61, 242, 0.38);
  animation: spin 12s linear infinite reverse;
}

.scan-beam {
  position: absolute;
  z-index: 4;
  width: min(80%, 380px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(198, 255, 77, 0.84), transparent);
  box-shadow: 0 0 22px rgba(198, 255, 77, 0.75);
  animation: scan 3.8s ease-in-out infinite;
}

.holo-base {
  position: absolute;
  z-index: 1;
  bottom: 62px;
  width: min(82%, 430px);
  height: 78px;
  border: 1px solid rgba(40, 244, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 244, 255, 0.26), rgba(255, 61, 242, 0.08) 45%, transparent 68%);
  filter: blur(1px);
}

.status-chip {
  position: absolute;
  z-index: 5;
  padding: 9px 12px;
  border: 1px solid rgba(40, 244, 255, 0.36);
  color: #d9feff;
  background: rgba(3, 10, 18, 0.74);
  box-shadow: 0 0 26px rgba(40, 244, 255, 0.14);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.status-one {
  top: 116px;
  right: 4px;
}

.status-two {
  left: 6px;
  bottom: 164px;
  border-color: rgba(255, 61, 242, 0.34);
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel div,
.service-card,
.timeline-item,
.contact {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.service-card,
.timeline-item,
.hero-panel div {
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease;
}

.service-card:hover,
.timeline-item:hover,
.hero-panel div:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 244, 255, 0.34);
}

.hero-panel div {
  padding: 18px;
  border-radius: 8px;
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
}

.hero-panel span {
  color: var(--muted);
  line-height: 1.45;
}

.services,
.process,
.cases,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.services,
.process,
.cases {
  padding: 72px 0 20px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2,
.contact h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-card {
  position: relative;
  min-height: 265px;
  padding: 22px;
  border-radius: 8px;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--lime));
  opacity: 0.75;
}

.card-index,
.timeline-item span {
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.service-card h3,
.timeline-item h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.service-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.6;
}

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

.timeline-item {
  min-height: 210px;
  padding: 22px;
  border-radius: 8px;
}

.case-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-strip span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  margin-bottom: 18px;
  padding: 32px;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(40, 244, 255, 0.16), rgba(255, 61, 242, 0.09)),
    var(--panel-strong);
}

.credit-footer {
  display: flex;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(40, 244, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  color: #121a2b;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.credit-link:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 244, 255, 0.45);
  color: #008893;
  box-shadow: 0 20px 48px rgba(40, 244, 255, 0.18);
}

.credit-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(40, 244, 255, 0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  transition: color 180ms ease, background 180ms ease;
}

.credit-link:hover .credit-mark {
  color: #061014;
  background: var(--cyan);
}

@keyframes hover {
  0%,
  100% {
    transform: translate3d(var(--tilt-x, 0), 0, 0) rotateY(var(--mouse-tilt, 0deg));
  }
  50% {
    transform: translate3d(var(--tilt-x, 0), -18px, 0) rotateY(var(--mouse-tilt, 0deg));
  }
}

@keyframes scan {
  0%,
  100% {
    top: 18%;
    opacity: 0;
  }
  20%,
  70% {
    opacity: 1;
  }
  50% {
    top: 70%;
  }
}

@keyframes spin {
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hologram-stage {
    min-height: 560px;
    order: -1;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    order: 3;
    overflow-x: auto;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hologram-stage {
    min-height: 470px;
  }

  .robot {
    width: min(100%, 390px);
  }

  .ring {
    width: min(72%, 320px);
  }

  .status-one {
    right: 0;
    top: 78px;
  }

  .status-two {
    left: 0;
    bottom: 118px;
  }

  .hero-panel,
  .service-grid,
  .timeline,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .contact-button {
    width: 100%;
  }
}

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