:root {
  --bg: #0F1E35;
  --bg2: #132440;
  --accent: #1A3A6E;
  --green: #38BDF8;
  --green-dark: #0EA5E9;
  --text: #E0E8F0;
  --text-muted: #90A8C0;
  --card-bg: #162D50;
  --border: #1E4080;
  --red: #E53935;
  --yellow: #FDD835;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo span { color: var(--green); }
header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
header nav a:hover { color: var(--green); text-decoration: none; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--accent) 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,176,80,0.15);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 16px;
}
.hero h1 span { color: var(--green); }
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* FORM */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.form-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.form-card input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 20px;
}
.form-card input:focus { border-color: var(--green); }
.form-card input::placeholder { color: #4A5568; }
.btn-primary {
  display: block;
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #2A3A4C; color: #5A6A7C; cursor: not-allowed; }
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 14px;
}
.form-note svg { vertical-align: middle; margin-right: 4px; }

/* FEATURES */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--green); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,176,80,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* HOW IT WORKS */
.steps-bg { background: var(--bg2); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-card p { font-size: 0.86rem; color: var(--text-muted); }

/* PRICE SECTION */
.price-section {
  background: linear-gradient(135deg, rgba(0,176,80,0.08) 0%, rgba(15,52,96,0.3) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  padding: 60px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.price-main {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.price-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.price-features { list-style: none; text-align: left; display: inline-block; margin-bottom: 32px; }
.price-features li {
  color: var(--text);
  font-size: 0.92rem;
  padding: 5px 0;
}
.price-features li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--green); text-decoration: none; }
.footer-links { margin-bottom: 10px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* SUCCESS PAGE */
.success-container {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0,176,80,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2.5rem;
}
.success-container h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.success-container p { color: var(--text-muted); margin-bottom: 20px; }
.status-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.status-item:last-child { border-bottom: none; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-muted); flex-shrink: 0;
}
.status-dot.active { background: var(--green); animation: pulse 1.5s infinite; }
.status-dot.done { background: var(--green); }
.status-dot.pending { background: var(--border); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.progress-bar {
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  margin: 16px 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}
.btn-download {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-download:hover { background: var(--green-dark); text-decoration: none; }
.hidden { display: none !important; }

/* HISTORICO */
.historico-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}
.historico-container h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.historico-container .sub { color: var(--text-muted); margin-bottom: 40px; }
.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.search-box input {
  flex: 1;
  min-width: 240px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--green); }
.btn-search {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-search:hover { background: var(--green-dark); }
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.report-info h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.report-info span { font-size: 0.8rem; color: var(--text-muted); }
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-badge.concluido { background: rgba(0,176,80,0.15); color: var(--green); }
.status-badge.gerando { background: rgba(253,216,53,0.15); color: var(--yellow); }
.status-badge.erro { background: rgba(229,57,53,0.15); color: var(--red); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ALERTS */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.alert-error { background: rgba(229,57,53,0.1); border: 1px solid rgba(229,57,53,0.3); color: #EF9A9A; }
.alert-success { background: rgba(0,176,80,0.1); border: 1px solid rgba(0,176,80,0.3); color: #81C784; }

/* LOADER */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 50px 20px 40px; }
  .form-card { padding: 24px 20px; }
  .header-inner { flex-direction: column; gap: 10px; }
  .price-section { padding: 40px 24px; }
  .report-item { flex-direction: column; align-items: flex-start; }
}
