:root {
  --navy: #0F172A;
  --slate-dark: #1E293B;
  --slate-text: #334155;
  --slate-muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --emerald: #059669;
  --emerald-bright: #10B981;
  --emerald-soft: #ECFDF5;
  --emerald-dark: #065F46;
  --amber-bg: #FFFBEB;
  --amber-text: #B45309;
  --indigo-bg: #EEF2FF;
  --indigo-text: #3730A3;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.55;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.brand {
  color: var(--white); font-size: 1.15rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.brand strong { color: #34D399; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%; background: #10B981;
  box-shadow: 0 0 12px #10B981;
}
.top-actions { display: flex; align-items: center; gap: 18px; }
.nav-link { color: #CBD5E1; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-link:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; transition: transform 0.12s ease, opacity 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 24px; font-size: 0.98rem; }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-dark-outline { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(155deg, #0F172A 0%, #1E293B 65%, #064E3B 100%);
  color: var(--white);
  padding: 52px 0 78px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #34D399;
  color: #A7F3D0;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px;
}
.hero h1 span { color: #34D399; }
.hero-sub {
  max-width: 720px; margin: 0 auto; color: #CBD5E1; font-size: 1.05rem;
}

/* Calculator layout */
.calc-section { margin-top: -42px; padding-bottom: 56px; }
.calc-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.panel-header h2 { font-size: 1.15rem; font-weight: 800; }
.hint { font-size: 0.78rem; color: var(--emerald); font-weight: 700; background: var(--emerald-soft); padding: 3px 10px; border-radius: 99px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--slate-dark); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input, select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #CBD5E1; border-radius: 10px;
  font-size: 1rem; font-weight: 700; color: var(--navy); background: #F8FAFC;
  outline: none; transition: border-color 0.15s;
}
.input-wrap input:focus, select:focus { border-color: var(--emerald); background: var(--white); }
.unit { position: absolute; right: 14px; font-size: 0.85rem; font-weight: 700; color: var(--slate-muted); pointer-events: none; }
.slider { width: 100%; margin-top: 8px; accent-color: var(--emerald); cursor: pointer; }
.label-split { display: flex; justify-content: space-between; align-items: center; }
.help-text { display: block; margin-top: 5px; font-size: 0.8rem; color: var(--slate-muted); }

/* Results */
.hero-result {
  background: linear-gradient(135deg, #064E3B 0%, #059669 100%);
  color: var(--white); border-radius: 12px; padding: 22px 24px; text-align: center; margin-bottom: 18px;
}
.hr-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: #A7F3D0; margin-bottom: 6px; }
.hr-value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.1; }
.hr-sub { font-size: 0.86rem; color: #D1FAE5; margin-top: 6px; }

.split-block { margin-bottom: 18px; }
.split-bar {
  height: 14px; border-radius: 99px; overflow: hidden; display: flex; background: #E2E8F0;
}
.seg-neto { background: #10B981; transition: width 0.25s ease; }
.seg-imp { background: #F59E0B; transition: width 0.25s ease; }
.seg-gas { background: #64748B; transition: width 0.25s ease; }
.split-legend {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: var(--slate-text); margin-top: 8px;
}
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.dot-neto { background: #10B981; }
.dot-imp { background: #F59E0B; }
.dot-gas { background: #64748B; }

.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.res-card { border-radius: 11px; padding: 14px 16px; border: 1px solid var(--border); }
.res-card.amber { background: var(--amber-bg); border-color: #FCD34D; color: var(--amber-text); }
.res-card.indigo { background: var(--indigo-bg); border-color: #C7D2FE; color: var(--indigo-text); }
.res-card.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.res-card.emerald { background: var(--emerald-soft); border-color: #A7F3D0; color: var(--emerald-dark); }
.rc-title { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }
.rc-val { font-size: 1.35rem; font-weight: 800; }
.rc-note { font-size: 0.77rem; opacity: 0.82; margin-top: 2px; }

.alert-box {
  border-radius: 10px; padding: 12px 14px; font-size: 0.85rem; line-height: 1.45;
  margin-bottom: 16px; border: 1px solid #BFDBFE; background: #EFF6FF; color: #1E3A8A;
}
.alert-box.ok { border-color: #A7F3D0; background: #ECFDF5; color: #065F46; }

.inline-cta {
  background: #F8FAFC; border: 1.5px solid #CBD5E1; border-radius: 12px; padding: 16px;
}
.icta-text strong { display: block; font-size: 0.94rem; color: var(--navy); margin-bottom: 3px; }
.icta-text span { display: block; font-size: 0.84rem; color: var(--slate-text); margin-bottom: 12px; }
.icta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Showcase */
.showcase { padding: 20px 0 64px; }
.sc-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: var(--white); border-radius: 18px; padding: 40px;
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 36px; align-items: center;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
}
.sc-badge {
  display: inline-block; background: rgba(16,185,129,0.2); color: #6EE7B7;
  border: 1px solid #34D399; font-size: 0.76rem; font-weight: 800;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; letter-spacing: 0.06em;
}
.sc-left h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 12px; }
.sc-left p { color: #CBD5E1; margin-bottom: 16px; font-size: 0.97rem; }
.sc-list { list-style: none; margin-bottom: 24px; }
.sc-list li { margin-bottom: 9px; padding-left: 22px; position: relative; color: #E2E8F0; font-size: 0.93rem; }
.sc-list li::before { content: "✓"; position: absolute; left: 0; color: #34D399; font-weight: 900; }
.sc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.mini-preview {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; overflow: hidden;
}
.mp-head {
  background: rgba(16,185,129,0.2); color: #A7F3D0;
  padding: 13px 18px; font-weight: 800; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.mp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem; color: #F1F5F9;
}
.mp-row b { color: #34D399; }

/* FAQ */
.faq-section { padding: 12px 0 68px; }
.faq-section h2 { text-align: center; font-size: 1.65rem; margin-bottom: 28px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px;
}
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.faq-item p { font-size: 0.9rem; color: var(--slate-text); }

/* Footer */
.footer {
  background: var(--navy); color: #94A3B8; padding: 30px 0; text-align: center; font-size: 0.84rem;
}
.footer .copy { margin-top: 8px; color: #64748B; }

@media (max-width: 900px) {
  .calc-grid, .sc-card, .faq-grid { grid-template-columns: 1fr; }
  .sc-card { padding: 26px; }
}
@media (max-width: 560px) {
  .field-row, .res-grid { grid-template-columns: 1fr; }
  .nav-link { display: none; }
}
