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

:root {
  --bg:        #0A1628;
  --bg-alt:    #0D1F3C;
  --bg-card:   #112240;
  --cyan:      #00B4D8;
  --cyan-dark: #0096B4;
  --blue:      #0077B6;
  --text:      #FFFFFF;
  --text-muted:#94A3B8;
  --border:    rgba(0,180,216,0.15);
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --transition:0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dark); }

img { max-width: 100%; display: block; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }

.highlight { color: var(--cyan); }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt{ background: var(--bg-alt); }

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { height: 36px; }
.navbar-cta  { font-size: .875rem; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,180,216,0.4); }
.btn-outline  { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }
.btn-outline:hover { background: var(--cyan); color: #fff; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 60% 40%, rgba(0,119,182,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,180,216,0.1) 0%, transparent 50%),
              var(--bg);
  padding: 80px 0;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,180,216,0.1); border: 1px solid var(--border);
  color: var(--cyan); padding: 6px 14px; border-radius: 100px;
  font-size: .8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.hero h1 { margin-bottom: 20px; }
.hero p  { font-size: 1.175rem; margin-bottom: 36px; max-width: 560px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-trust { color: var(--text-muted); font-size: .875rem; display: flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--cyan); }

.hero-price {
  margin-top: 48px; padding: 24px 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
  display: inline-flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.price-main { font-size: 2.5rem; font-weight: 800; color: var(--cyan); }
.price-sub  { font-size: .875rem; color: var(--text-muted); }
.price-badge {
  background: rgba(0,180,216,0.15); color: var(--cyan);
  padding: 4px 12px; border-radius: 100px; font-size: .8125rem; font-weight: 700;
}

/* ─── Como funciona ─────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 24px; position: relative; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #fff; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700;
}
.step-icon { font-size: 2.5rem; margin: 8px 0 16px; }
.step-card h3 { margin-bottom: 8px; }

/* ─── O que está incluído ───────────────────────────────────────────────────── */
.includes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.include-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 14px;
}
.include-item:hover { border-color: var(--cyan); }
.include-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.include-item h4 { font-size: 1rem; margin-bottom: 4px; }
.include-item p  { font-size: .875rem; margin: 0; }

/* ─── Tipos de projeto ──────────────────────────────────────────────────────── */
.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 48px; }
.type-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
  transition: all var(--transition); cursor: default;
}
.type-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.type-card .icon { font-size: 2rem; margin-bottom: 10px; }
.type-card span  { font-size: .8125rem; font-weight: 600; color: var(--text-muted); }

/* ─── Pricing CTA ───────────────────────────────────────────────────────────── */
.pricing-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,119,182,0.2) 100%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 56px 48px; text-align: center; max-width: 700px; margin: 0 auto;
}
.pricing-box .big-price { font-size: 4rem; font-weight: 800; color: var(--cyan); line-height: 1; }
.pricing-box .price-desc { font-size: 1rem; color: var(--text-muted); margin: 8px 0 32px; }

.checklist { list-style: none; text-align: left; display: inline-block; margin: 0 0 32px; }
.checklist li { padding: 6px 0; display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--text-muted); }
.checklist li::before { content: '✓'; color: var(--cyan); font-weight: 700; }

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font-size: 1rem; font-weight: 600;
  padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .arrow { color: var(--cyan); font-size: 1.25rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-a p { padding-bottom: 16px; font-size: .9375rem; }
.faq-item.open .faq-a { max-height: 200px; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  background: var(--bg);
}
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { font-size: .875rem; margin: 0; }

/* ─── Section header ────────────────────────────────────────────────────────── */
.section-header { text-align: center; }
.section-header p { max-width: 560px; margin: 12px auto 0; }

/* ─── Form Page ─────────────────────────────────────────────────────────────── */
.form-page { min-height: 100vh; background: var(--bg); padding: 60px 0; }

/* Progress bar */
.progress-wrap { margin-bottom: 48px; }
.progress-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  max-width: 480px; margin: 0 auto 12px;
}
.prog-step {
  display: flex; align-items: center; gap: 0;
  flex: 1;
}
.prog-step:last-child { flex: 0; }
.prog-dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 700; border: 2px solid var(--border);
  color: var(--text-muted); background: var(--bg-card);
  transition: all var(--transition);
}
.prog-dot.active  { border-color: var(--cyan); color: var(--cyan); background: rgba(0,180,216,0.1); }
.prog-dot.done    { border-color: var(--cyan); color: var(--bg); background: var(--cyan); }
.prog-line {
  height: 2px; flex: 1; background: var(--border);
  transition: background var(--transition);
}
.prog-line.done { background: var(--cyan); }
.progress-label {
  text-align: center; font-size: .8125rem; color: var(--text-muted);
}
.progress-label strong { color: var(--cyan); }

/* Form card */
.form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  max-width: 700px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 8px; }
.form-card > p { margin-bottom: 32px; }

/* Form fields */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field label .req { color: var(--cyan); }

.input, .select, .textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.select { appearance: none; cursor: pointer; }
.textarea { resize: vertical; min-height: 100px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field-error { font-size: .8125rem; color: #F87171; margin-top: 4px; display: none; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: #F87171; }
.field.has-error .field-error { display: block; }

/* Radio cards (tipo de cliente) */
.radio-cards { display: flex; gap: 12px; }
.radio-card input[type="radio"] { display: none; }
.radio-card label {
  flex: 1; padding: 14px 16px; background: var(--bg-alt);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: center; font-size: .9375rem;
  font-weight: 600; transition: all var(--transition);
  display: block; color: var(--text-muted);
}
.radio-card input:checked + label {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(0,180,216,0.08);
}

/* Project type grid */
.tipo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.tipo-option input[type="radio"] { display: none; }
.tipo-option label {
  display: block; padding: 16px 10px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; text-align: center;
  transition: all var(--transition);
}
.tipo-option label .t-icon { font-size: 1.75rem; margin-bottom: 8px; display: block; }
.tipo-option label .t-name { font-size: .8125rem; font-weight: 600; color: var(--text-muted); display: block; }
.tipo-option input:checked + label {
  border-color: var(--cyan); background: rgba(0,180,216,0.1);
}
.tipo-option input:checked + label .t-name { color: var(--cyan); }

/* Dynamic questions */
.questions-block { display: none; }
.questions-block.visible { display: block; }

/* Step navigation */
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.btn-back {
  background: none; border: none; color: var(--text-muted);
  font-size: .9375rem; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 0; transition: color var(--transition);
}
.btn-back:hover { color: var(--text); }

/* Step 4 – Resumo */
.resumo-box {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px;
}
.resumo-box h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: 12px; }
.resumo-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.resumo-row:last-child { border-bottom: none; }
.resumo-row span:last-child { color: var(--text); font-weight: 500; text-align: right; }

.payment-notice {
  background: rgba(0,180,216,0.08); border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius); padding: 14px 18px; font-size: .875rem;
  color: var(--text-muted); margin-bottom: 24px;
}
.payment-notice strong { color: var(--cyan); }

/* ─── Success Page ──────────────────────────────────────────────────────────── */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.success-box {
  background: var(--bg-card); border: 1px solid rgba(0,180,216,0.3);
  border-radius: 16px; padding: 56px 48px; text-align: center;
  max-width: 560px; width: 100%; box-shadow: var(--shadow);
}
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-box h1 { margin-bottom: 12px; }
.success-box p  { margin-bottom: 20px; }
.success-email  { color: var(--cyan); font-weight: 700; }
.success-timer  { font-size: 1.125rem; font-weight: 600; color: var(--text); }
.success-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ─── Utilities ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-cyan { color: var(--cyan); }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .form-card { padding: 28px 20px; }
  .pricing-box { padding: 40px 24px; }
  .hero { padding: 60px 0; min-height: auto; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .form-actions { flex-direction: column-reverse; gap: 12px; }
  .form-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .tipo-grid { grid-template-columns: repeat(2, 1fr); }
  .radio-cards { flex-direction: column; }
  .success-box { padding: 36px 24px; }
  .pricing-box .big-price { font-size: 3rem; }
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.step-panel { animation: fadeIn .25s ease; }
