/* =============================================
   TRAMA LP — styles.css
   ============================================= */

/* ── Variáveis de design */
:root {
  --bg:           #F4F5FA;
  --fg:           #12131A;
  --muted-fg:     #5C6276;
  --card:         #FFFFFF;
  --border:       rgba(18, 19, 26, 0.09);
  --accent-blue:  #2F6BF6;
  --accent-purple:#7C4DF0;
  --accent-mag:   #D6409F;
  --live-color:   #ff3b5c;
  --gradient:     linear-gradient(118deg, #2F6BF6, #7C4DF0, #D6409F);
  --shadow-card:  0 1px 2px rgba(18,19,26,.05), 0 22px 50px -26px rgba(47,107,246,.25);
  --shadow-cta:   0 10px 30px -10px rgba(124,77,240,.55);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --r-xl:  20px;
  --r-2xl: 28px;
}

/* ── Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-feature-settings: "ss01","cv11";
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}
img  { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input  { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

/* ── Containers */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.container-md {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container, .container-md {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── Accessibilidade */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Utilitários de gradiente */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-gradient { background: var(--gradient); }


/* =============================================
   FUNDO AMBIENTE
   ============================================= */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,19,26,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,19,26,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  opacity: 0.6;
}

.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("../assets/grain.svg");
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 { animation: drift1 18s ease-in-out infinite; }
.glow-2 { animation: drift2 22s ease-in-out infinite; }
.glow-3 { animation: drift3 20s ease-in-out infinite; }


/* =============================================
   ANIMAÇÕES
   ============================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise {
  opacity: 0;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes pulseLive {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,59,92,.6); }
  50%     { box-shadow: 0 0 0 8px rgba(255,59,92,0); }
}
.live-dot { animation: pulseLive 1.8s ease-out 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(-80px,40px) scale(1.1); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,60px) scale(1.2); }
}

@keyframes shine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rise       { animation: none !important; opacity: 1; transform: none; }
  .live-dot   { animation: none !important; }
  .glow-1, .glow-2, .glow-3 { animation: none !important; }
  .cta-btn::after { animation: none !important; }
}


/* =============================================
   BOTÃO CTA
   ============================================= */
.cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(118deg, #2F6BF6, #7C4DF0, #D6409F);
  background-size: 200% 100%;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 1rem 1.75rem;
  border-radius: var(--r-xl);
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-position .6s ease;
  box-shadow: var(--shadow-cta);
}
.cta-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(124,77,240,.7);
}
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shine 3.4s ease-in-out infinite;
}
.cta-btn--full {
  width: 100%;
  border-radius: var(--r-xl);
  padding-left: 1rem;
  padding-right: 1rem;
}


/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: relative;
  z-index: 10;
  padding-top: 1.5rem;
}
@media (min-width: 640px) {
  .site-header { padding-top: 2rem; }
}
.site-header .logo {
  height: 2rem;
  width: auto;
}
@media (min-width: 640px) {
  .site-header .logo { height: 2.25rem; }
}


/* =============================================
   PÍLULA LIVE
   ============================================= */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-card);
}
.live-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
}
.live-dot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--live-color);
  animation: pulseLive 1.8s ease-out infinite;
}
.live-dot-solid {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--live-color);
}
.live-pill-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18,19,26,0.8);
}


/* =============================================
   SEÇÕES — paddings padrão
   ============================================= */
.section {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 640px) {
  .section { padding-top: 2rem; padding-bottom: 2rem; }
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.05;
  font-weight: 800;
  max-width: 48rem;
}
@media (min-width: 640px) {
  .section-h2 { font-size: 3rem; }
}

.section-lead {
  margin-top: 1.5rem;
  font-size: 17px;
  color: var(--muted-fg);
  max-width: 48rem;
  line-height: 1.625;
}


/* =============================================
   BLOCO 1 — HERO
   ============================================= */
.hero-section {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .hero-section {
    padding-top: 3.5rem;
    padding-bottom: 6rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }
}

.hero-h1 {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
}
@media (min-width: 640px) {
  .hero-h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero-h1 { font-size: 3.75rem; line-height: 1.02; }
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: 17px;
  color: var(--muted-fg);
  max-width: 36rem;
  line-height: 1.625;
}
@media (min-width: 640px) {
  .hero-lead { font-size: 1.125rem; }
}

.info-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.375rem 0.875rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: rgba(18,19,26,0.8);
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}

/* Coluna do formulário */
.form-col {
  display: block;
}
@media (min-width: 1024px) {
  .form-col {
    position: sticky;
    top: 2rem;
  }
}

.form-col-header {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-col-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.form-col-count {
  font-size: 12px;
  color: var(--muted-fg);
}


/* =============================================
   BLOCO 2 — PERGUNTAS (cards de dúvidas)
   ============================================= */
.questions-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .questions-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.question-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.question-text {
  margin-top: 0.75rem;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.375;
}


/* =============================================
   BLOCO 3 — ENTREGÁVEIS
   ============================================= */
.deliverables-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.deliverable-item {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .deliverable-item { padding: 1.75rem; }
}

.deliverable-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-cta);
}

.deliverable-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.375;
}
@media (min-width: 640px) {
  .deliverable-title { font-size: 1.5rem; }
}

.deliverable-desc {
  margin-top: 0.5rem;
  color: var(--muted-fg);
  line-height: 1.625;
}

.accent-blockquote {
  margin-top: 2.5rem;
  font-size: 17px;
  color: rgba(18,19,26,0.9);
  max-width: 48rem;
  line-height: 1.625;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, #2F6BF6, #D6409F) 1;
}


/* =============================================
   BLOCO 4 — AUTORIDADE (speakers + stats)
   ============================================= */
.speakers-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
}

.speaker-card {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 0;
  overflow: hidden;
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.speaker-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
@media (min-width: 640px) {
  .speaker-body { padding: 1.5rem 1.75rem 1.75rem; }
}
.speaker-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.speaker-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.speaker-credentials {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.speaker-credential {
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.625;
  color: rgba(18,19,26,0.85);
}
.speaker-credential::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  margin-top: 5px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Stats */
.stats-card {
  margin-top: 2.5rem;
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}
@media (min-width: 640px) {
  .stats-card { padding: 2.25rem; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
@media (min-width: 640px) {
  .stat-value { font-size: 3rem; }
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* Resultados */
.results-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

.result-item {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.result-bullet {
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
  background: var(--gradient);
}
.result-name { font-weight: 600; }
.result-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 2px;
}


/* =============================================
   BLOCO 5 — CTA FINAL
   ============================================= */
.cta-final-card {
  position: relative;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .cta-final-card { padding: 3rem; }
}

.cta-final-glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  opacity: 0.5;
  filter: blur(40px);
  pointer-events: none;
}
.cta-final-glow-1 {
  top: -6rem; right: -6rem;
  background: radial-gradient(circle, rgba(124,77,240,.35), transparent 60%);
}
.cta-final-glow-2 {
  bottom: -6rem; left: -6rem;
  background: radial-gradient(circle, rgba(47,107,246,.3), transparent 60%);
}

.cta-final-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .cta-final-grid { grid-template-columns: 1.1fr 1fr; }
}

.cta-final-h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.05;
}
@media (min-width: 640px) {
  .cta-final-h2 { font-size: 2.75rem; }
}

.cta-final-lead {
  margin-top: 1.25rem;
  font-size: 17px;
  color: var(--muted-fg);
  line-height: 1.625;
}


/* =============================================
   FORMULÁRIO DE INSCRIÇÃO
   ============================================= */
.signup-form-card {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .signup-form-card { padding: 1.5rem; }
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-input {
  display: block;
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: rgba(244,245,250,0.6);
  padding: 0.875rem 1rem;
  font-size: 15px;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input::placeholder { color: rgba(92,98,118,0.8); }
.form-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(124,77,240,0.15);
}


.form-error {
  font-size: 0.875rem;
  color: var(--live-color);
  margin-top: 0.75rem;
  display: none;
}
.form-error.visible { display: block; }

.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-align: center;
}

/* Estado de sucesso */
.form-success {
  border-radius: var(--r-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: none;
}
.form-success.visible { display: block; }
.form-success-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.form-success-text {
  color: rgba(18,19,26,0.9);
  font-size: 15px;
  line-height: 1.625;
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  position: relative;
  z-index: 10;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}
.footer-logo {
  display: block;
  margin: 0 auto;
  height: 1.75rem;
  width: auto;
  opacity: 0.8;
}
.footer-copy {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}


/* =============================================
   STICKY CTA (mobile)
   ============================================= */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 40;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(244,245,250,0.95) 70%,
    rgba(244,245,250,0) 100%
  );
}
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

.mobile-spacer { height: 6rem; }
@media (min-width: 1024px) {
  .mobile-spacer { display: none; }
}


/* =============================================
   LOGO HISTÓRIA CAROUSEL
   ============================================= */
.logo-historia-band {
  background: var(--background);
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-historia-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-fg);
  text-align: center;
  margin-bottom: 1.75rem;
}
.logo-marquee-outer {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  margin-bottom: 1rem;
  animation: marquee-scroll 38s linear infinite;
}
.logo-marquee-track:last-child { margin-bottom: 0; }
.logo-marquee-track:hover { animation-play-state: paused; }
.logo-marquee-reverse { animation-direction: reverse; }
.logo-marquee-item {
  flex-shrink: 0;
  width: 240px;
  height: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
}
.logo-item-img {
  max-height: 72px;
  max-width: 168px;
  object-fit: contain;
  display: block;
  opacity: 0.72;
  filter: grayscale(0.2);
  transition: opacity 0.2s, filter 0.2s;
}
.logo-marquee-item:hover .logo-item-img {
  opacity: 1;
  filter: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
