/* =========================================================
   Onelytix.ai — design system
   Theming via CSS variables. [data-theme="dark"|"light"] on <html>.
   ========================================================= */

:root {
  /* Brand — Snowflake-inspired palette
     Snowflake Blue #29B5E8 primary, deep/star blue #11567F, navy #0B1F33.
     (Exact official values live at snowflake.com/brand-guidelines.) */
  --blue: #11567f;       /* deep Snowflake blue */
  --blue-600: #0e4463;   /* darker for hover */
  --teal: #29b5e8;       /* Snowflake Blue — primary highlight/accent */
  --teal-500: #1a94c7;   /* slightly deeper highlight for text-on-light */
  --accent: #f59e0b;     /* warm accent, warnings only */

  /* Spacing scale (8px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1160px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Manrope', var(--font-sans);

  --transition: 0.2s ease;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme='light'] {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --border: #e6ebf2;
  --border-strong: #d5dde8;
  --text: #0b1220;
  --text-muted: #566175;
  --text-soft: #7a8699;
  --hero-glow: rgba(17, 86, 127, 0.12);
  --grid-line: rgba(11, 18, 32, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 30px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
  --header-bg: rgba(255, 255, 255, 0.82);
}

/* ---------- Dark theme ---------- */
[data-theme='dark'] {
  --bg: #0a0f1c;
  --bg-soft: #0e1526;
  --bg-elevated: #111a2e;
  --surface: #101a2e;
  --border: #1e2a44;
  --border-strong: #2a3a5c;
  --text: #eef2f9;
  --text-muted: #9aa7bd;
  --text-soft: #6b7890;
  --hero-glow: rgba(41, 181, 232, 0.16);
  --grid-line: rgba(255, 255, 255, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(10, 15, 28, 0.78);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--sp-4); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 var(--sp-4); color: var(--text-muted); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; box-shadow: 0 8px 20px rgba(41, 181, 232, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(41, 181, 232, 0.34); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); height: 72px; }
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand .logo { height: 30px; width: auto; }
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { font-weight: 600; font-size: 0.97rem; color: var(--text-muted); padding: var(--sp-2) 0; position: relative; transition: color var(--transition); }
.nav-menu a:hover, .nav-menu a.is-active { color: var(--text); }
.nav-menu a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta-mobile { display: none; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--teal); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }

/* ---------- Section scaffolding ---------- */
main { display: block; }
section { padding: var(--sp-24) 0; }
.section-tight { padding: var(--sp-16) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--sp-24) 0 var(--sp-16); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 15% 0%, var(--hero-glow), transparent 60%),
    radial-gradient(50% 50% at 100% 20%, rgba(41, 181, 232, 0.1), transparent 55%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: radial-gradient(circle at 30% 10%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-16); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(41, 181, 232, 0.2); }
.hero h1 { margin-bottom: var(--sp-6); }
.hero h1 .grad { background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.2rem; max-width: 520px; margin-bottom: var(--sp-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.hero-proof .stat strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--text); display: block; }
.hero-proof .stat span { font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Reusable cards ---------- */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-8); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(17, 86, 127, 0.14), rgba(41, 181, 232, 0.14));
  color: var(--teal); margin-bottom: var(--sp-4);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin: 0; font-size: 0.98rem; }
.card ul { margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.card ul li { position: relative; padding-left: 1.5rem; margin-bottom: var(--sp-2); font-size: 0.95rem; color: var(--text-muted); }
.card ul li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- Logos strip ---------- */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--sp-8) 0; }
.logos p.label { text-align: center; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: var(--sp-6); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-12); opacity: 0.75; }
.logo-chip { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text-muted); letter-spacing: -0.01em; }

/* ---------- FinOps mock dashboard ---------- */
.dashboard {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.dash-topbar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: var(--border-strong); }
.dash-title { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--text-muted); margin-left: var(--sp-2); }
.dash-tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal); background: rgba(41,181,232,0.12); padding: 0.25rem 0.6rem; border-radius: 999px; }
.dash-body { padding: var(--sp-6); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-4); }
.kpi .k-label { font-size: 0.75rem; color: var(--text-soft); margin-bottom: var(--sp-1); }
.kpi .k-value { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--text); line-height: 1.1; }
.kpi .k-delta { font-size: 0.78rem; font-weight: 700; margin-top: 2px; }
.k-delta.down { color: var(--teal); }
.k-delta.up { color: var(--accent); }

.chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-6) var(--sp-6); }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.chart-head h4 { margin: 0; font-family: var(--font-head); font-size: 0.95rem; }
.chart-legend { display: flex; gap: var(--sp-4); font-size: 0.78rem; color: var(--text-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 3px; display: block; }
.svg-chart { width: 100%; height: auto; }
.svg-chart .area-actual { fill: url(#gArea); }
.svg-chart .line-actual { stroke: var(--teal); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svg-chart .line-forecast { stroke: var(--blue); stroke-width: 2; fill: none; stroke-dasharray: 5 5; opacity: 0.85; }
.svg-chart .grid-y line { stroke: var(--grid-line); stroke-width: 1; }
.svg-chart text { fill: var(--text-soft); font-size: 11px; font-family: var(--font-sans); }
.svg-chart .dot { fill: var(--teal); }

/* draw animation */
.line-actual, .line-forecast { stroke-dashoffset: 0; }
.animate .line-actual { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease forwards; }
.animate .area-actual { opacity: 0; animation: fade 1.2s ease 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.savings-bar { margin-top: var(--sp-4); }
.savings-bar .track { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.savings-bar .fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.savings-bar .row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-soft); margin-top: var(--sp-2); }

/* ---------- Split / product sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
.split.reverse .split-visual { order: 2; }
.product-anchor { scroll-margin-top: 90px; }
.pill { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: var(--sp-4); }
.pill.finops { color: var(--teal); background: rgba(41,181,232,0.12); }
.pill.health { color: var(--blue); background: rgba(17,86,127,0.12); }
.feature-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.feature-list li { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.feature-list .fi-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(17,86,127,0.16), rgba(41,181,232,0.16)); color: var(--teal); margin-top: 2px; }
.feature-list strong { display: block; color: var(--text); font-family: var(--font-head); }
.feature-list span { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Platform Health status widget ---------- */
.health-panel { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.health-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--border); }
.health-row:last-child { border-bottom: none; }
.health-row .name { font-weight: 600; font-size: 0.95rem; }
.health-row .meta { margin-left: auto; font-size: 0.8rem; color: var(--text-soft); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; }
.status.ok { color: var(--teal); }
.status.ok .dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(41,181,232,0.18); animation: pulse 2s infinite; }
.status.warn { color: var(--accent); }
.status.warn .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(41,181,232,0.18); } 50% { box-shadow: 0 0 0 7px rgba(41,181,232,0.05); } }

/* ---------- Metrics band ---------- */
.metrics { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metrics .grid-4 { text-align: center; }
.metric strong { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.metric span { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--teal);
}

/* ---------- Testimonials ---------- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-8); box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0 0 var(--sp-6); font-size: 1.08rem; color: var(--text); line-height: 1.6; }
.quote-card .who { display: flex; align-items: center; gap: var(--sp-3); }
.quote-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; }
.quote-card .who strong { display: block; font-size: 0.95rem; }
.quote-card .who span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: var(--sp-16); text-align: center; color: #fff; background: linear-gradient(120deg, #0b2a44, #11567f); }
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(40% 60% at 80% 10%, rgba(255,255,255,0.14), transparent 60%); }
.cta-band h2, .cta-band p { color: #fff; position: relative; }
.cta-band p { opacity: 0.9; max-width: 560px; margin: 0 auto var(--sp-8); }
.cta-band .btn-primary { background: #fff; color: #0b2a44; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; }
.contact-info .info-item { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.contact-info .info-item .ci { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(17,86,127,0.14), rgba(41,181,232,0.14)); color: var(--teal); }
.contact-info .info-item strong { display: block; font-family: var(--font-head); }
.contact-info .info-item span, .contact-info .info-item a { font-size: 0.95rem; color: var(--text-muted); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-8); box-shadow: var(--shadow); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: var(--sp-2); color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(41,181,232,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form .btn { width: 100%; margin-top: var(--sp-2); }
.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: var(--sp-3); }
.form-status { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(41,181,232,0.12); color: var(--teal-500); border: 1px solid rgba(41,181,232,0.3); }
.form-status.error { background: rgba(245,158,11,0.12); color: var(--accent); border: 1px solid rgba(245,158,11,0.3); }

/* ---------- Sample content marker ---------- */
.sample-note { font-size: 0.78rem; color: var(--text-soft); font-style: italic; margin-top: var(--sp-6); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: var(--sp-16) 0 var(--sp-8); margin-top: var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-12); }
.footer-brand .logo { height: 30px; margin-bottom: var(--sp-4); color: var(--text); }
.footer-tagline { font-size: 0.92rem; max-width: 320px; }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a { font-size: 0.95rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-6); border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .split.reverse .split-visual { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: var(--sp-16) 0; }
  .hero { padding: var(--sp-16) 0 var(--sp-12); }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--sp-4) var(--sp-6);
    transform: translateY(-140%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: none; padding-top: var(--sp-4); }
  .dash-kpis { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-2, .grid-4, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---------- Large screens: keep it centered, not stretc
/* ---------- Partner / platform logos ---------- */
.brand-logo { display: inline-flex; align-items: center; color: var(--text-muted); filter: grayscale(15%); opacity: 0.9; transition: opacity var(--transition), filter var(--transition), transform var(--transition); }
.brand-logo:hover { opacity: 1; filter: none; transform: translateY(-2px); }
.brand-logo svg { display: block; height: 26px; width: auto; }
[data-theme='dark'] .brand-logo { color: var(--text-muted); }
.logos .logo-row { gap: var(--sp-12) var(--sp-16); }

/* ---------- Case study cards ---------- */
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-8); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.case-tag { align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal); background: rgba(41,181,232,0.12); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: var(--sp-4); }
.case-card h3 { margin-bottom: var(--sp-2); }
.case-card p { font-size: 0.96rem; margin-bottom: var(--sp-6); }
.case-stats { display: flex; gap: var(--sp-8); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.case-stats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--text); display: block; line-height: 1.1; }
.case-stats span { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose a { color: var(--teal-500); text-decoration: underline; }
.prose .updated { font-size: 0.9rem; color: var(--text-soft); margin-bottom: var(--sp-8); }

/* ---------- Service CTA card ---------- */
.card.card-cta { display: flex; flex-direction: column; background: linear-gradient(135deg, rgba(17,86,127,0.06), rgba(41,181,232,0.06)); border-style: dashed; }
.card.card-cta h3 { margin-bottom: var(--sp-2); }

/* ---------- Platform Assessment score rings ---------- */
.assess-scores { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); padding: var(--sp-6); border-bottom: 1px solid var(--border); }
.ascore { display: flex; align-items: center; gap: var(--sp-3); }
.ascore .ring {
  --v: 80; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--v) * 1%), var(--border) 0);
  -webkit-mask: radial-gradient(circle 12px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 12px at center, transparent 98%, #000 100%);
}
.ascore strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); display: block; line-height: 1; }
.ascore span { font-size: 0.75rem; color: var(--text-soft); }

/* ---------- Footer legal links ---------- */
.footer-legal a { color: var(--text-soft); text-decoration: none; transition: color var(--transition); }
.footer-legal a:hover { color: var(--teal); }
