/* Cores Otimiza.pro — sistema dual (light default + dark) */

/* === LIGHT THEME (default) === */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a28;
  --primary-light: #ff8c61;
  --secondary: #1e6fb8;
  --secondary-light: #4d9fdb;
  --accent-cyan: #0288d1;
  --accent-green: #10b981;

  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #64748b;

  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-border: #e2e8f0;
  --surface-hover: #f1f5f9;

  --gray-medium: #cbd5e1;
  --gray-light: #f1f5f9;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --hero-gradient-1: rgba(255, 107, 53, 0.08);
  --hero-gradient-2: rgba(30, 111, 184, 0.05);

  --h1-gradient: linear-gradient(135deg, #0f172a 0%, #1e6fb8 100%);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --glow-orange: 0 0 30px rgba(255, 107, 53, 0.25);
  --glow-blue: 0 0 30px rgba(30, 111, 184, 0.2);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;
  --radius: 12px;
}

/* === DARK THEME — explícito (data-theme="dark") OU automático (prefers-color-scheme) === */
[data-theme="dark"] {
  --primary: #ff6b35;
  --primary-dark: #e55a28;
  --primary-light: #ff8c61;
  --secondary: #4d9fdb;
  --secondary-light: #6bb8f0;
  --accent-cyan: #00d4ff;
  --accent-green: #34d399;

  --text: #e2e8f0;
  --text-light: #a8b5c8;
  --text-muted: #7c8ca8;

  --bg: #050b1f;
  --bg-alt: #0a1628;
  --surface: #0f172a;
  --surface-card: rgba(15, 23, 42, 0.8);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.04);

  --gray-medium: #334155;
  --gray-light: #1e293b;

  --nav-bg: rgba(5, 11, 31, 0.85);
  --hero-gradient-1: rgba(255, 107, 53, 0.12);
  --hero-gradient-2: rgba(77, 159, 219, 0.08);

  --h1-gradient: linear-gradient(135deg, #e2e8f0 0%, #6bb8f0 100%);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glow-orange: 0 0 30px rgba(255, 107, 53, 0.3);
  --glow-blue: 0 0 30px rgba(77, 159, 219, 0.3);
}

/* === BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}
a { color: var(--secondary); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: var(--glow-orange);
}
.nav nav { display: flex; align-items: center; }
.nav nav a {
  margin-left: 24px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--primary); }
.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface-hover);
  color: var(--text) !important;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; }

.theme-toggle {
  margin-left: 16px;
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* === HERO === */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--hero-gradient-1) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, var(--hero-gradient-2) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--surface-border);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--h1-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { font-size: 20px; color: var(--text-light); margin: 24px auto 32px; max-width: 640px; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  transition: all 0.2s;
  box-shadow: var(--shadow-md), var(--glow-orange);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 53, 0.5);
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
}
.badges li {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-light);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

/* === SECTIONS === */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.section .container.center, .section.dark .container { text-align: center; }

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--text);
}
.section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
}
.section p {
  color: var(--text-light);
  margin-bottom: 16px;
  max-width: 720px;
}

/* === FEATURES GRID === */
.features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.features-grid li {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 18px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.features-grid li:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bullets, .steps { margin: 16px 0 16px 24px; }
.bullets li, .steps li { margin-bottom: 8px; color: var(--text-light); }
.bullets li::marker { color: var(--primary); }
.steps li::marker { color: var(--secondary); font-weight: 700; }

.callout {
  background: var(--surface-card);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 24px;
  font-style: italic;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

/* === CASES === */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.cases > div {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.cases > div:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cases h3 { margin-top: 0; }

/* === METRICS === */
.metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 48px 0;
}
.metrics li { text-align: center; }
.metrics strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.metrics span { color: var(--text-muted); font-size: 13px; }

/* === QUOTE === */
blockquote {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
blockquote p { font-size: 18px; font-style: italic; color: var(--text); }
blockquote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; color: var(--primary); }

/* === PRICING === */
.price {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 480px;
  margin: 48px auto;
  box-shadow: var(--shadow-lg), var(--glow-orange);
}
.tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.from { margin-top: 16px; color: var(--text-muted); text-decoration: line-through; }
.now {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
  letter-spacing: -0.02em;
}
.now small { font-size: 18px; color: var(--text-light); font-weight: 500; }
.terms { font-size: 13px; color: var(--text-light); }
.trust {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-light);
}

/* === FAQ === */
details {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
details:hover { border-color: var(--gray-medium); }
details[open] { border-color: var(--primary); }
details summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s;
}
details[open] summary::after { content: "−"; }
details[open] summary { margin-bottom: 12px; }
details p { color: var(--text-light); }

/* === LEAD FORM === */
.lead-form {
  max-width: 560px;
  margin: 32px 0 0;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.lead-form .field { margin-bottom: 16px; }
.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--text-muted); }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.lead-form textarea { resize: vertical; min-height: 80px; }
.lead-form button { width: 100%; border: none; cursor: pointer; font-size: 16px; margin-top: 8px; }
.lead-form .legal {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}
.lead-form .legal a { color: var(--secondary); text-decoration: none; }

/* === FOOTER === */
.footer {
  background: var(--bg-alt);
  color: var(--text);
  padding: 64px 0 32px;
  border-top: 1px solid var(--surface-border);
}
.footer .brand { color: var(--text); font-size: 20px; }
.footer p, .footer a { color: var(--text-light); }
.footer h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--primary); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer .tags { font-size: 13px; margin-top: 16px; color: var(--text-muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer .copy {
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
  font-size: 13px;
}
.footer .copy p { color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav nav a { margin-left: 12px; font-size: 13px; }
  .nav nav a:not(.btn-ghost):not(:last-child) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .price { padding: 28px 20px; }
  .now { font-size: 44px; }
  .theme-toggle { margin-left: 8px; }
}
