:root {
  color-scheme: dark;
  --black: #070707;
  --ink: #f7f7f7;
  --muted: rgba(247, 247, 247, 0.68);
  --faint: rgba(247, 247, 247, 0.12);
  --line: rgba(247, 247, 247, 0.16);
  --chrome: #d8d8dc;
  --violet: #8c5cff;
  --cyan: #16e6ff;
  --magenta: #ff4ecf;
  --gold: #ffd36a;
  --mx: 50%;
  --my: 35%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -5;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 78, 207, 0.2), transparent 28%, rgba(22, 230, 255, 0.12) 55%, transparent 74%),
    linear-gradient(245deg, rgba(255, 211, 106, 0.18), transparent 34%, rgba(140, 92, 255, 0.16) 68%, transparent 90%),
    #070707;
  background-size: 150% 150%, 140% 140%, auto;
  animation: gradient-drift 16s ease-in-out infinite alternate;
}

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

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

.light-field {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    conic-gradient(from 140deg at var(--mx) var(--my), transparent 0deg, rgba(22, 230, 255, 0.16) 72deg, rgba(255, 78, 207, 0.2) 130deg, transparent 196deg, rgba(255, 211, 106, 0.14) 246deg, transparent 360deg),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(0, 0, 0, 0.5));
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: field-shift 10s ease-in-out infinite alternate;
}

.grid-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
  opacity: 0.18;
  transform: perspective(900px) rotateX(58deg) translateY(-18vh) scale(1.4);
  transform-origin: top center;
}

.site-shell {
  position: relative;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px clamp(18px, 3vw, 42px) 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 74px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px max(clamp(18px, 3vw, 42px), calc((100vw - 1480px) / 2 + clamp(18px, 3vw, 42px)));
  border-bottom: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header[data-scrolled="true"] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 7, 0.58);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.header-logo img {
  width: 238px;
  height: auto;
}

.primary-action,
.secondary-action {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(90svh - 88px);
  padding: clamp(76px, 9vw, 140px) 0 clamp(42px, 6vw, 72px);
  overflow: visible;
}

.hero-tiles {
  position: absolute;
  top: clamp(-264px, -17.6vh, -176px);
  right: clamp(-760px, -46vw, -460px);
  z-index: 0;
  width: clamp(1180px, 108vw, 1720px);
  height: clamp(760px, 72vw, 1120px);
  opacity: 0;
  --spline-scale-a: 0.8;
  --spline-scale-b: 0.84;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) rotate(-1deg) scale(var(--spline-scale-a));
  transform-origin: 58% 42%;
  animation: hero-tiles-float 9s ease-in-out infinite alternate;
  transition: opacity 900ms ease;
}

.hero-tiles.is-loaded {
  opacity: 0.72;
}

.hero-tiles::before {
  position: absolute;
  inset: 18% 12% 12% 20%;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22, 230, 255, 0.2), rgba(255, 78, 207, 0.18) 42%, transparent 70%);
  filter: blur(44px);
  opacity: 0.34;
}

.hero-tiles canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  filter: saturate(1.24) contrast(1.12) brightness(1.18);
  mix-blend-mode: screen;
}

.hero-section > :not(.hero-tiles) {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: clamp(24px, 4vw, 46px);
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 750;
  text-transform: uppercase;
}

.hero-kicker span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.coming-soon {
  width: fit-content;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 850;
  text-transform: uppercase;
}

.hero-section h1 {
  position: relative;
  width: 1120px;
  max-width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 6.2vw, 96px);
  font-weight: 880;
  line-height: 0.92;
}

.hero-section h1::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--gold), transparent);
  transform-origin: left;
  animation: line-scan 4.8s ease-in-out infinite;
}

.hero-copy {
  width: 740px;
  max-width: 100%;
  margin: clamp(36px, 4vw, 54px) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 760;
  line-height: 1;
}

.hero-copy::first-line {
  background: linear-gradient(110deg, #ffffff, #b9c8ff 42%, #63f0ff 64%, #ffd36a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text {
  background: linear-gradient(110deg, #ffffff, #b9c8ff 42%, #63f0ff 64%, #ffd36a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-ready .coming-soon[data-reveal] {
  transition-delay: 80ms;
}

.reveal-ready .hero-section h1[data-reveal] {
  transition-delay: 150ms;
}

.reveal-ready .hero-copy[data-reveal] {
  transition-delay: 220ms;
}

.reveal-ready .hero-actions[data-reveal] {
  transition-delay: 300ms;
}

.reveal-ready .hero-meta[data-reveal] {
  transition-delay: 380ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 38px);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-action {
  border: 1px solid transparent;
  background: linear-gradient(110deg, #ffffff, #d8d8dc);
  color: #080808;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  margin-right: 9px;
  flex: 0 0 auto;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 1120px;
  max-width: 100%;
  margin-top: clamp(46px, 7vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.hero-meta span {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 24px 22px;
  background: rgba(7, 7, 7, 0.58);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 760;
  text-transform: uppercase;
}

.services-section {
  scroll-margin-top: 96px;
  padding: clamp(54px, 8vw, 110px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.section-heading p,
.contact-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2,
.contact-content h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(30px, 5.4vw, 86px);
  font-weight: 820;
  line-height: 0.94;
}

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

.service-item {
  position: relative;
  min-height: 250px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.service-item::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 42%, rgba(22, 230, 255, 0.07));
  opacity: 0;
  transition: opacity 280ms ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item span {
  position: relative;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 850;
}

.service-item h3 {
  position: relative;
  margin: 74px 0 16px;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
}

.service-item p {
  position: relative;
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.contact-section {
  scroll-margin-top: 96px;
  padding: clamp(58px, 8vw, 118px) 0 clamp(32px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(290px, 0.42fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.contact-details {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-whatsapp .whatsapp-icon {
  width: 26px;
  height: 26px;
  margin: 0;
}

.contact-lines {
  display: grid;
  gap: 4px;
}

.contact-line {
  width: fit-content;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.contact-details address {
  display: grid;
  gap: 4px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-style: normal;
  line-height: 1.4;
}

.footer-note {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

@keyframes gradient-drift {
  0% {
    background-position: 0% 50%, 100% 50%, 0 0;
  }
  100% {
    background-position: 100% 50%, 0% 50%, 0 0;
  }
}

@keyframes field-shift {
  0% {
    opacity: 0.52;
    transform: translate3d(-1.5vw, -1vh, 0);
  }
  100% {
    opacity: 0.82;
    transform: translate3d(1.5vw, 1vh, 0);
  }
}

@keyframes line-scan {
  0%,
  100% {
    transform: scaleX(0.24);
    opacity: 0.42;
  }
  48% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes hero-tiles-float {
  0% {
    transform: translate3d(0, -10px, 0) rotate(-1.2deg) scale(var(--spline-scale-a));
  }
  100% {
    transform: translate3d(-24px, 16px, 0) rotate(1.6deg) scale(var(--spline-scale-b));
  }
}

@media (max-width: 920px) {
  .site-shell {
    padding-inline: 16px;
  }

  .site-header {
    min-height: 66px;
  }

  .header-logo img {
    width: 211px;
  }

  .hero-tiles {
    top: clamp(10px, 3vh, 28px);
    right: clamp(-460px, -56vw, -230px);
    width: min(190vw, 900px);
    height: min(128vw, 620px);
    --spline-scale-a: 0.74;
    --spline-scale-b: 0.78;
  }

  .hero-tiles.is-loaded {
    opacity: 0.34;
  }

  .hero-section {
    min-height: calc(88svh - 88px);
  }

  .hero-copy {
    line-height: 1.02;
  }

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

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

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

@media (max-width: 620px) {
  .site-header {
    min-height: 60px;
    padding-block: 10px;
  }

  .header-logo img {
    width: 170px;
  }

  .hero-section {
    padding-top: 54px;
  }

  .hero-kicker {
    gap: 8px;
  }

  .hero-kicker span {
    min-height: 28px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .hero-section h1 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 0.9;
  }

  .hero-copy {
    font-size: clamp(22px, 6.9vw, 30px);
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-meta,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta span {
    min-height: 62px;
    padding: 18px;
  }

  .service-item {
    min-height: 220px;
  }
}

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-tiles {
    display: none;
  }
}
