/* ───────────────────────────────────────────────────────────────────────
   Dexuro — shared design system
   Direction: tech / utility (sharp, dense, one bold accent)
   Tokens are the only place palette/type lives. Bind here, reflow everywhere.
   ─────────────────────────────────────────────────────────────────────── */
:root {
  --bg:      oklch(98.5% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg:      oklch(21% 0.018 250);
  --muted:   oklch(50% 0.014 250);
  --border:  oklch(91% 0.006 250);
  --accent:  oklch(62% 0.17 155);   /* emerald — the one bold accent */
  --ink:     oklch(22% 0.02 250);   /* dark band background */
  --ink-fg:  oklch(96% 0.004 250);
  --ink-muted: oklch(72% 0.012 250);
  --ink-border: oklch(34% 0.02 250);

  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --accent-ink:  oklch(72% 0.17 155);
  --fg-soft:     color-mix(in oklch, var(--fg) 5%, transparent);
  --danger: oklch(60% 0.18 25);

  --topnav-bg: var(--bg);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  --fs-h1: clamp(40px, 5.4vw, 70px);
  --fs-h2: clamp(28px, 3.4vw, 42px);
  --fs-h3: 19px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;  --gap-sm: 12px; --gap-md: 20px;
  --gap-lg: 32px; --gap-xl: 56px; --gap-2xl: 96px;
  --container: 1200px;
  --gutter: 28px;
  --radius: 9px; --radius-lg: 14px;
}

/* ─── dark theme ─── */
[data-theme="dark"] {
  --bg:      oklch(14% 0.01 250);
  --surface: oklch(18% 0.012 250);
  --fg:      oklch(92% 0.008 250);
  --muted:   oklch(62% 0.012 250);
  --border:  oklch(28% 0.012 250);
  --accent:  oklch(68% 0.17 155);
  --ink:     oklch(10% 0.01 250);
  --ink-fg:  oklch(92% 0.008 250);
  --ink-muted: oklch(58% 0.012 250);
  --ink-border: oklch(26% 0.012 250);
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --accent-ink:  oklch(72% 0.17 155);
  --fg-soft:     color-mix(in oklch, var(--fg) 5%, transparent);
  --topnav-bg: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; overflow-x: hidden; }
[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font-family: var(--font-body); font-size: var(--fs-body);
  line-height: 1.55; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* skip link / a11y */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--fg); color: var(--surface); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── layout primitives ─── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, var(--gap-2xl)); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap-xl); align-items: start; }
.section-head { max-width: 46ch; margin-bottom: var(--gap-xl); }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1 { grid-template-columns: 1fr; }
}

/* ─── type ─── */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; font-weight: 680; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; font-weight: 660; margin: 0; }
.h3, h3 { font-size: var(--fs-h3); font-weight: 640; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.lead   { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 var(--gap-md);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ─── nav ─── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklch, var(--topnav-bg) 86%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; gap: var(--gap-lg); padding-block: 13px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 18px; font-weight: 680; letter-spacing: -0.02em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--fg); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.topnav nav { display: flex; gap: 26px; margin-left: auto; }
.topnav nav a { font-size: 14.5px; color: var(--muted); }
.topnav nav a:hover, .topnav nav a[aria-current="page"] { color: var(--fg); }
.nav-tail { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px; background: var(--surface); }
.hamburger { display: none; width: 40px; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); align-items: center; justify-content: center; }
.hamburger svg { width: 18px; height: 18px; }
.mobile-menu { display: none; }
@media (max-width: 880px) {
  .topnav nav, .nav-tail .btn, .lang { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-menu { display: block; border-top: 1px solid var(--border); background: var(--bg); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: block; padding: 13px var(--gutter); border-bottom: 1px solid var(--border); font-size: 16px; }
  .mobile-menu .btn { margin: 16px var(--gutter); display: flex; justify-content: center; }
}

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 560; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: oklch(20% 0.03 155); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 90%, white); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 6px; }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-arrow::after { content: '→'; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }
.on-ink .btn-secondary { color: var(--ink-fg); border-color: var(--ink-border); }
.on-ink .btn-secondary:hover { border-color: var(--ink-fg); }

/* ─── cards / surfaces ─── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card-hover { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { border-color: color-mix(in oklch, var(--fg) 26%, transparent); transform: translateY(-3px); box-shadow: 0 12px 30px -18px color-mix(in oklch, var(--fg) 40%, transparent); }

/* feature */
.feature .feature-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; color: var(--accent); margin-bottom: var(--gap-md);
  background: var(--accent-soft);
}
.feature .feature-mark svg { width: 19px; height: 19px; }
.feature h3 { margin-bottom: 7px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feature .more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); }
.feature .more::after { content: '→'; transition: transform .15s ease; }
.feature:hover .more::after { transform: translateX(3px); }
.feature .more:hover { color: var(--accent); }

/* stats */
.stat .stat-num { font-family: var(--font-display); font-size: clamp(46px, 6vw, 78px); line-height: 0.95; letter-spacing: -0.04em; color: var(--fg); font-weight: 700; }
.stat .stat-num .stat-unit { font-size: 0.42em; color: var(--accent); margin-left: 1px; }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 24ch; }

/* quote */
.quote { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.34; letter-spacing: -0.015em; margin: 0; font-weight: 560; }
.quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); }

/* tags / badges */
.tag { display: inline-flex; align-items: center; padding: 5px 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; background: var(--surface); }
/* form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 540; }
label.req::after { content: ' *'; color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.field .err { font-size: 12px; color: var(--danger); display: none; }
.field .err.show { display: block; }
/* divider */
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* dark band */
.on-ink { background: var(--ink); color: var(--ink-fg); }
.on-ink .lead, .on-ink .muted, .on-ink .meta { color: var(--ink-muted); }
.on-ink .card { background: color-mix(in oklch, var(--ink) 80%, white 3%); border-color: var(--ink-border); }
.on-ink .rule { border-color: var(--ink-border); }
.on-ink .stat .stat-num { color: var(--ink-fg); }
.on-ink .eyebrow { color: var(--accent-ink); }
.on-ink .eyebrow::before { background: var(--accent-ink); }
.on-ink .tag { background: transparent; border-color: var(--ink-border); color: var(--ink-muted); }

/* ─── hero ─── */
.hero { padding-block: clamp(64px, 10vw, 132px); }
.hero h1 { margin-bottom: var(--gap-md); max-width: 16ch; }
.hero .lead { margin-bottom: var(--gap-lg); }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: var(--gap-xl); } }

/* hero showcase mock (rotating client sites) */
.showcase { position: relative; aspect-ratio: 4/3; }
.showcase-frame {
  position: absolute; inset: 0; border: 1px solid var(--ink-border); border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--ink) 82%, white 3%); overflow: hidden; opacity: 0; transform: scale(0.97) translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
}
.showcase-frame.active { opacity: 1; transform: none; }
.showcase-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--ink-border); }
.showcase-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-border); }
.showcase-bar .url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.showcase-body { padding: 18px; display: grid; gap: 11px; }
.showcase-body .sb-hero { height: 78px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in oklch, var(--ink) 60%, white 4%)); }
.showcase-body .sb-line { height: 9px; border-radius: 4px; background: var(--ink-border); }
.showcase-body .sb-line.s { width: 55%; } .showcase-body .sb-line.m { width: 78%; }
.showcase-body .sb-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 4px; }
.showcase-body .sb-card { height: 46px; border-radius: 7px; background: color-mix(in oklch, var(--ink) 66%, white 5%); }
.showcase-dots { position: absolute; bottom: -28px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.showcase-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; background: var(--border); padding: 0; }
.showcase-dots button.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* trust badges */
.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.trust .tb { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.trust .tb strong { color: var(--fg); font-weight: 620; }
.trust .stars { color: var(--accent); letter-spacing: 1px; }
.trust-divider { width: 1px; height: 26px; background: var(--border); }

/* logo carousel */
.logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-track span { font-family: var(--font-display); font-weight: 640; font-size: 21px; color: var(--muted); letter-spacing: -0.01em; white-space: nowrap; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* process timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--gap-md); }
.timeline::before { content: ''; position: absolute; top: 19px; left: 6%; right: 6%; height: 1px; background: var(--border); }
.tl-step { position: relative; text-align: center; }
.tl-step .tl-dot { width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--accent); position: relative; z-index: 1; }
.tl-step .tl-dot svg { width: 18px; height: 18px; }
.tl-step .tl-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tl-step h3 { font-size: 15px; margin: 4px 0 6px; }
.tl-step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 920px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; }
  .tl-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; text-align: left; padding-block: 14px; }
  .tl-step .tl-dot { margin: 0; }
  .tl-step .tl-body { padding-top: 4px; }
}

/* portfolio cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
@media (max-width: 920px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: block; }
.work-card .work-shot { aspect-ratio: 16/11; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); position: relative; }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; gap: 12px; }
.work-meta h3 { font-size: 17px; }
.work-meta .result { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.work-card p { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: var(--gap-xl); }
.chip { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"]:hover { color: var(--bg); }

/* case study tabs */
.cs-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: var(--gap-xl); flex-wrap: wrap; }
.cs-tab { padding: 12px 4px; margin-right: 22px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 560; font-size: 15px; }
.cs-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.cs-panel[hidden] { display: none; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 920px) { .cs-grid { grid-template-columns: 1fr; gap: var(--gap-xl); } }
.cs-block + .cs-block { margin-top: var(--gap-lg); padding-top: var(--gap-lg); border-top: 1px solid var(--border); }
.cs-block .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cs-block p { margin: 7px 0 0; color: var(--muted); }
.cs-results { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap-md); margin-top: var(--gap-lg); }
.cs-results .r-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.cs-results .r-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* testimonials */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t-grid { grid-template-columns: 1fr; } }
.t-card-compact { padding: 20px 22px; }
.t-card-compact .t-quote { font-size: 14.5px; line-height: 1.5; margin: 0; font-style: italic; color: var(--muted); }
.t-card-compact .t-stars { font-size: 12px; margin-bottom: 8px; }
.t-card-compact .t-foot { margin-top: 14px; }
.t-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), var(--fg-soft)); border: 1px solid var(--border); flex: 0 0 auto; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--fg); }
.t-foot .who { font-size: 13.5px; }
.t-foot .who b { font-weight: 620; } .t-foot .who span { color: var(--muted); display: block; }
.t-stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; }
.agg { display: flex; gap: var(--gap-xl); flex-wrap: wrap; }
.agg .a { display: flex; flex-direction: column; gap: 2px; }
.agg .a .score { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.agg .a .src { font-size: 12.5px; color: var(--muted); }
.agg .a .stars { color: var(--accent); font-size: 12px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap-lg); align-items: stretch; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px color-mix(in oklch, var(--fg) 30%, transparent); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card .tier { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-card .amt { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 2px; }
.price-card .amt small { font-size: 14px; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.price-card .amt .from { font-size: 13px; color: var(--muted); font-weight: 400; font-family: var(--font-mono); display: block; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; font-size: 14px; }
.price-card li { display: flex; gap: 10px; color: var(--fg); }
.price-card li svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.price-card li.off { color: var(--muted); } .price-card li.off svg { color: var(--muted); opacity: 0.5; }
.price-card .btn { margin-top: auto; justify-content: center; }
.badge-rec { position: absolute; top: -11px; right: 16px; padding: 4px 12px; background: var(--accent); color: oklch(20% 0.03 155); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; }

/* tech stack */
.stack-group h3 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.stack-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-logos .tech { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13.5px; font-weight: 540; }
.stack-logos .tech .ti { width: 16px; height: 16px; border-radius: 4px; background: var(--accent-soft); display: grid; place-items: center; font-family: var(--font-mono); font-size: 9px; color: var(--accent); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }
@media (max-width: 920px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card h3 { font-size: 16px; } .team-card .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.team-card .fun { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; font-style: italic; }
.team-card .socials { display: flex; gap: 10px; margin-top: 10px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.team-card:hover .socials { opacity: 1; transform: none; }
.team-card .socials a { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.team-card .socials a:hover { color: var(--fg); border-color: var(--fg); }
.team-card .socials svg { width: 15px; height: 15px; }

/* values */
.value .v-mark { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; display: grid; place-items: center; color: var(--accent); margin-bottom: 14px; background: var(--accent-soft); }
.value .v-mark svg { width: 18px; height: 18px; }
.value h3 { font-size: 16px; margin-bottom: 6px; }
.value p { margin: 0; font-size: 14px; color: var(--muted); }

/* blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
@media (max-width: 920px) { .post-grid { grid-template-columns: 1fr; } }
.post-card .p-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.post-card h3 { font-size: 18px; margin: 8px 0; }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; }
.post-card .p-meta { font-size: 12.5px; color: var(--muted); margin-top: 12px; font-family: var(--font-mono); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 580; color: var(--fg); letter-spacing: -0.01em; }
.faq-q .ic { width: 22px; height: 22px; flex: 0 0 auto; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ''; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .ic::before { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.faq-q .ic::after { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); transition: opacity .2s ease, transform .2s ease; }
.faq-q[aria-expanded="true"] .ic::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* CTA banner */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lead { margin: 16px auto 30px; }

/* footer */
.pagefoot { border-top: 1px solid var(--border); padding-block: var(--gap-2xl) var(--gap-xl); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--gap-xl); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.foot-col a:hover { color: var(--fg); }
.foot-brand p { font-size: 14px; color: var(--muted); margin: 12px 0 18px; max-width: 30ch; }
.news { display: flex; gap: 8px; }
.news input { flex: 1; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-top: var(--gap-2xl); padding-top: var(--gap-lg); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.foot-legal a:hover { color: var(--fg); }
.foot-legal .heart { color: var(--accent); }

/* floating CTA + chat */
.float-stack { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-cta { box-shadow: 0 14px 34px -12px color-mix(in oklch, var(--accent) 65%, transparent); }
.chat-fab { width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--bg); border: 0; display: grid; place-items: center; box-shadow: 0 10px 26px -10px color-mix(in oklch, var(--fg) 70%, transparent); }
.chat-fab svg { width: 22px; height: 22px; }

/* cookie banner */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 38; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: 0 18px 50px -20px color-mix(in oklch, var(--fg) 50%, transparent); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.cookie .row { gap: 10px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in > .card:nth-child(1) { transition-delay: 0s; }
.reveal.in > .card:nth-child(2) { transition-delay: .1s; }
.reveal.in > .card:nth-child(3) { transition-delay: .2s; }
.reveal.in > .card:nth-child(4) { transition-delay: .3s; }
.reveal > .card { opacity: 0; transform: translateY(12px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1), border-color .15s ease, box-shadow .15s ease; }
.reveal.in > .card { opacity: 1; transform: none; }

/* hero entrance */
@keyframes hero-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: hero-in .8s cubic-bezier(.2,.7,.2,1) .1s both; }
.hero .lead { animation: hero-in .8s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero-cta { animation: hero-in .8s cubic-bezier(.2,.7,.2,1) .4s both; }
.hero .showcase-frame { animation: hero-in 1s cubic-bezier(.2,.7,.2,1) .55s both; }

/* subtle pulse on float CTA */
@keyframes pulse-shadow { 0%, 100% { box-shadow: 0 14px 34px -12px color-mix(in oklch, var(--accent) 65%, transparent); } 50% { box-shadow: 0 14px 44px -8px color-mix(in oklch, var(--accent) 85%, transparent); } }
.float-cta { animation: pulse-shadow 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal > .card { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero .lead, .hero-cta, .hero .showcase-frame { animation: none; }
  .float-cta { animation: none; }
  .logos-track, .showcase-frame { animation: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* page hero (sub-pages) */
.page-hero { padding-block: clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--border); }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--fg); }

/* ─── theme toggle ─── */
.theme-toggle {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); display: grid; place-items: center; color: var(--muted);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* mobile fixes */
@media (max-width: 520px) {
  .cookie { bottom: 80px; left: 12px; right: 12px; max-width: none; }
  .float-stack { right: 12px; bottom: 12px; }
  .float-cta { font-size: 13px; padding: 10px 16px; white-space: normal; max-width: calc(100vw - 24px); text-align: center; }
  .foot-legal { font-size: 12px; gap: 4px 14px; }
  .row-between { flex-wrap: wrap; }
  .row-between .btn { white-space: normal; }
  .btn-lg { white-space: normal; text-align: center; }
}

/* case study detail pages */
.case-hero { padding-block: clamp(64px, 10vw, 120px); }
.case-hero .cs-results { margin-top: 36px; }
.case-shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.case-shot img { width: 100%; display: block; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
@media (max-width: 640px) { .case-gallery { grid-template-columns: 1fr; } }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.case-nav a { display: flex; flex-direction: column; gap: 4px; padding: 28px var(--gutter); color: var(--muted); transition: background .15s ease; }
.case-nav a:hover { background: var(--fg-soft); }
.case-nav a:last-child { text-align: right; border-left: 1px solid var(--border); }
.case-nav .cn-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.case-nav .cn-name { font-size: 18px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.case-detail .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.case-detail .block + .block { margin-top: var(--gap-lg); padding-top: var(--gap-lg); border-top: 1px solid var(--border); }
.case-sidebar { position: sticky; top: 80px; }
.case-sidebar .quote { font-size: clamp(18px, 2vw, 22px); }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--gap-lg); }
