:root {
  --bg: #06131f;
  --bg-soft: #0c1f31;
  --surface: rgba(10, 22, 35, 0.78);
  --surface-strong: rgba(12, 28, 44, 0.94);
  --surface-light: rgba(255, 255, 255, 0.06);
  --text: #ebf4fb;
  --muted: #9bb4c9;
  --line: rgba(132, 191, 231, 0.18);
  --primary: #53d6d1;
  --primary-strong: #27b5dd;
  --accent: #9effd7;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 181, 221, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(83, 214, 209, 0.14), transparent 25%),
    linear-gradient(180deg, #06131f 0%, #07111b 42%, #050b12 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 15, 24, 0.45);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 15, 24, 0.82);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  width: min(240px, 42vw);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  min-height: 54px;
  padding: 0 1.4rem;
  color: #04111a;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 16px 35px rgba(83, 214, 209, 0.25);
}

.btn-secondary,
.btn-outline {
  min-height: 54px;
  padding: 0 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-sm {
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0 0 -120px 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.82) 84%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.82) 84%, transparent 100%);
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  mix-blend-mode: screen;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  animation: float 10s ease-in-out infinite;
}

.orb-a {
  top: 5%;
  left: -5%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(39, 181, 221, 0.28), transparent 68%);
}

.orb-b {
  right: 8%;
  top: 12%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(158, 255, 215, 0.16), transparent 70%);
  animation-delay: -2s;
}

.orb-c {
  right: -4%;
  bottom: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(83, 214, 209, 0.16), transparent 72%);
  animation-delay: -4s;
}

.grid-glow {
  position: absolute;
  inset: 10% 6% auto;
  height: 66%;
  border-radius: 40px;
  background-image:
    linear-gradient(rgba(124, 183, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 183, 219, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.hero-panel,
.trust-strip,
.service-card,
.timeline-item,
.insight-card,
.stat-panel,
.contact-card,
.insight-block,
.section-copy {
  will-change: transform, opacity;
}

.eyebrow,
.mini-label,
.metric-label,
.timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.eyebrow::before,
.mini-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 18px rgba(158, 255, 215, 0.4);
}

.hero h1,
.section h2 {
  margin: 1rem 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.25rem);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.hero-lead,
.section-copy p,
.service-card p,
.timeline-item p,
.highlight-copy p,
.contact-copy p,
.metric-card p,
.trust-grid p,
.insight-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  max-width: 62ch;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #d8eaf7;
}

.hero-panel {
  position: relative;
  min-height: 540px;
}

.panel-card-main {
  position: relative;
  height: 100%;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(158, 255, 215, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(8, 20, 31, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-topline,
.stat-row,
.footer-wrap,
.contact-list,
.footer-brand,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-topline {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-topline,
.metric-stack,
.signal-bars {
  position: relative;
  z-index: 1;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #50f3a2;
  box-shadow: 0 0 16px rgba(80, 243, 162, 0.55);
}

.metric-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.service-card,
.timeline-item,
.insight-card,
.stat-panel,
.contact-card,
.trust-strip {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.metric-card strong,
.service-card h3,
.timeline-item h3,
.insight-card h3,
.contact-copy h2,
.highlight-copy h2 {
  display: block;
  margin-top: 0.7rem;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.8rem;
  margin-top: 2rem;
  height: 130px;
}

.signal-bars span {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(158, 255, 215, 0.25), rgba(39, 181, 221, 0.92));
  animation: equalize 1.8s ease-in-out infinite;
}

.signal-bars span:nth-child(1) { height: 45%; animation-delay: -0.1s; }
.signal-bars span:nth-child(2) { height: 80%; animation-delay: -0.4s; }
.signal-bars span:nth-child(3) { height: 60%; animation-delay: -0.7s; }
.signal-bars span:nth-child(4) { height: 95%; animation-delay: -0.2s; }
.signal-bars span:nth-child(5) { height: 55%; animation-delay: -0.5s; }
.signal-bars span:nth-child(6) { height: 72%; animation-delay: -0.3s; }

.floating-note {
  position: absolute;
  max-width: 250px;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(158, 255, 215, 0.2);
  background: rgba(8, 20, 31, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.floating-note span {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.35;
}

.floating-note-top {
  top: 1rem;
  right: -0.5rem;
}

.floating-note-bottom {
  left: -1rem;
  bottom: 2rem;
}

.trust-strip {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 1100px);
  margin: -1rem auto 0;
  border-radius: 28px;
  padding: 1.4rem;
}

.trust-grid,
.highlight-grid,
.contact-grid,
.split-layout {
  display: grid;
  gap: 1.5rem;
}

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

.section {
  padding: 6rem 0;
}

.section-services {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: transparent;
}

.section-services::before,
.section-services::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-services::before {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 181, 221, 0.16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(158, 255, 215, 0.1), transparent 24%),
    linear-gradient(180deg, #06131f 0%, rgba(6, 19, 31, 0.88) 24%, rgba(6, 19, 31, 0.5) 52%, rgba(5, 11, 18, 0.98) 100%);
}

.section-services::after {
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 58%, rgba(5, 11, 18, 0.5) 76%, #050b12 100%),
    radial-gradient(circle at 15% 18%, rgba(158, 255, 215, 0.12), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(39, 181, 221, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(5, 11, 18, 0.82), rgba(5, 11, 18, 0.34), rgba(5, 11, 18, 0.82));
}

.section-services > .container {
  position: relative;
  z-index: 1;
}

.section-about {
  position: relative;
  z-index: 2;
}

.section-about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -150px;
  height: 240px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 19, 31, 0.96) 32%, rgba(6, 19, 31, 0.92) 58%, transparent 100%);
}

.section-about > .container {
  position: relative;
  z-index: 1;
}

.services-video-bg {
  position: absolute;
  inset: -150px 0 -140px 0;
  z-index: 0;
  opacity: 0.54;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.78) 46%, #000 58%, #000 78%, rgba(0, 0, 0, 0.56) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.78) 46%, #000 58%, #000 78%, rgba(0, 0, 0, 0.56) 88%, transparent 100%);
  transition: opacity 650ms ease;
}

.services-video-bg::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  background:
    linear-gradient(180deg, #06131f 0%, rgba(6, 19, 31, 0.92) 20%, rgba(6, 19, 31, 0.34) 46%, rgba(5, 11, 18, 0.8) 100%),
    linear-gradient(90deg, rgba(5, 11, 18, 0.92), transparent 18%, transparent 82%, rgba(5, 11, 18, 0.92));
  box-shadow: inset 0 0 160px rgba(5, 11, 18, 0.78);
}

.section-services:hover .services-video-bg {
  opacity: 0.62;
}

.services-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.95) contrast(1.08) brightness(0.78);
  transform: scale(1.06);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 48%, rgba(0, 0, 0, 0.68) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 48%, rgba(0, 0, 0, 0.68) 66%, transparent 100%);
  transition: opacity 900ms ease;
}

.services-video.is-active {
  opacity: 1;
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.section-copy p + p {
  margin-top: 1rem;
}

.insight-block {
  display: grid;
  gap: 1rem;
}

.insight-card,
.service-card,
.timeline-item,
.stat-panel,
.contact-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.card-index,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #031018;
  background: linear-gradient(135deg, var(--accent), var(--primary-strong));
}

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

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

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.service-card-data {
  --service-image: url("../img/services/analisis-de-datos.webp");
}

.service-card-software {
  --service-image: url("../img/services/soluciones-informaticas.webp");
}

.service-card-web {
  --service-image: url("../img/services/paginas-web.webp");
}

.service-card-infra {
  --service-image: url("../img/services/servidores.webp");
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.service-card::before {
  z-index: 0;
  background-image: var(--service-image);
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.95) contrast(1.08);
  transform: scale(1.04);
  transition: opacity 220ms ease, transform 220ms ease;
}

.service-card::after {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(158, 255, 215, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(6, 19, 31, 0.18), rgba(6, 19, 31, 0.76) 72%);
}

.service-card:hover::before {
  opacity: 0.42;
  transform: scale(1.08);
}

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

.service-card h3,
.timeline-item h3,
.insight-card h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.25rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2.6rem;
  isolation: isolate;
}

.section-process {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background:
    linear-gradient(180deg, #050b12 0%, rgba(5, 11, 18, 0.96) 62%, transparent 100%);
}

.section-process > .container {
  position: relative;
  z-index: 1;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: calc(12.5% - 0.5rem);
  right: calc(12.5% - 0.5rem);
  top: 0.85rem;
  height: 2px;
  pointer-events: none;
  z-index: 0;
}

.timeline::before {
  background: linear-gradient(90deg, transparent, rgba(132, 191, 231, 0.22), transparent);
}

.timeline::after {
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary-strong), transparent);
  box-shadow: 0 0 24px rgba(83, 214, 209, 0.36);
  transform-origin: left;
  animation: processFlow 5.8s ease-in-out infinite;
}

.timeline-item {
  --spot-x: 0%;
  --spot-y: -19.5rem;
  position: relative;
  z-index: 2;
  min-height: 260px;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.timeline-item:nth-child(1) {
  --spot-x: 210%;
}

.timeline-item:nth-child(2) {
  --spot-x: 105%;
}

.timeline-item:nth-child(3) {
  --spot-x: 0%;
}

.timeline-item:nth-child(4) {
  --spot-x: -105%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.timeline-item::after {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    radial-gradient(circle at 24% 18%, rgba(158, 255, 215, 0.09), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(39, 181, 221, 0.08), transparent 38%);
  opacity: 0.72;
  transition: opacity 260ms ease;
}

.timeline-item:hover {
  border-color: rgba(158, 255, 215, 0.34);
  background: rgba(12, 28, 44, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 40px rgba(83, 214, 209, 0.08);
  transform: translateY(-8px);
}

.timeline-item:hover::after {
  opacity: 0.95;
}

.timeline-item.is-spotlighting {
  z-index: 5;
  transform: translate3d(var(--spot-x), var(--spot-y), 0) scale(1.02);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 42px rgba(83, 214, 209, 0.12);
}

.timeline-item > * {
  position: relative;
  z-index: 1;
}

.timeline-step {
  width: fit-content;
  border: 1px solid rgba(158, 255, 215, 0.24);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: var(--accent);
  background: rgba(5, 15, 24, 0.58);
  box-shadow: 0 0 22px rgba(83, 214, 209, 0.12);
  animation: processPulse 3.2s ease-in-out infinite;
}

.timeline-item:nth-child(2) .timeline-step { animation-delay: 0.35s; }
.timeline-item:nth-child(3) .timeline-step { animation-delay: 0.7s; }
.timeline-item:nth-child(4) .timeline-step { animation-delay: 1.05s; }

.timeline-item h3 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.timeline-item p {
  max-width: 28ch;
}

.timeline-note {
  position: absolute;
  left: calc(100% + 1.1rem);
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  width: min(25rem, 31vw);
  color: rgba(234, 243, 250, 0.92);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 0 24px rgba(83, 214, 209, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-0.45rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.timeline-note::before {
  content: "";
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(83, 214, 209, 0.58);
}

.timeline-note-text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 0.28rem;
  vertical-align: -0.12em;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 14px rgba(83, 214, 209, 0.72);
}

.timeline-note.is-active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.timeline-note.is-active .timeline-note-text::after {
  animation: processCaretBlink 0.78s step-end infinite;
}

.section-highlight {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 2rem;
}

.section-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 38%, rgba(83, 214, 209, 0.08), transparent 28%),
    radial-gradient(circle at 78% 48%, rgba(158, 255, 215, 0.06), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(6, 19, 31, 0.34) 28%, rgba(5, 11, 18, 0.3) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 24%, #000 52%, rgba(0, 0, 0, 0.66) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 24%, #000 52%, rgba(0, 0, 0, 0.66) 78%, transparent 100%);
}

.highlight-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.stat-panel {
  position: relative;
  display: grid;
  gap: 1rem;
}

.stat-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(158, 255, 215, 0.12), transparent);
  opacity: 0;
  animation: panelBreath 6s ease-in-out infinite;
}

.stat-panel > * {
  position: relative;
  z-index: 1;
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-glow-x: 50%;
  --tilt-glow-y: 50%;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--tilt-glow-x) var(--tilt-glow-y), rgba(158, 255, 215, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tilt-card.is-tilting {
  border-color: rgba(158, 255, 215, 0.28);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.44), 0 0 44px rgba(83, 214, 209, 0.1);
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

.stat-row {
  position: relative;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.stat-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 255, 215, 0.52), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  animation: statLineFocus 6s ease-in-out infinite;
}

.stat-row:nth-child(2)::after {
  animation-delay: 1.2s;
}

.stat-row:nth-child(3)::after {
  animation-delay: 2.4s;
}

.stat-row:last-child {
  border-bottom: 0;
}

.stat-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.stat-row span {
  color: var(--muted);
  text-align: right;
  max-width: 26ch;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contact-list {
  margin-top: 2rem;
  flex-direction: column;
  align-items: flex-start;
}

.contact-list a {
  font-size: 1.05rem;
  color: var(--text);
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form label {
  display: grid;
  gap: 0.5rem;
}

.lead-form span {
  color: #d8eaf7;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(158, 255, 215, 0.5);
  box-shadow: 0 0 0 4px rgba(83, 214, 209, 0.1);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.checkbox-row span,
.form-note {
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-wrap {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-brand,
.footer-meta {
  flex-wrap: wrap;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-brand p,
.footer-meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.site-version {
  color: rgba(155, 180, 201, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.timeline .timeline-item.reveal.is-visible {
  transition-delay: 0ms;
}

.timeline .timeline-item.reveal.is-visible.is-spotlighting {
  z-index: 5;
  transform: translate3d(var(--spot-x), var(--spot-y), 0) scale(1.02);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 42px rgba(83, 214, 209, 0.12);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}

@keyframes equalize {
  0%, 100% { transform: scaleY(0.75); opacity: 0.78; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes processFlow {
  0% {
    transform: scaleX(0);
    opacity: 0.2;
  }
  42%,
  68% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.18;
  }
}

@keyframes processPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(83, 214, 209, 0.12);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 28px rgba(158, 255, 215, 0.28);
    transform: translateY(-1px);
  }
}

@keyframes processFlowVertical {
  0% {
    transform: scaleY(0);
    opacity: 0.2;
  }
  42%,
  68% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0.18;
  }
}

@keyframes processCaretBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes panelBreath {
  0%,
  100% {
    opacity: 0;
  }
  48%,
  62% {
    opacity: 1;
  }
}

@keyframes statLineFocus {
  0%,
  18% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  28%,
  46% {
    opacity: 1;
    transform: scaleX(1);
  }
  64%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-layout,
  .highlight-grid,
  .contact-grid,
  .services-grid,
  .timeline,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    min-height: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding-left: 3rem;
  }

  .timeline-item {
    animation: none;
  }

  .timeline-note {
    display: none;
  }

  .timeline::before,
  .timeline::after {
    left: 24px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .timeline::after {
    transform-origin: top;
    animation-name: processFlowVertical;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(6, 19, 31, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .hero,
  .section {
    padding: 4.5rem 0;
  }

  .hero-grid,
  .split-layout,
  .highlight-grid,
  .contact-grid,
  .services-grid,
  .timeline,
  .trust-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

  .panel-card-main {
    min-height: 0;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .trust-strip {
    margin-top: 1rem;
  }

  .footer-wrap,
  .panel-topline,
  .stat-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-row span {
    text-align: left;
  }

  .timeline {
    padding-top: 0;
    padding-left: 2.5rem;
  }

  .timeline-item {
    min-height: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .services-video-bg video {
    display: none;
  }

  .timeline::after,
  .timeline-item,
  .timeline-step,
  .timeline-note,
  .timeline-note-text,
  .timeline-note-text::after,
  .stat-panel::before,
  .stat-row::after {
    animation: none !important;
  }
}
