/* ============== mdi.io — dark cinematic institutional ============== */

:root {
  /* dark palette */
  --bg: #0B0C0E;
  --bg-2: #0F1114;
  --bg-3: #13161A;
  --surface: #151920;
  --surface-2: #1B1F26;
  --ink: #EDEBE4;       /* primary text */
  --ink-dim: #C9C6BD;   /* secondary text */
  --muted: #8A8A85;
  --muted-2: #5E5F5C;
  --hairline: rgba(255,255,255,0.08);
  --hairline-2: rgba(255,255,255,0.14);
  --hairline-strong: rgba(255,255,255,0.22);

  /* warm metallic accent — champagne/gold by default (matches footer glow) */
  --accent: oklch(0.78 0.09 80);
  --accent-deep: oklch(0.62 0.10 80);
  --accent-tint: oklch(0.88 0.06 80);
  --accent-glow: oklch(0.78 0.09 80 / 0.18);

  --sans: "Inter", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --rule: 1px solid var(--hairline);
  --rule-bright: 1px solid var(--hairline-2);

  --container: 1360px;
  --gutter: 32px;
}

[data-accent="ink"]      { --accent: oklch(0.72 0.10 250); --accent-deep: oklch(0.52 0.12 250); --accent-tint: oklch(0.86 0.07 250); --accent-glow: oklch(0.65 0.13 250 / 0.22); }
[data-accent="emerald"]  { --accent: oklch(0.72 0.09 160); --accent-deep: oklch(0.52 0.10 160); --accent-tint: oklch(0.86 0.06 160); --accent-glow: oklch(0.65 0.12 160 / 0.20); }
[data-accent="copper"]   { --accent: oklch(0.72 0.10 45);  --accent-deep: oklch(0.56 0.12 45);  --accent-tint: oklch(0.86 0.07 45);  --accent-glow: oklch(0.68 0.13 45 / 0.22); }
[data-accent="champagne"]{ --accent: oklch(0.78 0.09 80);  --accent-deep: oklch(0.62 0.10 80);  --accent-tint: oklch(0.88 0.06 80);  --accent-glow: oklch(0.78 0.09 80 / 0.18); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  background-image:
    radial-gradient(ellipse 80% 40% at 80% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 60% 30% at 0% 100%, oklch(from var(--accent) l c h / 0.08), transparent 60%);
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ====================== layout ====================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

.rule { height: 1px; background: var(--hairline); width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.eyebrow .num { color: var(--accent); margin-right: 10px; }

/* ====================== buttons ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 180ms ease;
  position: relative;
  white-space: nowrap;
}
.btn .arrow { transition: transform 180ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-tint);
  border-color: var(--accent-tint);
  color: var(--bg);
  box-shadow: 0 0 40px oklch(from var(--accent) l c h / 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--hairline); }

.btn-ghost { background: transparent; color: var(--ink); border: none; padding: 14px 0; }
.btn-ghost:hover { color: var(--accent); }

.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-tint);
  border-color: var(--accent-tint);
  box-shadow: 0 0 48px var(--accent-glow);
}

/* ====================== nav ====================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,12,14,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-left { display: flex; align-items: center; gap: 48px; }
.logo {
  font-weight: 500; font-size: 22px; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: 8px;
  color: var(--ink);
}
.logo .dot { width: 6px; height: 6px; background: var(--accent); display: inline-block; border-radius: 50%; transform: translateY(-2px); box-shadow: 0 0 10px var(--accent); }
.logo-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border-left: var(--rule); padding-left: 12px; margin-left: 4px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-dim); }
.nav-links a { position: relative; padding: 6px 0; transition: color 160ms; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  background: var(--accent); color: var(--bg); padding: 10px 18px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: all 180ms;
}
.nav-cta:hover { background: var(--accent-tint); box-shadow: 0 0 30px var(--accent-glow); }

/* ====================== hero ====================== */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: var(--rule-bright);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(255,255,255,0.03);
}
.hero-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  position: relative; box-shadow: 0 0 8px var(--accent);
}
.hero-badge .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  font-size: clamp(56px, 7.2vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 32px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent-tint), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.hero-sub strong { font-weight: 500; color: var(--ink); }
.hero-cta { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-meta {
  margin-top: 72px;
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: var(--rule);
  text-align: left;
}
.hero-meta-item .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.hero-meta-item .v { font-size: 14px; color: var(--ink); font-weight: 400; letter-spacing: -0.01em; }

/* ====================== services section split (header + live demo) ====================== */
.services-section { padding-top: 0 !important; border-top: 0 !important; }
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  margin-bottom: 96px;
  position: relative;
}
.services-intro {
  padding: 80px 56px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  border-right: var(--rule);
  padding-right: 56px;
}
.services-intro .eyebrow { margin-bottom: 32px; }
.services-intro h2 {
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.services-intro .lead {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 500px;
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}
.services-intro-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.services-intro-meta .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.services-intro-meta .v { font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }

.services-demo {
  padding: 80px 0 80px 56px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.services-demo-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.services-demo-eyebrow .dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 0 3px oklch(from var(--accent) l c h / 0.2);
  position: relative;
}
.services-demo-eyebrow .dot-pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse 2s ease-out infinite;
}
.services-demo .hero-demo-frame {
  flex: 1;
  min-height: 560px;
}

@media (max-width: 900px) {
  .services-split { grid-template-columns: 1fr; }
  .services-intro { border-right: 0; border-bottom: var(--rule); padding: 64px 0; min-height: 0; }
  .services-demo { padding: 48px 0 64px; }
}

/* legacy hero-demo-section (kept inert in case) */
.hero-demo-section { padding: 0; }
.hero-demo-eyebrow { display: none; }
.hero-demo-wrap {
  position: relative;
}
.hero-demo-wrap--wide .hero-demo-frame { min-height: 620px; }
.hero-demo-frame {
  background: var(--surface);
  color: var(--ink);
  border: var(--rule-bright);
  position: relative;
  overflow: hidden;
  min-height: 560px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 60px var(--accent-glow);
}
.hero-demo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: var(--rule);
  background: var(--bg-2);
}
.hero-demo-head .left {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.hero-demo-head .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.2), 0 0 8px var(--accent); }
.hero-demo-tabs {
  display: flex; gap: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-demo-tabs button {
  padding: 6px 10px;
  color: var(--muted-2);
  border-left: var(--rule);
  transition: color 160ms, background 160ms;
}
.hero-demo-tabs button:first-child { border-left: 0; }
.hero-demo-tabs button:hover { color: var(--ink-dim); }
.hero-demo-tabs button.active { color: var(--accent); background: rgba(255,255,255,0.03); }
.hero-demo-tabs button.active::before { content: "● "; color: var(--accent); margin-right: 2px; }

.hero-demo-body { padding: 20px; position: relative; min-height: 500px; }

/* feed demo */
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
  border: var(--rule);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  animation: feedIn 0.6s ease forwards;
  background: var(--bg-3);
}
.feed-item:nth-child(1) { animation-delay: 0.1s; }
.feed-item:nth-child(2) { animation-delay: 0.5s; }
.feed-item:nth-child(3) { animation-delay: 0.9s; }
.feed-item:nth-child(4) { animation-delay: 1.3s; }
.feed-item:nth-child(5) { animation-delay: 1.7s; }
@keyframes feedIn { to { opacity: 1; transform: translateY(0); } }
.feed-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: var(--rule-bright);
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-dim);
}
.feed-icon.accent { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 16px var(--accent-glow); }
.feed-body .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.feed-body .text { font-size: 14px; color: var(--ink); line-height: 1.4; }
.feed-body .sub { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.feed-time { font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; }

/* chat demo */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; gap: 10px; animation: fadeUp 0.5s ease forwards; opacity: 0; transform: translateY(6px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.chat-row.them { justify-content: flex-start; }
.chat-row.us { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  border: var(--rule);
}
.chat-row.them .chat-bubble { background: var(--bg-3); color: var(--ink); }
.chat-row.us .chat-bubble {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 20px oklch(from var(--accent) l c h / 0.25);
}
.chat-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.chat-typing span {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); margin: 0 2px;
  animation: typing 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }

/* dashboard demo */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-card {
  border: var(--rule);
  padding: 14px;
  background: var(--bg-3);
}
.dash-card.wide { grid-column: 1 / -1; }
.dash-card .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dash-card .big { font-size: 38px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); margin-top: 6px; font-feature-settings: "tnum"; }
.dash-card .delta { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 2px; }
.sparkline { width: 100%; height: 46px; margin-top: 8px; }
.sparkline path.line { fill: none; stroke: var(--accent); stroke-width: 1.5; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.sparkline path.area { fill: var(--accent); fill-opacity: 0.12; }
.sparkline circle.last { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

/* calendar demo */
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal-month { font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.cal-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-family: var(--mono); font-size: 11px; }
.cal-dow { color: var(--muted-2); padding: 6px 0; text-align: center; font-size: 9px; letter-spacing: 0.08em; }
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border: var(--rule);
  color: var(--ink-dim);
  position: relative;
  transition: all 200ms;
}
.cal-day.past { color: var(--muted-2); }
.cal-day.today { border-color: var(--hairline-strong); color: var(--ink); }
.cal-day.booked {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  animation: bookIn 0.5s ease forwards;
  opacity: 0; transform: scale(0.92);
  box-shadow: 0 0 16px var(--accent-glow);
}
@keyframes bookIn { to { opacity: 1; transform: scale(1); } }
.cal-day.booked::after {
  content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; background: var(--bg); border-radius: 50%;
}
.cal-foot {
  margin-top: 14px;
  display: flex; justify-content: space-between;
  padding-top: 12px;
  border-top: var(--rule);
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
}
.cal-foot strong { color: var(--ink); font-weight: 500; }

/* floating metric on demo */
.demo-metric {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--bg);
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--accent);
  min-width: 180px;
  box-shadow: 0 0 30px var(--accent-glow);
}
.demo-metric .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.demo-metric .value { font-size: 28px; letter-spacing: -0.02em; margin-top: 4px; font-weight: 500; font-feature-settings: "tnum"; color: var(--accent); }
.demo-metric .sub { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ====================== logos row ====================== */
.logos {
  padding: 36px 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: var(--bg-2);
}
.logos-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.logos-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  max-width: 130px;
  line-height: 1.5;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
.logo-mark {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-align: center;
  font-size: 14px;
  opacity: 0.72;
  line-height: 1.2;
  transition: color 180ms, opacity 180ms;
}
.logo-mark:hover { color: var(--ink); opacity: 1; }
.logo-mark .sm { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; display: block; margin-top: 4px; font-weight: 400; }

/* ====================== section headers ====================== */
.section { padding: 120px 0; border-top: var(--rule); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 72px;
}
.section-head h2 {
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 16px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-head .lead {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 540px;
  margin-top: auto;
  margin-bottom: 6px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ====================== services ====================== */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: var(--rule);
  border-left: var(--rule);
}
.svc {
  grid-column: span 2;
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 32px 28px 36px;
  min-height: 320px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background 220ms;
  cursor: pointer;
  background: var(--bg);
}
.svc:hover { background: var(--bg-2); }
.svc:hover .glyph { color: var(--accent); }
.svc.tall { grid-column: span 3; }
.svc .idx {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 96px;
}
.svc .idx .plus { transition: transform 220ms, color 220ms; color: var(--ink-dim); font-size: 14px; }
.svc:hover .idx .plus { transform: rotate(45deg); color: var(--accent); }
.svc h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: auto 0 12px;
  color: var(--ink);
  max-width: 260px;
}
.svc p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 300px;
}
.svc .glyph {
  position: absolute;
  top: 32px; right: 28px;
  width: 36px; height: 36px;
  color: var(--ink-dim);
  transition: color 220ms;
}

/* ====================== industries ====================== */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: var(--rule);
  border-left: var(--rule);
}
.ind {
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 28px 24px 28px;
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: background 220ms;
  background: var(--bg);
}
.ind:hover { background: var(--bg-2); }
.ind .ind-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.ind .ind-img {
  margin: 16px 0 auto;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
  border: var(--rule);
  transition: border-color 240ms;
}
.ind:hover .ind-img { border-color: var(--hairline-2); }
.ind-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.ind .ind-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, var(--accent-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 280ms;
}
.ind:hover .ind-img::after { opacity: 1; }
.ind .ind-img .tag {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); background: rgba(11,12,14,0.78); padding: 3px 6px; border: var(--rule);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.ind .ind-glyph {
  position: absolute; top: 10px; right: 10px;
  color: var(--ink);
  background: rgba(11,12,14,0.55);
  border: var(--rule);
  padding: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: color 240ms, border-color 240ms;
}
.ind:hover .ind-glyph { color: var(--accent); border-color: var(--hairline-2); }
.ind h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin: 20px 0 6px; color: var(--ink); }
.ind p { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.ind .link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; transition: color 180ms; }
.ind:hover .link { color: var(--accent); }

/* ====================== process ====================== */
.process-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 40px 0;
  border-top: var(--rule);
  align-items: start;
  transition: background 200ms;
}
.process-row:last-child { border-bottom: var(--rule); }
.process-row:hover { background: var(--bg-2); }
.process-row .step-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent);
  padding-top: 6px;
}
.process-row .step-title {
  font-size: 32px; letter-spacing: -0.02em; font-weight: 400; margin: 0;
  color: var(--ink); line-height: 1.05;
  transition: color 200ms;
}
.process-row:hover .step-title { color: var(--accent); }
.process-row .step-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 10px; }
.process-row .step-desc { font-size: 15px; color: var(--ink-dim); line-height: 1.55; margin: 0; padding-top: 8px; text-wrap: pretty; }

/* ====================== showcase (interactive demos) ====================== */
.showcase {
  border: var(--rule);
  background: var(--bg-2);
  overflow: hidden;
}
.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--rule);
}
.showcase-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 24px;
  border-right: var(--rule);
  text-align: left;
  color: var(--ink-dim);
  transition: background 200ms, color 200ms;
  position: relative;
}
.showcase-tab:last-child { border-right: 0; }
.showcase-tab:hover { background: var(--bg-3); color: var(--ink); }
.showcase-tab.active { background: var(--bg-3); color: var(--ink); }
.showcase-tab.active::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.showcase-tab-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.showcase-tab.active .showcase-tab-num { color: var(--accent); }
.showcase-tab-label { font-size: 16px; letter-spacing: -0.01em; font-weight: 500; }

.showcase-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 560px;
}
.showcase-copy {
  padding: 44px 40px;
  display: flex; flex-direction: column;
  border-right: var(--rule);
}
.showcase-copy h3 {
  font-size: 32px; line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 400; margin: 0 0 20px; color: var(--ink); text-wrap: balance;
}
.showcase-copy p { font-size: 15px; line-height: 1.6; color: var(--ink-dim); margin: 0 0 auto; text-wrap: pretty; }
.showcase-copy .btn { margin-top: 32px; align-self: flex-start; }

.showcase-demo { padding: 28px; display: flex; align-items: stretch; }
.showcase-demo > * { width: 100%; }
.showcase-demo .hero-demo-frame { box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 40px var(--accent-glow); }

/* ====================== principles ====================== */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule);
}
.principle {
  padding: 40px 32px;
  border-right: var(--rule);
  background: var(--bg);
  transition: background 220ms;
}
.principle:last-child { border-right: 0; }
.principle:hover { background: var(--bg-2); }
.principle-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 40px;
}
.principle h3 {
  font-size: 24px; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink); margin: 0 0 14px;
}
.principle p {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-dim);
  margin: 0; text-wrap: pretty;
}

/* ====================== case studies ====================== */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: var(--rule);
}
.case {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  min-height: 420px;
  transition: background 220ms;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.case::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  opacity: 0; transition: opacity 340ms;
  pointer-events: none;
}
.case:hover { background: var(--bg-2); }
.case:hover::before { opacity: 1; }
.case-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; position: relative; }
.case-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.case-brand { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.case-stat {
  font-size: clamp(64px, 6vw, 92px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 400;
  font-feature-settings: "tnum";
  color: var(--ink);
  margin: auto 0 4px;
  position: relative;
}
.case-stat .unit { font-size: 0.35em; vertical-align: super; letter-spacing: 0; color: var(--accent); margin-left: 2px; }
.case-stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 24px; position: relative; }
.case-quote { font-size: 16px; line-height: 1.5; color: var(--ink-dim); margin: 0 0 20px; max-width: 420px; text-wrap: pretty; position: relative; }
.case-quote::before { content: "—"; margin-right: 8px; color: var(--muted); }
.case-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: var(--rule); font-family: var(--mono); font-size: 11px; color: var(--muted); position: relative; }
.case-foot .read { color: var(--ink); display: inline-flex; gap: 6px; align-items: center; transition: color 200ms; }
.case:hover .case-foot .read { color: var(--accent); }

/* ====================== testimonials ====================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule);
}
.tmt {
  padding: 32px 28px;
  border-right: var(--rule);
  display: flex; flex-direction: column;
  min-height: 300px;
  background: var(--bg);
}
.tmt:last-child { border-right: 0; }
.tmt .stars { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; }
.tmt p { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 auto; text-wrap: pretty; }
.tmt .who { margin-top: 28px; padding-top: 18px; border-top: var(--rule); display: flex; gap: 12px; align-items: center; }
.tmt .avi {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2);
  font-family: var(--mono); font-size: 11px;
  display: grid; place-items: center;
  color: var(--ink-dim);
  flex-shrink: 0;
}
.tmt .name { font-size: 13px; font-weight: 500; color: var(--ink); }
.tmt .role { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ====================== pricing ====================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule);
}
.tier {
  padding: 32px 28px 36px;
  border-right: var(--rule);
  display: flex; flex-direction: column;
  min-height: 580px;
  position: relative;
  transition: background 220ms;
  background: var(--bg);
}
.tier:last-child { border-right: 0; }
.tier.featured {
  background: var(--surface);
  box-shadow: inset 0 0 80px var(--accent-glow);
}
.tier.featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.tier.featured .tier-eyebrow { color: var(--accent); }
.tier.featured .featured-tag {
  position: absolute; top: 0; right: 28px; transform: translateY(-50%);
  background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.tier-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.tier h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; margin: 8px 0 4px; color: var(--ink); }
.tier-sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; line-height: 1.45; }
.tier-price { display: flex; align-items: baseline; gap: 4px; font-size: 48px; letter-spacing: -0.03em; font-feature-settings: "tnum"; font-weight: 400; margin-bottom: 4px; color: var(--ink); }
.tier-price .currency { font-size: 20px; color: var(--muted); font-weight: 400; }
.tier-price .mo { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-left: 4px; }
.tier-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 0; }
.feature { display: flex; align-items: start; gap: 10px; padding: 12px 0; border-top: var(--rule); font-size: 13.5px; line-height: 1.4; color: var(--ink-dim); }
.feature:last-child { border-bottom: var(--rule); }
.feature .check { font-family: var(--mono); color: var(--accent); font-weight: 500; font-size: 12px; width: 14px; flex-shrink: 0; margin-top: 1px; }

.tier .btn { margin-top: auto; justify-content: center; }

/* ====================== faq ====================== */
.faq-list { border-top: var(--rule); }
.faq { border-bottom: var(--rule); padding: 0; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 180ms;
  color: var(--ink);
}
.faq-q:hover { color: var(--accent); }
.faq-q-left { display: flex; gap: 32px; align-items: baseline; }
.faq-q .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.faq-q .text { font-size: 20px; letter-spacing: -0.015em; font-weight: 400; }
.faq-q .toggle {
  font-family: var(--mono); font-size: 18px; color: var(--ink);
  width: 24px; height: 24px; display: grid; place-items: center;
  transition: transform 240ms, color 240ms;
}
.faq.open .faq-q .toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq.open .faq-a { max-height: 280px; }
.faq-a-inner {
  padding: 0 0 24px 52px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* ====================== final cta ====================== */
.cta-final {
  background: var(--bg-2);
  color: var(--ink);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: var(--rule);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-final-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.cta-final h2 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent-tint), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-final-right { text-align: right; }
.cta-final-right p { font-size: 16px; color: var(--ink-dim); margin: 0 0 24px; max-width: 360px; margin-left: auto; text-wrap: pretty; }
.cta-final .btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); padding: 16px 24px; font-size: 15px; }
.cta-final .btn-primary:hover { background: var(--accent-tint); box-shadow: 0 0 50px var(--accent-glow); }
.cta-final .footer-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 80px; padding-top: 32px; border-top: var(--rule);
  position: relative; z-index: 1;
}
.cta-final .footer-meta .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cta-final .footer-meta .v { font-size: 14px; color: var(--ink); }

/* ====================== footer ====================== */
.foot {
  background: var(--bg);
  color: var(--ink-dim);
  padding: 80px 0 32px;
  border-top: var(--rule);
}
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.foot-brand { max-width: 320px; }
.foot-brand .logo { color: var(--ink); }
.foot-brand p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }
.foot-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 18px; }
.foot-col a { display: block; font-size: 14px; padding: 6px 0; color: var(--ink-dim); transition: color 160ms; }
.foot-col a:hover { color: var(--accent); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }

/* ====================== tweaks panel ====================== */
.tweaks {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 20px;
  min-width: 280px;
  border: var(--rule-bright);
  font-family: var(--mono);
  font-size: 11px;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tweaks.open { display: block; }
.tweaks h4 { margin: 0 0 16px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tweak-group { margin-bottom: 18px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-sw {
  width: 32px; height: 32px; border: 1px solid var(--hairline-2);
  cursor: pointer; position: relative;
}
.tweak-sw.active::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--ink); }
.tweak-sw.ink { background: oklch(0.72 0.10 250); }
.tweak-sw.emerald { background: oklch(0.72 0.09 160); }
.tweak-sw.copper { background: oklch(0.72 0.10 45); }
.tweak-sw.champagne { background: oklch(0.78 0.09 80); }
.tweak-radio-group { display: flex; flex-wrap: wrap; gap: 6px; }
.tweak-radio {
  padding: 6px 10px; border: 1px solid var(--hairline-2);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  color: var(--ink-dim);
}
.tweak-radio.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr 1fr; }
  .svc, .svc.tall { grid-column: span 1; }
  .industries { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .showcase-tabs { grid-template-columns: 1fr 1fr; }
  .showcase-tab:nth-child(2) { border-right: 0; }
  .showcase-tab:nth-child(-n+2) { border-bottom: var(--rule); }
  .showcase-body { grid-template-columns: 1fr; }
  .showcase-copy { border-right: 0; border-bottom: var(--rule); }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: var(--rule); }
  .testimonials { grid-template-columns: 1fr; }
  .tmt { border-right: 0; border-bottom: var(--rule); }
  .pricing { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: var(--rule); }
  .process-row { grid-template-columns: 1fr; gap: 12px; }
  .logos-inner { grid-template-columns: 1fr; gap: 24px; }
  .logos-row { grid-template-columns: repeat(3, 1fr); }
  .cta-final-inner { grid-template-columns: 1fr; }
  .cta-final-right { text-align: left; }
  .cta-final-right p { margin-left: 0; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
