/* ============================================================================
   ClimaEdge — marketing site stylesheet
   Dark-first design system derived from the report templates:
   Inter type, brand teal #156082 (exact logo colour), card-and-hairline
   layout language, uppercase letterspaced section eyebrows.
   The diagonal slash from the logo mark recurs as the site's core motif.
   ========================================================================== */

:root {
  --bg:            #0A1421;
  --bg-raised:     #0E1A2A;
  --panel:         #101E2F;
  --panel-edge:    rgba(143, 170, 191, 0.14);
  --panel-edge-hi: rgba(143, 170, 191, 0.30);
  --ink:           #E8EFF6;
  --ink-soft:      #9FB4C6;
  --muted:         #7C93A6;
  --brand:         #156082;
  --brand-bright:  #4FA8D5;
  --brand-glow:    rgba(79, 168, 213, 0.16);
  --amber:         #E8A33D;
  --amber-deep:    #C97C1E;
  --danger:        #E05252;
  --ok:            #4FBF8B;
  --radius:        10px;
  --shell:         1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

img { max-width: 100%; }
a { color: var(--brand-bright); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .shell { padding: 0 20px; } }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-bright);
  margin: 0 0 12px;
}

h1, h2, h3 { text-wrap: balance; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 'Inter', sans-serif;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid var(--panel-edge-hi);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: var(--brand-bright); }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}
.btn-solid {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-solid:hover { background: #1B76A0; border-color: #1B76A0; }
.btn-ghost { border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); border-color: transparent; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 20, 33, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-edge);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav-logo img { height: 34px; display: block; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-edge);
}
#windfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
/* Single centred column: the hero carries the positioning statement alone and
   hands the supporting proof straight to the stat strip below it. (It was
   previously a two-column grid with a fixed sample-score panel on the right --
   that panel moved into the authenticated portal, so there is no second
   column to balance any more.) */
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 128px 0 120px;
}
@media (max-width: 900px) { .hero-inner { padding: 76px 0 72px; } }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 20ch;
  margin: 0 0 26px;
}
.hero h1 .accent { color: var(--brand-bright); }
.hero .lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 40px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Stat strip ──────────────────────────────────────────────────────────── */
.stat-strip { border-bottom: 1px solid var(--panel-edge); background: var(--bg-raised); }
.stat-strip .shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
@media (max-width: 720px) { .stat-strip .shell { grid-template-columns: 1fr; } }
.stat {
  padding: 26px 28px;
  border-left: 1px solid var(--panel-edge);
}
.stat:first-child { border-left: none; }
@media (max-width: 720px) {
  .stat { border-left: none; border-top: 1px solid var(--panel-edge); }
  .stat:first-child { border-top: none; }
}
.stat .big {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-bright);
  font-variant-numeric: tabular-nums;
}
.stat .small { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section.block { padding: 92px 0; border-bottom: 1px solid var(--panel-edge); }
@media (max-width: 720px) { section.block { padding: 64px 0; } }
.block-head { max-width: 640px; margin-bottom: 48px; }
.block-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.block-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

/* ── Product cards ───────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: var(--panel-edge-hi); transform: translateY(-2px); }
.product-card::after {
  /* faint diagonal wash echoing the logo slash */
  content: "";
  position: absolute;
  top: 0; right: -30%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 45%, var(--brand-glow) 100%);
  pointer-events: none;
}
.product-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(21, 96, 130, 0.28);
  border: 1px solid rgba(79, 168, 213, 0.3);
  margin-bottom: 20px;
}
.product-card .icon svg { width: 22px; height: 22px; stroke: var(--brand-bright); }
.product-card h3 {
  font-size: 19px; font-weight: 700; margin: 0 0 10px;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.product-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.product-card .foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-edge);
  font-size: 12px;
  color: var(--muted);
}

/* ── Status tags (production / beta) ─────────────────────────────────────── */
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1.5;
}
.tag-live {
  color: var(--ok);
  background: rgba(79, 191, 139, 0.1);
  border: 1px solid rgba(79, 191, 139, 0.35);
}
.tag-beta {
  color: var(--amber);
  background: rgba(232, 163, 61, 0.1);
  border: 1px solid rgba(232, 163, 61, 0.35);
}
.product-note {
  margin: 32px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid var(--panel-edge-hi);
  padding-left: 14px;
  max-width: 74ch;
}

/* ── Pipeline ────────────────────────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
@media (max-width: 880px) { .pipeline { grid-template-columns: 1fr; } }
.pipe-step {
  position: relative;
  padding: 26px 26px 26px 0;
  margin-right: 26px;
}
.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -14px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--panel-edge-hi), transparent);
}
@media (max-width: 880px) {
  .pipe-step { margin-right: 0; padding: 22px 0; border-bottom: 1px solid var(--panel-edge); }
  .pipe-step:last-child { border-bottom: none; }
  .pipe-step:not(:last-child)::after { display: none; }
}
.pipe-step .step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-bright);
  font-variant-numeric: tabular-nums;
}
.pipe-step h3 { font-size: 17px; font-weight: 700; margin: 12px 0 8px; }
.pipe-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ── Wind field visual panel ──────────────────────────────────────────────── */
.wind-panel {
  position: relative;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #102132 0%, #0A1421 70%);
  height: 360px;
}
#windmap-basemap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: invert(1) grayscale(0.4) hue-rotate(180deg) brightness(0.68) contrast(1.05) saturate(0.55);
}
.wind-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 45%, rgba(8, 16, 27, 0.15) 0%, rgba(8, 16, 27, 0.55) 100%);
  pointer-events: none;
}
#windmap-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.wind-panel-legend {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(10, 20, 33, 0.7);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}
.wind-panel-legend .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 8px var(--brand-bright);
}
.wind-speed-scale {
  position: absolute;
  right: 20px; top: 20px;
  z-index: 3;
  width: 168px;
  background: rgba(10, 20, 33, 0.7);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 10px 14px 12px;
  backdrop-filter: blur(4px);
}
.wind-speed-scale .scale-label {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.wind-speed-scale .scale-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4FA8D5, #4FBF8B, #E8A33D, #E08A2D, #E05252);
  margin-bottom: 5px;
}
.wind-speed-scale .scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── Who we are ────────────────────────────────────────────────────────────── */
.who-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-edge);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
@media (max-width: 940px) { .who-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .who-stats { grid-template-columns: 1fr; } }
.who-stat { background: var(--panel); padding: 24px 26px; }
.who-stat .big {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--brand-bright);
}
.who-stat .small { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Access / contact ────────────────────────────────────────────────────── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .access-grid { grid-template-columns: 1fr; gap: 40px; } }
.access-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.access-copy p { color: var(--ink-soft); margin: 0 0 20px; max-width: 46ch; }
.access-points { list-style: none; padding: 0; margin: 0; }
.access-points li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.access-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 12px; height: 3px;
  background: var(--brand-bright);
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

form.panel-form {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 11px 13px;
  font: 400 14px 'Inter', sans-serif;
  color: var(--ink);
  transition: border-color .15s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--brand-bright); outline: none; }
.form-row textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  padding: 44px 0 52px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand img { height: 30px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin: 0; max-width: 34ch; }
.footer-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 2;
}
@media (max-width: 640px) { .footer-meta { text-align: left; } }

/* ── Motion safety ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #windfield { display: none; }
  .product-card, .btn { transition: none; }
}
