/* ===== SOLARNERDS.NET — MAIN STYLESHEET ===== */
:root {
  --sun: #F59E0B;
  --sun-dark: #D97706;
  --sun-light: #FEF3C7;
  --sky: #0EA5E9;
  --sky-dark: #0284C7;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
  --mid: #64748B;
  --light: #F1F5F9;
  --white: #FFFFFF;
  --green: #10B981;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--white);
  font-size: 1.2rem;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--sun); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--sun); color: var(--dark) !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-nav:hover { background: var(--sun-dark) !important; transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding: 16px 24px; gap: 12px; background: var(--dark-2); }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 1rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 50%, rgba(245,158,11,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(14,165,233,0.10) 0%, transparent 50%),
              var(--dark);
}
.hero-content { flex: 1; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  color: var(--sun); padding: 8px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-accent { color: var(--sun); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 36px; max-width: 520px; }
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--sun); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }
.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--sun), var(--sun-dark));
  color: var(--dark); font-weight: 800; font-size: 1.05rem;
  padding: 16px 36px; border-radius: 100px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(245,158,11,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,158,11,0.5); }
.btn-hero:active { transform: scale(0.97); }
.hero-trust { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.hero-visual {
  flex: 0 0 380px; display: flex; align-items: center; justify-content: center;
}
.solar-house { position: relative; text-align: center; }
.house-graphic { font-size: 8rem; filter: drop-shadow(0 0 40px rgba(245,158,11,0.3)); }
.solar-rays { position: absolute; inset: 0; pointer-events: none; }
.ray { position: absolute; font-size: 2rem; animation: float 3s ease-in-out infinite; }
.ray-1 { top: -20px; left: 50%; animation-delay: 0s; }
.ray-2 { top: 40%; right: -30px; animation-delay: 1s; }
.ray-3 { bottom: 10%; left: -20px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== CALCULATOR SECTION ===== */
.calculator-section { padding: 100px 0; background: var(--dark-2); }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--sun); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 48px; }
.calc-wrapper { display: flex; gap: 32px; align-items: flex-start; }
.calc-form {
  flex: 1; background: var(--dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 40px; min-height: 420px;
}
.calc-step { display: none; }
.calc-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.step-num { font-size: 0.8rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.step-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.step-bar { height: 100%; background: var(--sun); border-radius: 2px; transition: width 0.4s ease; }
.calc-form h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.step-hint { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 20px; margin-top: -16px; }

.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.state-btn {
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1);
  color: var(--white); padding: 16px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.state-btn:hover { border-color: var(--sun); background: rgba(245,158,11,0.1); }
.state-btn.selected { border-color: var(--sun); background: rgba(245,158,11,0.15); color: var(--sun); }
.zip-row { margin-bottom: 20px; }
.zip-row input {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  color: var(--white); font-size: 1rem; outline: none;
}
.zip-row input:focus { border-color: var(--sun); }

.bill-slider-wrap { margin-bottom: 20px; }
.bill-display {
  text-align: center; font-size: 2.5rem; font-weight: 800;
  color: var(--sun); margin-bottom: 12px;
}
input[type="range"] {
  width: 100%; height: 6px; -webkit-appearance: none;
  background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; margin-bottom: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  background: var(--sun); border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
}
.bill-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.bill-presets button {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); padding: 8px 14px; border-radius: 8px;
  font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.bill-presets button:hover { border-color: var(--sun); color: var(--sun); }

.shade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.shade-btn {
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1);
  color: var(--white); padding: 20px 16px; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
}
.shade-btn:hover { border-color: var(--sky); background: rgba(14,165,233,0.1); }
.shade-btn.selected { border-color: var(--sky); background: rgba(14,165,233,0.15); }
.shade-icon { font-size: 2rem; }
.shade-sub { font-size: 0.75rem; color: rgba(255,255,255,0.45); }

.btn-next {
  width: 100%; padding: 16px; background: var(--sun); color: var(--dark);
  border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; margin-bottom: 12px;
}
.btn-next:hover:not(:disabled) { background: var(--sun-dark); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-back {
  width: 100%; padding: 12px; background: transparent;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5);
  border-radius: var(--radius); font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.btn-back:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

/* Results */
.results-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.result-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.result-card.highlight { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); }
.result-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.result-value { font-size: 1.5rem; font-weight: 800; color: var(--sun); }
.lead-capture h3 { font-size: 1.2rem; margin-bottom: 8px; }
.lead-capture > p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 20px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input {
  padding: 14px 16px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  color: var(--white); font-size: 1rem; outline: none;
}
.lead-form input:focus { border-color: var(--sun); }
.btn-submit {
  padding: 16px; background: linear-gradient(135deg, var(--green), #059669);
  color: var(--white); border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,0.4); }
.privacy-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 8px; }
.powur-cta { margin-top: 20px; padding: 20px; background: rgba(14,165,233,0.1); border: 1px solid rgba(14,165,233,0.2); border-radius: var(--radius); text-align: center; }
.powur-cta p { margin-bottom: 12px; font-size: 0.9rem; }
.btn-powur {
  display: inline-block; background: var(--sky); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius); text-decoration: none;
  font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
}
.btn-powur:hover { background: var(--sky-dark); transform: translateY(-1px); }

/* Sidebar */
.calc-sidebar { flex: 0 0 280px; display: flex; flex-direction: column; gap: 16px; }
.trust-box, .incentive-box {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px;
}
.trust-box h4, .incentive-box h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }
.trust-box ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.trust-box li { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.incentive-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.inc-icon { font-size: 1.3rem; flex-shrink: 0; }
.incentive-item div { display: flex; flex-direction: column; gap: 2px; }
.incentive-item strong { font-size: 0.88rem; }
.incentive-item span { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ===== SOCIAL PROOF ===== */
.social-proof { padding: 100px 0; background: var(--dark); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px;
}
.test-stars { color: var(--sun); font-size: 1rem; margin-bottom: 12px; }
.testimonial p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.test-author strong { display: block; font-size: 0.9rem; }
.test-author span { font-size: 0.78rem; color: var(--green); }

/* ===== GUIDE SECTION ===== */
.guide-section { padding: 100px 0; background: var(--dark-2); }
.guide-inner { display: flex; gap: 64px; align-items: center; }
.guide-text { flex: 1; }
.guide-text h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.guide-text p { color: rgba(255,255,255,0.65); margin-bottom: 24px; }
.guide-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.guide-features li { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.guide-form-wrap { flex: 0 0 340px; }
.guide-pdf-preview { font-size: 5rem; text-align: center; margin-bottom: 16px; }
.guide-form {
  background: var(--dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.guide-form h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.guide-form input {
  padding: 14px 16px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  color: var(--white); font-size: 1rem; outline: none;
}
.guide-form input:focus { border-color: var(--sun); }
.btn-guide {
  padding: 15px; background: var(--sun); color: var(--dark);
  border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.btn-guide:hover { background: var(--sun-dark); transform: translateY(-1px); }

/* ===== STATE PAGES ===== */
.state-pages { padding: 100px 0; background: var(--dark); text-align: center; }
.state-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.state-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 36px 28px; text-decoration: none; color: var(--white);
  transition: all 0.25s; display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
}
.state-card:hover { border-color: var(--sun); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(245,158,11,0.15); }
.state-card.featured { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.state-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sun); color: var(--dark); font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.state-emoji { font-size: 3rem; }
.state-card h3 { font-size: 1.4rem; font-weight: 800; }
.state-card p { font-size: 0.85rem; color: rgba(255,255,255,0.55); text-align: center; }
.state-avg { font-size: 0.88rem; color: var(--green); font-weight: 600; }
.state-link { font-size: 0.85rem; color: var(--sun); font-weight: 600; margin-top: 4px; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 100px 0; background: var(--dark-2); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-step {
  background: var(--dark); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 28px;
}
.process-num { font-size: 2.5rem; font-weight: 900; color: rgba(245,158,11,0.2); margin-bottom: 12px; font-family: 'Syne', sans-serif; }
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.process-step p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 100px 0; text-align: center;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.12) 0%, transparent 70%), var(--dark);
}
.final-cta h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.6); margin-bottom: 32px; font-size: 1.05rem; }
.cta-trust { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.35); }

/* ===== FOOTER ===== */
.footer { background: var(--dark-2); border-top: 1px solid rgba(255,255,255,0.07); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-top: 12px; line-height: 1.7; }
.footer-powur { margin-top: 8px !important; }
.footer-powur a { color: var(--sun); text-decoration: none; }
.footer-links h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-bottom: 6px; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.disclaimer { font-size: 0.72rem !important; color: rgba(255,255,255,0.2) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-stats { justify-content: center; }
  .hero-visual { flex: none; }
  .calc-wrapper { flex-direction: column; }
  .calc-sidebar { flex: none; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonials { grid-template-columns: 1fr; }
  .guide-inner { flex-direction: column; }
  .guide-form-wrap { width: 100%; }
  .state-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 60px; height: 1px; }
  .state-grid { grid-template-columns: 1fr 1fr; }
  .shade-grid { grid-template-columns: 1fr 1fr; }
  .results-preview { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .calc-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
