/* ==========================================================================
   Tech Maven Geospatial — Electric Utility Solutions Promo Site
   Dark electric-blue enterprise theme
   ========================================================================== */

:root {
  --bg: #0a0f1c;
  --bg-alt: #0e1526;
  --surface: #131c31;
  --surface-2: #182340;
  --border: #22304d;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --radius: 12px;
  --max-w: 1180px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }

.brand-logo {
  height: 38px;
  width: auto;
  /* Lift the logo off the dark background */
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
}

.brand .bolt {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 7px;
  color: #06121f;
  font-size: 1rem;
  box-shadow: 0 0 18px var(--accent-glow);
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

.site-nav a.cta {
  color: #06121f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav a.cta:hover { filter: brightness(1.12); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 70% 0%, rgba(56, 189, 248, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 20% 100%, rgba(34, 211, 238, 0.08), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 .glow {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 46rem;
  margin-bottom: 2rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: filter 120ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121f;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { color: #06121f; filter: brightness(1.12); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 4.25rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

/* --- Cards --------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  border-color: rgba(56,189,248,0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 34px rgba(2, 8, 20, 0.55), 0 0 0 1px rgba(56,189,248,0.12);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.28);
  margin-bottom: 1.1rem;
}

.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 0.5rem; }
.card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}
.card p { color: var(--text-dim); font-size: 0.94rem; flex: 1; }
.card .card-link {
  margin-top: 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.card .card-link::after { content: " →"; }

/* --- Feature lists ------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.feature h4 { font-size: 1rem; font-weight: 650; margin-bottom: 0.35rem; color: var(--text); }
.feature h4 .fi { color: var(--accent); margin-right: 0.45rem; }
.feature p { font-size: 0.9rem; color: var(--text-dim); }

/* --- Checklist ----------------------------------------------------------- */
.checklist { list-style: none; display: grid; gap: 0.65rem; }
.checklist li {
  padding-left: 1.85rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.checklist li strong { color: var(--text); }

/* --- Two-column layout --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --- Stats --------------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { font-size: 0.86rem; color: var(--text-dim); margin-top: 0.2rem; }

/* --- Pipeline / flow ----------------------------------------------------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: stretch;
}
.flow .step {
  flex: 1 1 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  position: relative;
}
.flow .step .n {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flow .step h4 { font-size: 0.98rem; margin: 0.25rem 0 0.3rem; }
.flow .step p { font-size: 0.84rem; color: var(--text-dim); }

/* --- Badge strip --------------------------------------------------------- */
.badge-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}
.badge.hot { color: var(--accent-2); border-color: rgba(34,211,238,0.4); }

/* --- Page hero (feature pages) ------------------------------------------ */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 55% 60% at 75% 0%, rgba(56, 189, 248, 0.13), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .crumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1rem; }
.page-hero .crumb a { color: var(--text-dim); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  max-width: 54rem;
}
.page-hero .lede { color: var(--text-dim); font-size: 1.08rem; max-width: 50rem; margin-bottom: 1.8rem; }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(34,211,238,0.06));
  border-top: 1px solid rgba(56,189,248,0.25);
  border-bottom: 1px solid rgba(56,189,248,0.25);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-dim); max-width: 40rem; margin: 0 auto 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* --- Comparison table ---------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
table.cmp th, table.cmp td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp th {
  background: var(--surface);
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.cmp td { color: var(--text-dim); }
table.cmp td:first-child { color: var(--text); font-weight: 550; }
table.cmp tr:last-child td { border-bottom: none; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text-dim); font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer .about { color: var(--text-dim); font-size: 0.9rem; max-width: 26rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.84rem;
}

/* --- Responsive nav ------------------------------------------------------ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 1.5rem; }
  .site-nav a.cta { margin: 0.6rem 1.5rem; text-align: center; }
}
