/* =========================================================
   WaterLogicX — Water Intelligence Platform
   Global stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #0d2c52;
  --navy-600: #103564;
  --blue-600: #1565d8;
  --blue-500: #1d74f0;
  --blue-400: #3b8bff;
  --blue-300: #6ea8ff;
  --green-500: #2fbf5f;
  --green-400: #46cf74;

  /* Neutrals */
  --ink: #0f2744;        /* headings */
  --body: #51637b;       /* body copy */
  --muted: #7d8da3;
  --line: #e4ebf5;       /* borders */
  --bg: #ffffff;
  --bg-soft: #eef4fc;    /* pale blue */
  --bg-tint: #f5f9ff;
  --white: #ffffff;

  /* Effects */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 39, 68, .06);
  --shadow: 0 14px 40px rgba(13, 44, 82, .10);
  --shadow-lg: 0 30px 70px rgba(9, 33, 66, .22);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 110px);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
}

p { margin: 0 0 1rem; }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  color: var(--ink);
}

.lead { font-size: 1.05rem; color: var(--body); }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21, 101, 216, .35); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--blue-600); color: #fff; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { box-shadow: 0 12px 26px rgba(11, 37, 69, .4); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn--outline:hover { background: var(--blue-600); color: #fff; }

.btn .play {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-800);
  display: grid; place-items: center;
  flex: none;
}
.btn .play svg { width: 12px; height: 12px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand__name b { color: var(--blue-600); font-weight: 800; }
.brand__tag {
  font-size: .5rem;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 600;
}
.brand__sub {
  font-size: .44rem;
  letter-spacing: .14em;
  color: var(--blue-500);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 600;
}

/* Primary nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__cta { display: none; } /* only shown inside the mobile menu */
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav__link:hover { color: var(--blue-600); }
.nav__link.is-active { color: var(--blue-600); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.icon-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.icon-btn svg { width: 18px; height: 18px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after { transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, 0) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  background: #091e37 url("../assets/hero-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 24, 45, .96) 0%, rgba(9, 24, 45, .9) 34%, rgba(9, 26, 50, .45) 50%, rgba(11, 35, 66, 0) 62%);
}
.hero .container { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: clamp(520px, 43vw, 720px);
  padding-block: clamp(48px, 6vw, 80px);
}
.hero__dash-mobile { display: none; }

.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  color: #bcd6ff;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--blue-400); }
.hero__copy {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: #d6e2f3;
  max-width: 34ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* =========================================================
   Dashboard mock (HTML/CSS recreation)
   ========================================================= */
.dash {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
  display: grid;
  grid-template-columns: 168px 1fr;
  font-size: 11px;
  transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg);
  transform-origin: center;
}
.dash__side {
  background: #0b2545;
  color: #c7d6ee;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dash__brand .m { width: 22px; height: 22px; }
.dash__brand .t { font-family: var(--font-head); font-weight: 800; font-size: 12px; color: #fff; }
.dash__brand .t span { color: #6ea8ff; }
.dash__navitem {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px; color: #a9bfe0;
}
.dash__navitem svg { width: 13px; height: 13px; }
.dash__navitem.is-active { background: #16386b; color: #fff; }
.dash__navitem .badge {
  margin-left: auto;
  background: #1d74f0; color: #fff;
  border-radius: 20px; padding: 1px 7px; font-size: 9px; font-weight: 700;
}
.dash__foot { margin-top: auto; font-size: 8.5px; color: #6d86ab; padding-top: 12px; }

.dash__main { padding: 14px; background: #f5f8fd; }
.dash__topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash__topbar h3 { font-size: 14px; margin: 0; }
.dash__topbar .sub { font-size: 9.5px; color: var(--muted); }
.dash__user { display: flex; align-items: center; gap: 8px; }
.dash__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #1d74f0, #46cf74);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 10px;
}
.dash__user .nm { font-weight: 700; font-size: 10px; line-height: 1.2; }
.dash__user .rl { font-size: 8.5px; color: var(--muted); }

.dash__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px; box-shadow: var(--shadow-sm);
}
.stat__ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; margin-bottom: 7px; }
.stat__ico svg { width: 12px; height: 12px; color: #fff; }
.stat--blue .stat__ico { background: #1d74f0; }
.stat--green .stat__ico { background: #2fbf5f; }
.stat--amber .stat__ico { background: #f0a13a; }
.stat--violet .stat__ico { background: #7c5cff; }
.stat__label { font-size: 8px; color: var(--muted); margin-bottom: 2px; }
.stat__value { font-size: 16px; font-weight: 800; color: var(--ink); font-family: var(--font-head); }
.stat__delta { font-size: 8px; color: var(--green-500); }
.stat__delta.down { color: #e06a4d; }

.dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel__head h4 { font-size: 10.5px; margin: 0; }
.panel__head .more { font-size: 8.5px; color: var(--blue-600); font-weight: 700; }

/* Mini map */
.mini-map {
  height: 96px; border-radius: 8px; position: relative; overflow: hidden;
  background:
    linear-gradient(0deg, #dbead0, #e7f1e0),
    #e7f1e0;
  border: 1px solid #d4e2ee;
}
.mini-map .dots { position: absolute; inset: 0; }
.mini-map .dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #1d74f0; opacity: .85; }
.mini-map__legend { display: flex; gap: 12px; margin-top: 6px; font-size: 8px; color: var(--muted); }
.mini-map__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }

/* Chart */
.chart { height: 96px; }
.chart svg { width: 100%; height: 100%; }
.chart__axis { display: flex; justify-content: space-between; font-size: 7.5px; color: var(--muted); margin-top: 4px; }

/* Alerts + conservation row */
.dash__row--b { grid-template-columns: 1.4fr 1fr; }
.alert { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.alert:last-child { border-bottom: 0; }
.alert__ico { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.alert__ico svg { width: 10px; height: 10px; color: #fff; }
.alert--info .alert__ico { background: #64748b; }
.alert--warn .alert__ico { background: #f0a13a; }
.alert__body .t { font-size: 9.5px; font-weight: 700; color: var(--ink); }
.alert__body .m { font-size: 8px; color: var(--muted); }
.alert__time { margin-left: auto; font-size: 8px; color: var(--muted); white-space: nowrap; }

.donut { display: flex; align-items: center; gap: 10px; }
.donut__ring {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: conic-gradient(#1d74f0 0 72%, #e4ebf5 72% 100%);
  display: grid; place-items: center;
}
.donut__ring::after {
  content: ""; width: 44px; height: 44px; border-radius: 50%; background: #fff;
  grid-area: 1 / 1; box-shadow: inset 0 0 0 1px var(--line);
}
.donut__pct { grid-area: 1 / 1; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--ink); }
.donut__pct small { display: block; font-size: 7px; color: var(--muted); font-weight: 600; }
.donut__legend { font-size: 8.5px; }
.donut__legend div { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.donut__legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* =========================================================
   Feature strip
   ========================================================= */
.features {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 34px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 26px;
  position: relative;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: #d6e2f2;
}
.feature__ico {
  flex: none;
  display: grid; place-items: center;
  color: var(--blue-600);
}
.feature__ico svg { width: 34px; height: 34px; }
.feature__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.2;
}

/* =========================================================
   Solutions
   ========================================================= */
.solutions__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.solutions__intro { position: sticky; top: 100px; }
.solutions__intro .section-title { margin-bottom: 18px; }
.solutions__intro p { margin-bottom: 26px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.s-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.s-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f6; }
.s-card__ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--blue-600);
  margin-bottom: 16px;
}
.s-card__ico svg { width: 24px; height: 24px; }
.s-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.s-card p { font-size: .92rem; margin-bottom: 16px; color: var(--body); }

/* =========================================================
   Healthy communities band
   ========================================================= */
.band {
  position: relative;
  color: var(--ink);
  overflow: hidden;
  background: linear-gradient(180deg, #dcebfb 0%, #eff6ff 100%);
  padding: 0;
}
.band__img { display: block; width: 100%; height: auto; }
.band .container { position: relative; z-index: 2; }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}
.band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.band__lead { font-size: 1.05rem; color: #33506f; max-width: 42ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pillar { text-align: center; padding: 8px 6px; position: relative; }
.pillar + .pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: #b9d1e8;
}
.pillar__ico {
  display: grid; place-items: center;
  color: var(--blue-600);
  margin: 0 auto 12px;
}
.pillar__ico svg { width: 40px; height: 40px; }
.pillar__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .96rem;
  color: var(--ink);
  line-height: 1.25;
}

/* =========================================================
   Trusted by
   ========================================================= */
.trusted__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.trusted__intro .section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.trusted__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 48px);
}
.trusted__item { text-align: center; }
.trusted__ico {
  width: 60px; height: 60px; margin: 0 auto 14px;
  display: grid; place-items: center;
  color: var(--blue-600);
}
.trusted__ico svg { width: 34px; height: 34px; }
.trusted__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink);
  line-height: 1.3;
}

/* =========================================================
   CTA (used on stub pages)
   ========================================================= */
.cta {
  background: linear-gradient(120deg, #0b2545, #123a6c);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta p { color: #cfe0f6; max-width: 52ch; margin: 0 auto 28px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Page hero (stub pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(120deg, #0b2545 0%, #0e3057 55%, #123a6c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero {
  background: #0a1f3a url("../assets/mtn-dark.jpg?v=2") center / cover no-repeat;
}
.page-hero__scene {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero__scene svg { width: 100%; height: 100%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(9,26,48,.85) 0%, rgba(9,26,48,.5) 55%, rgba(9,26,48,.2) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__inner { padding-block: clamp(52px, 7vw, 88px); max-width: 720px; }
.page-hero .eyebrow { color: #bcd6ff; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.page-hero p { color: #d6e2f3; font-size: 1.1rem; max-width: 56ch; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: #9db8dd; margin-bottom: 20px; }
.breadcrumb a { color: #9db8dd; }
.breadcrumb a:hover { color: #fff; }

/* Generic content sections for stubs */
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.prose p { max-width: 68ch; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--bg-soft); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 16px;
}
.tile__ico svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.12rem; margin-bottom: 8px; }
.tile p { font-size: .94rem; margin: 0; }

.bg-soft { background: var(--bg-soft); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-800);
  color: #b9c8de;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 120% at 90% 0%, rgba(29, 116, 240, .18), transparent 60%);
  pointer-events: none;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-block: 46px;
  position: relative;
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name b { color: var(--blue-400); }
.footer-brand .brand__tag { color: #7f96b8; }
.footer-nav { margin-left: auto; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a {
  color: #c3d2e8;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #8ea3c2;
  position: relative;
}
.footer-tagline {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  color: #6e86aa;
  font-weight: 600;
}

/* =========================================================
   Reveal-on-scroll animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .dash { transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  /* Hero: hide the baked laptop (shift to the dark-left) and show it as an image */
  .hero { background-position: left center; }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(9, 24, 45, .82) 0%, rgba(9, 24, 45, .72) 60%, rgba(9, 24, 45, .78) 100%);
  }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: clamp(44px, 8vw, 72px); }
  .hero__dash-mobile {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 4px auto 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  .solutions__grid { grid-template-columns: 1fr; }
  .solutions__intro { position: static; }
  .trusted__grid { grid-template-columns: 1fr; }
  .trusted__list { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-block; }
  .header-actions { margin-left: auto; }

  /* Mobile nav panel */
  .nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px var(--gutter) 24px;
  }
  .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav.is-open .nav__link { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__link.is-active::after { display: none; }
  .nav.is-open .nav__cta { display: block; margin-top: 14px; }
  .nav.is-open .nav__cta .btn { display: inline-flex; width: 100%; justify-content: center; }
}

@media (max-width: 780px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .feature { padding-block: 6px; }
  .feature:nth-child(3)::before, .feature:nth-child(2n+1)::before { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .trusted__list { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
}

@media (max-width: 560px) {
  .dash { grid-template-columns: 1fr; font-size: 10.5px; }
  .dash__side { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .dash__foot { display: none; }
  .dash__stats { grid-template-columns: repeat(2, 1fr); }
  .dash__row, .dash__row--b { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; gap: 18px; }
  .feature::before { display: none !important; }
  .trusted__list { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
}
