* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* FUNDO QUADRADOS */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  grid-auto-rows: 42px;
  pointer-events: none;
}

.grid-cell {
  border: 1px solid rgba(255,255,255,0.025);
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.8s ease, box-shadow 0.8s ease, opacity 0.8s ease;
}

.grid-cell.active {
  background: rgba(255, 0, 0, 0.95);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 0, 0, 0.08), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.06), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 0, 0, 0.05), transparent 25%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
}

/* TOPO */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 0, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.logo-top img {
  width: 110px;
  display: block;
  transition: 0.3s ease;
}

.logo-top img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.45));
}

.top-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(180deg, #ff2020 0%, #ff0000 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.24);
  transition: 0.3s ease;
}

.top-btn-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.42);
}

/* HERO */
.orcamento-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 70px;
  position: relative;
}

.hero-wrap {
  width: 100%;
  max-width: 1220px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 35px;
  align-items: center;
}

.hero-left {
  padding: 20px 10px;
}

.hero-mini {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #d8d8d8;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-left h1 {
  font-size: 58px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.hero-left h1 span {
  color: #ff0000;
  text-shadow: 0 0 18px rgba(255,0,0,0.35);
}

.hero-left p {
  font-size: 17px;
  line-height: 1.75;
  color: #bdbdbd;
  max-width: 560px;
}

/* CHAT PANEL */
.chat-panel {
  background: linear-gradient(180deg, rgba(16,16,16,0.96), rgba(7,7,7,0.98));
  border: 1px solid rgba(255, 0, 0, 0.14);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 35px rgba(255, 0, 0, 0.10),
    0 25px 60px rgba(0,0,0,0.55);
  position: relative;
}

.chat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(255, 0, 0, 0.14), transparent 35%),
    radial-gradient(circle at bottom left, rgba(255, 0, 0, 0.08), transparent 35%);
}

.chat-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  position: relative;
  z-index: 2;
}

.chat-avatar {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 0, 0, 0.25);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.16);
  background: #0f0f0f;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.chat-header span {
  font-size: 13px;
  color: #9f9f9f;
}

.chat-body {
  padding: 22px;
  min-height: 500px;
  position: relative;
  z-index: 2;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message-row.npc {
  justify-content: flex-start;
}

.message-row.user {
  justify-content: flex-end;
}

.show-message {
  animation: messageIn 0.35s ease;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg-avatar-small {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 0, 0.22);
  background: #111;
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.10);
}

.msg-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bubble {
  max-width: 82%;
  padding: 15px 16px;
  border-radius: 16px;
  line-height: 1.65;
  font-size: 15px;
  word-break: break-word;
  position: relative;
}

.bubble small {
  display: inline-block;
  margin-top: 8px;
  color: #ff8b8b;
  font-size: 13px;
}

.npc .bubble {
  background: rgba(255,255,255,0.045);
  color: #ededed;
  border: 1px solid rgba(255,255,255,0.06);
  border-top-left-radius: 6px;
}

.user .bubble {
  background: linear-gradient(180deg, #ff1a1a, #c70000);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  border-top-right-radius: 6px;
}

/* DIGITANDO */
.typing-bubble {
  min-width: 120px;
}

.typing-text {
  font-size: 12px;
  color: #b0b0b0;
  margin-bottom: 8px;
  text-transform: lowercase;
  letter-spacing: 0.4px;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  display: inline-block;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(0.8);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px) scale(1);
    opacity: 1;
  }
}

/* OPTIONS */
.options-area {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-btn {
  border: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
  transition: 0.25s ease;
}

.option-btn:hover {
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 0, 0, 0.30);
  transform: translateY(-2px);
}

/* COPY */
.copy-area {
  margin-top: 14px;
}

.copy-btn {
  border: none;
  background: linear-gradient(180deg, #1f1f1f, #111);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.07);
  transition: 0.25s ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 0, 0.25);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.16);
}

.copy-btn.copied {
  background: linear-gradient(180deg, #ff1a1a, #c70000);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.28);
  transform: scale(1.03);
}

/* SUPORTE */
.support-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.support-box p {
  color: #b8b8b8;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 14px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(180deg, #ff1a1a 0%, #ff0000 100%);
  color: #fff;
  font-weight: 800;
  padding: 13px 18px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.24);
  transition: 0.25s ease;
}

.support-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 26px rgba(255, 0, 0, 0.35);
}

/* FOOTER PADRÃO */
.footer-red {
  margin-top: 0;
  padding: 50px 20px 20px;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 0, 0, 0.25);
  box-shadow: 0 -20px 60px rgba(255, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-left h2 {
  font-size: 28px;
  color: #fff;
}

.footer-left span {
  color: #ff0000;
}

.footer-left p {
  margin-top: 10px;
  color: #aaa;
  line-height: 1.7;
}

.footer-center h3,
.footer-right h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #fff;
}

.footer-center ul {
  list-style: none;
}

.footer-center ul li {
  margin-bottom: 8px;
}

.footer-center a,
.footer-right a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-center a:hover,
.footer-right a:hover {
  color: #ff0000;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
  font-size: 13px;
  color: #777;
}

/* RESPONSIVO */
@media (max-width: 1080px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-left {
    text-align: center;
    margin: 0 auto;
  }

  .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-left h1 {
    font-size: 50px;
  }
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }
}

@media (max-width: 700px) {
  .top-bar {
    padding: 0 15px;
    height: 70px;
  }

  .logo-top img {
    width: 90px;
  }

  .top-btn-link {
    padding: 8px 14px;
    font-size: 13px;
  }

  .orcamento-hero {
    padding: 105px 16px 55px;
  }

  .hero-left h1 {
    font-size: 38px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .chat-body {
    padding: 16px;
    min-height: 460px;
  }

  .bubble {
    max-width: 92%;
    font-size: 14px;
  }

  .option-btn {
    width: 100%;
  }

  .copy-btn {
    width: 100%;
  }

  .support-btn {
    width: 100%;
  }

  .footer-red {
    padding: 40px 18px 20px;
  }
}

.budget-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.whatsapp-send-btn {
  background: linear-gradient(180deg, #ff1a1a, #b80000);
}

@media (max-width: 700px) {
  .budget-actions {
    flex-direction: column;
  }
}