@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #193455;
  /* Dark blue */
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(31, 181, 204, 0.6);
  /* Teal */
  --accent: #1fb5cc;
  /* Teal */
  --accent-2: #177299;
  /* Secondary Teal */
  --accent-glow: rgba(31, 181, 204, 0.15);
  /* Teal glow */
  --text-primary: #f0f4f8;
  --text-secondary: #adcad9;
  /* Pale grey */
  --text-muted: #6d828c;
  /* Grey-blue */
  --success: #d9d900;
  /* Lime */
  --warning: #f59e0b;
  --danger: #ef4444;
  --card-radius: 16px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'HK Nova', 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(31, 181, 204, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(217, 217, 0, 0.05) 0%, transparent 60%);
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  background: rgba(25, 52, 85, 0.92);
  /* Dark blue */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  height: 36px;
  display: flex;
  align-items: center;
}

.logo-mark img {
  height: 100%;
}

.logo-name {
  display: none;
  /* Logo SVG includes the name */
}

.header-badge {
  background: var(--accent-glow);
  border: 1px solid rgba(31, 181, 204, 0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(31, 181, 204, 0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.pillars-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3rem;
}

.pillar-tag {
  background: rgba(109, 130, 140, 0.15);
  /* Grey-blue */
  border: 1px solid rgba(109, 130, 140, 0.3);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── MAIN LAYOUT ─────────────────────────────────────────────────── */
.main-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: start;
}

/* ── CARD ────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(12px);
  padding: 1.75rem;
  transition: background var(--transition), border-color var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* ── QUESTION GROUPS ─────────────────────────────────────────────── */
.questions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.q-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.q-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.q-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 1px;
}

.q-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

.q-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-left: 34px;
  font-style: italic;
}

/* ── INPUTS ──────────────────────────────────────────────────────── */
.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 34px;
}

.input-suffix {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

input[type="number"],
select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text-primary);
  font-family: 'HK Nova', 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="number"] {
  width: 130px;
}

select {
  cursor: pointer;
}

input[type="number"]:focus,
select:focus {
  border-color: var(--border-focus);
  background: rgba(31, 181, 204, 0.05);
  box-shadow: 0 0 0 3px rgba(31, 181, 204, 0.1);
}

input[type="number"]::-webkit-inner-spin-button {
  opacity: 0.4;
}

select option {
  background: var(--bg-deep);
  color: var(--text-primary);
}

/* ── SLIDERS ─────────────────────────────────────────────────────── */
.slider-wrap {
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: grab;
  box-shadow: 0 0 0 3px rgba(31, 181, 204, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.2);
  cursor: grabbing;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  cursor: grab;
}

.slider-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.slider-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-style: italic;
  min-height: 2.6em;
  transition: color 0.2s;
}

.slider-pips {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.slider-pips span {
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 22px;
  text-align: center;
}

/* ── RESULTS PANEL ───────────────────────────────────────────────── */
.results-panel {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.results-title {
  font-size: 1rem;
  font-weight: 700;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* ── BIG METRIC ──────────────────────────────────────────────────── */
.metric-hero {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(31, 181, 204, 0.08), rgba(23, 114, 153, 0.1));
  border: 1px solid rgba(31, 181, 204, 0.2);
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}

.metric-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.metric-hero-value {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  transition: all 0.4s ease;
}

.metric-hero-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ── MINI METRICS ROW ────────────────────────────────────────────── */
.mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mini-metric {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.mini-metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 3px;
}

.mini-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ── BREAKDOWN TABLE ─────────────────────────────────────────────── */
.breakdown-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-name {
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-icon {
  font-size: 0.85rem;
}

.breakdown-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.breakdown-cost {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.breakdown-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(31, 181, 204, 0.08), rgba(23, 114, 153, 0.1));
  border-radius: 10px;
  border: 1px solid rgba(31, 181, 204, 0.2);
  margin-top: 6px;
}

.breakdown-total-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.breakdown-total-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ── EFFICIENCY BAR ──────────────────────────────────────────────── */
.eff-bar-wrap {
  margin-top: 0.75rem;
}

.eff-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.eff-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.eff-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, #6d828c, var(--accent), var(--success));
  transition: width 0.6s ease;
}

/* ── QUALITATIVE BENEFITS ────────────────────────────────────────── */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.benefits-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(217, 217, 0, 0.15);
  /* Lime tint */
  border-radius: 5px;
  font-size: 0.65rem;
  color: var(--success);
  flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .results-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  .main-layout {
    padding: 0 1rem 3rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .metric-hero-value {
    font-size: 2rem;
  }
}