:root {
  --bg-0: #07091a;
  --bg-1: #0f1330;
  --bg-2: #161b3d;
  --card: rgba(22, 27, 61, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #9ca3c4;
  --accent: #FFB800;
  --solar: #FFD93D;
  --battery: #4ECDC4;
  --grid-c: #FF8C42;
  --gen: #E94560;
  --good: #6EE7B7;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1a1f4a 0%, var(--bg-0) 50%) fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

header {
  padding: 24px 0;
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  background: rgba(7, 9, 26, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  background: var(--accent);
  color: #1a1505;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(37,211,102,0.4);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-wa:hover { background: rgba(37,211,102,0.1); transform: translateY(-2px); }
.nav-wa::before { content: ''; width: 8px; height: 8px; background: #25D366; border-radius: 50%; box-shadow: 0 0 8px #25D366; }
@media (max-width: 720px) {
  .nav-wa { padding: 8px 12px; font-size: 13px; }
  .nav-wa::before { display: none; }
}

.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, #FFD93D 60%, #FFB800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 184, 0, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid rgba(255, 184, 0, 0.25);
  margin-bottom: 20px;
}
.badge::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

.ptype-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.ptype {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(12px);
}
.ptype button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
}
.ptype button.active {
  background: var(--accent);
  color: #1a1505;
  box-shadow: 0 4px 16px rgba(255,184,0,0.3);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 980px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.section-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.icon-hotel { background: rgba(78, 205, 196, 0.15); color: var(--battery); }
.icon-energy { background: rgba(255, 140, 66, 0.15); color: var(--grid-c); }
.icon-system { background: rgba(255, 217, 61, 0.15); color: var(--solar); }

.slider-row { margin-bottom: 22px; }
.slider-row:last-child { margin-bottom: 0; }
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.slider-label label { font-size: 14px; font-weight: 500; color: var(--text); }
.slider-label .val {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  transition: color 0.3s;
}
.slider-label .val.flash { color: #fff; }

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--p, 50%), rgba(255,255,255,0.1) var(--p, 50%));
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(255,184,0,0.4);
  transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: grab;
}

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill:hover { background: rgba(255,255,255,0.1); }
.pill.active {
  background: var(--accent);
  color: #1a1505;
  border-color: var(--accent);
}
.pill .ico { font-size: 14px; }
.appliance-row { margin-top: 6px; }
.appliance-row .pill-group { gap: 6px; }
.pill.kitchen-pill.active { background: var(--accent); color: #1a1505; border-color: var(--accent); }
.appliance-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.appliance-meta strong { color: var(--accent); font-variant-numeric: tabular-nums; }

.chart-card { grid-column: 1 / -1; }
.chart-wrap { position: relative; height: 360px; margin-top: 12px; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
}
.leg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.leg .swatch { width: 14px; height: 14px; border-radius: 4px; }

.teaser {
  background: linear-gradient(135deg, rgba(255,184,0,0.12), rgba(255,184,0,0.04));
  border: 1px dashed rgba(255,184,0,0.4);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  margin: 32px 0 24px;
}
.teaser h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.teaser p { color: var(--text-muted); margin-bottom: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }
.teaser .arrow { font-size: 26px; color: var(--accent); animation: bounce 1.6s infinite; display: inline-block; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.teaser.hidden { display: none; }

/* Blur-based soft gate: values are visible structure but unreadable until reveal */
.blurred {
  filter: blur(8px);
  user-select: none;
  position: relative;
  transition: filter 0.4s ease;
}
.blurred::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  filter: none;
}
body.revealed .blurred { filter: blur(0); }
body.revealed .blurred::after { display: none; }

.bill-compare {
  background: linear-gradient(135deg, rgba(255,184,0,0.06), rgba(255,184,0,0.01));
  border: 1px solid rgba(255,184,0,0.18);
  border-radius: 18px;
  padding: 22px;
  margin: 0 0 28px;
  backdrop-filter: blur(12px);
}
.bc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bc-cell { flex: 1; min-width: 0; text-align: center; }
.bc-cell.highlight .bc-value { color: var(--accent); }
.bc-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.bc-value { font-size: clamp(20px, 3.5vw, 28px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bc-arrow { color: var(--text-muted); font-size: 22px; flex-shrink: 0; }
@media (max-width: 720px) {
  .bc-row { flex-direction: column; gap: 10px; }
  .bc-arrow { transform: rotate(90deg); font-size: 18px; }
  .bc-label { font-size: 10px; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
}
.kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.kpi.highlight { background: linear-gradient(135deg, rgba(255,184,0,0.18), rgba(255,184,0,0.05)); border-color: rgba(255,184,0,0.3); }
.kpi.highlight .kpi-value { color: var(--accent); }

.system-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.system-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--card-border);
}
.system-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.system-table tr:last-child td { border-bottom: none; }
.system-table .right { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.system-table .total td {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
}

.lead-section {
  background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,184,0,0.02));
  border: 1px solid rgba(255,184,0,0.2);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
}
.lead-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.lead-section .subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field label .req { color: var(--gen); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; min-height: 80px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.check-row input[type=checkbox] { margin-top: 3px; accent-color: var(--accent); }

.submit-btn {
  background: var(--accent);
  color: #1a1505;
  border: none;
  padding: 18px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,184,0,0.35); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-footnote { font-size: 12px; color: var(--text-muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--card-border); line-height: 1.5; }
.form-footnote sup { color: var(--accent); font-weight: 700; }
.check-row sup { color: var(--accent); font-weight: 700; font-size: 0.7em; }
.form-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.success-card {
  display: none;
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.08), rgba(78, 205, 196, 0.04));
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 20px;
}
body.revealed .success-card { display: block; }
body.revealed #lead-form { display: none; }
body.revealed .lead-section h2,
body.revealed .lead-section .subtitle { display: none; }
.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--good), var(--battery));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #073b30;
  font-weight: 900;
}
.success-card h3 { font-size: 24px; margin-bottom: 8px; }
.success-card p { color: var(--text-muted); max-width: 540px; margin: 0 auto 8px; }
.next-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.next-steps a {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--card-border);
}
.next-steps a:hover { background: rgba(255,255,255,0.12); }
.next-steps a.primary { background: #25D366; color: #fff; border-color: #25D366; }
.next-steps a.secondary { background: var(--accent); color: #1a1505; border-color: var(--accent); font-weight: 600; }
.next-steps a.secondary:hover { transform: translateY(-1px); }
.scenario-hint {
  font-size: 13px;
  color: var(--accent);
  background: rgba(255,184,0,0.08);
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 16px;
}

footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
footer a { color: var(--accent); text-decoration: none; }

.info {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  text-align: center;
  line-height: 16px;
  font-size: 11px;
  cursor: help;
  margin-left: 4px;
  position: relative;
}
.info:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  font-weight: 400;
}

body.revealed .blurred {
  animation: fadeUp 0.5s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Mobile fixes
   ============================================================ */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  header { padding: 16px 0; }
  .nav { gap: 8px; }
  .logo { font-size: 18px; }
  .hero { padding: 40px 0 28px; }
  .card { padding: 20px; }
  .ptype button { padding: 10px 18px; font-size: 14px; }
  .lead-section { padding: 24px 18px; border-radius: 18px; }
  .system-table { font-size: 13px; }
  .system-table th, .system-table td { padding: 10px 8px; }
  .chart-wrap { height: 260px; }
  .pill { font-size: 13px; padding: 8px 12px; }
  .submit-btn { padding: 16px 20px; font-size: 15px; }
  .legend { gap: 10px; flex-wrap: wrap; }
  .leg { font-size: 12px; }
  .next-steps { flex-direction: column; }
  .next-steps a { width: 100%; box-sizing: border-box; text-align: center; }
}
@media (max-width: 480px) {
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 22px; }
  .system-table th { font-size: 10px; }
}
