:root {
  --bg: #132a13; /* tom verde escuro principal */
  --bg-deep: #31572c; /* fundo mais profundo */
  --surface: rgba(255, 255, 255, 0.02);
  --text: #dceee8; /* mantém legibilidade similar ao original */
  --muted: #a3b6ad;
  --accent: #9ed8c2; /* acento suave esverdeado */
  --line: rgba(156, 217, 194, 0.18);
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(158, 216, 194, 0.10), transparent 24rem),
    linear-gradient(135deg, #0f3f31 0%, var(--bg) 48%, #082018 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  width: min(92vw, 980px);
  padding: clamp(2rem, 6vw, 5.5rem);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  box-shadow:
    0 40px 100px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  animation: reveal 1.15s cubic-bezier(.2,.75,.2,1) both;
}

.hero__title {
  margin: 0;
  font-size: clamp(3.3rem, 10vw, 8.8rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(158,216,194,0.04);
}

.hero__subtitle {
  margin: clamp(1.1rem, 2.8vw, 2rem) 0 0;
  font-size: clamp(0.95rem, 2vw, 1.45rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: fade-up 0.9s 0.35s ease both;
}

.hero__line {
  width: clamp(3rem, 8vw, 6rem);
  height: 1px;
  margin: clamp(1.8rem, 4vw, 3rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: center;
  animation: line-grow 1s 0.65s ease both;
}

.eyebrow {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.eyebrow span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(158,216,194,0.55);
  animation: pulse 2.8s ease-in-out infinite;
}

.eyebrow span:nth-child(2) {
  animation-delay: 0.3s;
}

.eyebrow span:nth-child(3) {
  animation-delay: 0.7s;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient--one {
  width: min(42vw, 520px);
  aspect-ratio: 1;
  top: -20%;
  right: -8%;
  background: radial-gradient(circle, rgba(158,216,194,0.15), transparent 68%);
  animation: drift-one 13s ease-in-out infinite alternate;
}

.ambient--two {
  width: min(36vw, 430px);
  aspect-ratio: 1;
  left: -10%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(120,106,98,0.12), rgba(115,150,130,0.08) 40%, transparent 70%);
  animation: drift-two 16s ease-in-out infinite alternate;
}

.corner {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0.45;
}

.corner--top-left {
  top: 24px;
  left: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.corner--bottom-right {
  right: 24px;
  bottom: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-grow {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes drift-one {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-5vw,7vh,0); }
}

@keyframes drift-two {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(6vw,-5vh,0); }
}

@media (max-width: 640px) {
  .hero__content {
    width: calc(100vw - 2rem);
    padding: 3.25rem 1.25rem;
  }

  .hero__title {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .hero__subtitle {
    max-width: 20rem;
    margin-inline: auto;
    line-height: 1.6;
  }

  .corner {
    width: 34px;
    height: 34px;
  }

  .corner--top-left {
    top: 14px;
    left: 14px;
  }

  .corner--bottom-right {
    right: 14px;
    bottom: 14px;
  }
}

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