/* ============================================================
   RECON ELECTRONICS / NodeX — style.css
   "Built for where the grid ends" — TeraWeb Design
   ============================================================ */

/* ---- Tokens — Recon brand system v1.0 ---- */
:root {
  /* surfaces, deepest to floating */
  --navy-950: #04101F;  /* Ink */
  --navy-900: #061A33;  /* Base */
  --navy-850: #0A2547;  /* Surface */
  --navy-800: #0E3563;  /* Elevated */
  --navy-700: #155596;
  --line: rgba(120, 170, 230, 0.14);
  --line-strong: rgba(120, 170, 230, 0.28);

  /* brand blues */
  --primary: #0078C0;        /* Brand Blue — solid fills */
  --accent: #3090FF;         /* Signal Blue — accents, icons, live */
  --accent-bright: #5BA6FF;
  --accent-soft: rgba(48, 144, 255, 0.12);
  --accent-line: rgba(48, 144, 255, 0.30);

  /* market accents (semantic) */
  --mining: #E6A23C;
  --energy: #8B6CF0;
  --agri: #27B98A;

  /* text on dark */
  --t-1: #EEF4FB;
  --t-2: rgba(196, 212, 230, 0.74);  /* Mist */
  --t-3: rgba(180, 200, 225, 0.5);

  --wa: #25D366;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --r: 16px;
  --shadow: 0 20px 50px -22px rgba(2, 10, 24, 0.85);
  --shadow-accent: 0 22px 50px -26px rgba(2, 10, 24, 0.8);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--t-1);
  background: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(48, 144, 255, 0.25);
}

a, button, .btn, .hamburger, summary, [role="button"] { touch-action: manipulation; }

/* skip link */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 3000;
  background: var(--accent); color: #04101F; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  transform: translateY(-150%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: 'Archivo', sans-serif; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.lede { text-wrap: pretty; }
:where(section[id], #top) { scroll-margin-top: 84px; }
::selection { background: var(--accent); color: #04101F; }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  filter: url(#grainFilter);
  mix-blend-mode: overlay;
}
.grain { position: absolute; }

/* ============================================================
   SHARED — eyebrow, section head, signal dot
   ============================================================ */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.signal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(91, 166, 255, 0.5);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 166, 255, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(91, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 166, 255, 0); }
}

.section { padding: clamp(64px, 11vw, 130px) 0; position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(28px, 5vw, 46px); color: var(--t-1); margin-bottom: 18px; }
.section-head .lede { font-size: clamp(15px, 2vw, 18px); color: var(--t-2); }
.lede { line-height: 1.65; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600; font-size: 15px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.99); }
.btn--sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }

.btn--wa { background: var(--wa); color: #04231a; }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6); }

.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--t-1); border-color: var(--line-strong); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent-bright); background: rgba(48, 144, 255, 0.1); }

.btn--solid { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--solid:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(6, 20, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 11px 0;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.header-inner { display: flex; align-items: center; gap: 22px; }
.logo img { height: 44px; width: auto; }

#main-nav { display: none; align-items: center; gap: 6px; margin-right: auto; margin-left: 14px; }
#main-nav a {
  position: relative; color: var(--t-2);
  font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 7px;
  transition: color 0.2s var(--ease);
}
#main-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px;
  background: var(--accent-bright); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
#main-nav a:hover { color: var(--t-1); }
#main-nav a:hover::after { transform: scaleX(1); }

.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px; margin-left: auto;
  background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--t-1); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(4, 14, 28, 0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-inner { text-align: center; padding: 40px; width: 100%; }
.mobile-nav-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; background: none; border: none; color: var(--t-1); cursor: pointer; display: grid; place-items: center; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.mobile-nav-link { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 24px; color: var(--t-1); padding: 10px; transition: color 0.2s; }
.mobile-nav-link:hover { color: var(--accent-bright); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, var(--navy-950) 12%, rgba(6, 20, 40, 0.86) 46%, rgba(6, 26, 51, 0.55) 78%, rgba(8, 42, 82, 0.4) 100%),
    linear-gradient(0deg, var(--navy-950) 2%, transparent 32%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(120, 170, 230, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 30% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); }
.eyebrow--hero { color: var(--accent-bright); }
.hero h1 {
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 900; letter-spacing: -0.035em; line-height: 0.98;
  color: #fff; margin-bottom: 26px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  text-wrap: initial;
}
.hero h1 .accent {
  color: var(--accent-bright);
  position: relative;
}
.hero-sub { font-size: clamp(16px, 2.3vw, 20px); color: var(--t-2); max-width: 620px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--t-2); font-weight: 500; }
.hero-trust svg { color: var(--accent-bright); flex-shrink: 0; }

.hero-award {
  position: absolute; z-index: 3; right: var(--pad); bottom: 104px;
  display: none; align-items: center; gap: 13px;
  background: rgba(8, 37, 65, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-line);
  border-radius: 12px; padding: 14px 18px;
  font-size: 12px; color: var(--t-2); line-height: 1.4;
  box-shadow: var(--shadow);
}
.hero-award strong { color: var(--t-1); font-weight: 600; }
.hero-award-mark { font-size: 24px; color: var(--mining); line-height: 1; }

/* hero load reveal */
.reveal { opacity: 0; transform: translateY(26px); animation: rise 0.85s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 0.1s + 0.1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll reveal (added by JS) */
.js [data-rv] { opacity: 0; transform: translateY(28px); }
.js [data-rv].in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--rvd, 0s); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.problem-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.problem-card {
  position: relative; overflow: hidden;
  background: var(--navy-850);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.problem-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.6;
}
.problem-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px;
}
.problem-card h3 { font-size: 21px; color: var(--t-1); margin-bottom: 9px; }
.problem-card p { color: var(--t-2); font-size: 15px; line-height: 1.6; }
@media (hover: hover) {
  .problem-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
}

/* ============================================================
   PLATFORM / PILLARS
   ============================================================ */
.platform { background: var(--navy-950); }
.pillars { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
.pillar {
  position: relative;
  background: linear-gradient(165deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 34px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.pillar h3 { font-size: 23px; color: var(--t-1); margin-bottom: 11px; }
.pillar p { color: var(--t-2); font-size: 15.5px; }
@media (hover: hover) {
  .pillar:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow-accent); }
}
.platform-moat {
  text-align: center; max-width: 860px; margin: 0 auto;
  font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(20px, 3.4vw, 32px); line-height: 1.3; color: var(--t-2);
}
.platform-moat strong { color: var(--t-1); font-weight: 800; }
.platform-moat strong:nth-of-type(1) { color: var(--accent-bright); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.how-layout { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }

.flow { display: flex; flex-direction: column; gap: 6px; }
.flow-step { display: flex; gap: 20px; padding: 8px 0; position: relative; }
.flow-index {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px;
  color: var(--accent-bright);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.flow-step:not(:last-child) .flow-index::after {
  content: ''; position: absolute; left: 22px; top: 54px; bottom: -6px; width: 1.5px;
  background: linear-gradient(180deg, var(--accent-line), transparent);
}
.flow-body h3 { font-size: 20px; color: var(--t-1); margin-bottom: 5px; padding-top: 9px; }
.flow-body p { color: var(--t-2); font-size: 15px; }

.dash {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow);
}
.dash-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; color: var(--t-1); }
.dash-live { display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--agri); }
.dash-live .signal-dot { background: var(--agri); animation: none; }
.dash-gauges { display: flex; justify-content: space-around; gap: 16px; margin-bottom: 20px; }
.gauge svg { width: 116px; height: 116px; }
.gauge-val { fill: #fff; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 21px; }
.gauge-cap { fill: rgba(200, 216, 240, 0.5); font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: 0.12em; }
.dash-chart { background: rgba(4, 14, 28, 0.5); border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--t-2); font-weight: 500; }
.pill { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.pill--on { color: var(--agri); background: rgba(52, 201, 138, 0.14); border: 1px solid rgba(52, 201, 138, 0.3); }
.chart { width: 100%; height: 70px; display: block; }
.dash-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: var(--t-3); }

.offline-banner {
  margin-top: 30px;
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(120deg, rgba(48, 144, 255, 0.1), transparent);
  border: 1px solid var(--accent-line);
  border-radius: var(--r); padding: 24px 26px;
}
.offline-banner svg { flex-shrink: 0; margin-top: 2px; }
.offline-banner h3 { font-size: 19px; color: var(--t-1); margin-bottom: 6px; }
.offline-banner p { color: var(--t-2); font-size: 15px; }

/* ============================================================
   MARKETS
   ============================================================ */
.markets { background: var(--navy-900); }
.market-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.market-card {
  position: relative; overflow: hidden;
  background: var(--navy-850);
  border: 1px solid var(--line);
  border-top: 3px solid var(--v);
  border-radius: var(--r); padding: 28px 28px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.market-card::after {
  content: ''; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: var(--v); opacity: 0.12; filter: blur(20px);
}
.market-top { display: flex; justify-content: flex-end; align-items: flex-start; margin-bottom: 18px; }
.market-icon { color: var(--v); position: relative; }
.market-card h3 { font-size: 27px; color: var(--t-1); margin-bottom: 2px; }
.market-sub { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--v); letter-spacing: 0.04em; margin-bottom: 14px; }
.market-card > p:not(.market-sub):not(.market-partner) { color: var(--t-2); font-size: 15px; }
.market-partner {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--t-3); font-weight: 500;
}
@media (hover: hover) {
  .market-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
}

/* broader applicability — light secondary layer */
.more-markets { margin-top: clamp(34px, 5vw, 52px); text-align: center; }
.more-markets-lead { max-width: 600px; margin: 0 auto 22px; color: var(--t-2); font-size: 15px; }
.market-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.market-chips li {
  font-size: 13.5px; color: var(--t-2); font-weight: 500;
  background: var(--navy-850); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
@media (hover: hover) { .market-chips li:hover { border-color: var(--accent-line); color: var(--t-1); } }
.more-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: var(--accent-bright);
  transition: color 0.25s var(--ease);
}
.more-cta svg { transition: transform 0.25s var(--ease); }
.more-cta:hover { color: var(--accent); }
.more-cta:hover svg { transform: translateX(3px); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.cap-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cap-card {
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.cap-card svg { margin-bottom: 16px; }
.cap-card h3 { font-size: 19px; color: var(--t-1); margin-bottom: 9px; }
.cap-card p { color: var(--t-2); font-size: 14.5px; line-height: 1.6; }
@media (hover: hover) {
  .cap-card:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--navy-800); }
}

/* ============================================================
   CONNECTIVITY
   ============================================================ */
.connectivity { background: var(--navy-950); }
.conn-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
.conn-card {
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px; text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.conn-card svg { margin: 0 auto 16px; }
.conn-card h3 { font-size: 22px; color: var(--t-1); margin-bottom: 12px; }
.conn-range {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent-bright); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.conn-range--inline { margin-bottom: 10px; }
.conn-card p { color: var(--t-2); font-size: 14.5px; }
@media (hover: hover) {
  .conn-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
}
.nodeg {
  display: flex; gap: 22px; align-items: flex-start;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 30px;
}
.nodeg-icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.nodeg-body h3 { font-size: 22px; color: var(--t-1); margin: 4px 0 10px; }
.nodeg-body p { color: var(--t-2); font-size: 15px; }

/* ============================================================
   MADE IN SA / BUILT
   ============================================================ */
.built { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.built-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.built-text h2 { font-size: clamp(28px, 5vw, 44px); color: var(--t-1); margin-bottom: 18px; }
.built-text > p { color: var(--t-2); font-size: 16px; margin-bottom: 30px; max-width: 560px; }
.built-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; max-width: 520px; }
.built-stats li {
  background: var(--navy-850); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px;
}
.bs-num { display: block; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 28px; color: var(--accent-bright); line-height: 1; margin-bottom: 6px; }
.bs-lab { font-size: 13px; color: var(--t-2); }

.partners-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-3); display: block; margin-bottom: 14px; }
.partners-row { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-chip {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--navy-850); border: 1px solid var(--line);
  border-bottom: 2px solid var(--v);
  border-radius: 10px; padding: 11px 16px;
  font-size: 14px; font-weight: 600; color: var(--t-1);
}
.partner-chip small { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v); font-weight: 500; }

.built-board {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, var(--navy-700), var(--navy-850) 70%);
  border: 1px solid var(--line-strong);
  padding: 18px; box-shadow: var(--shadow);
}
.built-board img { width: 100%; height: auto; border-radius: 8px; }
.built-board figcaption {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; padding: 0 4px 4px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--t-2);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--primary) 55%, var(--navy-700) 100%);
}
.contact-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.contact-inner { position: relative; z-index: 1; max-width: 740px; margin: 0 auto; }
.contact h2 { font-size: clamp(32px, 6vw, 56px); color: #fff; margin-bottom: 18px; }
.lede--light { color: rgba(255, 255, 255, 0.82); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy-950); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 76px); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 34px; margin-bottom: 18px; }
.footer-brand p { color: var(--t-3); font-size: 14px; max-width: 320px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-links h4, .footer-contact h4 { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-3); margin-bottom: 5px; }
.footer-links a, .footer-contact a, .footer-contact span { color: var(--t-2); font-size: 14px; transition: color 0.2s var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 24px 0 28px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--t-3);
}
.footer-bottom a { color: var(--t-2); }
.footer-bottom a:hover { color: var(--accent-bright); }
.privacy-link { white-space: nowrap; }

/* PRIVACY */
.privacy { background: var(--navy-900); border-top: 2px solid var(--accent); }
.privacy[hidden] { display: none; }
.privacy-content { max-width: 800px; padding: 60px var(--pad); }
.privacy-content h2 { font-size: 28px; color: var(--t-1); margin-bottom: 22px; }
.privacy-content h3 { font-size: 16px; color: var(--accent-bright); margin: 22px 0 7px; }
.privacy-content p { font-size: 14.5px; color: var(--t-2); margin-bottom: 10px; }
.privacy-content a { color: var(--accent-bright); }

/* FLOATING WHATSAPP */
.floating-wa {
  position: fixed; z-index: 1500;
  bottom: calc(22px + env(safe-area-inset-bottom)); right: calc(22px + env(safe-area-inset-right));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floating-wa:hover { transform: scale(1.08); box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 680px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .conn-grid { grid-template-columns: repeat(3, 1fr); }
  .built-stats { grid-template-columns: repeat(4, 1fr); }
  .built-stats li { padding: 18px; }
}

@media (min-width: 920px) {
  #main-nav { display: flex; }
  .hamburger { display: none; }
  .hero-award { display: flex; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .market-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .how-layout { grid-template-columns: 1fr 1.05fr; gap: 50px; }
  .built-grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr; gap: 50px; }
  .nodeg { padding: 34px 38px; }
}

@media (min-width: 1100px) {
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
}
