/* ============================================================
   VARIÁVEIS
   ============================================================ */
:root {
  --bg-black:   #000000;
  --text-light: #ffffff;
  --font-main:  'Roboto', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   GLOBAL
   ============================================================ */
html {
  background-color: #ffffff;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  color: var(--text-light);
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* ============================================================
   LAYOUT VERTICAL PRINCIPAL
   ============================================================ */
.vertical-layout {
  max-width: 1100px; /* Aumentado para reduzir as faixas brancas em telas grandes */
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vw, 64px);
  background-color: var(--bg-black);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

/* ============================================================
   HERO / CABEÇALHO
   ============================================================ */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-avatar {
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.hero-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-title-lockup {
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.name-bold {
  font-weight: 700; /* Roboto Bold */
  font-size: clamp(26px, 5.5vw, 48px);
  color: var(--text-light);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.roles-light {
  font-weight: 300; /* Roboto Light */
  font-size: clamp(16px, 3.4vw, 30px);
  color: var(--text-light);
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.role-line {
  display: block;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400; /* Roboto Regular */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  text-wrap: balance;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   CHAT SECTION
   ============================================================ */
.chat-section {
  background-color: #000000;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.sidebar-header {
  margin-bottom: clamp(24px, 4vw, 32px);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: clamp(16px, 2.5vw, 20px);
}

.sidebar-header h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
}

.ai-message {
  line-height: 1.6;
  width: 100%;
}

.ai-message.assistant {
  align-self: flex-start;
  color: var(--text-light);
  font-weight: 300;
  font-size: clamp(15px, 2vw, 18px);
}

.ai-message.assistant strong {
  font-weight: 700;
}

.ai-message.user {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  font-weight: 400;
  font-size: clamp(15px, 2vw, 18px);
}

/* ============================================================
   INPUT GLOW
   ============================================================ */
.glow-wrapper {
  position: relative;
  margin-top: auto;
  border-radius: 18px;
  padding: 2px;
  overflow: hidden;
  cursor: text;
  box-shadow: 0 0 40px rgba(138,43,226,0.1), 0 0 20px rgba(0,240,255,0.07);
  transition: box-shadow 0.3s ease;
  flex-shrink: 0;
}

.glow-wrapper:focus-within {
  box-shadow: 0 0 60px rgba(255,0,127,0.2), 0 0 40px rgba(0,240,255,0.16);
}

.glow-wrapper::before {
  content: "";
  position: absolute;
  top: -100%; left: -100%;
  width: 300%; height: 300%;
  background: conic-gradient(
    transparent,
    rgba(255,0,127,1),
    transparent 30%,
    transparent 50%,
    rgba(0,240,255,1),
    transparent 80%
  );
  animation: rotateGlow 4s linear infinite;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

@keyframes rotateGlow {
  100% { transform: rotate(360deg); }
}

.ai-input-area {
  display: flex;
  align-items: center;
  background-color: #000000;
  border-radius: 16px;
  padding: 14px 18px;
  position: relative;
  z-index: 1;
}

.ai-icon-search {
  color: rgba(255,255,255,0.5);
  margin-right: 12px;
  flex-shrink: 0;
  width: 20px; height: 20px;
}

.ai-input-area input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  outline: none;
}

.ai-input-area input::placeholder {
  color: rgba(255,255,255,0.4);
}

.ai-send-btn {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.09);
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.35;
  pointer-events: none;
  margin-left: 12px;
  flex-shrink: 0;
}

.ai-send-btn.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.ai-send-btn.active:hover {
  background: rgba(255,255,255,1);
  color: #000;
  transform: translateY(-2px);
}

/* ============================================================
   TYPING / WHATSAPP / CHECKOUT
   ============================================================ */
.typing-indicator {
  display: flex; gap: 5px;
  align-self: flex-start;
}
.typing-dot {
  width: 5px; height: 5px;
  background: #fff; border-radius: 50%;
  animation: typingAnim 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingAnim {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40%           { transform: scale(1); opacity: 1; }
}

.btn-whatsapp {
  display: inline-block;
  color: #000;
  background-color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.3s;
  border-radius: 6px;
}
.btn-whatsapp:hover { background-color: #e0e0e0; }

.btn-checkout-custom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #ffffff;
  color: #000000;
  padding: 20px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-main);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  width: 100%;
  box-sizing: border-box;
}
.btn-checkout-custom:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.btn-checkout-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
}
.btn-checkout-preco {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}
.btn-checkout-info {
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

/* ============================================================
   RODAPÉ / BIO
   ============================================================ */
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: clamp(32px, 6vw, 48px);
}

.bio-text {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  text-wrap: balance;
  margin-bottom: clamp(32px, 6vw, 48px);
  max-width: 680px;
}

.bio-text p {
  margin-bottom: 16px;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.shaper-mini-logo {
  height: clamp(24px, 4vw, 32px);
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.shaper-mini-logo:hover {
  opacity: 1;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons a {
  color: #ffffff;
  font-size: clamp(20px, 4vw, 24px);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.icon-kwai {
  display: inline-block;
  width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask: url('https://cdn.simpleicons.org/kuaishou') no-repeat center / contain;
  mask: url('https://cdn.simpleicons.org/kuaishou') no-repeat center / contain;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }

/* ============================================================
   BACKGROUND PATTERN LATERAL (LAZY LOAD)
   ============================================================ */
body.show-pattern::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('images/pattern-s-logo.png');
  background-repeat: repeat;
  background-size: 32px; /* Reduzido em 35% */
  opacity: 0.05; /* Baixada consideravelmente */
  transform: rotate(-25deg); /* 25 graus */
  z-index: -1;
  pointer-events: none;
}
