/* ============================================================
   @eusouisraellopes — hero dark / video / motion (vanilla)
   ============================================================ */
:root {
  --bg: #000000;
  --panel: rgba(15, 16, 22, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.70);
  --dim: rgba(255, 255, 255, 0.42);
  --accent: #3054ff;
  --accent-hover: #2040e0;
  --grad-end: #b4c0ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

.mono { font-family: "Instrument Sans", monospace; font-feature-settings: "tnum"; letter-spacing: .14em; }
.dim { color: var(--dim); }
.grad {
  background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--grad-end) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== BACKGROUND ===================== */
.bg-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
  animation: slowZoom 40s ease-in-out infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }

.bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,.35), rgba(0,0,0,.78) 70%, #000 100%);
  backdrop-filter: blur(2px);
}
.blob { position: absolute; border-radius: 50%; filter: blur(120px); mix-blend-mode: screen; pointer-events: none; }
.blob-a {
  top: -20%; left: 20%; width: 600px; height: 600px;
  background: rgba(30, 58, 138, .35);
  animation: drift1 18s var(--ease) infinite;
}
.blob-b {
  bottom: -10%; right: 20%; width: 500px; height: 500px;
  background: rgba(49, 46, 129, .35);
  animation: drift2 22s var(--ease) infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-30px) scale(1.1); } }

/* spotlight follows mouse */
.spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%),
    rgba(48, 84, 255, .16), transparent 60%);
  transition: background .15s linear;
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== NAVBAR ===================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: transparent;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,.55); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  letter-spacing: -.01em;
}
.brand .sun { color: #fff; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand.big { font-size: 1.25rem; }

.nav-center { display: none; gap: 30px; }
.nav-center a {
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  position: relative; transition: color .25s;
}
.nav-center a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: #fff; transition: width .3s var(--ease);
}
.nav-center a:hover { color: #fff; }
.nav-center a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-badge { font-size: .66rem; color: var(--muted); }
.btn-pill-sm {
  background: #fff; color: #000; text-decoration: none;
  font-weight: 600; font-size: .85rem; padding: 9px 18px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-pill-sm:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,255,255,.22); }

@media (min-width: 860px) { .nav-center { display: flex; } }

/* ===================== HERO ===================== */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
}
.hero-inner {
  max-width: 60rem; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.pre-headline {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(1.7rem, 5vw, 3rem); line-height: 1.1; color: #fff;
  margin: 0; opacity: .92;
}
.headline { margin: 0; }
.headline .grad {
  display: inline-block;
  font-weight: 600; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(4rem, 17vw, 9.5rem);
  background-size: 100% 200%;
  animation: shimmer 6s var(--ease) infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0 0; } 50% { background-position: 0 100%; } }
.subhead {
  max-width: 38rem; margin: 0; font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65; color: #fff; opacity: .72;
}
.subhead strong { color: var(--grad-end); font-weight: 600; }

/* CTA */
.cta { display: flex; flex-direction: column; gap: 18px; align-items: center; }
@media (min-width: 560px) { .cta { flex-direction: row; } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: #0a0400; text-decoration: none;
  padding: 8px 8px 8px 26px; border-radius: 999px;
  font-weight: 500; font-size: 1.05rem; border: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 28px rgba(255,255,255,.32); }
.arrow-circle {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s var(--ease);
}
.btn-primary:hover .arrow-circle { background: var(--accent-hover); transform: translateX(3px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  padding: 11px 18px; border-radius: 12px;
  backdrop-filter: blur(6px); transition: color .25s, background .25s;
}
.btn-secondary:hover { color: #fff; background: rgba(255,255,255,.06); }
.sec-arrow { transition: transform .3s var(--ease); }
.btn-secondary:hover .sec-arrow { transform: translateX(4px); }

.scroll-hint {
  width: 24px; height: 40px; border: 1px solid var(--line-2); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px; margin-top: 10px;
}
.scroll-hint span { width: 3px; height: 8px; border-radius: 3px; background: #fff; animation: scrolly 1.6s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* entrance animation (matches motion delays) */
.anim { opacity: 0; transform: translateY(22px); animation: enter .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
.headline.anim { transform: scale(.9); animation-name: enterScale; }
@keyframes enter { to { opacity: 1; transform: translateY(0); } }
@keyframes enterScale { to { opacity: 1; transform: scale(1); } }

/* ===================== 3D ICON PIPELINE ===================== */
.icon-pipeline {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 0 auto 8px; z-index: 1;
}
.beam-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
#beamGlow, #beamCore { transition: opacity .25s ease; }

.pipeline-line {
  width: clamp(46px, 13vw, 156px); height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
}
.pipeline-line.right { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.18)); }

.icon-node {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: #14141c; display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer; z-index: 3;
  box-shadow: 6px 6px 12px rgba(0,0,0,.5), -4px -4px 10px rgba(255,255,255,.03),
    inset 1px 1px 1px rgba(255,255,255,.05), inset 4px 4px 8px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.icon-node::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dotted rgba(255,255,255,.14); }
.icon-node:hover { transform: translateY(-2px); box-shadow: 8px 8px 18px rgba(0,0,0,.55), -5px -5px 12px rgba(255,255,255,.04), inset 1px 1px 1px rgba(255,255,255,.06), inset 4px 4px 8px rgba(0,0,0,.45); }
.icon-node svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.72); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.center-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.icon-node-center {
  width: 66px; height: 66px; border-radius: 50%; flex-shrink: 0;
  background: #1a1a28; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 3;
  box-shadow: 8px 8px 18px rgba(0,0,0,.55), -6px -6px 14px rgba(255,255,255,.04),
    inset 1px 1px 2px rgba(255,255,255,.06), inset 6px 6px 12px rgba(0,0,0,.5);
  animation: floaty 5s var(--ease) infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.icon-node-center .sun { width: 30px; height: 30px; color: #fff; animation: spin 16s linear infinite; }

.splash {
  position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; z-index: 2; pointer-events: none; opacity: 0; transform: scale(.4);
  background: radial-gradient(circle, rgba(48,84,255,.75) 0%, rgba(180,192,255,.35) 38%, transparent 70%);
}
.splash.animate { animation: splash-anim .8s ease-out forwards; }
@keyframes splash-anim { 0% { transform: scale(.4); opacity: .85; } 40% { opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }

.node-light-right::before, .node-light-left::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  opacity: 0; transition: opacity .3s ease; z-index: 4; pointer-events: none;
}
.node-light-right::before { background: radial-gradient(circle at right, rgba(180,192,255,.55) 0%, transparent 68%); }
.node-light-left::before  { background: radial-gradient(circle at left, rgba(48,84,255,.6) 0%, transparent 68%); }
.icon-node.active { box-shadow: 6px 6px 14px rgba(0,0,0,.5), -4px -4px 10px rgba(255,255,255,.04), inset 1px 1px 2px rgba(48,84,255,.4), inset 0 0 12px rgba(48,84,255,.35); }
.icon-node.active::before { opacity: 1; }
.icon-node.active svg { stroke: #fff; }

/* ===================== CRIADOR ===================== */
.creator { margin: 30px auto 90px; }
.creator-card {
  position: relative; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center;
  padding: 40px; border: 1px solid var(--line); border-radius: 26px;
  background: var(--panel); backdrop-filter: blur(18px); overflow: hidden;
}
.creator-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 120% at 0% 0%, rgba(48,84,255,.20), transparent 60%),
              radial-gradient(55% 120% at 100% 100%, rgba(214,41,118,.18), transparent 60%);
}
.creator-avatar {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  animation: spin 14s linear infinite;
}
.creator-avatar span {
  width: 80px; height: 80px; border-radius: 50%; background: #0c0d12; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.7rem; letter-spacing: .02em;
  animation: spin 14s linear infinite reverse;
}
.creator-info { position: relative; z-index: 1; text-align: left; max-width: 420px; }
.creator-info .mono { font-size: .66rem; }
.creator-info h3 { margin: 8px 0 8px; font-size: 1.5rem; font-weight: 600; }
.creator-info p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: linear-gradient(45deg, #feda75, #fa7e1e 22%, #d62976 50%, #962fbf 74%, #4f5bd5);
  background-size: 160% 160%; animation: igmove 6s ease infinite;
  transition: transform .3s var(--ease), box-shadow .3s;
}
@keyframes igmove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-instagram:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 36px rgba(214,41,118,.42); }
.btn-instagram svg { width: 22px; height: 22px; }

/* nav instagram link */
.nav-ig { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 500; transition: color .25s; }
.nav-ig:hover { color: #fff; }

@media (max-width: 560px) {
  .creator-info { text-align: center; }
  .creator-card { padding: 28px; }
}

/* ===================== SHARED SECTION WRAP ===================== */
.tool, .how, .footer { position: relative; z-index: 10; width: min(880px, 92vw); margin-inline: auto; }

/* ===================== TOOL ===================== */
.tool {
  margin-top: 40px; margin-bottom: 90px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px; padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.tool-glow {
  position: absolute; inset: -1px; border-radius: 26px; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(48,84,255,.22), transparent 70%);
}
.panel-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.panel-head .mono { font-size: .68rem; color: var(--dim); }

.grid { display: grid; gap: 6px; }
.field { display: block; }
.field-label { display: block; font-size: .64rem; color: var(--muted); margin-bottom: 10px; }
input[type="url"] {
  width: 100%; padding: 16px 18px;
  background: rgba(255,255,255,.04); color: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  font-size: .95rem; font-family: inherit;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
input[type="url"]::placeholder { color: var(--dim); }
input[type="url"]:focus {
  outline: none; border-color: rgba(48,84,255,.6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(48,84,255,.14);
}
.divider { display: flex; align-items: center; color: var(--dim); font-size: .66rem; letter-spacing: .25em; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { padding: 0 16px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 36px 20px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 16px;
  background: rgba(255,255,255,.03); color: var(--muted);
  cursor: pointer; font-size: .92rem;
  transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease);
}
.dropzone svg { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.dropzone u { color: #fff; text-underline-offset: 3px; }
.dropzone:hover { border-color: rgba(48,84,255,.55); background: rgba(48,84,255,.06); color: #fff; }
.dropzone:hover svg { transform: translateY(-3px); color: var(--grad-end); }
.dropzone.dragover { border-color: var(--accent); background: rgba(48,84,255,.12); transform: scale(1.01); }
.dropzone.has-file { border-style: solid; border-color: rgba(48,84,255,.5); color: #fff; }

.btn-primary.full {
  width: 100%; justify-content: center; margin-top: 26px;
  padding: 10px 10px 10px 22px; border-radius: 16px;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* progress */
.progress { margin-top: 26px; animation: enter .5s var(--ease) both; }
.bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; border: 1px solid var(--line); }
#barFill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--grad-end));
  background-size: 200% 100%; transition: width .5s var(--ease);
  animation: flow 1.6s linear infinite;
  box-shadow: 0 0 14px rgba(48,84,255,.6);
}
@keyframes flow { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.progress-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: .72rem; color: var(--muted); }

/* result */
.result { margin-top: 28px; animation: enter .55s var(--ease) both; }
.result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.result-head .mono { display: block; font-size: .62rem; margin-bottom: 4px; }
.result-head strong { font-size: .98rem; color: #fff; font-weight: 600; word-break: break-all; }
.actions { display: flex; gap: 10px; }
.btn-ghost {
  padding: 11px 18px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 500;
  background: transparent; color: #fff; border: 1px solid var(--line-2);
  text-decoration: none; transition: all .3s var(--ease);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-1px); }
.btn-ghost.solid { background: #fff; color: #000; border-color: #fff; }
.btn-ghost.solid:hover { box-shadow: 0 8px 24px rgba(255,255,255,.2); }
textarea {
  width: 100%; height: 300px; background: rgba(0,0,0,.4); color: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  font-family: "Instrument Sans", monospace; font-size: .85rem; line-height: 1.7; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--line-2); }
.error {
  margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(255,90,110,.35);
  border-radius: 14px; background: rgba(255,90,110,.08); color: #ff8a98;
  font-size: .88rem; animation: enter .4s var(--ease) both; white-space: pre-wrap;
}

/* ===================== HOW ===================== */
.how { margin: 30px auto 90px; text-align: center; }
.sec-title { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.03em; margin: 0 0 40px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.step {
  text-align: left; padding: 24px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(48,84,255,.5); background: rgba(48,84,255,.06); }
.step .num { font-size: .8rem; color: var(--accent); }
.step h3 { margin: 12px 0 8px; font-size: 1.15rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step strong { color: var(--grad-end); }

/* ===================== FOOTER ===================== */
.footer { margin: 0 auto 50px; padding-top: 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 40px; }
.footer-note { color: var(--muted); max-width: 360px; margin: 0; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: .76rem; color: var(--muted); margin-bottom: 36px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 9px; }
.footer-cols .col-h { color: var(--dim); font-size: .64rem; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .66rem; color: var(--dim); }

/* ===================== REVEAL ON SCROLL ===================== */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

.hidden { display: none !important; }

@media (max-width: 600px) {
  .tool { padding: 22px; border-radius: 22px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 14px 18px; }
  .nav-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .anim, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Ajustes 2026-08-06: hero cabe na tela + secoes sempre visiveis (fix iOS) ===== */
.headline .grad { font-size: clamp(2.5rem, 13vw, 9rem) !important; }
.reveal, .reveal.in { opacity: 1 !important; transform: none !important; }

/* iOS fix 2026-08-06: isolar secoes do blend-mode/blur do fundo (titulos dos cards sumindo no iPhone) */
#beneficios, #planos, .benefits, .pricing { position: relative; z-index: 10; isolation: isolate; }
.benefit, .plan { transform: translateZ(0); }
.benefit h3, .plan h3 { color: #fff !important; -webkit-text-fill-color: #fff !important; }
