/* ==============================================================================
   SPOTTO DESIGN SYSTEM — LINEAR SPACE BLACK & OBSIDIAN AMBER
   Desenvolvido pelo Design Engine (Anti-AI Slop Standards)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Canvas & Superfícies */
  --canvas: #08090a;
  --surface-1: #101214;
  --surface-2: #16181b;
  --surface-3: #1f2227;
  --surface-elevated: #1a1d22;

  /* Bordas Hairline */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-focus: #f59e0b;

  /* Cores de Acento Cirúrgico */
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.14);
  --amber-subtle: rgba(245, 158, 11, 0.08);

  --emerald: #00e599;
  --emerald-glow: rgba(0, 229, 153, 0.14);
  --cyan: #38bdf8;
  --rose: #ef4444;

  /* Tipografia & Hierarquia */
  --text-primary: #f7f8f8;
  --text-secondary: #9aa0a6;
  --text-muted: #5e646e;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Efeitos & Transições */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px -10px rgba(245, 158, 11, 0.18);
}

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

body {
  background-color: var(--canvas);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.06), transparent 70%),
    radial-gradient(circle at 100% 40%, rgba(0, 229, 153, 0.03), transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-hairline);
  height: 68px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-badge {
  background: var(--amber-subtle);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* SELETOR DE IDIOMA */
.lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 99px;
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--amber);
  color: #000;
  font-weight: 700;
}

/* BOTÕES TÁTEIS COM ELEVAÇÃO */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* HERO SECTION */
.hero {
  padding: 80px 24px 60px;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--amber-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .highlight {
  color: var(--amber);
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* SEARCH CARD TÁTIL */
.search-card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 980px;
  margin: 0 auto 50px;
}

.search-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr auto;
  gap: 16px;
  align-items: flex-end;
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.input-control {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.input-control:focus {
  border-color: var(--amber);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-control::placeholder {
  color: #4b515d;
}

select.input-control {
  cursor: pointer;
}

/* ÁREA DE PREVIEW & SCORE */
#previewArea {
  display: none;
  max-width: 1140px;
  margin: 40px auto 0;
  text-align: left;
  animation: fadeIn 0.4s ease-out forwards;
}

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

.preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.map-container {
  background: #060708;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  height: 440px;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.score-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px;
}

.score-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 16px;
}

.score-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.score-big {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-top: 4px;
}

.score-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.mini-box {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.mini-box-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mini-box-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* ==============================================================================
   BENTO GRID ASSIMÉTRICA DE ALTA ENGENHARIA (SUBSTITUTO DA GRID 3x3)
   ============================================================================== */
.section {
  padding: 90px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-card-8 {
  grid-column: span 8;
}

.bento-card-4 {
  grid-column: span 4;
}

.bento-card-6 {
  grid-column: span 6;
}

.bento-card-12 {
  grid-column: span 12;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.bento-stat-big {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 16px 0 10px;
}

.bento-stat-big.danger {
  color: var(--rose);
}

.bento-stat-big.emerald {
  color: var(--emerald);
}

.bento-code-box {
  background: #070809;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-light);
  margin-top: 20px;
  line-height: 1.5;
}

/* TABELA DE COMPARATIVO DE RISCO */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.9rem;
}

.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.compare-table th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* PLANOS & PREÇOS */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #14171c 0%, #101214 100%);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 20px;
}

.price-val span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pricing-features li svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* MODAL DE CHECKOUT PIX */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.pix-qr-box {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 20px auto;
}

.pix-qr-box img {
  width: 200px;
  height: 200px;
  display: block;
}

.copy-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.copy-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--amber-light);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 60px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--amber);
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-8, .bento-card-4, .bento-card-6 {
    grid-column: span 12;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}
