/* BGx Polaris — Site Styles
   Dark-first editorial · Huge/Work&Co direction
   ======================================================== */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--indigo) 40%, transparent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Focus ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--indigo-350);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Shared ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot-accent { color: var(--indigo-350); }
.hr-energy {
  height: 2px;
  width: 120px;
  background: var(--energy);
  border-radius: 2px;
}
.accent { color: var(--indigo-350); }
.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.6;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: transform, opacity;
}
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .polaris-star, .cta-star { animation: none; }
  .hero-bg { animation: none; }
  .app-card:hover { transform: none; }
}

/* ── Ticker ─────────────────────────────────────────────── */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 30px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  gap: 34px;
  padding-left: 100%;
  animation: tick 34s linear infinite;
}
.ticker b { color: var(--text-2); font-weight: 500; }
.ticker .up { color: var(--emerald-300); }
.ticker .dn { color: var(--red-400); }
@keyframes tick { to { transform: translateX(-100%); } }

/* ── Nav ────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 30px;
  left: 0; right: 0;
  z-index: 100;
  transition: background var(--dur-slow), border-color var(--dur-slow), backdrop-filter var(--dur-slow);
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.brand b { color: var(--indigo-350); font-weight: 700; }
.polaris-star { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  color: var(--text-2);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: var(--indigo-350);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
/* ── Mobile Nav ─────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 98px;
    left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    padding: var(--sp-6);
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; padding: 8px 0; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 22px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast), background var(--dur-base), border-color var(--dur-base), box-shadow .25s;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.09) inset, 0 14px 34px -14px color-mix(in srgb, var(--indigo) 80%, transparent);
}
.btn-primary:hover { background: var(--indigo-500); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--card) 40%, transparent);
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--indigo) 55%, var(--line));
  background: var(--card);
}
.btn-nav {
  background: var(--indigo);
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: .9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px -12px color-mix(in srgb, var(--indigo) 80%, transparent);
}
.btn-nav:hover { background: var(--indigo-500); }
.btn-nav:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
@media (max-width: 640px) {
  .btn-nav { padding: 8px 13px; font-size: .82rem; }
  .btn-nav svg { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: var(--sp-12);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
  filter: saturate(1.1) contrast(1.05);
  animation: heroDrift 28s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroDrift {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.1); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,22,.6), rgba(10,14,22,.75)),
    linear-gradient(90deg, rgba(10,14,22,.6), transparent 62%);
}
.hero-veil {
  position: absolute; inset: -10% -10% auto -10%;
  height: 640px;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 26% 30%, color-mix(in srgb, var(--indigo) 20%, transparent), transparent 62%),
    radial-gradient(50% 60% at 82% 20%, color-mix(in srgb, var(--cobalt) 12%, transparent), transparent 60%);
}
.hero-content {
  position: relative; z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-main { max-width: 70%; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 800;
  margin-top: 20px;
  max-width: 16ch;
}
.hero .lead { margin-top: 24px; }
.hero .hr-energy { margin-top: 28px; }
.hero-side { min-width: 236px; padding-bottom: 6px; }
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-trust {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .82rem;
}
.energy-line {
  display: inline-block;
  height: 1px;
  width: 34px;
  background: var(--energy);
  opacity: .7;
}
@media (max-width: 900px) {
  .hero-main { max-width: 100%; }
  .hero-side { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .hero { padding-top: 148px; padding-bottom: 92px; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.4rem); }
}

/* ── Sections ───────────────────────────────────────────── */
.band { padding-block: var(--sp-12); }
.band-alt {
  background:
    radial-gradient(80% 60% at 20% 30%, color-mix(in srgb, var(--indigo) 6%, transparent), transparent 50%),
    radial-gradient(60% 80% at 80% 70%, color-mix(in srgb, var(--cobalt) 4%, transparent), transparent 50%),
    var(--bg2);
}
.section-head { max-width: 62ch; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-top: 16px;
}
.section-head p {
  color: var(--text-2);
  font-size: 1.1rem;
  margin-top: 18px;
  line-height: 1.65;
  max-width: 52ch;
}
@media (max-width: 640px) {
  .band { padding-block: 84px; }
  .section-head h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .section-head p { font-size: 1.02rem; }
}

/* ── Fragment Cards (Problem) ───────────────────────────── */
.frag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.frag-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  background: var(--surface);
  position: relative;
}
/* BGx icon base (data-bgx elements, rendered by bgx-icons.js) */
[data-bgx] svg { color: var(--indigo-350); }

.frag-ic {
  position: absolute; top: 18px; right: 18px;
  color: var(--muted);
  opacity: .5;
}
.frag-ic svg { width: 22px; height: 22px; }
.frag-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.frag-desc {
  margin-top: 10px;
  color: var(--text-2);
  font-size: .96rem;
}
@media (max-width: 760px) { .frag-grid { grid-template-columns: 1fr; } }

/* ── Turn ───────────────────────────────────────────────── */
.turn {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
}
.turn-line {
  height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line));
}
.turn-line.r { background: linear-gradient(90deg, var(--line), transparent); }

/* ── Split Layout ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 52px;
}
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }
.split-copy h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-top: 14px;
}
.split-copy p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 48ch;
}
.split-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070c;
}
.split-media video,
.split-media img { width: 100%; display: block; }
@media (max-width: 860px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; direction: ltr; }
  .split.rev > * { direction: ltr; }
}

/* ── Feature List ───────────────────────────────────────── */
.feat-list { margin-top: 22px; display: grid; gap: 14px; }
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .98rem;
  color: var(--text-2);
  line-height: 1.5;
}
.feat-ic {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--indigo) 10%, var(--card));
  display: grid;
  place-items: center;
  flex: none;
  color: var(--indigo-350);
}
.feat-ic svg { width: 18px; height: 18px; }

/* ── Steps ──────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 30px 28px;
}
.step-ic { color: var(--indigo-350); margin-bottom: 14px; }
.step-ic svg { width: 24px; height: 24px; }
.step-n {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--indigo-350);
  letter-spacing: .1em;
}
.step h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: -.02em;
}
.step p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: .96rem;
  line-height: 1.6;
}
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }

/* ── Stats ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.stat { padding: 34px 8px 0; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-val {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-ic { color: var(--indigo-350); margin-bottom: 10px; }
.stat-ic svg { width: 20px; height: 20px; }
.stat-accent { color: var(--indigo-350); }
.stat-label {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 12px;
  max-width: 22ch;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 24px; }
}

/* ── Full-bleed Image ───────────────────────────────────── */
.fb-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.fb-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
.fb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 40px;
  background: linear-gradient(0deg, rgba(5,7,12,.82), transparent);
  font-size: .92rem;
  color: var(--text-2);
  max-width: 50ch;
}

/* ── Full-bleed Section ─────────────────────────────────── */
.fb-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.fb-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.fb-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,9,15,.82), rgba(6,9,15,.4) 46%, rgba(6,9,15,.05)),
    linear-gradient(0deg, rgba(6,9,15,.55), transparent 50%);
}
.fb-inner {
  position: relative; z-index: 2;
  padding-block: 76px;
}
.fb-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -.035em;
  line-height: 1.03;
  font-weight: 800;
  margin-top: 16px;
  max-width: 20ch;
}
.fb-inner p {
  color: var(--text-2);
  font-size: 1.14rem;
  margin-top: 18px;
  max-width: 44ch;
}

/* ── Proof ──────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.proof-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--indigo) 12%, var(--card));
  color: var(--indigo-350);
}
.proof-icon svg { width: 20px; height: 20px; }
.proof-item h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: -.02em;
}
.proof-item p {
  color: var(--text-2);
  margin-top: 8px;
  font-size: .96rem;
  line-height: 1.6;
}
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── App Cards ──────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px;
  background: var(--surface);
  transition: transform .25s var(--ease-out), border-color .25s, background .25s;
  position: relative;
  overflow: hidden;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--indigo) 45%, var(--line));
  background: var(--card);
}
.app-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  color: var(--indigo-350);
}
.app-icon svg { width: 20px; height: 20px; }
.app-card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
.app-card p { color: var(--text-2); font-size: .92rem; margin-top: 8px; line-height: 1.55; }
.tag {
  margin-top: 14px;
  display: inline-block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-full);
}
.tag-core {
  color: var(--emerald-300);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
}
.tag-smart {
  color: var(--cobalt-300);
  background: color-mix(in srgb, var(--cobalt) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cobalt) 30%, transparent);
}
.tag-adv {
  color: #f6c65b;
  background: color-mix(in srgb, #f79009 14%, transparent);
  border: 1px solid color-mix(in srgb, #f79009 30%, transparent);
}

/* ── Portal ─────────────────────────────────────────────── */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
}
.portal-map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(70% 90% at 55% 45%, color-mix(in srgb, var(--cobalt) 12%, transparent), transparent 60%), var(--bg2);
}
.portal-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-list ul {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
}
.portal-list li {
  background: var(--bg);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .98rem;
}
.portal-ic { color: var(--indigo-350); flex: none; }
.portal-ic svg { width: 18px; height: 18px; }
.portal-label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--indigo-350);
  letter-spacing: .1em;
  width: 82px;
  text-transform: uppercase;
  flex: none;
}
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ── Trust ──────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 52px;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  background: var(--surface);
}
.trust-ic { color: var(--indigo-350); margin-bottom: 14px; }
.trust-ic svg { width: 22px; height: 22px; }
.trust-key {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo-350);
}
.trust-desc {
  margin-top: 10px;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.55;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  text-align: center;
  padding-block: var(--sp-12);
  overflow: hidden;
}
.cta-veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 90% at 50% 70%, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-star { animation: spin 22s linear infinite; }
.cta-section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  font-weight: 800;
  margin-top: 18px;
  max-width: 20ch;
  margin-inline: auto;
}
.cta-section p {
  color: var(--text-2);
  margin-top: 18px;
  font-size: 1.1rem;
}
.cta-alt { margin-top: 18px; }

/* ── Lead Form ──────────────────────────────────────────── */
.lead-form {
  max-width: 520px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lead-form input,
.lead-form select {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .92rem;
  outline: none;
  transition: border-color var(--dur-base);
  width: 100%;
}
.lead-form input::placeholder { color: var(--muted); }
.lead-form select { color: var(--muted); cursor: pointer; appearance: none; }
.lead-form select:valid { color: var(--text); }
.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--indigo-350);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 25%, transparent);
}
.lead-form button { margin-top: 4px; justify-content: center; width: 100%; }
.form-msg {
  font-family: var(--mono);
  font-size: .82rem;
  padding: 12px;
  border-radius: var(--r-md);
  margin-top: 4px;
}
.form-msg.ok {
  color: var(--emerald-300);
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
}
.form-msg.err {
  color: #f97066;
  background: color-mix(in srgb, #f04438 12%, transparent);
  border: 1px solid color-mix(in srgb, #f04438 30%, transparent);
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 64px;
  padding-bottom: 34px;
  color: var(--muted);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 56px;
}
.foot-brand p {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 16px;
  max-width: 34ch;
  line-height: 1.6;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color var(--dur-base), border-color var(--dur-base), transform var(--dur-fast), background var(--dur-base);
}
.socials a:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--indigo) 55%, var(--line));
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  transform: translateY(-2px);
}
.socials a svg { width: 18px; height: 18px; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: var(--text-2);
  font-size: .94rem;
  padding: 6px 0;
  transition: color var(--dur-base);
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .03em;
  flex-wrap: wrap;
}
.foot-rio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rio-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 620px) { .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ── Ecossistema BGx OS ─────────────────────────────────── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: var(--sp-8);
}
.eco-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  background: var(--surface);
  transition: transform .25s var(--ease-out), border-color .25s;
}
.eco-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--indigo) 40%, var(--line));
}
.eco-card.eco-polaris {
  border-color: color-mix(in srgb, var(--indigo) 50%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 12%, var(--surface)), var(--surface));
}
.eco-mark { margin-bottom: 14px; }
.eco-ic { color: var(--indigo-350); margin-bottom: 14px; }
.eco-ic svg { width: 24px; height: 24px; }
.eco-card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
.eco-card p { color: var(--text-2); font-size: .92rem; margin-top: 8px; line-height: 1.55; }
.eco-active {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo-350);
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--indigo) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--indigo) 30%, transparent);
}
@media (max-width: 760px) { .eco-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .eco-grid { grid-template-columns: 1fr; } }
