/* ============================================================
   NOVARIS CLOUD — design tokens + section styles
   ============================================================ */

:root {
  /* Color */
  --ink: oklch(0.20 0.04 250);
  --ink-2: oklch(0.32 0.03 250);
  --paper: oklch(0.985 0.005 100);
  --surface: oklch(0.965 0.005 250);
  --surface-2: oklch(0.945 0.005 250);
  --hairline: oklch(0.90 0.008 250);
  --hairline-strong: oklch(0.82 0.012 250);
  --muted: oklch(0.50 0.02 250);
  --accent: oklch(0.61 0.17 152);          /* brand #00A858 */
  --accent-deep: oklch(0.50 0.16 152);     /* hover / deep state */
  --accent-soft: oklch(0.94 0.05 152);     /* chip tint */
  --accent-tint: oklch(0.97 0.025 152);    /* section wash */
  --warn: oklch(0.70 0.13 70);

  /* Type */
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-serif: "Newsreader", ui-serif, Georgia, serif;

  /* Scale */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
}

/* Dark mode swap */
[data-theme="dark"] {
  --ink: oklch(0.97 0.005 100);
  --ink-2: oklch(0.82 0.01 250);
  --paper: oklch(0.16 0.02 250);
  --surface: oklch(0.20 0.025 250);
  --surface-2: oklch(0.24 0.025 250);
  --hairline: oklch(0.30 0.02 250);
  --hairline-strong: oklch(0.40 0.025 250);
  --muted: oklch(0.65 0.015 250);
  --accent: oklch(0.72 0.17 152);
  --accent-deep: oklch(0.60 0.17 152);
  --accent-soft: oklch(0.30 0.06 152);
  --accent-tint: oklch(0.24 0.04 152);
}

/* Accent hue tweak — tokens preserved for future use */
[data-accent="brand"]   { --accent: oklch(0.61 0.17 152); --accent-deep: oklch(0.50 0.16 152); --accent-soft: oklch(0.94 0.05 152); --accent-tint: oklch(0.97 0.025 152); }
[data-accent="emerald"] { --accent: oklch(0.60 0.14 158); --accent-deep: oklch(0.48 0.14 158); --accent-soft: oklch(0.94 0.04 158); --accent-tint: oklch(0.97 0.02 158); }
[data-accent="sage"]    { --accent: oklch(0.62 0.09 145); --accent-deep: oklch(0.50 0.09 145); --accent-soft: oklch(0.94 0.03 145); --accent-tint: oklch(0.97 0.015 145); }
[data-accent="teal"]    { --accent: oklch(0.62 0.12 195); --accent-deep: oklch(0.50 0.12 195); --accent-soft: oklch(0.94 0.04 195); --accent-tint: oklch(0.97 0.02 195); }
[data-accent="lime"]    { --accent: oklch(0.74 0.16 130); --accent-deep: oklch(0.60 0.16 130); --accent-soft: oklch(0.94 0.05 130); --accent-tint: oklch(0.97 0.025 130); }

[data-density="cozy"]   { --section-y: clamp(60px, 7vw, 96px); }
[data-density="airy"]   { --section-y: clamp(96px, 11vw, 160px); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

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

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section + .section { border-top: 1px solid var(--hairline); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.h-display {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.h-display em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent-deep); }

.h-section {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.h-section em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent-deep); }

.h-card {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}

.section-head { max-width: 720px; }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-accent {
  background: var(--accent);
  color: oklch(0.16 0.02 250);
}
.btn-accent:hover { background: var(--accent-deep); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ---------- Top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo img { height: 100%; width: auto; display: block; }
.brand-logo.size-lg { height: 44px; }
.brand-logo.size-xl { height: 64px; }
.brand-logo.on-dark { display: none; }
[data-theme="dark"] .brand-logo.on-light { display: none; }
[data-theme="dark"] .brand-logo.on-dark { display: block; }

.nav-links { display: flex; gap: 6px; margin-left: 20px; }
.nav-links a {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }

.nav-spacer { flex: 1; }

/* Theme toggle button */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--hairline-strong); background: var(--surface); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* Hamburger button — hidden on desktop, shown ≤980px */
.nav-toggle {
  display: none;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.nav-toggle:hover { background: var(--surface); border-color: var(--hairline-strong); }

/* ---------- HERO ---------- */
.hero { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 112px); position: relative; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--hairline-strong) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  opacity: .55;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  position: relative;
}
.hero h1 { margin-top: 22px; }
.hero .lede { font-size: clamp(17px, 1.4vw, 20px); }
.hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.hero-visual .hv-label {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.hero-visual .hv-label .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--accent) 0%, transparent); } }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.trust-inner > div {
  padding: 22px 24px;
  border-right: 1px solid var(--hairline);
  display: flex; align-items: flex-start; gap: 12px;
}
.trust-inner > div:last-child { border-right: none; }
.trust-inner .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}
.trust-inner .label { font-size: 14px; line-height: 1.35; color: var(--ink); }
.trust-inner .label small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }

/* ---------- Problem ---------- */
.problem-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.pain-card {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  position: relative;
  transition: background .2s ease;
}
.pain-card:nth-child(3n) { border-right: none; }
.pain-card:nth-last-child(-n+3) { border-bottom: none; }
.pain-card:hover { background: var(--surface); }
.pain-card .pain-num {
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em;
}
.pain-card .pain-title { margin-top: 18px; font-weight: 500; font-size: 17px; }
.pain-card .pain-body { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
.pain-card .pain-glyph {
  margin-top: 22px;
  height: 44px;
  display: flex; align-items: flex-end;
  color: var(--accent);
}

/* ---------- Solution framework ---------- */
.framework {
  margin-top: 64px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.framework::before {
  content: "";
  position: absolute;
  top: 28px; left: 6%; right: 6%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--hairline-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.fw-step { position: relative; z-index: 1; padding: 0 6px; }
.fw-num {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  position: relative;
}
.fw-num::after {
  content: "";
  position: absolute; inset: 5px;
  background: var(--accent-tint);
  border-radius: 50%;
  z-index: -1;
}
.fw-step h3 { margin: 18px 0 6px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.fw-step p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.svc {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.svc:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-tag {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--muted);
}
.svc h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 18px; }
.svc ul {
  list-style: none; padding: 0; margin: 0 0 18px;
  font-size: 13px; color: var(--ink-2);
}
.svc ul li {
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
  display: flex; gap: 10px; align-items: center;
}
.svc ul li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.svc-cta {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; gap: 8px; align-items: center;
}

.svc.span-6 { grid-column: span 6; }
.svc.span-4 { grid-column: span 4; }
.svc.span-3 { grid-column: span 3; }
.svc.span-12 { grid-column: span 12; }

/* feature visual inside larger services */
.svc-illus {
  margin-top: 6px;
  border-top: 1px dashed var(--hairline);
  padding-top: 18px;
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* ---------- Ecosystem map ---------- */
.ecosystem-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.eco-map {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.eco-map .eco-label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--muted);
  text-transform: uppercase;
}
.eco-list {
  display: flex; flex-direction: column; gap: 12px;
}
.eco-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--paper);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  transition: border-color .2s ease;
}
.eco-item:hover { border-color: var(--accent); }
.eco-item .eco-num {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--accent-deep);
}
.eco-item h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.005em; }
.eco-item h3 .old { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin: 4px 0 0; letter-spacing: 0.06em; }
.eco-item p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.eco-item .eco-role {
  font-family: var(--f-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  padding: 5px 10px; border-radius: 999px;
}
[data-theme="dark"] .eco-item .eco-role {
  color: oklch(0.93 0.05 152);
  background: color-mix(in oklch, var(--accent) 32%, transparent);
}

.eco-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}

/* ---------- Industries ---------- */
.industries-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ind-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  grid-column: span 2;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ind-card:nth-child(7), .ind-card:nth-child(8) { grid-column: span 3; }
.ind-card::before {
  content: "";
  position: absolute; left: 0; top: 28px;
  width: 3px; height: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: height .25s ease;
}
.ind-card:hover { border-color: var(--hairline-strong); background: var(--surface); transform: translateY(-2px); }
.ind-card:hover::before { height: 44px; }
.ind-card .ic-head { display: flex; align-items: center; justify-content: space-between; }
.ind-card .ic-num { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.ind-card .ic-name { font-size: 24px; font-weight: 500; letter-spacing: -0.014em; line-height: 1.1; margin: 26px 0 0; text-wrap: balance; }
.ind-card .ic-tag { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 12px; }
.ind-card .ic-spark { width: 56px; height: 20px; color: var(--accent); opacity: .55; transition: opacity .2s ease; }
.ind-card:hover .ic-spark { opacity: 1; }

/* ---------- Ideal Clients ---------- */
.icp-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.icp-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.icp-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.icp-row .num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.icp-row .lbl { font-size: 16.5px; font-weight: 500; letter-spacing: -0.005em; }
.icp-row .lbl small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; margin-top: 2px; line-height: 1.4; }
.icp-row .check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
}
.icp-side {
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky; top: 90px;
}
.icp-side h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.15; }
.icp-side p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }
.icp-side .icp-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.icp-side .start-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 18px;
}
.icp-side .start-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}
.icp-side .start-steps li:last-child { border-bottom: none; padding-bottom: 0; }
.icp-side .start-steps .step-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.icp-side .start-steps b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.icp-side .start-steps p {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.icp-side .icp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, transform .15s ease;
}
.icp-side .icp-cta:hover { background: var(--accent-deep); transform: translateX(2px); }
.icp-side .icp-cta .arr { transition: transform .2s ease; }
.icp-side .icp-cta:hover .arr { transform: translateX(3px); }

/* Dark-mode override: the panel surface must stay anchored to dark theme values. */
[data-theme="dark"] .icp-side {
  background: oklch(0.22 0.035 152);
  border-color: oklch(0.34 0.06 152);
}
[data-theme="dark"] .icp-side .icp-eyebrow,
[data-theme="dark"] .icp-side .start-steps .step-num {
  color: oklch(0.85 0.12 152);
}
[data-theme="dark"] .icp-side .start-steps li {
  border-bottom-color: oklch(0.32 0.06 152);
}
[data-theme="dark"] .icp-side .icp-cta {
  background: oklch(0.95 0.005 100);
  color: oklch(0.16 0.02 250);
}
[data-theme="dark"] .icp-side .icp-cta:hover {
  background: var(--accent);
  color: oklch(0.16 0.02 250);
}

/* ---------- Why Novaris ---------- */
.why-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.why-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.why-cell .why-num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--accent-deep);
}
.why-cell h3 { margin: 16px 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.why-cell p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Credibility note (placeholder until real assets land) */
.cred-note {
  margin-top: 40px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 18px;
  border-top: 1px dashed var(--hairline-strong);
}

/* ---------- CTA ---------- */
.cta-block {
  margin: 0 var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-block .cta-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in oklch, var(--paper) 20%, transparent) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 90% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 90% 50%, #000 0%, transparent 60%);
  opacity: .8;
}
.cta-block h2 {
  position: relative;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.cta-block h2 em { font-family: var(--f-serif); font-style: italic; color: var(--accent); }
.cta-block .cta-right { position: relative; display: flex; flex-direction: column; gap: 16px; }
.cta-block .cta-right p { color: color-mix(in oklch, var(--paper) 70%, transparent); margin: 0; font-size: 15px; line-height: 1.55; }

.cta-section { padding: clamp(40px, 6vw, 80px) 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h3 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted); margin: 0 0 14px; font-weight: 500;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 36ch; line-height: 1.55; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .hv-label .dot { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Mobile nav drawer (full styling in Phase 5) ---------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in oklch, var(--ink) 55%, transparent);
  opacity: 0; transition: opacity .22s ease;
}
.mobile-nav-overlay.open { opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  box-shadow: -12px 0 32px -16px oklch(0.2 0.04 250 / 0.25);
  transform: translateX(100%);
  transition: transform .22s ease;
  display: flex; flex-direction: column;
  padding: 18px 22px 28px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.mobile-nav-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav-close {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--ink);
  width: 42px; height: 42px;
  display: grid; place-items: center;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-nav-link {
  display: flex; align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link:focus-visible { background: var(--surface); }
.mobile-nav-cta { margin-top: 20px; justify-content: center; min-height: 52px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/3; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-inner > div { border-bottom: 1px solid var(--hairline); border-right: none; }
  .trust-inner > div:last-child { border-bottom: none; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .pain-card { border-right: 1px solid var(--hairline) !important; }
  .pain-card:nth-child(2n) { border-right: none !important; }
  .framework { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .framework::before { display: none; }
  .svc.span-6, .svc.span-4, .svc.span-3 { grid-column: span 12; }
  .ecosystem-wrap { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .ind-card, .ind-card:nth-child(7), .ind-card:nth-child(8) { grid-column: span 1; }
  .icp-wrap { grid-template-columns: 1fr; }
  .icp-side { position: static; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .cta-desktop { display: none; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 12px; }
  .problem-grid { grid-template-columns: 1fr; }
  .pain-card { border-right: none !important; border-bottom: 1px solid var(--hairline); }
  .pain-card:last-child { border-bottom: none; }
  .framework { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .ind-card, .ind-card:nth-child(7), .ind-card:nth-child(8) { grid-column: span 1; }
}
