/* =====================================================
   WooSee Energy — energy.woosee.pro
   Brand: Navy #0F1629 | Green #00C77A | Amber #F5A623 | Slate #8892A4
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --navy:     #0F1629;
  --surface:  #151E38;
  --surface2: #1C2742;
  --border:   #263050;
  --green:    #00C77A;
  --green-d:  #009F62;
  --amber:    #F5A623;
  --white:    #FFFFFF;
  --text:     #E2E8F0;
  --muted:    #8892A4;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --radius:   12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; font-size: 18px; }
body { font-family: var(--font); background: var(--navy); color: var(--text); overflow-x: hidden; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--green); }

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-large { font-size: 19px; padding: 19px 38px; }

.btn-secondary {
  display: inline-block;
  color: var(--green);
  font-weight: 500;
  font-size: 17px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--green);
  transition: opacity .2s;
}
.btn-secondary:hover { opacity: .75; }

/* =====================================================
   NAV
===================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 22, 41, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--white);
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: var(--green-d); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 60%, rgba(0,199,122,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 20%, rgba(0,100,200,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.hero-h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-pricing {
  font-size: 15px;
  color: var(--muted);
}
.hero-also {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}
.hero-also-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-also-link:hover { color: var(--green-d); }

.hero-illustration {
  width: 260px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 40px rgba(0,199,122,0.15));
}
.hero-illustration svg { width: 100%; height: auto; }

/* =====================================================
   SECTION SHARED
===================================================== */

section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.section-h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* =====================================================
   HOW IT WORKS
===================================================== */

.how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step-icon { font-size: 38px; margin-bottom: 12px; }
.step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.step-h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.step-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* =====================================================
   ANALYSER
===================================================== */

.analyser { background: var(--navy); border-top: 1px solid var(--border); }

/* Selector card */
.bsa-selector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 28px;
}

.bsa-sel-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.bsa-sel-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.bsa-sel-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bsa-sel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.bsa-sel-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pill buttons */
.bsa-pill {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.bsa-pill:hover { border-color: var(--green); color: var(--text); }
.bsa-pill.active { border-color: var(--green); background: rgba(0,199,122,.09); color: var(--green); }

/* Scenario pills slightly larger */
#bsa-sc-res, #bsa-sc-com {
  font-size: 17px;
  padding: 12px 28px;
}

/* Static tariff label (commercial only) */
.bsa-tariff-fixed {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  background: rgba(0,199,122,.06);
  border: 1px solid rgba(0,199,122,.2);
  border-radius: var(--radius-sm);
}
.bsa-tariff-fixed-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.bsa-tariff-fixed-note {
  font-size: 13px;
  color: var(--muted);
}

/* Dropdowns */
.bsa-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  padding: 11px 16px;
  cursor: pointer;
  transition: border-color .2s;
  min-width: 210px;
}
.bsa-select:focus { outline: none; border-color: var(--green); }

/* Error */
.bsa-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: var(--radius-sm);
  color: #FCA5A5;
  padding: 14px 18px;
  font-size: 16px;
  margin-bottom: 16px;
}

/* Progress */
.bsa-prog-wrap { margin-bottom: 24px; }
.bsa-prog-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.bsa-prog-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  width: 0%;
  transition: width .3s ease;
}
.bsa-prog-label { font-size: 15px; color: var(--muted); }

/* Results header */
.bsa-result-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bsa-result-title { font-size: 20px; font-weight: 700; color: var(--white); }
.bsa-result-sub { font-size: 15px; color: var(--muted); }

/* Tariff code row */
.bsa-tariff-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 15px;
}
.bsa-tariff-code-label { color: var(--muted); }
.bsa-tariff-code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  color: var(--green);
  background: rgba(0,199,122,.08);
  border: 1px solid rgba(0,199,122,.2);
  border-radius: 4px;
  padding: 2px 9px;
}

/* KPI grid */
.bsa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.bsa-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.bsa-kpi--green { border-color: rgba(0, 199, 122, .3); }
.bsa-kpi--amber { border-color: rgba(245, 166, 35, .3); }

.bsa-kpi-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 5px;
}
.bsa-kpi--green .bsa-kpi-val { color: var(--green); }
.bsa-kpi--amber .bsa-kpi-val { color: var(--amber); }
.bsa-kpi-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 5px;
}
.bsa-kpi-desc { font-size: 14px; color: var(--muted); }

/* Chart */
.bsa-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  height: 280px;
  position: relative;
}
.bsa-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Legend */
.bsa-legend {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 15px;
}
.bsa-leg-item { color: var(--muted); }
.bsa-leg-amber { color: var(--amber); }
.bsa-leg-green { color: var(--green); }

/* Table */
.bsa-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.bsa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.bsa-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.bsa-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.bsa-table tr:last-child td { border-bottom: none; }
.bsa-table tr.tot td { font-weight: 700; color: var(--white); background: var(--surface); }
.bsa-table .r { text-align: right; }
.bsa-table .g { color: var(--green); font-weight: 600; }
.bsa-table tr.tot td.g { color: var(--green); font-weight: 700; }

.bsa-ref-note { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.bsa-footnote { font-size: 13px; color: var(--muted); line-height: 1.6; opacity: .7; }

/* =====================================================
   CTA SECTION
===================================================== */

.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-icon { font-size: 52px; margin-bottom: 20px; }
.cta-h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-body { font-size: 18px; color: var(--muted); margin-bottom: 30px; }

/* =====================================================
   FOOTER
===================================================== */

.footer {
  background: #080E1C;
  border-top: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}
.footer-brand { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-company { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.footer-built { font-size: 14px; color: var(--muted); margin-bottom: 18px; opacity: .7; }
.footer-disclaimer {
  font-size: 13px;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: .6;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
  .bsa-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr 220px; gap: 40px; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .steps-grid { grid-template-columns: 1fr; }

  .bsa-selector { padding: 18px 20px; }
  .bsa-sel-row { gap: 20px; }
  .bsa-kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .bsa-kpi-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
