*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #0a0a0a;
}

body {
  background: #0a0a0a;
  color: #fff;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* cursor */
#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

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

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

.reveal-d4 {
  transition-delay: 0.32s;
}

/* noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

section,
header,
footer {
  position: relative;
  z-index: 1;
}

/* header */
#site-header {
  position: fixed;
  backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
}

#site-header.scrolled {
  background: rgb(10 10 10 / 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* nav links */
.nav-link {
  position: relative;
  color: #a3a3a3;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.22s;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #4ade80;
  transition: width 0.28s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.hero-mobile {
  padding-inline: 2rem !important;
}

/* buttons */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #4ade80;
  color: #0a0a0a;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.18s,
    box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-accent:hover {
  background: #6ee7a0;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.28);
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #2a2a2a;
  color: #fff;
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  transition:
    border-color 0.22s,
    color 0.22s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: #4ade80;
  color: #4ade80;
}

/* mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  background: #111;
  border-top: 1px solid #1f1f1f;
  padding: 1.5rem 1.5rem 2rem;
}

#mobile-menu.open {
  display: flex;
}

/* hamburger spans */
#hb-top,
#hb-mid,
#hb-bot {
  display: block;
  height: 1px;
  background: #fff;
  transition:
    transform 0.28s ease,
    opacity 0.2s ease,
    width 0.28s ease;
}

#hb-top {
  width: 24px;
}

#hb-mid {
  width: 24px;
}

#hb-bot {
  width: 16px;
  align-self: flex-end;
}

#hamburger.active #hb-top {
  transform: translateY(5px) rotate(45deg);
}

#hamburger.active #hb-mid {
  opacity: 0;
  transform: scaleX(0);
}

#hamburger.active #hb-bot {
  width: 24px;
  transform: translateY(-5px) rotate(-45deg);
}

/* cards */
.svc-card {
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: 2.25rem;
  background: #0d0d0d;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.svc-card:hover {
  border-color: #4ade80;
  box-shadow: 0 0 28px rgba(74, 222, 128, 0.06);
}

.svc-card:hover .card-num {
  color: #4ade80;
}

/* process blocks */
.proc-block {
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: 2rem;
  background: #0d0d0d;
  transition: border-color 0.3s;
}

.proc-block:hover {
  border-color: rgba(74, 222, 128, 0.3);
}

/* marquee */
.marquee-wrap {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

/* eye blink */
.eye-pupil {
  animation: blink 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes blink {

  0%,
  44%,
  56%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.06);
  }
}

.hr-line {
  border: none;
  border-top: 1px solid #1f1f1f;
}

/* inputs */
.field {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 3px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

.field::placeholder {
  color: #8a8a8a;
}

.field:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35);
}

/* visible keyboard focus for all interactive elements */
a:focus-visible,
button:focus-visible,
.field:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* ══════ hero — aurora glow / scan line / precision grid ══════ */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* faint blueprint-style grid, fading toward the edges */
.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}

/* soft drifting color blobs — gently lit rather than painted on, so the photo stays legible */
.hero-glow {
  position: absolute;
  width: min(50vw, 600px);
  height: min(50vw, 600px);
  border-radius: 50%;
  filter: blur(140px);
  mix-blend-mode: soft-light;
  will-change: transform;
}

.hero-glow-a {
  top: -34%;
  right: -26%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, transparent 68%);
  animation: hero-drift-a 24s ease-in-out infinite alternate;
}

.hero-glow-b {
  bottom: -38%;
  left: -28%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.32) 0%, transparent 68%);
  animation: hero-drift-b 28s ease-in-out infinite alternate;
}

@keyframes hero-drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-6%, 8%) scale(1.18);
  }
}

@keyframes hero-drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(8%, -6%) scale(1.12);
  }
}

/* a slow "scan" beam sweeping down — nods to O.K.O's eye mark and the "olhar clínico" copy */
.hero-scanline {
  position: absolute;
  left: 6%;
  right: 6%;
  top: -2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.75) 45%, rgba(74, 222, 128, 0.75) 55%, transparent);
  box-shadow: 0 0 16px 1px rgba(74, 222, 128, 0.55);
  opacity: 0;
  animation: hero-scan 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hero-scan {
  0% {
    top: -2%;
    opacity: 0;
  }

  6% {
    opacity: 0.8;
  }

  46% {
    opacity: 0.8;
  }

  54% {
    top: 98%;
    opacity: 0;
  }

  100% {
    top: 98%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .hero-glow,
  .hero-scanline {
    animation: none;
  }

  .hero-scanline {
    display: none;
  }
}

@media (max-width: 1024px) {
  section#hero {
    padding-block: 0 !important;
  }

  div#compare-grid {
    text-align: center;
  }
}