/* ==========================================================================
   Volltera Energy Markets — styles
   Layout: header, hero with an animated price-spread band, then
   two-column sections (heading left, copy right). Single dark theme.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --bg:       #0C1527;  /* page background */
  --surface:  #131F38;  /* cards, animation band */
  --fg:       #E7ECF4;  /* primary text */
  --muted:    #95A2B8;  /* secondary text */
  --line:     #22314E;  /* dividers, borders */
  --brand:    #9DBBE3;  /* accent: highlights, filled pills */
  --on-brand: #0C1527;  /* text on --brand */
  --mark:     #9DBBE3;  /* logo square, animation accent */

  /* Typography (one family: Geist 400 / 500 / 600) */
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  /* Type scale: 13 (meta) · 15 (secondary) · 17 (body) · 18–20 (lede)
     · 26–34 (h2) · 42–88 (h1) */

  /* Layout */
  --max:    1160px;
  --gutter: 24px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

img, svg { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left:  max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.logo svg { flex: none; }

.logo small {
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--mark);
}

h1 {
  max-width: 12ch;
  margin: 20px 0 0;
  font-weight: 600;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 56ch;
  margin: 36px 0 0;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

/* Animated band (decorative, illustrative only) */
.band {
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band canvas {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 340px);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
}

h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.copy { min-width: 0; }

.copy > p {
  max-width: 62ch;
  margin: 0 0 20px;
}

/* What we do: drivers */
.drivers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 28px;
  padding: 0;
  list-style: none;
}

.drivers li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.drivers li.is-accent {
  border-color: var(--brand);
  color: var(--brand);
}

/* What we do: three cards */
.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.method article {
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--surface);
}

.method h3 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.method p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* What we do: we do / we do not */
.scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 40px;
}

.scope ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.scope li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.scope li::before {
  flex: none;
  width: 16px;
  font-weight: 500;
}

.scope-yes li::before { content: "+";      color: var(--brand); }
.scope-no  li::before { content: "\2212";  color: var(--muted); }
.scope-no  li         { color: var(--muted); }

/* Our markets */
.markets {
  margin-top: 36px;
  border-top: 1px solid var(--fg);
}

.markets-group {
  padding: 26px 0 10px;
  border-bottom: 1px solid var(--line);
}

.markets-group:first-child { padding-top: 16px; }

.market {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.market-code {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.market-name {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.pill.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.copy > .fine {
  max-width: 62ch;
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

address {
  font-style: normal;
  line-height: 1.6;
}

address b { font-weight: 600; }

.email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}

.email:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px;
}

.site-footer p {
  max-width: 70ch;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }

  .cols,
  .contact,
  .scope {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .method { grid-template-columns: minmax(0, 1fr); }

  .market { grid-template-columns: minmax(0, 1fr) auto; }
  .market-name { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 520px) {
  .logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
