:root {
  --ink: #172238;
  --muted: #5f6b7b;
  --line: #dbe3ee;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --blue: #126fb3;
  --blue-dark: #0c4371;
  --teal: #149d95;
  --green: #44a95f;
  --gold: #e8b647;
  --cyan: #7fe2d9;
  --violet: #6f77ff;
  --shadow: 0 18px 45px rgba(23, 34, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

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

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

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 238, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.topbar,
.site-nav,
.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 190px;
  height: auto;
}

.contact-strip {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-strip a:hover,
.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
}

.site-nav a.active {
  background: rgba(20, 157, 149, 0.09);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 94px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(127, 226, 217, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 226, 217, 0.13) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  animation: gridDrift 18s linear infinite;
}

.magic-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.magic-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(127, 226, 217, 0.95);
  opacity: 0.55;
  animation: floatDot var(--speed) ease-in-out infinite alternate;
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 26, 44, 0.88), rgba(10, 26, 44, 0.58) 48%, rgba(10, 26, 44, 0.2));
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 120px;
  color: white;
}

.hero-system {
  position: absolute;
  right: max(26px, calc((100vw - 1120px) / 2));
  bottom: 74px;
  width: min(340px, calc(100% - 52px));
  border: 1px solid rgba(127, 226, 217, 0.3);
  border-radius: 8px;
  padding: 18px;
  color: white;
  background: rgba(9, 27, 47, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), inset 0 0 42px rgba(127, 226, 217, 0.07);
}

.system-topline {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.system-topline span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
}

.system-topline span:nth-child(2) {
  background: var(--gold);
}

.system-topline span:nth-child(3) {
  background: var(--green);
}

.system-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.system-status p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-status strong {
  color: var(--cyan);
  font-size: 0.95rem;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  align-items: end;
  height: 100px;
  margin: 18px 0;
}

.signal-bars span {
  height: var(--bar);
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  box-shadow: 0 0 22px rgba(127, 226, 217, 0.32);
  transform-origin: bottom;
  animation: barPulse 1.9s ease-in-out infinite alternate;
}

.signal-bars span:nth-child(2),
.signal-bars span:nth-child(4) {
  animation-delay: 260ms;
}

.system-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-pills span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7fe2d9;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

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

.hero-metrics {
  max-width: 720px;
  gap: 14px;
  margin-top: 38px;
}

.hero-metrics div {
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  display: block;
  color: white;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-metrics span:last-child {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  font-weight: 700;
}

.signal-strip {
  overflow: hidden;
  border-block: 1px solid rgba(219, 227, 238, 0.9);
  background: #071727;
  color: white;
}

.signal-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
}

.signal-track span,
.tech-marquee span {
  border: 1px solid rgba(127, 226, 217, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-link::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--teal);
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 30px;
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.button.small {
  min-height: 40px;
  margin-top: auto;
  background: var(--blue);
  color: white;
  font-size: 0.92rem;
}

.intro-section,
.section {
  padding: 86px 0;
}

.intro-section {
  background: var(--soft);
}

.split,
.contact-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.lead-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p {
  color: var(--muted);
}

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

.service-card,
.capability-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(23, 34, 56, 0.07);
}

.service-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.game-card:hover,
.capability-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 157, 149, 0.45);
  box-shadow: 0 22px 48px rgba(23, 34, 56, 0.14);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-card p,
.capability-card p,
.game-card p,
.about-section p,
.timeline span,
.contact-section p {
  color: var(--muted);
}

.capabilities-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(127, 226, 217, 0.22), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(111, 119, 255, 0.16), transparent 30%),
    #f8fbfd;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capability-card {
  min-height: 245px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.capability-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 26px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 800;
}

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

.delivery-section {
  overflow: hidden;
  background: #071727;
  color: white;
}

.delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.delivery-grid p {
  color: rgba(255, 255, 255, 0.75);
}

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

.process-list article {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  border: 1px solid rgba(127, 226, 217, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.process-list article::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(127, 226, 217, 0.16), transparent);
  transition: opacity 180ms ease;
}

.process-list article:hover::before {
  opacity: 1;
}

.process-list strong {
  color: var(--cyan);
  font-size: 1.05rem;
}

.process-list span {
  color: rgba(255, 255, 255, 0.76);
}

.tech-marquee {
  width: min(1120px, calc(100% - 40px));
  margin: 54px auto 0;
  overflow: hidden;
}

.tech-marquee div {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marqueeReverse 30s linear infinite;
}

.game-showcase {
  background: var(--paper);
  padding-top: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(23, 34, 56, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card div {
  padding: 22px;
}

.game-card h3 {
  margin-bottom: 8px;
}

.feature-band {
  position: relative;
  padding: 100px 0;
  color: white;
  background: linear-gradient(rgba(8, 28, 44, 0.76), rgba(8, 28, 44, 0.76)), url("images/hero-team.png") center / cover fixed;
}

.feature-content {
  max-width: 880px;
  text-align: center;
}

.feature-content h2 {
  margin-left: auto;
  margin-right: auto;
}

.feature-content p:last-child {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
}

.about-section {
  background: var(--paper);
}

.timeline {
  border-left: 3px solid var(--teal);
  padding-left: 24px;
}

.timeline div {
  display: grid;
  gap: 4px;
  padding: 0 0 24px;
}

.timeline div:last-child {
  padding-bottom: 0;
}

.timeline strong {
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.contact-section {
  background: var(--soft);
}

.contact-cards a {
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  color: var(--blue-dark);
  font-weight: 800;
}

.contact-cards span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 26, 44, 0.82);
}

.preview-modal.open {
  display: grid;
}

.preview-modal figure {
  width: min(980px, 100%);
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  animation: modalIn 180ms ease;
}

.preview-modal img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #071727;
}

.preview-modal figcaption {
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 800;
}

.preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 88px 44px;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeReverse {
  from {
    transform: translateX(-34%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes floatDot {
  from {
    transform: translate3d(0, 0, 0) scale(0.75);
  }
  to {
    transform: translate3d(18px, -34px, 0) scale(1.25);
  }
}

@keyframes barPulse {
  from {
    transform: scaleY(0.72);
    opacity: 0.62;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(20, 157, 149, 0.16);
}

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

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: #9fe7dd;
  font-weight: 700;
}

@media (max-width: 960px) {
  .contact-strip {
    display: none;
  }

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

  .split,
  .contact-grid,
  .about-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-system {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100% - 40px, 520px);
    margin: -76px auto 48px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .site-nav,
  .section-shell,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    min-height: 68px;
  }

  .brand img {
    width: 154px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    padding: 0 0 14px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 690px;
  }

  .hero-media::after {
    background: rgba(10, 26, 44, 0.76);
  }

  .hero-content {
    padding: 72px 0 90px;
  }

  .hero-metrics div {
    flex: 1 1 100%;
  }

  .intro-section,
  .section {
    padding: 62px 0;
  }

  .service-grid,
  .game-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .process-list article {
    grid-template-columns: 1fr;
  }

  .feature-band {
    padding: 76px 0;
    background-attachment: scroll;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
