/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #22d3ee; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Layout ──────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; }
.section { padding: 80px 0; }
.section-dark { background: #0b1120; }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 48px; letter-spacing: -0.5px; }
.hidden { display: none !important; }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid #1e293b; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #f1f5f9; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #94a3b8; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #e2e8f0; text-decoration: none; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border: none; border-radius: 10px; cursor: pointer;
  transition: all 0.15s ease;
  padding: 12px 28px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #22d3ee; color: #0f172a; }
.btn-primary:hover { background: #06b6d4; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3); }
.btn-primary:active { transform: scale(0.98); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.urgency-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  font-size: 13px; font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #f8fafc;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: #64748b;
}
.dot { width: 4px; height: 4px; border-radius: 50%; background: #334155; }

/* ─── Calculator ──────────────────────────────────────────── */
.calculator-section { padding: 80px 0; background: #0f172a; }
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.calc-left h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.calc-desc { color: #94a3b8; margin-bottom: 32px; font-size: 15px; }

/* Form */
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: #cbd5e1; }
.form-hint { font-size: 12px; color: #64748b; }

select, input[type="number"], input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #e2e8f0;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select:focus, input:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
input::placeholder { color: #475569; }

.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 15px; }
.input-prefix input { padding-left: 32px; }

/* Results */
.calc-right {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 80px;
}
.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: #475569;
}

.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.result-header h3 { font-size: 20px; font-weight: 700; }
.result-badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.result-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.result-card.highlight { border-color: #22d3ee; background: rgba(34, 211, 238, 0.05); }
.result-label { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.result-value { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.result-value.green { color: #22c55e; }
.result-note { font-size: 13px; color: #64748b; margin-top: 2px; }

.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-divider { height: 1px; background: #334155; margin: 24px 0; }

/* Lead Form */
.result-cta h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.result-cta > p { color: #94a3b8; font-size: 14px; margin-bottom: 16px; }
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.form-disclaimer { font-size: 11px; color: #475569; text-align: center; margin-top: 4px; }

.lead-success {
  text-align: center;
  padding: 24px 0;
}
.lead-success h4 { font-size: 18px; margin-top: 12px; color: #22c55e; }
.lead-success p { color: #94a3b8; font-size: 14px; margin-top: 8px; }

/* ─── Steps ───────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.step-num {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  font-weight: 800; font-size: 16px;
  border-radius: 10px;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: #94a3b8; line-height: 1.6; }

/* ─── Why Now ─────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 28px 24px;
}
.why-icon { font-size: 32px; margin-bottom: 12px; }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: #94a3b8; line-height: 1.6; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: #64748b; font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 24px 18px; color: #94a3b8; font-size: 14px; line-height: 1.7; }

/* ─── CTA ─────────────────────────────────────────────────── */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
  padding: 80px 0;
}
.section-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-cta p { color: #94a3b8; font-size: 17px; margin-bottom: 28px; }

/* ─── Footer ──────────────────────────────────────────────── */
.footer { padding: 48px 0 32px; border-top: 1px solid #1e293b; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; margin-bottom: 32px; }
.footer-brand .logo-text { font-size: 18px; font-weight: 700; color: #f1f5f9; }
.footer-brand p { color: #64748b; font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #64748b; font-size: 13px; }
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; }
.footer-bottom p { color: #475569; font-size: 12px; text-align: center; }

/* ─── Form Validation ─────────────────────────────────────── */
.form-group.error select,
.form-group.error input { border-color: #ef4444; }
.form-error { font-size: 12px; color: #ef4444; display: none; }
.form-group.error .form-error { display: block; }

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.results-content:not(.hidden) { animation: fadeIn 0.3s ease; }
.lead-success:not(.hidden) { animation: fadeIn 0.3s ease; }

/* ─── Loading ─────────────────────────────────────────────── */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .trust-row { flex-wrap: wrap; gap: 8px; }
  .trust-row .dot { display: none; }
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-right { position: static; }
  .steps-grid, .why-grid { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .calc-right { padding: 20px; }
  .result-value { font-size: 24px; }
}
