/* ==========================================================================
   Megabite — Dark Redesign · Design Tokens & Base
   ========================================================================== */

:root {
  /* Surfaces (deep violet-black) */
  --bg-0: oklch(0.08 0.022 280);
  --bg-1: oklch(0.11 0.028 280);
  --bg-2: oklch(0.14 0.032 282);
  --bg-3: oklch(0.18 0.035 282);
  --line: oklch(0.26 0.030 282 / 0.6);
  --line-strong: oklch(0.38 0.030 282 / 0.8);

  /* Text */
  --fg-0: oklch(0.98 0.005 280);
  --fg-1: oklch(0.88 0.010 280);
  --fg-2: oklch(0.68 0.020 280);
  --fg-3: oklch(0.50 0.025 280);

  /* Accent — driven by --accent-hue (tweakable) */
  --accent-hue: 280;
  --accent-hue-2: 220;
  --accent: oklch(0.72 0.22 var(--accent-hue));
  --accent-2: oklch(0.80 0.16 var(--accent-hue-2));
  --accent-soft: oklch(0.72 0.22 var(--accent-hue) / 0.16);
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-soft: linear-gradient(135deg, oklch(0.72 0.22 var(--accent-hue) / 0.35), oklch(0.80 0.16 var(--accent-hue-2) / 0.20));

  /* Type */
  --font-sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-lift: 0 30px 80px -20px oklch(0.10 0.06 280 / 0.6),
                 0 8px 24px -8px oklch(0.05 0.05 280 / 0.5);
  --shadow-glow: 0 0 60px oklch(0.72 0.22 var(--accent-hue) / 0.35);

  /* Motion */
  --motion: 1; /* 0..1 multiplier set by tweaks */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--accent-soft);
  color: var(--fg-0);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

/* ==========================================================================
   Ambient background — aurora + grid
   ========================================================================== */

.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-0);
}

.app-bg::before {
  /* Subtle dot grid */
  content: "";
  position: absolute;
  inset: -1px;
  background-image:
    radial-gradient(oklch(0.55 0.04 280 / 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: orbFloat 22s ease-in-out infinite;
  will-change: transform;
}

.orb-a {
  width: 720px; height: 720px;
  left: -200px; top: -200px;
  background: radial-gradient(circle, oklch(0.55 0.25 var(--accent-hue)) 0%, transparent 60%);
}
.orb-b {
  width: 600px; height: 600px;
  right: -150px; top: 10vh;
  background: radial-gradient(circle, oklch(0.55 0.22 var(--accent-hue-2)) 0%, transparent 60%);
  animation-delay: -6s;
  animation-duration: 28s;
}
.orb-c {
  width: 800px; height: 800px;
  left: 30%; top: 60vh;
  background: radial-gradient(circle, oklch(0.45 0.20 calc(var(--accent-hue) + 30)) 0%, transparent 60%);
  animation-delay: -12s;
  animation-duration: 34s;
  opacity: 0.4;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, -40px) scale(1.08); }
  66%  { transform: translate(-40px, 50px) scale(0.96); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.app {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  position: relative;
  padding: 120px 0;
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--fg-0);
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.h-xl {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.h-lg {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.h-md {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s;
  position: relative;
  white-space: nowrap;
}

.btn:hover { transform: translateY(calc(-1px * var(--motion))); }

.btn-primary {
  background: var(--grad);
  color: oklch(0.12 0.04 280);
  font-weight: 600;
  box-shadow: 0 8px 30px -8px oklch(0.72 0.22 var(--accent-hue) / 0.55);
}
.btn-primary:hover {
  box-shadow: 0 14px 40px -8px oklch(0.72 0.22 var(--accent-hue) / 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-0);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: oklch(0.20 0.03 282 / 0.5);
  border-color: oklch(0.50 0.06 282);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ==========================================================================
   Surfaces (cards / glass)
   ========================================================================== */

.surface {
  background: linear-gradient(180deg, oklch(0.16 0.03 282 / 0.75), oklch(0.12 0.025 282 / 0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.04), transparent 30%);
}

.surface-inset {
  background: oklch(0.10 0.024 282 / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  background: oklch(0.18 0.03 282 / 0.6);
  border: 1px solid var(--line);
  color: var(--fg-1);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 36px);
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
  background: oklch(0.10 0.022 282 / 0.65);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: oklch(0.08 0.020 282 / 0.85);
  box-shadow: 0 12px 40px -12px oklch(0 0 0 / 0.6);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Inline wordmark for static pages — re-uses dotless-i + bite-pixel as i-dot */
.brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  line-height: 1;
  white-space: nowrap;
  position: relative;
}
.brand-wordmark-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  /* Position above the dotless-i. Tuned for the existing 16px font-size. */
  top: -1px;
  /* "megab" + half of "ı" — approximate via em units */
  left: 4.55em;
  background-image: url("assets/favicon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-2);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--fg-0); }
.nav-link.active {
  color: var(--fg-0);
  background: oklch(0.20 0.03 282 / 0.7);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-title {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 28px 0 26px;
  text-wrap: balance;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  background: oklch(0.16 0.03 282 / 0.6);
  border: 1px solid var(--line);
  color: var(--fg-1);
  margin-bottom: 6px;
}
.hero-tag-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--grad);
  color: oklch(0.10 0.04 280);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-2);
}
.hero-avatars {
  display: flex;
}
.hero-avatars > * {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-0);
  margin-left: -8px;
  background-size: cover;
}
.hero-avatars > *:first-child { margin-left: 0; }

/* Hero visual — composite product mock */
.hero-visual {
  position: relative;
  min-height: 480px;
}

.dash {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, oklch(0.13 0.03 282) 0%, oklch(0.10 0.025 282) 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
  padding: 22px;
  overflow: hidden;
}

.dash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, oklch(0.72 0.22 var(--accent-hue) / 0.15), transparent 60%);
  pointer-events: none;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.16 0.03 282 / 0.8);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--fg-1);
}

.dash-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.78 0.20 145);
  box-shadow: 0 0 10px oklch(0.78 0.20 145 / 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-card {
  background: oklch(0.13 0.025 282 / 0.8);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}
.dash-card-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.dash-card-value {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.dash-card-delta {
  font-size: 11px;
  font-family: var(--font-mono);
  margin-top: 2px;
  color: oklch(0.78 0.18 145);
}

/* Sparkline / chart */
.dash-chart {
  position: relative;
  height: 110px;
  background: oklch(0.10 0.02 282 / 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 12px;
}

/* Live event feed inside dash */
.dash-feed {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
}
.dash-feed-row {
  display: flex; gap: 10px; align-items: center;
  padding: 5px 0;
  border-top: 1px dashed oklch(0.30 0.03 282 / 0.4);
}
.dash-feed-row:first-child { border-top: none; }
.dash-feed-time { color: var(--fg-3); width: 44px; }
.dash-feed-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: oklch(0.22 0.05 var(--accent-hue) / 0.5);
  color: var(--fg-0);
}

/* Floating cards around dashboard */
.float-card {
  position: absolute;
  background: linear-gradient(180deg, oklch(0.16 0.035 282 / 0.9), oklch(0.12 0.025 282 / 0.8));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -10px oklch(0 0 0 / 0.5);
}

.float-a {
  left: -28px;
  bottom: 40px;
  min-width: 200px;
  animation: floatY 8s ease-in-out infinite;
}
.float-b {
  right: -16px;
  top: 24%;
  min-width: 180px;
  animation: floatY 9s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-10px * var(--motion))); }
}

.float-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.float-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-0);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Marquee — clients
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: oklch(0.09 0.02 282 / 0.6);
  margin-top: 60px;
}

.marquee-label {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: linear-gradient(90deg, var(--bg-0), var(--bg-0) 70%, transparent);
  padding-right: 20px;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 36s linear infinite;
  width: max-content;
  padding-left: 200px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
  display: inline-flex; align-items: center; gap: 12px;
}
.marquee-item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg-3);
}
.marquee-item:hover { color: var(--fg-0); opacity: 1; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* ==========================================================================
   Section header
   ========================================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, oklch(0.14 0.030 282 / 0.7), oklch(0.10 0.022 282 / 0.5));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(calc(-4px * var(--motion)));
  border-color: oklch(0.45 0.10 var(--accent-hue) / 0.6);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%), oklch(0.72 0.22 var(--accent-hue) / 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, oklch(0.22 0.06 var(--accent-hue) / 0.6), oklch(0.16 0.04 282 / 0.6));
  border: 1px solid var(--line-strong);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--fg-0); }
.service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.15;
}

.service-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.service-desc { color: var(--fg-2); font-size: 15px; margin-bottom: 22px; }

.service-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed oklch(0.30 0.03 282 / 0.5);
}
.service-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-1);
  font-family: var(--font-mono);
}
.service-feature-mark {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: oklch(0.22 0.06 var(--accent-hue) / 0.6);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 9px;
}

/* Secondary services strip */
.services-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .services-strip { grid-template-columns: 1fr; } }

.strip-cell {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strip-cell:last-child { border-right: none; }
@media (max-width: 720px) {
  .strip-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .strip-cell:last-child { border-bottom: none; }
}
.strip-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.strip-title { font-size: 17px; font-weight: 600; color: var(--fg-0); }
.strip-desc { font-size: 13.5px; color: var(--fg-2); }

/* ==========================================================================
   Case studies
   ========================================================================== */

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, oklch(0.14 0.030 282 / 0.7), oklch(0.10 0.022 282 / 0.5));
  transition: transform 0.4s var(--ease-out);
  isolation: isolate;
}
.case-card:hover { transform: translateY(calc(-3px * var(--motion))); }

.case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, oklch(0.30 0.10 var(--accent-hue)) 0%, oklch(0.20 0.08 var(--accent-hue-2)) 100%);
  overflow: hidden;
}

.case-media svg { width: 100%; height: 100%; display: block; }

.case-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0.08 0.02 282 / 0.6) 100%);
  z-index: 1;
}

.case-company-badge {
  position: absolute;
  left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: oklch(0.10 0.02 282 / 0.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 500;
}

.case-body { padding: 28px; }
.case-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.case-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.case-desc { color: var(--fg-2); font-size: 14.5px; }

.case-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed oklch(0.30 0.03 282 / 0.5);
  display: flex; justify-content: space-between; align-items: center;
}
.case-results { display: flex; gap: 16px; }
.case-result {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-0);
}
.case-result span {
  display: block;
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--fg-3);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}

.case-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s;
}
.case-link:hover { gap: 10px; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, oklch(0.13 0.028 282 / 0.7), oklch(0.10 0.022 282 / 0.5));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.price-card:hover {
  transform: translateY(calc(-3px * var(--motion)));
  border-color: var(--line-strong);
}

.price-card.featured {
  background: linear-gradient(180deg, oklch(0.18 0.045 var(--accent-hue) / 0.55), oklch(0.10 0.025 282 / 0.6));
  border-color: oklch(0.55 0.10 var(--accent-hue) / 0.6);
  box-shadow: 0 30px 80px -20px oklch(0.72 0.22 var(--accent-hue) / 0.25);
}

.price-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.price-tag {
  position: absolute;
  top: -12px; left: 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: oklch(0.10 0.04 280);
  font-weight: 600;
}

.price-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.price-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-0); }
.price-sub { font-size: 13px; color: var(--fg-2); margin-top: 2px; }

.price-amount {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg-0);
  line-height: 1;
  margin-top: 24px;
}
.price-amount-unit { font-size: 14px; color: var(--fg-2); font-weight: 400; margin-left: 4px; }
.price-setup { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-2); margin-top: 8px; letter-spacing: 0.04em; }
.price-desc { color: var(--fg-2); font-size: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed oklch(0.30 0.03 282 / 0.5); }

.price-features { list-style: none; padding: 0; margin: 18px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li {
  font-size: 13.5px;
  color: var(--fg-1);
  display: flex; gap: 10px; align-items: flex-start;
}
.price-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: oklch(0.22 0.06 var(--accent-hue) / 0.6);
  border: 1px solid oklch(0.45 0.10 var(--accent-hue) / 0.6);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  margin-top: 2px;
}

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

/* ==========================================================================
   Testimonials
   ========================================================================== */

.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .tm-grid { grid-template-columns: 1fr; } }

.tm-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.13 0.028 282 / 0.7), oklch(0.10 0.022 282 / 0.5));
  overflow: hidden;
}

.tm-quote {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  text-wrap: pretty;
}
.tm-card::before {
  content: "“";
  font-family: var(--font-sans);
  position: absolute;
  top: 8px; right: 24px;
  font-size: 140px;
  line-height: 1;
  color: oklch(0.30 0.05 282 / 0.5);
}

.tm-foot { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.tm-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: oklch(0.10 0.04 280);
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.tm-name { font-weight: 500; color: var(--fg-0); font-size: 15px; }
.tm-role { font-size: 12.5px; color: var(--fg-2); font-family: var(--font-mono); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }

.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--fg-1);
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q-mark { transform: rotate(45deg); background: var(--grad); color: oklch(0.10 0.04 280); border-color: transparent; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.4s;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 22px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
}
@media (max-width: 980px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.14 0.030 282 / 0.7), oklch(0.10 0.022 282 / 0.5));
}

.contact-channels {
  margin-top: 32px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.contact-channel {
  display: flex; gap: 14px; align-items: center;
  padding: 14px;
  border-radius: var(--r-md);
  background: oklch(0.10 0.024 282 / 0.6);
  border: 1px solid var(--line);
}
.contact-channel-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: oklch(0.22 0.06 var(--accent-hue) / 0.5);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-channel-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.contact-channel-value { font-size: 15px; font-weight: 500; color: var(--fg-0); }

.form {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.14 0.030 282 / 0.7), oklch(0.10 0.022 282 / 0.5));
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.field input, .field textarea, .field select {
  background: oklch(0.08 0.02 282 / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: oklch(0.55 0.18 var(--accent-hue) / 0.7);
  background: oklch(0.10 0.025 282 / 0.8);
  box-shadow: 0 0 0 4px oklch(0.55 0.18 var(--accent-hue) / 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.form-foot .mono { font-size: 12px; color: var(--fg-3); }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  color: var(--fg-1);
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--accent); }

.foot-brand-tag { color: var(--fg-2); font-size: 14px; max-width: 32ch; margin-top: 18px; }

.foot-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 12px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(calc(24px * var(--motion)));
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(calc(16px * var(--motion)));
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 560ms; }

/* ==========================================================================
   Page transition mask (when navigating sections)
   ========================================================================== */

.page-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  transform: translateY(101%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transition: transform 0.55s var(--ease-out);
}
.page-mask.in { transform: translateY(0); }
.page-mask.out { transform: translateY(-101%); transition-duration: 0.7s; }

/* ==========================================================================
   Partner strip (after hero)
   ========================================================================== */

.partner-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: oklch(0.10 0.022 282 / 0.6);
  backdrop-filter: blur(10px);
}
@media (max-width: 720px) {
  .partner-strip { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
}
.partner-strip-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.4;
  white-space: nowrap;
}

.partner-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
@media (max-width: 1080px) {
  .partner-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .partner-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  min-height: 92px;
  border-radius: var(--r-md);
  background: oklch(0.12 0.025 282 / 0.5);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.partner-card:hover {
  border-color: oklch(0.50 0.10 var(--accent-hue) / 0.5);
  background: oklch(0.14 0.030 282 / 0.7);
  transform: translateY(calc(-2px * var(--motion)));
}
.partner-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  opacity: 0.92;
}
.partner-logo img { display: block; }
.partner-card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ISO type-only badge */
.iso-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, oklch(0.22 0.04 282), oklch(0.16 0.03 282));
  border: 1px solid oklch(0.40 0.04 282);
  font-family: var(--font-sans);
  color: var(--fg-0);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06);
}
.iso-badge-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg-2);
}
.iso-badge-code {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-0);
}

/* ==========================================================================
   Quote band (replaces pricing)
   ========================================================================== */

.quote-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px 48px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, oklch(0.16 0.045 var(--accent-hue) / 0.55), oklch(0.10 0.022 282 / 0.5)),
    radial-gradient(circle at 100% 100%, oklch(0.55 0.18 var(--accent-hue-2) / 0.25), transparent 60%);
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, oklch(0.72 0.22 var(--accent-hue) / 0.7), oklch(0.45 0.05 282 / 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 860px) {
  .quote-band { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
}
.quote-band-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (min-width: 861px) {
  .quote-band-cta { align-items: flex-end; text-align: right; }
}

/* ==========================================================================
   Footer badges
   ========================================================================== */

.foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.foot-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: oklch(0.13 0.028 282 / 0.6);
  color: var(--fg-1);
}

/* ==========================================================================
   Legal pages (Privacy, Terms)
   ========================================================================== */

.legal-page {
  position: relative;
  z-index: 1;
}

.legal-hero {
  padding: 160px 0 60px;
  position: relative;
}

.legal-hero .container {
  max-width: 880px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.legal-meta span strong {
  color: var(--fg-1);
  font-weight: 500;
  margin-left: 8px;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  align-items: start;
}

@media (max-width: 880px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px 100px;
  }
}

.legal-toc {
  position: sticky;
  top: 96px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
  background: oklch(0.10 0.022 282 / 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(10px);
}

@media (max-width: 880px) {
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.legal-toc-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  font-size: 10.5px;
  margin-bottom: 12px;
}

@media (max-width: 880px) {
  .legal-toc-title { width: 100%; margin-bottom: 4px; }
}

.legal-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: color 0.2s, background 0.2s;
}
.legal-toc a:hover {
  color: var(--fg-0);
  background: oklch(0.16 0.03 282 / 0.6);
}

.legal-content {
  max-width: 68ch;
  color: var(--fg-1);
}

.legal-content h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  margin: 56px 0 18px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h2 .legal-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  display: block;
  margin-bottom: 6px;
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-0);
  margin: 28px 0 12px;
}

.legal-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-1);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.legal-content ul, .legal-content ol {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-1);
  padding-left: 22px;
  margin: 0 0 18px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content li::marker { color: var(--accent); }

.legal-content strong { color: var(--fg-0); font-weight: 600; }

.legal-content a {
  color: var(--accent);
  border-bottom: 1px solid oklch(0.55 0.18 var(--accent-hue) / 0.3);
  transition: border-color 0.2s;
}
.legal-content a:hover {
  border-bottom-color: var(--accent);
}

.legal-callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: oklch(0.16 0.03 282 / 0.5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.legal-callout p:last-child { margin-bottom: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: oklch(0.12 0.025 282 / 0.6);
  font-weight: 500;
}
.legal-table tr:last-child td { border-bottom: none; }

/* Static nav for legal pages */
.nav-static {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 36px);
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
  background: oklch(0.08 0.020 282 / 0.85);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px -12px oklch(0 0 0 / 0.6);
}
.nav-static-links {
  display: flex; align-items: center; gap: 4px; font-size: 14px;
}
.nav-static-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-2);
  transition: color 0.2s, background 0.2s;
}
.nav-static-links a:hover { color: var(--fg-0); }
@media (max-width: 720px) {
  .nav-static-links { display: none; }
}

/* ==========================================================================
   Animated background variants (Hero)
   ========================================================================== */

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle 600px at 20% 30%, oklch(0.45 0.18 var(--accent-hue) / 0.35), transparent),
    radial-gradient(circle 500px at 80% 20%, oklch(0.55 0.18 var(--accent-hue-2) / 0.28), transparent),
    radial-gradient(circle 700px at 60% 80%, oklch(0.45 0.18 calc(var(--accent-hue) + 40) / 0.22), transparent);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(oklch(0.50 0.04 282 / 0.10) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.50 0.04 282 / 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 20%, transparent 75%);
}


/* Static flattened additions */
.logo-img{display:block;width:28px;height:28px;object-fit:contain;flex-shrink:0}.logo-img.nav-logo{width:24px;height:24px}.logo-img.footer-logo{width:28px;height:28px}.faq-item.open .faq-a{max-height:260px;opacity:1}.faq-item.open .faq-q-mark{transform:rotate(45deg)}.page-mask.in{transform:translateY(0)}.page-mask.out{transform:translateY(-100%)}

/* ==========================================================================
   Clean case study artwork — replaces giant inline SVG backgrounds
   ========================================================================== */

.case-media {
  background:
    radial-gradient(circle at 24% 22%, oklch(0.74 0.18 var(--accent-hue) / 0.26), transparent 34%),
    radial-gradient(circle at 82% 18%, oklch(0.70 0.16 var(--accent-hue-2) / 0.22), transparent 36%),
    linear-gradient(135deg, oklch(0.26 0.11 var(--accent-hue)), oklch(0.13 0.055 var(--accent-hue-2)));
}

.case-media-event {
  background:
    radial-gradient(circle at 20% 15%, oklch(0.72 0.20 var(--accent-hue) / 0.30), transparent 38%),
    radial-gradient(circle at 82% 78%, oklch(0.62 0.18 var(--accent-hue-2) / 0.24), transparent 42%),
    linear-gradient(135deg, oklch(0.28 0.14 var(--accent-hue)), oklch(0.13 0.06 var(--accent-hue-2)));
}

.case-media-pos {
  background:
    radial-gradient(circle at 80% 20%, oklch(0.68 0.17 calc(var(--accent-hue) + 50) / 0.26), transparent 36%),
    radial-gradient(circle at 18% 84%, oklch(0.72 0.16 var(--accent-hue-2) / 0.20), transparent 42%),
    linear-gradient(135deg, oklch(0.23 0.09 calc(var(--accent-hue) + 50)), oklch(0.13 0.055 var(--accent-hue)));
}

.case-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.case-art::before,
.case-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.case-art::before {
  background-image:
    linear-gradient(oklch(1 0 0 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, black 24%, transparent 78%);
}

.case-art::after {
  background:
    linear-gradient(180deg, transparent 35%, oklch(0.08 0.02 282 / 0.72) 100%),
    radial-gradient(ellipse at 50% 110%, oklch(0.76 0.18 var(--accent-hue) / 0.20), transparent 60%);
}

.case-art-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.80 0.18 var(--accent-hue-2) / 0.32), transparent 66%);
  filter: blur(10px);
}

.case-art-lines {
  position: absolute;
  inset: 18% -8% auto -8%;
  height: 55%;
  background:
    repeating-radial-gradient(ellipse at 50% 0%, transparent 0 22px, oklch(1 0 0 / 0.075) 23px 24px, transparent 25px 46px);
  transform: rotate(-4deg);
  opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.case-art-screen {
  position: absolute;
  right: 52px;
  top: 58px;
  width: min(42%, 260px);
  height: 150px;
  border-radius: 18px;
  border: 1px solid oklch(1 0 0 / 0.12);
  background:
    linear-gradient(180deg, oklch(0.12 0.03 282 / 0.78), oklch(0.08 0.02 282 / 0.52));
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 30px 80px oklch(0 0 0 / 0.28);
  backdrop-filter: blur(12px);
  padding: 22px;
  display: grid;
  gap: 12px;
  z-index: 1;
}

.case-art-screen span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.9;
}

.case-art-screen span:nth-child(2) {
  width: 72%;
  opacity: 0.55;
}

.case-art-screen span:nth-child(3) {
  width: 46%;
  opacity: 0.35;
}

.case-art-grid {
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(90deg, oklch(1 0 0 / 0.08) 1px, transparent 1px),
    linear-gradient(oklch(1 0 0 / 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: rotate(8deg);
  opacity: 0.74;
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, black 16%, transparent 82%);
}

.case-art-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, oklch(1 0 0 / 0.18) 0 2px, transparent 3px);
  background-size: 108px 108px;
  background-position: 18px 18px;
}

.case-art-terminal {
  position: absolute;
  left: 52px;
  top: 58px;
  width: min(44%, 280px);
  height: 154px;
  border-radius: 18px;
  border: 1px solid oklch(1 0 0 / 0.12);
  background:
    linear-gradient(180deg, oklch(0.11 0.026 282 / 0.82), oklch(0.075 0.02 282 / 0.60));
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 30px 80px oklch(0 0 0 / 0.28);
  backdrop-filter: blur(12px);
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 10px;
  z-index: 1;
}

.case-art-terminal span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.12);
}

.case-art-terminal span:nth-child(1) {
  width: 36%;
  background: var(--grad);
}

.case-art-terminal span:nth-child(2) {
  width: 84%;
}

.case-art-terminal span:nth-child(3) {
  width: 62%;
}

.case-art-terminal span:nth-child(4) {
  width: 48%;
  background: oklch(1 0 0 / 0.08);
}

.case-art-label {
  position: absolute;
  left: 40px;
  bottom: 36px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: oklch(1 0 0 / 0.36);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .case-art-label {
    left: 24px;
    bottom: 30px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .case-art-screen,
  .case-art-terminal {
    width: 56%;
    height: 128px;
    top: 42px;
    right: 28px;
    left: auto;
  }
}

/* ========================================================================== 
   Static cleanup utilities — removes all former inline styles from index.html
   ========================================================================== */

.logo-img.logo-large {
  width: auto;
  height: 50px;
}

.btn-arrow {
  width: 14px;
  height: 14px;
}
.hero-cta-row .btn-arrow {
  width: 16px;
  height: 16px;
}
.icon-check {
  width: 8px;
  height: 8px;
}
.icon-strip {
  width: 18px;
  height: 18px;
}
.icon-arrow-sm {
  width: 14px;
  height: 14px;
}
.icon-faq {
  width: 12px;
  height: 12px;
}

.avatar-1 { background: linear-gradient(135deg, oklch(0.65 0.20 30), oklch(0.55 0.18 60)); }
.avatar-2 { background: linear-gradient(135deg, oklch(0.65 0.22 290), oklch(0.55 0.18 330)); }
.avatar-3 { background: linear-gradient(135deg, oklch(0.70 0.18 200), oklch(0.60 0.15 240)); }
.avatar-4 { background: linear-gradient(135deg, oklch(0.68 0.20 145), oklch(0.58 0.17 180)); }

.dash-spark-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.partner-offset { margin-top: 56px; }
.section-stats { padding-top: 80px; padding-bottom: 80px; }
.section-quote { padding-top: 40px; padding-bottom: 40px; }

.partner-img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.partner-img-square { height: 26px; }
.partner-img-shopify { height: 24px; }
.partner-img-madisa { height: 22px; }
.partner-img-gdpr { height: 52px; }

.service-eyebrow { margin-bottom: 12px; }
.strip-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.strip-icon { color: var(--accent); }

.process-card { min-height: 240px; }
.process-num { margin-bottom: 14px; }
.process-desc { margin-bottom: 0; }

.quote-title {
  margin-top: 14px;
  max-width: 22ch;
}
.quote-desc {
  margin-top: 14px;
  max-width: 50ch;
  font-size: 15px;
}
.quote-note { font-size: 12px; }

.faq-title { margin-top: 16px; }
.faq-sub {
  margin-top: 18px;
  font-size: 14.5px;
}

.text-center { text-align: center; }
.contact-title { margin-bottom: 12px; }
.contact-copy { font-size: 14.5px; }
.dash-feed-msg { flex: 1; }
.dash-feed-row:nth-child(1) { opacity: 1; }
.dash-feed-row:nth-child(2) { opacity: 0.82; }
.dash-feed-row:nth-child(3) { opacity: 0.64; }
.dash-feed-row:nth-child(4) { opacity: 0.46; }
.dash-feed-row:nth-child(5) { opacity: 0.28; }

/* CSS-only case study artwork — replaces giant inline SVG blocks */
.case-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, oklch(0.72 0.22 var(--accent-hue) / 0.25), transparent 34%),
    linear-gradient(135deg, oklch(0.30 0.18 var(--accent-hue)), oklch(0.16 0.08 var(--accent-hue-2)));
}
.case-art::before,
.case-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.case-art::after {
  display: flex;
  align-items: flex-end;
  padding: 0 0 34px 40px;
  color: oklch(1 0 0 / 0.35);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
}
.case-art-lines::before {
  background:
    repeating-radial-gradient(ellipse at 50% 0%, transparent 0 21px, oklch(1 0 0 / 0.06) 22px 23px, transparent 24px 44px),
    linear-gradient(180deg, transparent 35%, oklch(0.08 0.02 282 / 0.28));
  transform: rotate(-2deg) scale(1.1);
}
.case-art-lines::after { content: "EVENT OPS · ACCESS CONTROL"; }
.case-art-grid {
  background:
    radial-gradient(circle at 75% 20%, oklch(0.72 0.22 var(--accent-hue-2) / 0.20), transparent 36%),
    linear-gradient(135deg, oklch(0.25 0.12 calc(var(--accent-hue) + 50)), oklch(0.14 0.06 var(--accent-hue)));
}
.case-art-grid::before {
  background-image:
    linear-gradient(90deg, oklch(1 0 0 / 0.08) 1px, transparent 1px),
    linear-gradient(oklch(1 0 0 / 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, oklch(1 0 0 / 0.08) 48% 52%, transparent 52% 100%);
  background-size: 36px 36px, 36px 36px, 252px 252px;
  opacity: 0.9;
}
.case-art-grid::after { content: "SQUARE POS · INTEGRATIONS"; }

@media (max-width: 720px) {
  .logo-img.logo-large { height: 42px; }
  .partner-offset { margin-top: 36px; }
  .section-stats { padding-top: 60px; padding-bottom: 60px; }
  .section-quote { padding-top: 24px; padding-bottom: 24px; }
  .case-art::after { font-size: 11px; padding-left: 24px; }
}
