/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════
   VARIÁVEIS
   ══════════════════════════════════════ */
:root {
  --cream:  #f7f3ec;
  --dark:   #161310;
  --ink:    #2a2420;
  --muted:  #8c7e74;
  --gold:   #c9973a;
  --line:   rgba(42, 36, 32, 0.12);
  --blue:   #4a90e2;
  --blue2:  #357abd;
  --green:  #2d8a4e;
  --green2: #236b3c;
  --red:    #e53e3e;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── GRAIN ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════
   LANDING — NAV
   ══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

nav.scrolled {
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 7px 18px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover { background: var(--dark); color: var(--cream); }

/* ══════════════════════════════════════
   LANDING — HERO
   ══════════════════════════════════════ */
.hero-block {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 64px 80px;
}

.hero-block::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--line);
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 780px;
  color: var(--dark);
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

.hero-title em { font-style: italic; font-weight: 700; color: var(--gold); }

.hero-sub {
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 400px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.7s 0.32s ease forwards;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.44s ease forwards;
}

.hero-note { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

.hero-deco {
  position: absolute;
  left: 55%;
  top: 20%;
  transform: translate(-50%, -50%);

  width: min(520px, 42vw);
  padding: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);

  border-radius: 20px;
  border: 3px solid rgba(201, 151, 58, 0.15);

  box-shadow:
    0 32px 80px rgba(42, 36, 32, 0.15),
    0 8px 24px rgba(201, 151, 58, 0.1);

  animation: slideInRight 0.8s 0.5s ease forwards;
  opacity: 0;
}

.hero-deco img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 60px 32px 60px;
    text-align: center;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-sub {
    margin-inline: auto;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-block::before {
    display: none;
  }

  .hero-deco {
    position: static;
    transform: none;
    margin: 32px auto 0;
    width: min(100%, 700px);
    max-width: 100%;
    max-height: none;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 18px 24px;
  }

  .hero {
    padding: 60px 20px 48px;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 14px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .hero-deco {
    margin-top: 24px;
    border-width: 2px;
  }
}

/* ── BOTÃO PRIMÁRIO ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--cream);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 2px;
  transition: background 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* ══════════════════════════════════════
   LANDING — FEATURES
   ══════════════════════════════════════ */
.features {
  padding: 100px 48px;
  border-bottom: 1px solid var(--line);
}

.features-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.features-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-card {
  background: var(--cream);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: #f0ebe1; }

.feature-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ══════════════════════════════════════
   LANDING — HOW IT WORKS
   ══════════════════════════════════════ */
.how {
  padding: 100px 48px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.how-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.how h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
}

.how p { font-size: 0.95rem; color: var(--muted); line-height: 1.75; font-weight: 300; margin-bottom: 36px; }

.steps-list {
  list-style: none;
  border: 1px solid var(--line);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.step:last-child { border-bottom: none; }
.step:hover { background: #f0ebe1; }

.step-n {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  width: 28px;
  padding-top: 2px;
}

.step-text strong { display: block; font-size: 0.9rem; font-weight: 500; color: var(--dark); margin-bottom: 3px; }
.step-text span   { font-size: 0.82rem; color: var(--muted); font-weight: 300; }

/* ══════════════════════════════════════
   LANDING — CTA FINAL
   ══════════════════════════════════════ */
.cta-section {
  padding: 100px 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 151, 58, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
}

.cta-section h2 em { font-style: italic; color: var(--gold); }
.cta-section p { font-size: 0.95rem; color: var(--muted); font-weight: 300; margin-bottom: 40px; }

/* ══════════════════════════════════════
   LANDING — FOOTER
   ══════════════════════════════════════ */
.footer-section {
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--muted); }
.footer-note { font-size: 0.75rem; color: var(--muted); font-weight: 300; }

/* ══════════════════════════════════════
   FORMULÁRIO — LAYOUT
   ══════════════════════════════════════ */
.form-page {
  padding: 40px 20px;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.container h1 { font-size: 1.4rem; margin-bottom: 24px; color: #111; }

/* ── CAMPOS ── */
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  margin-top: 14px;
}

input, textarea, select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 80px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.error   { border-color: var(--red) !important; }
.err-msg { color: var(--red); font-size: 0.78rem; margin-top: 4px; }

/* ── BOTÃO SUBMIT ── */
button[type="submit"] {
  margin-top: 24px;
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

button[type="submit"]:hover { background: var(--blue2); }

/* ── RESULTADO ── */
#resultado {
  display: none;
  margin-top: 28px;
  border-top: 1px solid #eee;
  padding-top: 24px;
}

#resultado h2 { font-size: 1rem; margin-bottom: 12px; color: #333; }

#cv-texto {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 500px;
  overflow-y: auto;
}

.botoes-dl { display: flex; gap: 10px; margin-top: 14px; }

.botoes-dl button {
  flex: 1;
  padding: 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.botoes-dl button:hover { background: var(--green2); }

/* ══════════════════════════════════════
   CAMPOS DINÂMICOS
   ══════════════════════════════════════ */
.dynamic-container {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  background: #fafafa;
}

.dynamic-item {
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
  position: relative;
}

.dynamic-item:last-child { margin-bottom: 0; }

.sub-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
  margin-top: 8px;
}

.btn-add {
  width: 100%;
  padding: 10px;
  background: #f0f0f0;
  color: #666;
  border: 1px dashed #bbb;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 14px;
}

.btn-add:hover {
  background: #e8e8e8;
  border-color: #999;
}

.btn-remove {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  background: #fee;
  color: var(--red);
  border: 1px solid #fcc;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.btn-remove:hover {
  background: #fdd;
  border-color: #f99;
}

/* ══════════════════════════════════════
   ANIMAÇÕES
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════ */
@media (max-width: 700px) {
  nav                          { padding: 18px 24px; }
  .hero-block                   { min-height: auto; }
  .hero, .features, .how,
  .cta-section, .footer-section { padding-left: 32px; padding-right: 32px; }
  .hero-block::before           { display: none; }
  .hero-deco                    { position: static; width: min(400px, calc(100vw - 64px)); max-width: 100%; height: auto; 
                                  right: auto; bottom: auto; margin: 40px auto 0; 
                                  box-shadow: 0 20px 56px rgba(42, 36, 32, 0.12), 0 6px 18px rgba(201, 151, 58, 0.08); }
  .features-grid                { grid-template-columns: 1fr; }
  .how                          { grid-template-columns: 1fr; gap: 40px; }
  .row                          { grid-template-columns: 1fr; }
  .footer-section               { flex-wrap: wrap; justify-content: center; gap: 12px; padding-bottom: 32px; }
  .footer-section > *           { width: 100%; text-align: center; }
}
