/* ============================================================
   ECOSQL v5 — Databricks-inspired refined aesthetic
   Light dominant, dark hero accents, sharp typography
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-dark: #0a0e17;
  --bg-dark-2: #11151f;
  --border: #e6e9ee;
  --border-strong: #d0d5dd;
  --border-dark: #1f2533;
  --text: #0a0e17;
  --text-muted: #5a6478;
  --text-faint: #8b94a3;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #9aa3b5;
  --accent: #2563eb;
  --accent-hover: #1e40af;
  --accent-soft: #eef2ff;
  --accent-warm: #ff6b3d;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --max-w: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

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

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--subtle {
  background: var(--bg-subtle);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section--dark .eyebrow {
  color: var(--accent-warm);
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: inherit;
}

h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 640px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 160ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--text);
  color: var(--text-on-dark);
}
.btn--primary:hover {
  background: #1c2333;
  transform: translateY(-1px);
}

.section--dark .btn--primary,
.hero .btn--primary,
.page-hero .btn--primary,
.banner .btn--primary {
  background: #ffffff;
  color: var(--text);
}
.section--dark .btn--primary:hover,
.hero .btn--primary:hover,
.page-hero .btn--primary:hover,
.banner .btn--primary:hover {
  background: #e6e9ee;
}

.btn--accent {
  background: var(--accent);
  color: #ffffff;
}
.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--text);
}

.section--dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.banner .btn--ghost,
.footer .btn--ghost {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.banner .btn--ghost:hover,
.footer .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn .arrow {
  transition: transform 160ms ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 140ms ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.nav__menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav__menu-btn span::before,
.nav__menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--text);
}
.nav__menu-btn span::before { top: -6px; }
.nav__menu-btn span::after { top: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 107, 61, 0.08), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 640px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-on-dark);
  margin-bottom: 28px;
}

.hero__tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero__lead {
  color: var(--text-on-dark-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 560px;
}

.banner-metric {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  font-weight: 600;
  font-feature-settings: "tnum";
}

/* ============================================================
   CALLOUT (Helping data teams optimize performance and cost)
   ============================================================ */
.callout {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 90% 100%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(500px 240px at 0% 0%, rgba(255, 107, 61, 0.07), transparent 60%);
  pointer-events: none;
}
.callout__title,
.callout__body {
  position: relative;
}
.callout__title h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.callout__body p {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   DAG CARD (Built for Complex Data Workflows visual)
   ============================================================ */
.media-card--dag {
  background: linear-gradient(160deg, #f7f8fa 0%, #eef2ff 100%);
  border: 1px solid #d8def0;
  padding: 24px 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dag-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.pulse-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22);
  animation: pulse-live 1.6s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.08); }
}

.dag-svg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dag-svg svg {
  width: 100%;
  height: auto;
  max-height: 220px;
}

.dag-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(37, 99, 235, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.dag-foot__code {
  color: var(--text);
  font-weight: 500;
}
.dag-foot__sep {
  opacity: 0.5;
}
.dag-foot__delta {
  margin-left: auto;
  color: #16a34a;
  font-weight: 600;
}
.dag-foot__delta--secure {
  color: #ff6b3d;
}

/* Stack coverage variant — neutral light blue tint */
.media-card--stack {
  background: linear-gradient(160deg, #f7f8fa 0%, #eef2ff 100%);
  border: 1px solid #d8def0;
  padding: 24px 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Security variant — warm tint */
.media-card--security {
  background: linear-gradient(160deg, #fff7f2 0%, #fdebe0 100%);
  border: 1px solid #fcd9c5;
  padding: 24px 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pulse-secure {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b3d;
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.22);
  animation: pulse-secure 1.6s ease-in-out infinite;
}
@keyframes pulse-secure {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 107, 61, 0.08); }
}
.media-card--security .dag-foot {
  border-top-color: rgba(255, 107, 61, 0.28);
}

/* ============================================================
   STACK CHIPS (We support it all media)
   ============================================================ */
.stack-logos {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-chip {
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}

@media (max-width: 1024px) {
  .callout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 32px;
  }
}
@media (max-width: 640px) {
  .callout {
    padding: 36px 24px;
  }
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual: code snippet card */
.hero__visual {
  position: relative;
}

.code-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.code-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

.code-card__dots {
  display: flex;
  gap: 6px;
}
.code-card__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a2f3d;
}

.code-card__body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #e2e5eb;
}

.code-card__row {
  display: flex;
  gap: 16px;
}
.code-card__ln {
  color: #4a5160;
  user-select: none;
  width: 18px;
  text-align: right;
}
.tok-kw   { color: #c084fc; }
.tok-fn   { color: #60a5fa; }
.tok-str  { color: #6ee7b7; }
.tok-num  { color: #fbbf24; }
.tok-cmt  { color: #6b7280; font-style: italic; }
.tok-op   { color: #94a3b8; }
.tok-strike { color: #6b7280; text-decoration: line-through; }

.code-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-dark-muted);
}
.code-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.code-card__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}
.code-card__delta {
  margin-left: auto;
  color: #4ade80;
  font-weight: 600;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.stats__inner--two {
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  padding: 48px 28px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}

.stat__num {
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text);
  font-feature-settings: "tnum";
}

.stat__num span {
  color: var(--accent);
}

.stat__label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head p {
  font-size: 18px;
  color: var(--text-muted);
}

/* ============================================================
   FEATURE GRID (What We Do)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 200ms ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 14, 23, 0.06);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   SPLIT SECTIONS — Problem / Solution / Why / Migration
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__content h2 {
  margin-bottom: 20px;
}

.split__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.split__list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.split__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

.split__list--clean li {
  background: transparent;
  border: none;
  padding: 0;
}

.split__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.split__check svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.split__note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-faint);
  font-style: italic;
}

/* Visual blocks for split media */
.media-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-card--problem {
  background: linear-gradient(135deg, #fef3ec 0%, #fdebe0 100%);
  border: 1px solid #fcd9c5;
}
.media-card--problem .media-card__chart {
  --line: #ff6b3d;
}

.media-card--solution {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
}
.media-card--solution .media-card__chart {
  --line: #2563eb;
}

.media-card--migration {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark);
}

.media-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.media-card--migration .media-card__label {
  color: var(--text-on-dark-muted);
}

.media-card__big {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}
.media-card--migration .media-card__big {
  color: var(--text-on-dark);
}

.media-card__sub {
  font-size: 14px;
  color: var(--text-muted);
}
.media-card--migration .media-card__sub {
  color: var(--text-on-dark-muted);
}

.media-card__chart {
  margin-top: 28px;
  height: 120px;
  position: relative;
}
.media-card__chart svg {
  width: 100%;
  height: 100%;
}

/* Migration card visual: stacked db blocks */
.db-stack {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.db-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.db-cylinders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-cylinder {
  width: 64px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.db-block--new .db-cylinder {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.18);
}
.db-arrow {
  font-size: 24px;
  color: var(--text-on-dark-muted);
}
.db-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-on-dark-muted);
}

/* ============================================================
   STATS HERO (Why Choose Us)
   ============================================================ */
.stats-hero {
  background: var(--bg-subtle);
}

.stats-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.stats-hero__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-big {
  padding: 28px 0;
  border-top: 2px solid var(--text);
}

.stat-big__num {
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}

.stat-big__label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  transition: background 200ms ease;
}
.service:last-child {
  border-right: none;
}
.service:hover {
  background: var(--bg-subtle);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.service h3 {
  margin-bottom: 12px;
}

.service p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   DATA BANNER
   ============================================================ */
.banner {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 50% 100%, rgba(37, 99, 235, 0.25), transparent 60%);
  pointer-events: none;
}

.banner__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.banner h2 {
  margin-bottom: 18px;
}

.banner p {
  font-size: 18px;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   PROCESS / HOW WE ENGAGE
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, var(--border) 0%, var(--border-strong) 50%, var(--border) 100%);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 72px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand p {
  margin-top: 16px;
  color: var(--text-on-dark-muted);
  font-size: 14px;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 18px;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  transition: color 140ms ease;
}

.footer__col a:hover {
  color: var(--text-on-dark);
}

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .stats-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .service:nth-child(2n) {
    border-right: none;
  }
  .service:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  .process-grid::before {
    display: none;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --pad-x: 20px;
  }
  .nav__links {
    display: none;
  }
  .nav__menu-btn {
    display: flex;
  }
  .nav__cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .hero {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    justify-content: center;
  }
  .stats__inner {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .service:last-child {
    border-bottom: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-hero__numbers {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__brand {
    grid-column: auto;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .code-card__body {
    font-size: 12px;
    padding: 16px 14px;
  }
  .code-card__row {
    gap: 12px;
  }
}

/* ============================================================
   PAGE HERO (sub-pages, smaller than home hero)
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: clamp(96px, 11vw, 160px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 75% 10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(255, 107, 61, 0.06), transparent 60%);
  pointer-events: none;
}
.page-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  max-width: 820px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
}
.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 640px;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 200ms ease;
}
.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 14, 23, 0.06);
}
.price-card--featured {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
  position: relative;
}
.price-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.price-card__tier {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.price-card--featured .price-card__tier {
  color: var(--text-on-dark-muted);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price-card__currency {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card--featured .price-card__currency {
  color: var(--text-on-dark-muted);
}
.price-card__amount {
  font-size: clamp(48px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-feature-settings: "tnum";
}
.price-card--featured .price-card__amount { color: var(--text-on-dark); }

.price-card__period {
  font-size: 14px;
  color: var(--text-muted);
}
.price-card--featured .price-card__period {
  color: var(--text-on-dark-muted);
}

.price-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.price-card--featured .price-card__desc {
  color: var(--text-on-dark-muted);
  border-bottom-color: var(--border-dark);
}

.price-card__features {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.price-card--featured .price-card__features li {
  color: var(--text-on-dark);
}
.price-card__features svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2.2;
  margin-top: 2px;
}
.price-card--featured .price-card__features svg {
  stroke: var(--accent-warm);
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 160ms ease;
}
.faq__item[open] {
  border-color: var(--border-strong);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
  color: var(--text-muted);
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq__body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 200ms ease;
}
.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.team-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent-soft);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.team-card__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   IMPACT COUNTER (about)
   ============================================================ */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.counter {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}
.counter:last-child { border-right: none; }
.counter__num {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.counter__num span { color: var(--accent); }
.counter__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   CONTACT — minimal centered layout (matches ecosql 2)
   ============================================================ */
.contact-simple {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.contact-simple h1 {
  font-size: clamp(48px, 5.5vw, 72px);
  margin-bottom: 24px;
}
.contact-simple p {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.contact-simple__email {
  display: inline-block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-warm);
  transition: color 140ms ease;
}
.contact-simple__email:hover {
  color: #e85d2f;
}

/* ============================================================
   CONTACT — split form layout (legacy, retained)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  margin-bottom: 18px;
}
.contact-info p {
  margin-bottom: 32px;
}
.contact-info__list {
  list-style: none;
  display: grid;
  gap: 22px;
}
.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
}
.contact-info__list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.8;
  margin-top: 2px;
}
.contact-info__list strong {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info__list a {
  color: var(--text);
}
.contact-info__list a:hover {
  color: var(--accent);
}

.contact-form {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-form h3 {
  margin-bottom: 8px;
}
.contact-form > p {
  margin-bottom: 28px;
  font-size: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.form-group { display: grid; gap: 8px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   PROCESS PILLAR (how it works)
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.pillar h3 {
  margin-bottom: 12px;
}
.pillar p {
  font-size: 15px;
}

/* ============================================================
   RESPONSIVE — page-specific
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .counter {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .counter:nth-child(2n) { border-right: none; }
  .counter:nth-last-child(-n+2) { border-bottom: none; }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr; }
  .counter { border-right: none !important; }
  .counter:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}
