:root {
  color-scheme: dark;
  --bg: #071827;
  --panel: rgba(9, 29, 48, 0.8);
  --panel-strong: rgba(12, 42, 66, 0.96);
  --text: #f7fbff;
  --muted: #a7bacb;
  --line: rgba(169, 237, 255, 0.16);
  --cyan: #2dd7d7;
  --green: #86fff4;
  --blue: #1d62d6;
  --ice: #dffcff;
  --amber: #8fe9ff;
  --rose: #ff6b8a;
  --shadow: 0 24px 80px rgba(0, 18, 36, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #061320 0%, #0d2a44 48%, #071827 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(143, 233, 255, 0.12);
  background: rgba(5, 20, 34, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(45, 215, 215, 0.58);
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(5, 20, 34, 0.78);
  box-shadow: 0 0 22px rgba(45, 215, 215, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  gap: clamp(1rem, 3vw, 2.5rem);
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-action,
.primary-button,
.secondary-button,
.contact-form button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.55rem;
  font-weight: 800;
  cursor: pointer;
}

.header-action {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  background: linear-gradient(135deg, var(--ice), var(--cyan));
  color: #04131f;
  box-shadow: 0 10px 34px rgba(45, 215, 215, 0.22);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.55fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 8.2rem clamp(1rem, 6vw, 6rem) 5rem;
}

.hero::after {
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  bottom: 2.25rem;
  width: min(22rem, 36vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 215, 215, 0.8), transparent);
  content: "";
}

.hero-content {
  max-width: 58rem;
  min-width: 0;
}

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

.animated-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08em 0.14em;
  margin: 0;
  max-width: 100%;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 6rem;
  line-height: 0.94;
}

.heading-word {
  display: inline-flex;
  flex-wrap: nowrap;
  max-width: 100%;
  white-space: nowrap;
}

.animated-heading .letter {
  display: inline-block;
  transform-origin: bottom center;
  animation: letterRise 900ms cubic-bezier(0.2, 0.9, 0.1, 1) both, letterGlow 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 58ms), calc(var(--i) * 110ms);
}

.hero-copy {
  max-width: 42rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 1.2rem;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--cyan) 58%, var(--ice));
  color: #031320;
  box-shadow: 0 16px 38px rgba(29, 98, 214, 0.28);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(143, 233, 255, 0.06);
  color: var(--text);
}

.hero-dashboard {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(8, 27, 45, 0.72);
  box-shadow: var(--shadow);
}

.metric-panel {
  min-height: 12rem;
  padding: 1.2rem;
  border: 1px solid rgba(45, 215, 215, 0.26);
  border-radius: 0.45rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 22px 22px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-panel strong {
  display: block;
  margin-top: 4.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.pulse-list {
  display: grid;
  gap: 0.75rem;
}

.pulse-list div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(143, 233, 255, 0.055);
  color: #d9f7ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.status-dot.amber {
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.section {
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1rem, 6vw, 6rem);
}

.intro-band {
  border-block: 1px solid var(--line);
  background: rgba(143, 233, 255, 0.035);
}

.intro-band p {
  max-width: 72rem;
  margin: 0 auto;
  color: #d9f8ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 3.8vw, 3rem);
  line-height: 1.18;
  text-align: center;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

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

.service-card,
.process-step,
.review-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  padding: 1.25rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 98, 214, 0.18), transparent 42%, rgba(45, 215, 215, 0.14));
  opacity: 0;
  transition: opacity 220ms ease;
  content: "";
}

.service-card:hover {
  transform: translateY(-0.4rem);
  border-color: rgba(45, 215, 215, 0.52);
  background: var(--panel-strong);
}

.service-card:hover::before,
.service-card.featured::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
}

.card-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(143, 233, 255, 0.22);
  border-radius: 0.45rem;
  background: linear-gradient(145deg, rgba(29, 98, 214, 0.22), rgba(45, 215, 215, 0.1));
  color: var(--ice);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.service-card h3,
.process-step h3 {
  margin: 1.4rem 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.service-card ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  color: #d8f3fb;
  list-style: none;
}

.service-categories {
  position: relative;
  display: grid;
  gap: 1rem;
}

.service-category {
  display: grid;
  gap: 0.7rem;
}

.service-category span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card li {
  position: relative;
  padding-left: 1.35rem;
}

.service-card li::before {
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.process-section {
  background: linear-gradient(180deg, rgba(143, 233, 255, 0.02), rgba(29, 98, 214, 0.08));
}

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

.process-step {
  min-height: 17rem;
  padding: 1.2rem;
}

.process-step span {
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reviews-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(143, 233, 255, 0.12);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 107, 138, 0.13), transparent 28rem),
    linear-gradient(135deg, rgba(8, 30, 48, 0.9), rgba(6, 18, 31, 0.78));
}

.reviews-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  content: "";
}

.reviews-section > * {
  position: relative;
}

.reviews-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.38fr);
  gap: 1.5rem;
  align-items: end;
}

.review-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 107, 138, 0.28);
  border-radius: 0.5rem;
  background: rgba(255, 107, 138, 0.08);
  box-shadow: 0 20px 60px rgba(255, 107, 138, 0.08);
}

.review-score > span {
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 18deg, var(--rose), var(--cyan), var(--green), var(--rose));
  color: #061320;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  animation: scorePulse 3.8s ease-in-out infinite;
}

.review-score strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.review-score p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1.2rem;
}

.review-stats div {
  padding: 1rem;
  border: 1px solid rgba(143, 233, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(143, 233, 255, 0.055);
}

.review-stats span {
  display: block;
  color: var(--ice);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.review-stats p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  perspective: 1100px;
}

.review-card {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  padding: 1.15rem;
  transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
  animation: reviewFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--review-index, 0) * -1.4s);
}

.review-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 107, 138, 0.14), transparent 44%, rgba(45, 215, 215, 0.16));
  opacity: 0.62;
  content: "";
}

.review-card::after {
  position: absolute;
  right: 1rem;
  bottom: 0.2rem;
  color: rgba(223, 252, 255, 0.1);
  content: '"';
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
}

.review-card:hover {
  border-color: rgba(255, 107, 138, 0.42);
  background: var(--panel-strong);
}

.review-card > * {
  position: relative;
  z-index: 1;
}

.featured-review {
  border-color: rgba(45, 215, 215, 0.42);
  background: rgba(10, 39, 61, 0.92);
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.3rem;
}

.review-card-top strong,
.review-card-top span {
  display: block;
}

.review-card-top strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.review-card-top div span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.rating {
  color: var(--rose);
  font-size: 0.85rem;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 107, 138, 0.32);
}

.review-card p {
  margin: 0;
  color: #d9f7ff;
  font-size: 1rem;
  line-height: 1.75;
}

.review-marquee {
  overflow: hidden;
  margin-top: 1rem;
  border-block: 1px solid rgba(143, 233, 255, 0.12);
  color: rgba(223, 252, 255, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.review-marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 0;
  animation: marqueeSlide 22s linear infinite;
}

.review-marquee span {
  padding: 0.85rem 1.6rem;
  white-space: nowrap;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: #dce3ee;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(4, 18, 31, 0.72);
  color: var(--text);
  font: inherit;
  min-height: 2.8rem;
  padding: 0.78rem 0.85rem;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 215, 215, 0.18);
}

.contact-form button {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #f7fbff;
  font: inherit;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-note {
  min-height: 1.3rem;
  margin: 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-note.error {
  color: var(--rose);
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.review-card.reveal {
  transform: translateY(1.5rem) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.review-card.reveal.visible {
  transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@keyframes letterRise {
  0% {
    opacity: 0;
    transform: translateY(0.55em) rotateX(55deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes letterGlow {
  0%,
  100% {
    color: var(--text);
    text-shadow: none;
  }
  45% {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(45, 215, 215, 0.5), 0 0 28px rgba(29, 98, 214, 0.28);
  }
}

@keyframes scorePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 215, 215, 0.22);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 0 0.45rem rgba(255, 107, 138, 0.08);
    transform: scale(1.04);
  }
}

@keyframes reviewFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.45rem;
  }
}

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

@media (max-width: 920px) {
  .site-header {
    position: sticky;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    padding-top: 5.2rem;
  }

  .animated-heading {
    font-size: 5rem;
  }

  .hero-dashboard {
    max-width: 34rem;
  }

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

  .reviews-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }

  .brand {
    max-width: 13rem;
  }

  .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .header-action {
    min-height: 2.4rem;
    padding: 0 0.75rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .animated-heading {
    font-size: 3.25rem;
  }

  .services-grid,
  .process-grid,
  .reviews-grid,
  .review-stats {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-step,
  .review-card {
    min-height: auto;
  }

  .review-card-top {
    flex-direction: column;
    margin-bottom: 1.45rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .animated-heading {
    font-size: 2.75rem;
  }
}

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

  .review-card {
    transform: none !important;
  }
}
