:root {
  --bg: #05070d;
  --bg-2: #080c14;
  --surface: rgba(12, 18, 29, 0.72);
  --surface-strong: #0d1420;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f7fc;
  --muted: #91a0b4;
  --muted-2: #617287;
  --blue: #0794ff;
  --blue-bright: #4fc0ff;
  --blue-soft: rgba(7, 148, 255, 0.11);
  --green: #3df5b0;
  --container: 1180px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.theme-changing * {
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mouse-glow {
  position: fixed;
  width: 330px;
  height: 330px;
  left: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(7, 148, 255, 0.09), transparent 68%);
  mix-blend-mode: screen;
}

.header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}
.header.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(22px);
  border-color: var(--line);
}
.navbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;

  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 400%;
  height: 400%;
  object-fit: contain;
  display: block;
  margin-left: 8rem;
}

.brand-mark-footer img {
  width: 5rem;
  height: 5rem;
}

/* .brand-name span {
  color: var(--blue);
} */
.nav-right {
  display: flex;
  align-items: center;
  gap: 17px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  position: relative;
  color: #8e9db0;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--blue);
  transition: right 0.25s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  right: 0;
}

.theme-toggle {
  width: 64px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #bcd0e4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  padding: 2px;
}
.theme-toggle i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #101a27;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.28s,
    background-color 0.28s;
}
.theme-toggle span {
  position: relative;
  z-index: 2;
  font-size: 12px;
  width: 27px;
  text-align: center;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}
.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: 0.25s;
}

.section {
  position: relative;
  padding: 140px 0;
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-aurora {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}
.aurora-1 {
  width: 600px;
  height: 600px;
  right: -250px;
  top: 4%;
  background: radial-gradient(circle, rgba(7, 148, 255, 0.13), transparent 68%);
}
.aurora-2 {
  width: 500px;
  height: 500px;
  left: -260px;
  bottom: -250px;
  background: radial-gradient(circle, rgba(7, 148, 255, 0.08), transparent 68%);
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.eyebrow,
.section-kicker,
.section-label > span {
  color: var(--blue-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(55px, 6.8vw, 90px);
  line-height: 0.96;
  letter-spacing: -5px;
  margin: 25px 0;
  max-width: 720px;
}
.hero h1 span,
em {
  color: var(--blue);
  font-style: normal;
}
.hero-description {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background-color 0.25s;
}
.btn b {
  font-size: 16px;
  font-weight: 500;
}
.btn-primary {
  color: #00111e;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(7, 148, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(7, 148, 255, 0.3);
}
.btn-secondary {
  color: var(--text);
  background: rgba(0, 0, 0, 0.025);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 50px;
}
.hero-trust div:not(.trust-divider) {
  display: flex;
  flex-direction: column;
}
.hero-trust strong {
  font-family: "Space Grotesk";
  font-size: 18px;
}
.hero-trust span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.logo-stage {
  position: relative;
  min-height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(7, 148, 255, 0.045),
      transparent 34%
    ),
    linear-gradient(145deg, rgba(13, 21, 34, 0.76), rgba(4, 8, 14, 0.58));
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 100px rgba(7, 148, 255, 0.025),
    0 35px 100px rgba(0, 0, 0, 0.32);
  will-change: transform;
}
.logo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 49.9%,
      rgba(7, 148, 255, 0.08) 50%,
      transparent 50.1%
    ),
    linear-gradient(
      transparent 49.9%,
      rgba(7, 148, 255, 0.08) 50%,
      transparent 50.1%
    );
  background-size:
    100% 100%,
    100% 100%;
  opacity: 0.5;
}
.stage-status,
.stage-bottom {
  position: absolute;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  z-index: 7;
  color: #627389;
  font-size: 8px;
  letter-spacing: 1.8px;
}
.stage-status {
  top: 21px;
}
.stage-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.stage-bottom {
  bottom: 20px;
}
.stage-bottom b {
  color: var(--blue);
}
.stage-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  z-index: 7;
}
.corner-tl {
  top: 50px;
  left: 25px;
  border-top: 1px solid var(--blue);
  border-left: 1px solid var(--blue);
}
.corner-tr {
  top: 50px;
  right: 25px;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
}
.corner-bl {
  bottom: 50px;
  left: 25px;
  border-bottom: 1px solid var(--blue);
  border-left: 1px solid var(--blue);
}
.corner-br {
  bottom: 50px;
  right: 25px;
  border-bottom: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
}

.logo-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  transform: translateZ(40px);
}
.logo-core img {
  width: 235px;
  height: 235px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(7, 148, 255, 0.24));
  animation: logoFloat 4.5s ease-in-out infinite;
  user-select: none;
}
.logo-aura {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 148, 255, 0.16), transparent 66%);
  filter: blur(9px);
  animation: auraPulse 2.8s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.018);
  }
}
@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}
.logo-glitch {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    rgba(7, 148, 255, 0.05) 6px,
    transparent 7px
  );
  opacity: 0.7;
  animation: glitchScan 3s linear infinite;
}
@keyframes glitchScan {
  0% {
    transform: translateY(-80px);
    opacity: 0;
  }
  20%,
  70% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(80px);
    opacity: 0;
  }
}

.holo-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(7, 148, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.ring-1 {
  width: 310px;
  height: 310px;
  border-top-color: var(--blue);
  animation: spin 12s linear infinite;
}
.ring-2 {
  width: 405px;
  height: 405px;
  border-right-color: rgba(79, 192, 255, 0.5);
  animation: spin 17s linear reverse infinite;
}
.ring-3 {
  width: 500px;
  height: 500px;
  border-bottom-color: rgba(7, 148, 255, 0.28);
  animation: spin 23s linear infinite;
}
.ring-4 {
  width: 570px;
  height: 570px;
  border: 1px dashed rgba(7, 148, 255, 0.1);
  animation: spin 32s linear reverse infinite;
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 15px var(--blue);
}
.orbit-1 {
  width: 350px;
  height: 350px;
  animation: orbit 8s linear infinite;
}
.orbit-2 {
  width: 450px;
  height: 450px;
  animation: orbit 13s linear reverse infinite;
}
.orbit-3 {
  width: 530px;
  height: 530px;
  animation: orbit 19s linear infinite;
}
.orbit-1 span {
  top: 0;
  left: 50%;
}
.orbit-2 span {
  top: 50%;
  right: 0;
}
.orbit-3 span {
  bottom: 0;
  left: 22%;
}
@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.scanner-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  top: 20%;
  z-index: 6;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(7, 148, 255, 0.75),
    transparent
  );
  box-shadow: 0 0 20px rgba(7, 148, 255, 0.45);
  animation: scanner 4.2s ease-in-out infinite;
}
@keyframes scanner {
  0%,
  100% {
    transform: translateY(-40px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(270px);
    opacity: 0.8;
  }
  85% {
    opacity: 1;
  }
}

.data-chip {
  position: absolute;
  z-index: 8;
  min-width: 88px;
  padding: 9px 11px;
  border: 1px solid rgba(7, 148, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 9, 16, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.data-chip small {
  display: block;
  color: #5d7187;
  font-size: 7px;
  letter-spacing: 1.4px;
}
.data-chip strong {
  color: #dce9f6;
  font-size: 9px;
  letter-spacing: 1px;
}
.chip-1 {
  top: 26%;
  left: 8%;
  animation: chipFloat 4s ease-in-out infinite;
}
.chip-2 {
  top: 63%;
  right: 7%;
  animation: chipFloat 4.7s ease-in-out infinite reverse;
}
.chip-3 {
  bottom: 18%;
  left: 12%;
  animation: chipFloat 5.5s ease-in-out infinite;
}
@keyframes chipFloat {
  50% {
    transform: translateY(-7px);
  }
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #56677b;
  font-size: 8px;
  letter-spacing: 2px;
}
.scroll-cue span {
  display: inline-block;
  height: 25px;
  width: 1px;
  vertical-align: middle;
  margin-right: 9px;
  background: var(--blue);
}

.marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #070b12;
}
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px 0;
  animation: marquee 28s linear infinite;
  color: #65778c;
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 1.8px;
}
.marquee-track b {
  color: var(--blue);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 70px;
}
.section-label {
  padding-top: 7px;
}
.label-line {
  width: 42px;
  height: 1px;
  background: var(--blue);
  margin-top: 13px;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 50px;
  align-items: end;
}
.section-intro h2,
.section-head h2 {
  font-family: "Space Grotesk";
  font-size: clamp(43px, 5.5vw, 70px);
  line-height: 1;
  letter-spacing: -3.8px;
}
.section-intro p,
.section-head > p {
  color: var(--muted);
  font-size: 14px;
}
.about-bottom {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding-top: 30px;
}
.about-copy p {
  color: var(--muted);
  font-size: 14px;
}
.text-link {
  display: inline-flex;
  gap: 18px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  margin-top: 25px;
}
.text-link span {
  color: var(--blue);
}
.stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: "Space Grotesk";
  font-size: 38px;
  line-height: 1;
}
.stat span {
  color: var(--muted-2);
  margin-top: 9px;
  font-size: 8px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.services {
  background: #060a11;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  margin-bottom: 60px;
}
.section-head > p {
  max-width: 390px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.service-card {
  position: relative;
  min-height: 315px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.01), transparent);
  transition:
    transform 0.35s,
    background-color 0.35s,
    box-shadow 0.35s;
}
.service-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 148, 255, 0.14), transparent 68%);
  opacity: 0;
  transition: 0.35s;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(7, 148, 255, 0.025);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}
.service-card:hover::before {
  opacity: 1;
}
.service-index {
  color: #52657a;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.service-symbol {
  color: var(--blue);
  font-size: 28px;
  margin: 34px 0 22px;
  text-shadow: 0 0 25px rgba(7, 148, 255, 0.38);
}
.service-card h3 {
  font-family: "Space Grotesk";
  font-size: 23px;
}
.service-card p {
  color: var(--muted);
  font-size: 12px;
  max-width: 310px;
  margin-top: 10px;
}
.service-card a {
  position: absolute;
  left: 28px;
  bottom: 26px;
  color: #050505;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.service-card a span {
  color: var(--blue);
  font-size: 14px;
  margin-left: 8px;
}

.service-card-link {
  cursor: pointer;
}

.service-card-link:focus-visible {
  outline: 2px solid #1689e8;
  outline-offset: 3px;
}

.philosophy {
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: 58%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(7, 148, 255, 0.055),
    transparent 67%
  );
}
.philosophy-wrap {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 70px;
}
.philosophy-number {
  color: #5c6e83;
  font-size: 9px;
  letter-spacing: 1.8px;
}
.giant-title {
  font-family: "Space Grotesk";
  font-size: clamp(55px, 8vw, 105px);
  line-height: 0.92;
  letter-spacing: -6px;
}
.giant-title span {
  color: var(--blue);
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 75px;
}
.principle {
  padding: 25px 20px 10px 0;
  border-bottom: 1px solid var(--line);
}
.principle b {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 1.3px;
}
.principle h3 {
  font-family: "Space Grotesk";
  font-size: 19px;
  margin: 20px 0 9px;
}
.principle p {
  color: var(--muted);
  font-size: 11px;
}

.portfolio {
  background: #060a11;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.portfolio-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  transition:
    transform 0.35s,
    border-color 0.35s;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 148, 255, 0.25);
}
.portfolio-card.large {
  grid-row: span 2;
}
.portfolio-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #080d15;
}
.portfolio-card.large .portfolio-visual {
  min-height: 440px;
}
.portfolio-visual > span {
  position: absolute;
  left: 25px;
  bottom: 22px;
  color: #607389;
  font-size: 9px;
  letter-spacing: 1.5px;
  line-height: 1.5;
}
.visual-network {
  position: relative;
  isolation: isolate;
  background: #080d15;
}

.network-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  transition:
    opacity 0.45s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.network-image-dark {
  opacity: 1;
}
.network-image-light {
  opacity: 1;
}

body.light .network-image-dark {
  opacity: 0;
}
body.light .network-image-light {
  opacity: 1;
}

.network-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(3, 8, 15, 0.72) 0%,
    rgba(3, 8, 15, 0.12) 34%,
    transparent 60%
  );
  transition: background 0.45s ease;
}

body.light .network-image-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.08) 32%,
    transparent 60%
  );
}

.visual-network > span {
  z-index: 3;
}

.portfolio-card:hover .network-image {
  transform: scale(1.035);
}

.visual-network::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(7, 148, 255, 0.08);
  background:
    linear-gradient(
      90deg,
      transparent 49.9%,
      rgba(7, 148, 255, 0.055) 50%,
      transparent 50.1%
    ),
    linear-gradient(
      transparent 49.9%,
      rgba(7, 148, 255, 0.055) 50%,
      transparent 50.1%
    );
  opacity: 0.55;
}

body.light .visual-network::after {
  border-color: rgba(7, 127, 215, 0.08);
  background:
    linear-gradient(
      90deg,
      transparent 49.9%,
      rgba(7, 127, 215, 0.045) 50%,
      transparent 50.1%
    ),
    linear-gradient(
      transparent 49.9%,
      rgba(7, 127, 215, 0.045) 50%,
      transparent 50.1%
    );
}
.network-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 25px rgba(7, 148, 255, 0.65);
  animation: nodePulse 2s ease-in-out infinite;
}
.n1 {
  left: 22%;
  top: 27%;
}
.n2 {
  right: 25%;
  top: 37%;
}
.n3 {
  left: 36%;
  bottom: 27%;
}
.n4 {
  right: 17%;
  bottom: 22%;
}
.network-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), rgba(7, 148, 255, 0.05));
  box-shadow: 0 0 12px rgba(7, 148, 255, 0.3);
}
.l1 {
  width: 260px;
  left: 23%;
  top: 29%;
  transform: rotate(14deg);
}
.l2 {
  width: 220px;
  left: 37%;
  top: 58%;
  transform: rotate(-27deg);
}
.l3 {
  width: 190px;
  left: 45%;
  top: 48%;
  transform: rotate(35deg);
}
@keyframes nodePulse {
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

.visual-server {
  display: grid;
  place-items: center;
}
.server-rack {
  width: 180px;
  padding: 15px;
  border: 1px solid rgba(7, 148, 255, 0.2);
  background: rgba(7, 148, 255, 0.025);
  box-shadow: 0 0 50px rgba(7, 148, 255, 0.05);
}
.server-rack i {
  display: block;
  height: 22px;
  margin: 7px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    90deg,
    rgba(7, 148, 255, 0.18),
    rgba(255, 255, 255, 0.02)
  );
  position: relative;
}
.server-rack i::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.visual-brand {
  display: grid;
  place-items: center;
}
.visual-brand strong {
  font-family: "Space Grotesk";
  font-size: 35px;
  color: var(--blue);
  letter-spacing: -2px;
  text-shadow: 0 0 30px rgba(7, 148, 255, 0.25);
}
.brand-orbit {
  position: absolute;
  width: 170px;
  height: 70px;
  border: 1px solid rgba(7, 148, 255, 0.3);
  border-radius: 50%;
  transform: rotate(-20deg);
  animation: brandSpin 8s linear infinite;
}
@keyframes brandSpin {
  to {
    transform: rotate(340deg);
  }
}

.portfolio-info {
  padding: 22px 25px 27px;
}
.portfolio-info span {
  color: #5c6e83;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.portfolio-info h3 {
  font-family: "Space Grotesk";
  font-size: 22px;
  margin-top: 7px;
}

.centered {
  justify-content: center;
  text-align: center;
}
.centered > div {
  width: 100%;
}
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 75px;
  border-top: 1px solid var(--line);
}
.process-step {
  position: relative;
  padding: 30px 20px 20px 0;
  border-bottom: 1px solid var(--line);
}
.process-step:not(:last-child) {
  margin-right: 25px;
}
.process-step > span {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 1px;
}
.process-step > i {
  position: absolute;
  width: 7px;
  height: 7px;
  top: -4px;
  left: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 15px rgba(7, 148, 255, 0.6);
}
.process-step h3 {
  font-family: "Space Grotesk";
  font-size: 25px;
  margin-top: 32px;
}
.process-step p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.contact {
  padding-top: 70px;
}

.contact-panel-v2 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
  gap: 72px;
  padding: 62px 55px;
  border: 1px solid rgba(7, 148, 255, 0.14);
  border-radius: 28px;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(
      circle at 12% 35%,
      rgba(7, 148, 255, 0.09),
      transparent 35%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(7, 148, 255, 0.025));
  box-shadow: 0 25px 70px rgba(24, 65, 100, 0.08);
}

.contact-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  left: 0;
  top: 0;
  transform: translate(-42%, -25%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 148, 255, 0.13), transparent 68%);
  pointer-events: none;
}

.contact-info,
.contact-form-wrap {
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.contact-info h2 {
  margin-top: 18px;
  font-family: "Space Grotesk";
  font-size: clamp(43px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -3.6px;
}

.contact-info h2 em {
  display: block;
  color: var(--blue);
}

.contact-info > p {
  max-width: 475px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 148, 255, 0.22);
  border-radius: 10px;
  color: var(--blue);
  background: rgba(7, 148, 255, 0.025);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-detail:hover .contact-detail-icon {
  transform: translateY(-2px);
  background: rgba(7, 148, 255, 0.08);
  box-shadow: 0 8px 22px rgba(7, 148, 255, 0.1);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-detail small {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.2;
}

.contact-detail strong {
  margin-top: 4px;
  color: #4f6380;
  font-size: 12px;
  font-weight: 500;
}

.contact-form-wrap {
  align-self: center;
}

#contactForm {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

#contactForm label {
  display: block;
  margin-bottom: 0;
}

#contactForm label > span {
  display: block;
  margin: 0 0 8px 2px;
  color: #708298;
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  outline: none;
  border: 1px solid rgba(89, 129, 167, 0.28);
  border-radius: 7px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

#contactForm input {
  height: 56px;
}

#contactForm textarea {
  min-height: 165px;
  padding: 15px;
  resize: vertical;
  line-height: 1.6;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #8da0b7;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: rgba(7, 148, 255, 0.58);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(7, 148, 255, 0.07);
}

#contactForm input:invalid:not(:placeholder-shown),
#contactForm textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 95, 95, 0.5);
}

.form-bottom-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.contact-submit {
  min-width: 165px;
  border-radius: 7px;
  justify-content: center;
  gap: 22px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.contact-submit .button-loading {
  display: none;
  align-items: center;
  gap: 4px;
}

.contact-submit.is-loading .button-text,
.contact-submit.is-loading > b {
  display: none;
}

.contact-submit.is-loading .button-loading {
  display: inline-flex;
}

.button-loading i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: formDot 0.9s infinite ease-in-out;
}

.button-loading i:nth-child(2) {
  animation-delay: 0.15s;
}

.button-loading i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes formDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.form-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.form-status[data-type="success"] {
  color: #10a86a;
}

.form-status[data-type="error"] {
  color: #d94f5f;
}

.form-note {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.footer {
  border-top: 1px solid var(--line);
}
.footer-grid {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p,
.back-top {
  color: #526378;
  font-size: 9px;
  letter-spacing: 0.8px;
}
.back-top:hover {
  color: var(--blue);
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.12s;
}
.delay-2 {
  transition-delay: 0.22s;
}

body.light {
  --bg: #f4f8fc;
  --bg-2: #edf3f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fff;
  --line: rgba(10, 35, 55, 0.11);
  --line-strong: rgba(10, 35, 55, 0.16);
  --text: #071625;
  --muted: #607286;
  --muted-2: #718397;
  --blue: #087fd7;
  --blue-bright: #006dbb;
  background: var(--bg);
  color: var(--text);
}
body.light .header.scrolled {
  background: rgba(244, 248, 252, 0.82);
}
body.light .hero-grid {
  background-image:
    linear-gradient(rgba(10, 35, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 35, 55, 0.05) 1px, transparent 1px);
}
body.light .hero h1,
body.light .section-intro h2,
body.light .section-head h2,
body.light .giant-title,
body.light .contact-panel h2,
body.light .service-card h3,
body.light .portfolio-info h3,
body.light .process-step h3 {
  color: #071625;
}
body.light .hero-description,
body.light .section-intro p,
body.light .section-head > p,
body.light .about-copy p,
body.light .principle p,
body.light .service-card p,
body.light .process-step p,
body.light .contact-panel > p {
  color: #607286;
}
body.light .hero-layout::after {
  opacity: 0.25;
}
body.light .logo-stage {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(8, 127, 215, 0.08),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(229, 238, 246, 0.82)
    );
  border-color: rgba(8, 127, 215, 0.15);
  box-shadow:
    inset 0 0 100px rgba(8, 127, 215, 0.03),
    0 30px 70px rgba(35, 70, 100, 0.11);
}
body.light .data-chip {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(8, 127, 215, 0.16);
}
body.light .data-chip strong {
  color: #18334b;
}
body.light .marquee,
body.light .services,
body.light .portfolio {
  background: #edf3f8;
}
body.light .service-card,
body.light .portfolio-card {
  background: rgba(255, 255, 255, 0.5);
}
body.light .service-card:hover,
body.light .portfolio-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 55px rgba(28, 64, 94, 0.07);
}
body.light .portfolio-visual {
  background: #e9f0f6;
}
body.light .contact-panel {
  background: linear-gradient(
    135deg,
    rgba(8, 127, 215, 0.065),
    rgba(255, 255, 255, 0.85)
  );
}
body.light #contactForm input,
body.light #contactForm textarea {
  background: rgba(255, 255, 255, 0.84);
  color: #071625;
}
body.light .theme-toggle {
  background: #e7eef5;
  border-color: rgba(8, 127, 215, 0.18);
}
body.light .theme-toggle i {
  transform: translateX(31px);
  background: #fff;
}
body.light .footer {
  background: #edf3f8;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-content {
    max-width: 760px;
  }
  .logo-stage {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    min-height: 520px;
  }
  .about-grid,
  .philosophy-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-card.large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .portfolio-card.large .portfolio-visual {
    min-height: 350px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 30px);
  }
  .navbar {
    min-height: 70px;
  }
  .nav-menu {
    position: fixed;
    left: 15px;
    right: 15px;
    top: 78px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: stretch;
    background: rgba(6, 10, 17, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(22px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 13px;
    border-radius: 9px;
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  body.light .nav-menu {
    background: rgba(246, 250, 253, 0.97);
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding-top: 95px;
  }
  .hero h1 {
    letter-spacing: -3.5px;
    font-size: clamp(50px, 13vw, 75px);
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .hero-trust {
    justify-content: space-between;
    gap: 12px;
  }
  .hero-trust strong {
    font-size: 16px;
  }
  .hero-trust span {
    font-size: 7px;
  }
  .logo-stage {
    min-height: 430px;
    border-radius: 23px;
  }
  .logo-core img {
    width: 165px;
    height: 165px;
  }
  .logo-aura {
    width: 170px;
    height: 170px;
  }
  .ring-1 {
    width: 235px;
    height: 235px;
  }
  .ring-2 {
    width: 310px;
    height: 310px;
  }
  .ring-3 {
    width: 385px;
    height: 385px;
  }
  .ring-4 {
    width: 440px;
    height: 440px;
  }
  .orbit-1 {
    width: 270px;
    height: 270px;
  }
  .orbit-2 {
    width: 345px;
    height: 345px;
  }
  .orbit-3 {
    width: 420px;
    height: 420px;
  }
  .chip-1 {
    left: 6%;
    top: 24%;
  }
  .chip-2 {
    right: 5%;
    top: 62%;
  }
  .chip-3 {
    left: 9%;
    bottom: 18%;
  }
  .stage-bottom span:nth-child(even),
  .stage-bottom b {
    display: none;
  }
  .section {
    padding: 90px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .section-head h2,
  .section-intro h2 {
    letter-spacing: -2.5px;
  }
  .about-bottom {
    grid-template-columns: 1fr;
    gap: 45px;
    margin-top: 45px;
  }
  .stats {
    max-width: 450px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .principles {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }
  .giant-title {
    letter-spacing: -3.5px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-card.large {
    grid-column: auto;
  }
  .process-line {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .process-step:not(:last-child) {
    margin-right: 0;
  }
  .input-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-panel {
    padding: 65px 20px;
    border-radius: 23px;
  }
  .contact-panel h2 {
    letter-spacing: -2.5px;
  }
  .form-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-grid {
    padding: 26px 0;
    flex-direction: column;
    text-align: center;
  }
  .mouse-glow {
    display: none;
  }
  .scroll-cue {
    display: none;
  }
}

@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;
  }
}

/* =========================================================
   CLIENTS / PARTNERS
   ========================================================= */
.clients {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(7, 148, 255, 0.045),
      transparent 28%
    ),
    var(--bg);
}

.clients-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.clients-head h2 {
  font-family: "Space Grotesk";
  font-size: clamp(43px, 5.5vw, 70px);
  line-height: 1;
  letter-spacing: -3.8px;
  margin-top: 12px;
}

.clients-copy {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.clients-copy p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 15px;
  max-width: 420px;
}

.clients-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #617287;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.clients-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.client-card {
  position: relative;
  min-height: 185px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.008);
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.client-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 148, 255, 0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.client-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.client-card:hover {
  transform: translateY(-5px);
  background: rgba(7, 148, 255, 0.025);
  border-color: rgba(7, 148, 255, 0.18);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.15);
}

.client-card:hover::before {
  opacity: 1;
}
.client-card:hover::after {
  transform: scaleX(1);
}

.client-number {
  position: absolute;
  left: 18px;
  top: 16px;
  color: #52657a;
  font-size: 8px;
  letter-spacing: 1.4px;
}

.client-card small {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: #435469;
  font-size: 7px;
  letter-spacing: 1.3px;
}

.client-logo {
  position: relative;
  z-index: 2;
  min-width: 150px;
  min-height: 58px;
  display: grid;
  place-items: center;
}

.client-logo img {
  width: min(175px, 72%);
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.65);
  opacity: 0.72;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.client-card:hover .client-logo img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.04);
}

.text-logo {
  font-family: "Space Grotesk";
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1.4px;
  color: #8293a7;
  transition:
    color 0.35s,
    text-shadow 0.35s,
    transform 0.35s;
}

.text-logo span {
  color: var(--blue);
}

.client-card:hover .text-logo {
  color: var(--text);
  text-shadow: 0 0 25px rgba(7, 148, 255, 0.24);
  transform: scale(1.04);
}

.client-marquee {
  margin-top: 35px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.008);
}

.client-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 0;
  color: #53657a;
  font-family: "Space Grotesk";
  font-size: 8px;
  letter-spacing: 2px;
  animation: clientMarquee 25s linear infinite;
}

.client-marquee-track b {
  color: var(--blue);
}

@keyframes clientMarquee {
  to {
    transform: translateX(-50%);
  }
}

/* Light mode */
body.light .clients {
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(8, 127, 215, 0.045),
      transparent 28%
    ),
    var(--bg);
}

body.light .client-card {
  background: rgba(255, 255, 255, 0.48);
}

body.light .client-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 55px rgba(30, 65, 95, 0.08);
}

body.light .client-logo img {
  filter: grayscale(1) brightness(0.58);
  opacity: 0.62;
}

body.light .client-card:hover .client-logo img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

body.light .text-logo {
  color: #6a7c90;
}
body.light .client-card:hover .text-logo {
  color: #071625;
}

/* Responsive */
@media (max-width: 980px) {
  .clients-head {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .clients-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }

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

@media (max-width: 760px) {
  .clients-head h2 {
    letter-spacing: -2.5px;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    min-height: 155px;
  }
}

/* =========================================================
   WHATSAPP LIVE CHAT WIDGET
   ========================================================= */
.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  font-family: Inter, Arial, sans-serif;
}

.wa-fab {
  position: relative;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #20d66b;
  box-shadow:
    0 12px 34px rgba(32, 214, 107, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  animation: waPulse 2.4s ease-in-out infinite;
}

.wa-fab:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 18px 42px rgba(32, 214, 107, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.wa-fab-icon,
.wa-header-icon {
  display: grid;
  place-items: center;
}

.wa-fab-icon svg {
  width: 34px;
  height: 34px;
}

.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
  border-radius: 999px;
  color: #fff;
  background: #ff3b4f;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(255, 59, 79, 0.25);
}

.wa-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}

.wa-widget.open .wa-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(135deg, #16c967, #20d66b);
}

.wa-header-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  color: #20d66b;
  background: #fff;
}

.wa-header-icon svg {
  width: 28px;
  height: 28px;
}

.wa-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wa-title strong {
  font-size: 16px;
  line-height: 1.2;
}

.wa-title span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 10px;
  opacity: 0.9;
}

.wa-title span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7ffe8;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.8);
}

.wa-close {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 25px;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.2s;
}

.wa-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.wa-body {
  padding: 18px 18px 12px;
  background: var(--surface);
}

.wa-message {
  position: relative;
  padding: 15px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wa-message strong {
  font-size: 14px;
}

.wa-message p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.wa-message time {
  position: absolute;
  right: 12px;
  bottom: 7px;
  color: var(--muted-2);
  font-size: 8px;
}

.wa-quick-label {
  margin: 16px 0 9px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.wa-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wa-quick button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 214, 107, 0.55);
  border-radius: 10px;
  color: #1fbd67;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.wa-quick button:hover {
  color: #fff;
  background: #20d66b;
  transform: translateY(-2px);
}

.wa-composer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px 14px;
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
}

.wa-composer input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.wa-composer input::placeholder {
  color: var(--muted-2);
}
.wa-composer input:focus {
  border-color: rgba(32, 214, 107, 0.6);
  box-shadow: 0 0 0 3px rgba(32, 214, 107, 0.08);
}

.wa-composer button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #20d66b;
  box-shadow: 0 8px 22px rgba(32, 214, 107, 0.24);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.wa-composer button:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(32, 214, 107, 0.34);
}

.wa-composer button svg {
  width: 22px;
  height: 22px;
  transform: translateX(-1px);
}

@keyframes waPulse {
  0%,
  100% {
    box-shadow:
      0 12px 34px rgba(32, 214, 107, 0.32),
      0 0 0 0 rgba(32, 214, 107, 0.22);
  }
  50% {
    box-shadow:
      0 16px 40px rgba(32, 214, 107, 0.38),
      0 0 0 10px rgba(32, 214, 107, 0);
  }
}

body.light .wa-panel {
  border-color: rgba(12, 31, 50, 0.1);
  background: #fff;
  box-shadow: 0 28px 80px rgba(30, 65, 95, 0.22);
}

body.light .wa-body {
  background: #f7fafc;
}
body.light .wa-message {
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 65, 95, 0.07);
}
body.light .wa-composer {
  background: #fff;
}
body.light .wa-composer input {
  background: #f7fafc;
  color: #102235;
}
body.light .wa-badge {
  border-color: #fff;
}

@media (max-width: 600px) {
  .wa-widget {
    right: 16px;
    bottom: 16px;
  }
  .wa-fab {
    width: 58px;
    height: 58px;
  }
  .wa-fab-icon svg {
    width: 31px;
    height: 31px;
  }
  .wa-panel {
    right: -2px;
    bottom: 73px;
    width: min(380px, calc(100vw - 28px));
    border-radius: 16px;
  }
  .wa-header {
    min-height: 78px;
    padding: 13px 14px;
  }
  .wa-header-icon {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }
  .wa-header-icon svg {
    width: 25px;
    height: 25px;
  }
  .wa-body {
    padding: 14px;
  }
  .wa-quick {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    animation: none;
  }
  .wa-panel {
    transition:
      opacity 0.15s ease,
      visibility 0.15s;
    transform: none;
  }
  .wa-widget.open .wa-panel {
    transform: none;
  }
}

/* =========================================================
   CONTACT V2 / LIGHT MODE + RESPONSIVE OVERRIDES
   ========================================================= */

body.light .contact-panel-v2 {
  border-color: rgba(20, 68, 105, 0.11);
  background:
    radial-gradient(
      circle at 12% 35%,
      rgba(7, 148, 255, 0.08),
      transparent 35%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 252, 0.9));
  box-shadow: 0 25px 70px rgba(30, 65, 95, 0.08);
}

body.light .contact-detail strong {
  color: #52657c;
}

body.light #contactForm input,
body.light #contactForm textarea {
  border-color: rgba(75, 111, 143, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

body.light #contactForm input:focus,
body.light #contactForm textarea:focus {
  background: #fff;
}

body.light .contact-detail-icon {
  background: rgba(7, 148, 255, 0.025);
}

body:not(.light) .contact-panel-v2 {
  background:
    radial-gradient(
      circle at 12% 35%,
      rgba(7, 148, 255, 0.08),
      transparent 35%
    ),
    linear-gradient(135deg, rgba(13, 21, 34, 0.76), rgba(4, 8, 14, 0.72));
}

body:not(.light) #contactForm input,
body:not(.light) #contactForm textarea {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(4, 9, 16, 0.58);
}

body:not(.light) #contactForm input:focus,
body:not(.light) #contactForm textarea:focus {
  background: rgba(8, 15, 25, 0.82);
}

body:not(.light) .contact-detail strong {
  color: #b5c4d5;
}

@media (max-width: 900px) {
  .brand-mark img {
    width: 200%;
    height: 200%;
    object-fit: contain;
    display: block;
    margin-left: 4rem;
  }

  .contact-panel-v2 {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 55px 42px;
  }

  .contact-info h2 {
    font-size: clamp(43px, 8vw, 62px);
  }

  .contact-info > p {
    max-width: 650px;
  }

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

  .contact-detail {
    width: 100%;
  }

  .contact-detail strong {
    word-break: break-word;
  }
}

@media (max-width: 600px) {
  .contact {
    padding-top: 45px;
  }

  .contact-panel-v2 {
    gap: 35px;
    padding: 42px 20px;
    border-radius: 22px;
  }

  .contact-info h2 {
    font-size: clamp(40px, 12vw, 55px);
    letter-spacing: -2.6px;
  }

  .contact-info > p {
    font-size: 12px;
    line-height: 1.7;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-detail {
    width: 100%;
  }

  .input-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #contactForm input {
    height: 54px;
  }

  #contactForm textarea {
    min-height: 150px;
  }

  .form-bottom-v2 {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
    min-height: 54px;
  }

  .form-status {
    text-align: center;
  }

  .form-note {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-loading i {
    animation: none;
  }
}

/* 404-page */
/* =========================================
   404 PAGE
   ========================================= */

.error-page {
  min-height: calc(100vh - 80px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 120px 24px 80px;

  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(7, 148, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 148, 255, 0.035) 1px, transparent 1px);

  background-size: 55px 55px;

  pointer-events: none;
}

.error-page::after {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background: radial-gradient(circle, rgba(7, 148, 255, 0.1), transparent 70%);

  pointer-events: none;
}

.error-page-inner {
  position: relative;
  z-index: 2;

  text-align: center;

  max-width: 720px;
}

.error-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 20px;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.22em;

  color: var(--blue);
}

.error-kicker::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #18d99a;

  box-shadow:
    0 0 0 5px rgba(24, 217, 154, 0.08),
    0 0 15px rgba(24, 217, 154, 0.5);
}

.error-code {
  font-size: clamp(110px, 18vw, 220px);

  line-height: 0.85;

  font-weight: 800;

  letter-spacing: -0.08em;

  color: transparent;

  background: linear-gradient(135deg, var(--text), var(--blue));

  -webkit-background-clip: text;
  background-clip: text;

  margin-bottom: 20px;
}

.error-page h1 {
  margin: 0;

  font-size: clamp(36px, 5vw, 64px);

  line-height: 1.05;

  letter-spacing: -0.045em;

  color: var(--text);
}

.error-page h1 em {
  color: var(--blue);

  font-style: normal;
}

.error-page p {
  max-width: 520px;

  margin: 24px auto 0;

  color: var(--muted);

  line-height: 1.8;

  font-size: 14px;
}

.error-actions {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 12px;

  margin-top: 34px;
}

@media (max-width: 600px) {
  .error-page {
    padding: 110px 20px 60px;
  }

  .error-actions {
    flex-direction: column;

    width: 100%;
  }

  .error-actions .btn {
    width: 100%;

    justify-content: center;
  }
}

/* =========================
   GENERIC / SERVICE DETAIL PAGE
   ========================= */

/* =========================
   GENERIC / SERVICE DETAIL PAGE
   ========================= */
.generic-page {
  min-height: calc(100vh - var(--header-h));
  padding-top: calc(var(--header-h) + 100px);
}

.generic-page .section-head {
  align-items: start;
}

.generic-page .section-head h1 {
  margin-top: 18px;
  max-width: 760px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -3px;
}

.generic-page .section-head > p {
  padding-top: 34px;
  font-size: 16px;
  color: var(--muted);
}

.generic-page .service-detail-card {
  min-height: 450px;
  padding: 54px 40px;
  margin-top: 20px;
}

.generic-page .service-detail-card h3 {
  margin-top: 24px;
  max-width: 900px;
  font-size: clamp(28px, 3vw, 42px);
}

.generic-page .service-detail-card > p {
  max-width: 680px;
  margin-top: 16px;
  font-size: 15px;
}

.generic-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 70px;
}

.generic-page .generic-page-actions .btn {
  position: relative;
  left: auto;
  bottom: auto;
  width: auto;
  min-width: 190px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.generic-page .generic-page-actions .btn-primary {
  color: #00111e;
}

.generic-page .generic-page-actions .btn b {
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .generic-page {
    padding-top: calc(var(--header-h) + 60px);
  }

  .generic-page .section-head {
    flex-direction: column;
    gap: 12px;
  }

  .generic-page .section-head > p {
    padding-top: 0;
  }

  .generic-page .section-head h1 {
    letter-spacing: -2px;
  }

  .generic-page .service-detail-card {
    min-height: 400px;
    padding: 36px 24px;
  }

  .generic-page-actions {
    margin-top: 50px;
    flex-direction: column;
    align-items: stretch;
  }

  .generic-page .generic-page-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   BIETECH PERFORMANCE OPTIMIZATION
   Visual design is intentionally preserved.
   ========================================================= */

/* The SVG turbulence noise is expensive to paint continuously.
   Replace it with a lightweight static radial texture. */
.page-noise {
  opacity: 0.018;
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1.5px
    );
  background-size:
    7px 7px,
    11px 11px;
}

/* Mouse glow is now moved with transform by JS, keeping it on the
   compositor instead of repeatedly changing left/top layout values. */
.mouse-glow {
  will-change: transform;
}

/* Keep expensive blur effects contained. */
.hero-aurora {
  contain: paint;
  filter: blur(8px);
}

.logo-aura {
  filter: blur(7px);
}

.logo-core img {
  filter: drop-shadow(0 0 18px rgba(7, 148, 255, 0.2));
}

/* The hero stage is an isolated rendering surface. */
.logo-stage {
  contain: layout paint;
}

/* Use compositor-friendly transforms for continuously animated elements. */
.holo-ring,
.orbit,
.logo-core img,
.logo-aura,
.logo-glitch,
.data-chip,
.scanner-line {
  will-change: transform;
}

/* Reduce expensive glass blur only when the element is not actively hovered. */
.header.scrolled {
  backdrop-filter: blur(14px);
}

/* Sections below the fold can be skipped by the browser until needed. */
.about,
.clients,
.services,
.philosophy,
.portfolio,
.contact {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

/* =========================================================
   MOBILE PERFORMANCE
   ========================================================= */

@media (max-width: 700px) {
  .page-noise {
    display: none;
  }

  .mouse-glow {
    display: none;
  }

  .hero-aurora {
    filter: blur(6px);
  }

  /* Keep the logo animation, remove the least important orbit layers. */
  .logo-stage .ring-3,
  .logo-stage .ring-4,
  .logo-stage .orbit-3 {
    display: none;
  }

  .logo-stage {
    box-shadow:
      inset 0 0 60px rgba(7, 148, 255, 0.02),
      0 20px 55px rgba(0, 0, 0, 0.22);
  }

  .logo-core img {
    filter: drop-shadow(0 0 14px rgba(7, 148, 255, 0.18));
  }
}

/* Very low-power devices / accessibility preference. */
@media (prefers-reduced-motion: reduce) {
  .page-noise,
  .mouse-glow,
  #particleCanvas {
    display: none;
  }

  .holo-ring,
  .orbit,
  .logo-core img,
  .logo-aura,
  .logo-glitch,
  .data-chip,
  .scanner-line,
  .marquee-track,
  .client-marquee-track {
    animation: none !important;
  }
}
