:root {
  color-scheme: dark;
  --bg: #061426;
  --bg-soft: #0b2340;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f8ff;
  --muted: #b8c6d9;
  --line: rgba(255, 255, 255, 0.16);
  --primary: #16d9f5;
  --primary-2: #54f0c5;
  --accent: #6aa7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --header-height: 78px;
  --max-width: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fbff;
  --bg-soft: #eaf3fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #071a33;
  --muted: #445972;
  --line: rgba(7, 26, 51, 0.14);
  --shadow: 0 24px 70px rgba(16, 51, 92, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(22, 217, 245, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(84, 240, 197, 0.12), transparent 26rem),
    linear-gradient(135deg, var(--bg), #071e38 52%, var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 12%, rgba(22, 217, 245, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(106, 167, 255, 0.16), transparent 24rem),
    linear-gradient(135deg, #f9fcff, #edf6ff);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

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

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

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

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

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #02111f;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 18, 34, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(248, 252, 255, 0.86);
}

.navbar {
  width: min(100% - 2rem, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-logo {
  width: clamp(150px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(22, 217, 245, 0.14));
}

.nav-menu,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--primary);
}

.nav-toggle,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.theme-toggle {
  width: 2.75rem;
  aspect-ratio: 1;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  aspect-ratio: 1;
  gap: 0.22rem;
}

.nav-toggle span:not(.sr-only) {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 5.4rem 0;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: calc(var(--header-height) + 2rem) max(1rem, calc((100vw - var(--max-width)) / 2)) 5rem;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12rem;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.65rem, 8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.14rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.hero-copy {
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-actions {
  margin: 2rem 0 2.2rem;
}

.btn {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.84rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #031827;
  box-shadow: 0 16px 34px rgba(22, 217, 245, 0.22);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-small {
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
}

.trust-row span,
.tech-cloud span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-panel {
  min-height: 470px;
  padding: 1.2rem;
  border-radius: var(--radius);
  display: grid;
  align-content: space-between;
}

.orbit {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
}

.orbit span {
  position: absolute;
  border: 1px solid rgba(22, 217, 245, 0.28);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.orbit span:nth-child(1) {
  width: 210px;
  height: 210px;
}

.orbit span:nth-child(2) {
  width: 150px;
  height: 150px;
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit span:nth-child(3) {
  width: 90px;
  height: 90px;
  animation-duration: 7s;
}

.orbit span::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 22px var(--primary);
}

.orbit-core {
  width: 5.8rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(22, 217, 245, 0.22));
  border: 1px solid rgba(22, 217, 245, 0.5);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 900;
}

.panel-stat {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.panel-stat strong,
.stat-card strong {
  display: block;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.panel-stat span,
.stat-card span {
  color: var(--muted);
}

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

.about-grid,
.testimonial-grid,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.about-card,
.service-card,
.industry-card,
.testimonial-card {
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.about-card:hover,
.service-card:hover,
.industry-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 217, 245, 0.5);
  background: var(--surface-strong);
}

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

.service-card span {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 900;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 217, 245, 0.08), rgba(106, 167, 255, 0.08));
}

.tech-cloud span {
  font-size: clamp(0.92rem, 2vw, 1.3rem);
  color: var(--text);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tech-cloud span:hover {
  transform: translateY(-4px);
  color: var(--primary);
  border-color: rgba(22, 217, 245, 0.5);
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.client-logo {
  min-height: 9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(22, 217, 245, 0.06));
  color: var(--text);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 900;
  text-align: center;
  padding: 1rem;
}

.why-grid {
  align-items: center;
  gap: 2rem;
}

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

.stat-card {
  padding: 1.3rem;
  border-radius: var(--radius);
}

.stat-card strong::after {
  content: "+";
  color: var(--primary);
}

.stat-card:nth-child(3) strong::after {
  content: "%";
}

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

.career-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 217, 245, 0.16), rgba(106, 167, 255, 0.08));
}

.career-band > div {
  max-width: 760px;
}

.testimonial-card {
  margin: 0;
}

.testimonial-card p {
  color: var(--text);
  font-size: 1.06rem;
}

.testimonial-card cite {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 2rem;
}

.contact-points {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.contact-points a {
  color: var(--primary);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label span {
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form select option {
  color: #071a33;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 217, 245, 0.13);
}

.contact-form .is-invalid {
  border-color: #ff7c9a;
}

.error-message,
.form-status {
  min-height: 1.25rem;
  color: #ff9ab1;
  font-size: 0.82rem;
}

.form-status.is-success {
  color: var(--primary-2);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 10, 20, 0.38);
  padding: 3rem max(1rem, calc((100vw - var(--max-width)) / 2)) 1.2rem;
}

[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  font-size: 1rem;
}

.footer-grid a:not(.brand) {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary);
  color: #031827;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 18, 34, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  [data-theme="light"] .nav-menu {
    background: rgba(248, 252, 255, 0.98);
  }

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

  .nav-menu a {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions .btn-small {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

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

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

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .navbar,
  .section {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 145px;
  }

  .hero {
    padding-inline: 0.6rem;
    padding-bottom: 3rem;
  }

  .hero-actions,
  .career-band,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .client-strip,
  .stats-grid,
  .industry-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-panel {
    min-height: 320px;
  }

  .orbit {
    min-height: 200px;
  }

  .career-band {
    padding: 1.2rem;
  }
}

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