:root {
  color-scheme: dark;
  --bg: #020711;
  --text: #f7f4ff;
  --muted: rgba(232, 238, 255, 0.72);
  --line: rgba(186, 217, 255, 0.28);
  --glow: rgba(126, 213, 255, 0.35);
  --warm: #ffd7a0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow: hidden;
}

a { color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 47%, rgba(96, 179, 255, .16), transparent 34%),
    var(--bg);
}

.hero__video {
  position: absolute;
  inset: -2%;
  z-index: -4;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04) brightness(.82);
  transform: scale(1.02);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(1, 5, 14, .84) 0%, rgba(1, 5, 14, .52) 33%, rgba(1, 5, 14, .10) 68%, rgba(1, 5, 14, .28) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12), transparent 50%, rgba(0,0,0,.46));
}

.hero__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 66% 50%, transparent 0 22%, rgba(1, 5, 14, .12) 54%, rgba(1, 5, 14, .50) 100%);
}

.hero__stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(139,213,255,.65) 0 1px, transparent 1.4px);
  background-size: 160px 160px, 230px 230px;
  background-position: 12px 18px, 74px 41px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.8) 45%, transparent 78%);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__content {
  position: absolute;
  left: clamp(28px, 7vw, 112px);
  top: 50%;
  width: min(520px, calc(100vw - 56px));
  transform: translateY(-50%);
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: clamp(.68rem, 1vw, .82rem);
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(211, 228, 255, .74);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7.4vw, 7.7rem);
  font-weight: 400;
  line-height: .83;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 0 35px rgba(126, 213, 255, .10);
}

h1 span {
  color: var(--warm);
  text-shadow: 0 0 34px rgba(255, 177, 101, .14);
}

.hero__copy {
  max-width: 430px;
  margin: 26px 0 30px;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: var(--muted);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px 13px 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 11, 28, .52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 35px rgba(0,0,0,.22),
    0 0 0 0 var(--glow);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.contact-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 228, 255, .65);
  background: rgba(11, 24, 48, .72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 16px 44px rgba(0,0,0,.30),
    0 0 28px var(--glow);
  outline: none;
}

.contact-button:hover svg,
.contact-button:focus-visible svg { transform: translateX(3px); }

.hero__footer {
  position: absolute;
  right: clamp(22px, 4vw, 56px);
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(224, 234, 255, .48);
}

.hero__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes drift {
  from { transform: translate3d(-8px, 0, 0); opacity: .24; }
  to   { transform: translate3d(10px, -8px, 0); opacity: .40; }
}

@media (max-width: 760px) {
  body { overflow: auto; }

  .hero__video {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 61% center;
    transform: none;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(1,5,14,.18) 0%, rgba(1,5,14,.30) 34%, rgba(1,5,14,.80) 76%, rgba(1,5,14,.94) 100%),
      linear-gradient(90deg, rgba(1,5,14,.25), transparent 65%);
  }

  .hero__content {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 86px;
    width: auto;
    transform: none;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
    line-height: .88;
  }

  .hero__copy {
    max-width: 34rem;
    margin: 20px 0 24px;
    line-height: 1.55;
  }

  .hero__footer {
    left: 24px;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(1,5,14,.08), rgba(1,5,14,.72)),
      url("assets/universo_amniotico_poster.webp") center / cover no-repeat;
  }
  .hero__stars { animation: none; }
  .contact-button, .contact-button svg { transition: none; }
}
