:root {
  /* Palette: near-black + cool charcoal + aqua accent (not the ref cyan); warm string accent (not the ref orange) */
  --bg-deep: #030303;
  --bg-mid: #0a0a0d;
  --bg-elevated: #101014;
  --text: #fafafa;
  --text-secondary: #a1a1ad;
  --text-muted: #71717b;
  --accent: #38e8d4;
  --accent-strong: #0d9488;
  --accent-bright: #5ff5e4;
  --accent-glow: rgba(56, 232, 212, 0.24);
  --accent-glow-strong: rgba(45, 212, 191, 0.42);
  --sky: #38bdf8;
  --sky-glow: rgba(56, 189, 248, 0.14);
  --warm: #fbbf24;
  --warm-muted: #d97706;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.13);
  --radius-lg: 22px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing: generous vertical rhythm (inspired by airy marketing heroes, not pixel-matched) */
  --space-3xs: 0.375rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: clamp(3.25rem, 8vw, 5.5rem);
  --space-section: clamp(2.75rem, 6vw, 4.5rem);

  /* Type scale */
  --text-code: 0.8125rem;
  --text-body: 1.0625rem;
  --text-body-sm: 0.9375rem;
  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.65;
  --tracking-tight: -0.038em;
  --tracking-body: -0.011em;
  --tracking-wide: 0.12em;
  --content-max: 38rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100dvh, 940px);
  display: flex;
  align-items: center;
  padding: var(--space-3xl) clamp(1.5rem, 5vw, 4rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(125vw, 1080px);
  height: min(62vw, 560px);
  top: 42%;
  left: 50%;
  translate: -50% -62%;
  background: radial-gradient(
    ellipse 52% 42% at 50% 50%,
    rgba(56, 232, 212, 0.09) 0%,
    rgba(56, 189, 248, 0.05) 45%,
    transparent 70%
  );
  filter: blur(64px);
  opacity: 0.9;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 85% at 50% -8%, rgba(56, 232, 212, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 88% 12%, var(--sky-glow), transparent 50%),
    radial-gradient(ellipse 50% 38% at 8% 70%, rgba(56, 232, 212, 0.04), transparent 48%),
    linear-gradient(180deg, #0e0e12 0%, var(--bg-mid) 38%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 232, 212, 0.04) 50%,
    transparent 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(56, 232, 212, 0.06) 0%, transparent 14%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hero__grid-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  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='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.75rem, 6.5vw, 5.75rem);
  align-items: center;
}

.hero__content {
  position: relative;
  max-width: var(--content-max);
}

.hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 118%;
  height: 88%;
  top: 2%;
  left: -10%;
  background: radial-gradient(ellipse 72% 62% at 28% 38%, rgba(56, 232, 212, 0.07), transparent 66%);
  filter: blur(44px);
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 420px) {
  .hero__code {
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero__content {
    max-width: none;
  }

  .hero__bullets {
    align-items: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    max-width: 440px;
    margin-inline: auto;
  }

  .hero__meta {
    text-align: left;
    margin-inline: auto;
    max-width: 22rem;
  }

  .hero__bullets li {
    justify-content: flex-start;
  }

  .hero__content::before {
    left: 50%;
    translate: -50% 0;
    width: 140%;
  }
}

.hero__code-badge {
  width: fit-content;
  margin: 0 0 clamp(1.25rem, 2.8vw, 1.75rem);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-code);
  font-weight: 500;
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px -18px rgba(56, 232, 212, 0.12);
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 0.05s forwards;
}

.hero__code {
  display: block;
  white-space: nowrap;
}

.hero__code-muted {
  color: var(--text-muted);
  font-weight: 400;
}

.hero__code-kw {
  color: var(--accent-bright);
  font-weight: 500;
}

.hero__code-fn {
  color: var(--text);
  font-weight: 500;
}

.hero__code-str {
  color: var(--warm);
  font-weight: 500;
  text-shadow: 0 0 28px var(--warm-glow);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, 4.6vw, 3.5rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 clamp(1.35rem, 2.8vw, 1.85rem);
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 0 80px rgba(56, 232, 212, 0.1);
  opacity: 0;
  animation: fade-up 0.75s var(--ease-out) 0.12s forwards;
}

.hero__title-soft {
  font-weight: 500;
  color: var(--text-secondary);
}

.hero__lead {
  margin: 0 0 var(--space-section);
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.125rem);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--text-secondary);
  opacity: 0;
  animation: fade-up 0.75s var(--ease-out) 0.2s forwards;
}

@media (max-width: 900px) {
  .hero__lead {
    max-width: 42ch;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
  }

  .hero__code-badge {
    margin-inline: auto;
  }
}

.kw {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-shadow:
    0 0 42px rgba(56, 232, 212, 0.35),
    0 0 80px rgba(56, 189, 248, 0.12);
}

.hero__meta {
  position: relative;
  margin: 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 58%);
  box-shadow:
    0 -36px 72px -44px rgba(56, 232, 212, 0.1),
    0 -24px 56px -40px var(--sky-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  opacity: 0;
  animation: fade-up 0.75s var(--ease-out) 0.26s forwards;
}

.hero__meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 232, 212, 0.12) 22%,
    rgba(56, 232, 212, 0.55) 48%,
    rgba(56, 189, 248, 0.45) 58%,
    rgba(56, 232, 212, 0.12) 78%,
    transparent 100%
  );
  box-shadow: 0 0 22px 1px rgba(56, 232, 212, 0.14);
  pointer-events: none;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(1.35rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-body-sm);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.hero__bullet-text {
  padding-top: 0.1em;
}

.hero__bullet-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.12em;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(56, 232, 212, 0.12), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(56, 232, 212, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 0 18px -3px rgba(56, 232, 212, 0.12);
  position: relative;
}

.hero__bullet-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.125rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.btn--primary {
  color: #041a17;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: linear-gradient(165deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-strong) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 0 0 1px rgba(45, 212, 191, 0.2),
    0 14px 44px -10px var(--accent-glow),
    0 0 52px -14px var(--sky-glow),
    0 6px 20px rgba(0, 0, 0, 0.48);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 20px 56px -8px rgba(56, 232, 212, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.52);
}

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

.btn--secondary {
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-color: rgba(56, 232, 212, 0.28);
  backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 36px -18px rgba(56, 232, 212, 0.1),
    0 8px 28px -20px var(--sky-glow);
}

.btn--secondary:hover {
  color: var(--text);
  border-color: rgba(95, 245, 228, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(56, 232, 212, 0.05));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 44px -14px rgba(56, 232, 212, 0.16),
    0 10px 32px -16px var(--sky-glow);
  transform: translateY(-1px);
}

.btn__arrow {
  font-size: 1.05em;
  transition: transform 0.2s var(--ease-out);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.hero__visual {
  position: relative;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.22s forwards;
}

.hero__visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(120, 250, 230, 0.42) 0%,
    rgba(56, 189, 248, 0.28) 48%,
    rgba(56, 232, 212, 0.18) 78%,
    rgba(13, 148, 136, 0.12) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 0 120px -22px rgba(56, 232, 212, 0.2),
    0 0 96px -28px var(--sky-glow),
    0 24px 64px -32px rgba(0, 0, 0, 0.55);
}

.hero__visual-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14%;
  border-radius: calc(var(--radius-lg) + 12px);
  background:
    radial-gradient(ellipse 65% 55% at 50% 18%, rgba(56, 232, 212, 0.26), transparent 62%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(56, 189, 248, 0.18), transparent 58%);
  filter: blur(40px);
  opacity: 0.72;
  pointer-events: none;
}

.hero__visual-inner {
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    radial-gradient(ellipse 90% 70% at 50% -15%, rgba(56, 232, 212, 0.1), transparent 52%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(56, 189, 248, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 32%),
    linear-gradient(165deg, rgba(18, 20, 28, 0.99) 0%, rgba(4, 4, 8, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 0 48px -20px rgba(56, 232, 212, 0.07) inset,
    0 28px 56px -36px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.hero__visual-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.hero__visual-badge {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__visual-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(56, 232, 212, 0.16), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 40px -8px rgba(56, 232, 212, 0.22),
    0 0 44px -12px var(--sky-glow);
  display: grid;
  place-items: center;
}

.hero__visual-icon svg {
  width: 38px;
  height: 38px;
  opacity: 0.92;
}

.hero__visual-caption {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  max-width: 26ch;
}

.hero__visual-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero__visual-dots span:first-child {
  background: #fb7185;
}
.hero__visual-dots span:nth-child(2) {
  background: #fcd34d;
}
.hero__visual-dots span:nth-child(3) {
  background: #6ee7b7;
}

.hero__orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    radial-gradient(circle, var(--accent-glow-strong) 0%, rgba(56, 232, 212, 0.1) 38%, transparent 68%);
  filter: blur(52px);
  top: -12%;
  right: -8%;
  pointer-events: none;
  animation: pulse-soft 7s ease-in-out infinite;
  box-shadow: 0 0 120px 20px rgba(56, 232, 212, 0.06);
}

.hero__orb--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 65% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0.08) 42%, transparent 72%);
  filter: blur(52px);
  bottom: -8%;
  left: -10%;
  top: auto;
  right: auto;
  animation-delay: -3.5s;
  box-shadow: 0 0 100px 24px var(--sky-glow);
}

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

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.06);
  }
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* FAZ PREENCHER TODO O QUADRADO */
  display: block;
}

.hero__visual-inner {
  height: 100%;
}