/* Web Tunner — base styles */

:root{
  --bg: #ffffff;
  --bg-elev: #f9fafb;
  --border: #e5e7eb;
  --purple: #6d28d9;
  --purple-2: #8b5cf6;
  --green: #22c55e;
  --ink: #111827;
  --muted: #6b7280;
  --text: var(--ink);
  --text-dim: var(--muted);
  --topbar-h: 40px;
  --nav-h: 76px;
}

*{ box-sizing: border-box; }

html,body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; }

.wrap{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top utility bar ===== */
.topbar{
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar .wrap{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left{
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-icons{
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-icons a{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: color .15s ease;
}

.topbar-icons a:hover{ color: var(--purple); }

.topbar-icons svg{
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

/* ===== Main nav ===== */
.navbar{
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(17,24,39,.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar .wrap{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img{
  height: 34px;
  width: auto;
  display: block;
}

.nav-menu{
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
}

.nav-menu a{
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}

.nav-menu a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width .2s ease;
}

.nav-menu a:hover{ color: var(--purple); }
.nav-menu a:hover::after{ width: 100%; }

.nav-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-chat{
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(100deg, var(--purple), var(--purple-2));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.btn-chat svg{
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
}

.btn-chat:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg{
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

@media (max-width: 900px){
  .nav-menu{
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h));
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(17,24,39,.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .nav-menu.is-open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a{
    width: 100%;
    padding: 12px 0;
  }

  .nav-toggle{ display: block; }
}

/* ===== Hero (estilo erdy.com.br) ===== */
.hero{
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - var(--topbar-h) - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  --mx: 50%;
  --my: 40%;
}

.hero .dots{
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), rgba(0,0,0,.9) 0%, rgba(0,0,0,.15) 35%, transparent 65%);
  mask-image: radial-gradient(circle at var(--mx) var(--my), rgba(0,0,0,.9) 0%, rgba(0,0,0,.15) 35%, transparent 65%);
  pointer-events: none;
}

.hero .glow{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px circle at var(--mx) var(--my), rgba(109,40,217,.14), transparent 55%),
    radial-gradient(360px circle at var(--mx) var(--my), rgba(34,197,94,.10), transparent 60%);
}

.hero .blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

.hero .blob-a{
  width: 340px;
  height: 340px;
  background: var(--purple-2);
  top: -80px;
  left: -80px;
  animation: float-a 16s ease-in-out infinite;
}

.hero .blob-b{
  width: 280px;
  height: 280px;
  background: var(--green);
  bottom: -90px;
  right: -60px;
  animation: float-b 18s ease-in-out infinite;
}

@keyframes float-a{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(40px,50px); }
}
@keyframes float-b{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(-40px,-30px); }
}

.stage{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  max-width: 560px;
}

.logo-wrap{
  display: inline-block;
  animation: rise .9s ease both, drift 6s ease-in-out 1s infinite;
}

.stage .logo{
  width: min(64vw, 300px);
  display: block;
  margin: 0 auto;
  filter: brightness(0) drop-shadow(0 12px 24px rgba(17,24,39,.14));
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(18px) scale(.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes drift{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0;
  animation: rise .8s ease .25s both;
}

.dot-live{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%{ box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.stage h1{
  margin-top: 22px;
  font-size: clamp(24px, 4.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  opacity: 0;
  animation: rise .8s ease .4s both;
}

.shine{
  background: linear-gradient(100deg, var(--ink) 30%, var(--purple) 45%, var(--green) 50%, var(--ink) 65%);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 4.5s linear infinite;
}
@keyframes shine{
  to{ background-position: -220% center; }
}

.stage .sub{
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  opacity: 0;
  animation: rise .8s ease .55s both;
}

.bar{
  margin: 28px auto 0;
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: #f0f0f2;
  overflow: hidden;
  opacity: 0;
  animation: rise .8s ease .7s both;
}

.bar-fill{
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  animation: sweep 1.8s ease-in-out infinite;
}
@keyframes sweep{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(350%); }
}
