/* Fonts otimizadas para todos navegadores */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.user-info {
  display: none;
  align-items: center;
  gap: 1rem;
  color: #999;
}

.user-info.active {
  display: flex;
}

.btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #555;
}

.link-btn {
  background: none;
  border: none;
  color: #4ade80;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #000, #111);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero .subtitle {
  color: #666;
}

.hero p {
  font-size: 1.25rem;
  color: #999;
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 1rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #fff;
}

.search-input::placeholder {
  color: #666;
}

.search-btn {
  padding: 1rem 2rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* Pricing Section */
.pricing {
  padding: 5rem 0;
  background: #111;
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.pricing-subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: #666;
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: #fff;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 1rem 0;
}

.price-details {
  color: #999;
  margin-bottom: 1rem;
}

.savings {
  color: #4ade80;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: #000;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.testimonial:hover {
  border-color: #666;
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.testimonial-author h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-location {
  color: #999;
  font-size: 0.9rem;
}

.testimonial-date {
  color: #666;
  font-size: 0.8rem;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #111, #000);
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.25rem;
  color: #999;
  margin-bottom: 3rem;
}

.cta-btn {
  background: #fff;
  color: #000;
  padding: 1rem 3rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cta-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #111;
  border-top: 1px solid #333;
  padding: 2rem 0;
  text-align: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.search-results-modal {
  max-width: 800px;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-btn:hover {
  color: #fff;
  background: #333;
}

.modal h3 {
  margin-bottom: 1rem;
  margin-right: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #999;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #fff;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.pix-container {
  text-align: center;
  padding: 1rem 0;
}

.pix-info {
  background: #000;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: left;
  font-family: 'Courier New', monospace;
  border: 1px solid #333;
  word-break: break-all;
}

/* Search Results */
.disclaimer-box {
  margin: 1rem 0;
  padding: 1rem;
  background: #1a4d1a;
  border: 1px solid #4ade80;
  border-radius: 6px;
  text-align: center;
}

.summary-box {
  margin: 1rem 0;
  padding: 1rem;
  background: #000;
  border-radius: 6px;
  border: 1px solid #333;
}

.results-section {
  margin: 2rem 0;
}

.results-section h4 {
  margin: 1.5rem 0 1rem 0;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.result-item {
  background: #000;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 6px;
  border: 1px solid #333;
}

.confidence {
  color: #4ade80;
  font-size: 0.9rem;
}

.note {
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

.important-notice {
  background: #4d1a1a;
  border: 1px solid #ff6b6b;
  border-radius: 6px;
  padding: 1rem;
  margin: 2rem 0;
  color: #ff6b6b;
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid #4ade80;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.progress-bar {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  height: 100%;
  width: 100%;
  animation: progress 15s linear infinite;
  border-radius: inherit;
}

.error {
  color: #ef4444;
  text-align: center;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 6px;
  margin: 1rem 0;
}

.success {
  color: #4ade80;
  text-align: center;
  padding: 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid #4ade80;
  border-radius: 6px;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Otimizações específicas para Chrome */
@supports (-webkit-appearance: none) {
  body {
    -webkit-text-stroke: 0.01px transparent;
  }
  
  .hero h1, .pricing h2, .testimonials h2, .cta h2 {
    -webkit-text-stroke: 0.01px transparent;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

/* Melhorias de performance */
* {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}

.pricing-card, .testimonial, .btn, .search-btn {
  will-change: transform;
}
