:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-2: #0c1420;
  --panel: rgba(15, 24, 36, 0.78);
  --panel-solid: #111b28;
  --text: #eff7fb;
  --muted: #a7b8c8;
  --line: rgba(171, 214, 229, 0.18);
  --cyan: #22f2ff;
  --gold: #f7d668;
  --green: #59f28f;
  --rose: #ff5fb7;
  --red: #ff5f6d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(34, 242, 255, 0.08), transparent 28%),
    linear-gradient(260deg, rgba(247, 214, 104, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
  animation: gridDrift 18s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 18%, rgba(34, 242, 255, 0.1), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(247, 214, 104, 0.08), transparent 16%),
    linear-gradient(180deg, transparent, rgba(34, 242, 255, 0.035) 48%, transparent 49%);
  background-size: auto, auto, 100% 9px;
  opacity: 0.78;
  animation: scanPulse 7s ease-in-out infinite;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 19, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(34, 242, 255, 0.5);
  background: linear-gradient(145deg, rgba(34, 242, 255, 0.18), rgba(247, 214, 104, 0.1));
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(34, 242, 255, 0.18);
  animation: hexPulse 4.8s ease-in-out infinite;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  position: relative;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
  overflow: hidden;
}

.nav-links a::after {
  position: absolute;
  inset: auto 10px 7px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(34, 242, 255, 0.11);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 92px 0 120px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 11, 19, 0.94), rgba(7, 11, 19, 0.66) 47%, rgba(7, 11, 19, 0.32)),
    url("assets/images/hero-command-grid.png") center / cover no-repeat;
  animation: heroPan 24s ease-in-out infinite alternate;
}

.hero::before {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 34%, rgba(34, 242, 255, 0.28) 0 10px, transparent 11px),
    radial-gradient(circle at 75% 28%, rgba(247, 214, 104, 0.22) 0 14px, transparent 15px),
    radial-gradient(circle at 88% 66%, rgba(34, 242, 255, 0.18) 0 18px, transparent 19px),
    radial-gradient(circle at 45% 74%, rgba(255, 95, 183, 0.16) 0 12px, transparent 13px),
    radial-gradient(circle at 58% 18%, rgba(89, 242, 143, 0.13) 0 16px, transparent 17px);
  filter: blur(0.2px);
  opacity: 0.78;
  animation: bubbleFloat 12s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content,
.section-inner,
.page-hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 242, 255, 0.28);
  border-radius: 999px;
  background: rgba(34, 242, 255, 0.08);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(34, 242, 255, 0.06), 0 0 22px rgba(34, 242, 255, 0.08);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.page-title {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.tagline,
.section-lead,
.page-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  box-shadow: 0 0 28px rgba(34, 242, 255, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.btn::after {
  position: absolute;
  inset: -35% auto -35% -70%;
  width: 52%;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-18deg);
  transition: left 520ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 242, 255, 0.23);
}

.btn:hover::after {
  left: 120%;
}

.btn.secondary {
  color: var(--text);
  border-color: rgba(247, 214, 104, 0.35);
  background: rgba(247, 214, 104, 0.08);
  box-shadow: none;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255, 255, 255, 0.055);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.metric-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 27, 40, 0.66);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.metric-strip::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 0 34%, rgba(34, 242, 255, 0.1) 48%, transparent 62% 100%);
  transform: translateX(-110%);
  animation: panelSweep 7s ease-in-out infinite;
}

.metric {
  position: relative;
  z-index: 1;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.metric span,
.card p,
.price-card li,
.study-meta,
.service-list li,
.footer-grid p,
.contact-note {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.price-card,
.contact-panel,
.case-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.card::before,
.price-card::before,
.contact-panel::before,
.case-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(34, 242, 255, 0.14), transparent 32%),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card > *,
.price-card > *,
.contact-panel > *,
.case-panel > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.price-card:hover,
.contact-panel:hover,
.case-panel:hover {
  border-color: rgba(34, 242, 255, 0.36);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36), 0 0 32px rgba(34, 242, 255, 0.12);
}

.card:hover::before,
.price-card:hover::before,
.contact-panel:hover::before,
.case-panel:hover::before {
  opacity: 1;
}

.card {
  padding: 26px;
}

.card.accent-cyan {
  border-top: 3px solid var(--cyan);
}

.card.accent-gold {
  border-top: 3px solid var(--gold);
}

.card.accent-green {
  border-top: 3px solid var(--green);
}

.card.accent-rose {
  border-top: 3px solid var(--rose);
}

.card.accent-red {
  border-top: 3px solid var(--red);
}

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

.project-card {
  overflow: hidden;
}

.project-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 28%, rgba(34, 242, 255, 0.22) 0 8px, transparent 9px),
    radial-gradient(circle at 72% 20%, rgba(247, 214, 104, 0.18) 0 10px, transparent 11px),
    radial-gradient(circle at 82% 74%, rgba(255, 95, 183, 0.14) 0 7px, transparent 8px);
  opacity: 0.48;
  transform: translateY(8px);
  animation: cardBubbles 8s ease-in-out infinite alternate;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 240ms ease, filter 240ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.18);
}

.project-card:hover::after {
  opacity: 0.78;
}

.project-card .card-body {
  padding: 20px;
}

.category {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-list,
.service-list,
.price-card ul,
.case-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.feature-list li,
.case-list li {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  border-left: 2px solid rgba(34, 242, 255, 0.45);
}

.service-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.service-list li:last-child {
  border-bottom: 0;
}

.page-hero {
  position: relative;
  padding: 90px 0 64px;
  background:
    linear-gradient(120deg, rgba(34, 242, 255, 0.1), transparent 38%),
    linear-gradient(280deg, rgba(255, 95, 183, 0.08), transparent 32%),
  var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 40%, rgba(34, 242, 255, 0.14) 0 16px, transparent 17px),
    radial-gradient(circle at 80% 24%, rgba(247, 214, 104, 0.13) 0 12px, transparent 13px),
    radial-gradient(circle at 68% 78%, rgba(255, 95, 183, 0.11) 0 18px, transparent 19px);
  animation: bubbleFloat 13s ease-in-out infinite alternate-reverse;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar a {
  position: relative;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter-bar a:hover {
  color: var(--text);
  border-color: rgba(34, 242, 255, 0.42);
  box-shadow: 0 0 22px rgba(34, 242, 255, 0.1);
}

.price-card {
  display: flex;
  min-height: 510px;
  padding: 30px;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(34, 242, 255, 0.52);
  background: linear-gradient(180deg, rgba(34, 242, 255, 0.12), rgba(17, 27, 40, 0.82));
  animation: featuredGlow 5.8s ease-in-out infinite;
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 22px 0;
}

.price strong {
  color: var(--cyan);
  font-size: 3rem;
}

.price span {
  color: var(--muted);
  padding-bottom: 10px;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.case-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.case-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-panel,
.contact-panel {
  padding: 28px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.stack-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(34, 242, 255, 0.1);
  border: 1px solid rgba(34, 242, 255, 0.25);
  animation: chipGlow 5s ease-in-out infinite;
}

.case-results-title {
  margin-top: 32px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(34, 242, 255, 0.42);
  border-color: rgba(34, 242, 255, 0.55);
}

.form-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #05080d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.6fr));
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.footer a {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

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

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

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

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

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes hexPulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(34, 242, 255, 0.16);
  }
  50% {
    box-shadow: 0 0 38px rgba(34, 242, 255, 0.34), 0 0 18px rgba(247, 214, 104, 0.18);
  }
}

@keyframes heroPan {
  from {
    background-position: center, 48% 50%;
  }
  to {
    background-position: center, 54% 48%;
  }
}

@keyframes bubbleFloat {
  from {
    transform: translate3d(-10px, 8px, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -20px, 0) scale(1.04);
  }
}

@keyframes panelSweep {
  0%,
  42% {
    transform: translateX(-110%);
  }
  70%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes cardBubbles {
  from {
    transform: translateY(9px) translateX(-4px);
  }
  to {
    transform: translateY(-12px) translateX(10px);
  }
}

@keyframes featuredGlow {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 16px rgba(34, 242, 255, 0.1);
  }
  50% {
    box-shadow: var(--shadow), 0 0 34px rgba(34, 242, 255, 0.22);
  }
}

@keyframes chipGlow {
  0%,
  100% {
    border-color: rgba(34, 242, 255, 0.22);
  }
  50% {
    border-color: rgba(247, 214, 104, 0.34);
  }
}

@media (max-width: 900px) {
  .nav-shell {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 82svh;
    padding-top: 76px;
  }

  .section-heading,
  .case-layout,
  .contact-layout {
    display: block;
  }

  .grid.three,
  .grid.two,
  .portfolio-grid,
  .metric-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .case-panel,
  .contact-panel {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .nav-links a {
    padding-inline: 9px;
    font-size: 0.88rem;
  }

  .hero,
  .section,
  .page-hero {
    padding-block: 58px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.8rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  body::before,
  body::after,
  .brand-mark,
  .hero,
  .hero::before,
  .metric-strip::before,
  .project-card::after,
  .page-hero::before,
  .price-card.featured,
  .stack-tags span {
    animation: none !important;
  }
}
