/*
 * Design System: buscar-energia — Marketplace
 */

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

:root {
  --bg-page:      #FFFFFF;
  --bg-card:      #FFFFFF;
  --bg-card-alt:  #F8F8F8;
  --bg-section:   #F5F5F5;
  --bg-header:    #3D5490;
  --bg-subnav:    #2E3F71;
  --bg-sidebar:   #FFFFFF;

  --border-light: rgba(0,0,0,0.09);
  --border-mid:   rgba(0,0,0,0.15);
  --border-dark:  rgba(0,0,0,0.22);

  --primary:      #DD7B00;
  --primary-dark: #BF5D00;
  --primary-glow: rgba(221,123,0,0.15);
  --primary-text: #FFFFFF;

  --text-main:    #1A1A1A;
  --text-muted:   #6B7280;
  --text-dim:     #9CA3AF;
  --text-header:  #FFFFFF;

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --transition:   all 0.2s ease;
  --shadow-card:  0 1px 4px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
}

@import "marketplace.css";

/* Site header (pages only) */
.site-header { background: var(--bg-header); position: sticky; top: 0; z-index: 100; }
.site-header-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-logo-text { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; line-height: 1; display: flex; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { color: rgba(255,255,255,0.65); font-size: 13px; text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav-cta { background: var(--bg-header); border: 1px solid rgba(255,255,255,0.25); color: #fff !important; font-weight: 600; }
.site-nav-cta:hover { background: rgba(255,255,255,0.1) !important; }

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(7, 10, 19, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.12) 0%, rgba(7, 10, 19, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 99px;
  background-color: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.2);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.link-secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.link-secondary:hover {
  color: var(--primary);
}

.link-secondary .arrow {
  transition: transform 0.2s ease;
}

.link-secondary:hover .arrow {
  transform: translateX(4px);
}

.hero-footer-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Simulator Card Widget */
.simulator-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.simulator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary) 50%, transparent);
}

.widget-header {
  margin-bottom: 28px;
}

.widget-step-indicator {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.progress-bar-container {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.widget-step {
  display: none;
}

.step-active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

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

.widget-title {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.widget-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.range-container {
  margin-bottom: 32px;
}

.range-value {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Form inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.split-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

/* Step 3: Result Styles */
.success-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.text-center {
  text-align: center;
}

.result-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.result-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.result-val {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-green {
  font-size: 28px;
  color: var(--primary);
}

.text-green-lg {
  font-size: 38px;
  color: var(--primary);
  text-shadow: 0 4px 20px rgba(0, 200, 83, 0.25);
}

.result-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 16px 0;
}

.result-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.01);
}

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

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 36px;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 83, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #04060b;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}

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

.footer-brand {
  max-width: 320px;
  margin-bottom: 48px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-footer-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none; /* simple hidden for mobile mockup */
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-footer-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}
