/* ================================================
   DESIGN SYSTEM — Lançamento Semente DPC + Melodrama
   Extraído de desafiodoator.com.br (identidade existente)
   ================================================ */

:root {
  /* Cores — base */
  --color-bg: #ffffff;
  --color-bg-dark: #0a0a0a;
  --color-bg-overlay: rgba(0, 0, 0, 0.62);
  --color-text: #1D1E20;
  --color-text-muted: #6b6e72;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.78);
  --color-border: #1D1E20;
  --color-border-light: #e5e5e5;

  /* Acento sutil — vermelho cinema (usado moderado em momentos de urgência) */
  --color-accent: #C41E3A;
  --color-accent-hover: #a3162e;

  /* Tipografia */
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Borders mais visíveis (P1.2) */
  --color-border-input: #c8c8c8;
  --color-border-input-focus: var(--color-text);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.18);

  /* Espaçamento — escala 8pt */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Border radius — sutil */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Layout */
  --content-max: 720px;
  --content-wide: 1100px;
}

/* ================================================
   RESET / BASE
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

/* ================================================
   ACESSIBILIDADE — focus visible (P0.1)
   ================================================ */

*:focus { outline: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Em fundos escuros */
.section-dark *:focus-visible,
.hero *:focus-visible {
  outline-color: #fff;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================
   TIPOGRAFIA
   ================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p { margin: 0 0 var(--space-2); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  opacity: 0.72;
}

.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

/* ================================================
   LAYOUT
   ================================================ */

.container {
  width: 100%;
  max-width: var(--content-max);
  padding: 0 var(--space-3);
  margin: 0 auto;
}

.container-wide {
  width: 100%;
  max-width: var(--content-wide);
  padding: 0 var(--space-3);
  margin: 0 auto;
}

section {
  padding: var(--space-12) 0;
}

@media (max-width: 768px) {
  section { padding: var(--space-8) 0; }
}

/* ================================================
   HERO
   ================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0;
  color: var(--color-text-on-dark);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196, 30, 58, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(40, 40, 60, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #15151a 50%, #0a0a0a 100%);
  z-index: -1;
}

/* Subtle grain texture cinematográfica */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0'/></filter><rect width='100%25' height='100%25' filter='url(%23noise)'/></svg>");
  z-index: -1;
}

.hero h1 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-3);
}

.hero p, .hero .lead {
  color: var(--color-text-on-dark-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 720px;
}

/* ================================================
   BADGES (info do evento)
   ================================================ */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-4) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

/* ================================================
   FORMULÁRIOS
   ================================================ */

.form-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-align: center;
}

.form-field {
  margin-bottom: var(--space-2);
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-field input {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border-input);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:hover {
  border-color: #888;
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgba(29, 30, 32, 0.12);
}

.fine-print {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: var(--space-2) 0 0;
  line-height: 1.5;
}

/* ================================================
   BOTÕES
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-text);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #000;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  width: 100%;
  max-width: 420px;
}

.btn-block { width: 100%; }

/* ================================================
   CARDS / SEÇÕES INFORMATIVAS
   ================================================ */

.section-title {
  text-align: center;
  margin-bottom: var(--space-4);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Layout específico 2 em cima + 3 embaixo (5 cards) */
.cards-grid-2-3 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.cards-grid-2-3 > .card:nth-child(1),
.cards-grid-2-3 > .card:nth-child(2) {
  grid-column: span 3;
}

.cards-grid-2-3 > .card:nth-child(3),
.cards-grid-2-3 > .card:nth-child(4),
.cards-grid-2-3 > .card:nth-child(5) {
  grid-column: span 2;
}

@media (max-width: 760px) {
  .cards-grid-2-3 > .card {
    grid-column: span 6 !important;
  }
}

/* Layout 2x2 (4 cards balanceados) */
.cards-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .cards-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: var(--space-3);
  background: #fafafa;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 30, 32, 0.18);
}

.section-dark .card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  display: block;
}

.card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ================================================
   SEÇÃO ESCURA (cinematográfica)
   ================================================ */

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-text-on-dark);
}

.section-dark p {
  color: var(--color-text-on-dark-muted);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-dark .card p {
  color: var(--color-text-on-dark-muted);
}

/* ================================================
   QUEM É (bio)
   ================================================ */

.bio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .bio {
    grid-template-columns: 320px 1fr;
    gap: var(--space-8);
  }
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: #ddd;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-photo .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  text-align: center;
  padding: var(--space-2);
}

.bio-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.bio-content .role {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.bio-content ul {
  margin: var(--space-2) 0 var(--space-2);
  padding-left: 1.2rem;
}

.bio-content ul li {
  margin-bottom: 0.4rem;
}

/* ================================================
   COUNTDOWN
   ================================================ */

.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.countdown-item {
  text-align: center;
  min-width: 70px;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  display: block;
}

.section-dark .countdown-label {
  color: var(--color-text-on-dark-muted);
}

/* ================================================
   STACK DE VALOR (página de vendas)
   ================================================ */

.value-stack {
  background: #fafafa;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border-light);
  margin: var(--space-4) 0;
}

.value-stack table {
  width: 100%;
  border-collapse: collapse;
}

.value-stack td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.value-stack tr:last-child td {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding-top: var(--space-2);
}

.value-stack td:last-child {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 500;
}

.price-final {
  text-align: center;
  margin: var(--space-4) 0;
}

.price-final .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.price-final .amount {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  display: block;
  line-height: 1;
  margin: 0.5rem 0;
}

.price-final .installments {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.price-final .strike {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ================================================
   GARANTIA
   ================================================ */

.guarantee {
  background: #fafafa;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  margin: var(--space-4) 0;
}

.guarantee .seal {
  font-size: 3rem;
  margin-bottom: var(--space-2);
}

.guarantee h3 {
  margin-bottom: var(--space-2);
}

/* ================================================
   FAQ
   ================================================ */

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-2) 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

/* ================================================
   FOOTER
   ================================================ */

footer {
  padding: var(--space-6) 0;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark-muted);
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: var(--color-text-on-dark); }

/* ================================================
   ANIMAÇÕES
   ================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out backwards;
}

/* ================================================
   UTILITIES
   ================================================ */

.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

/* Mobile-first responsive */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .countdown-value { font-size: 2rem; }
  .countdown-item { min-width: 60px; }
  .btn-large { padding: 1rem 1.5rem; }
}
