/* dfine.io marketing — adapted from product tokens */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-1: #0d0d10;
  --bg-2: #131316;
  --bg-3: #1c1c21;
  --bg-4: #232329;
  --border: #ffffff12;
  --border-strong: #ffffff1f;
  --text: #e6e6ea;
  --text-2: #a1a1ab;
  --text-3: #6a6a75;
  --lime: #84cc16;
  --lime-2: #a3e635;
  --lime-soft: #84cc161a;
  --lime-border: #84cc164d;
  --orange: #f97316;
  --font: "Inter", -apple-system, system-ui, sans-serif;
  --font-tight: "Inter Tight", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #09090b; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--text-3);
}
.eyebrow.lime { color: var(--lime); }
.eyebrow.lime::before { background: var(--lime); }

.display {
  font-family: var(--font-tight);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ——— Nav ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-tight); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: #1b1e21;
  display: grid; place-items: center;
  padding: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-mark .bar { fill: url(#dfineIridescent); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 8px;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav-links a:hover { color: #fff; background: var(--bg-3); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); }
.lang-toggle button { font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; color: var(--text-3); letter-spacing: 0.05em; }
.lang-toggle button.active { background: var(--bg-4); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 14px; transition: all 180ms var(--ease); white-space: nowrap; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: #fff; }
.btn-primary { background: var(--lime); color: #09090b; font-weight: 600; }
.btn-primary:hover { background: var(--lime-2); box-shadow: 0 4px 14px -8px #84cc1666; }
.btn-secondary { background: var(--bg-3); color: #fff; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-4); border-color: var(--border-strong); }
.btn-arrow { transition: transform 180ms var(--ease); }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 160px 0 120px;
  display: flex;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #84cc1622 0%, transparent 55%);
  filter: blur(40px);
}
.hero-glow.orange {
  width: 500px; height: 500px;
  left: 85%; top: 70%;
  background: radial-gradient(circle, #f9731618 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px; color: var(--text-2);
  margin-bottom: 40px;
}
.hero-badge-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; padding: 3px 8px; background: var(--lime); color: #09090b; border-radius: 999px; font-weight: 600; }
.hero h1 {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 32px;
}
.hero h1 .h1-line {
  display: block;
  white-space: nowrap;
  padding: 2px 0;
}
@media (max-width: 900px) {
  .hero h1 .h1-line { white-space: normal; }
  .hero h1 { font-size: clamp(40px, 7.5vw, 60px); }
}
.hero h1 .morph {
  position: relative;
  display: inline-block;
  color: var(--lime);
  font-style: italic;
  font-weight: 500;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%;
  height: 6px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  animation: strikeIn 900ms 600ms var(--ease-out) forwards;
}
@keyframes strikeIn { to { transform: scaleX(1); } }

.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
}
.hero-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta {
  margin-top: 64px;
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3);
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Kinetic scroll morph */
.hero-canvas {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* Product mock — timeline */
.product-mock {
  position: relative;
  margin-top: 100px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 40px 80px -20px #000, 0 0 0 1px #ffffff08 inset;
  overflow: hidden;
  transform: perspective(1400px) rotateX(4deg);
  transform-origin: center top;
}
.mock-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.mock-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--bg-4); }
.mock-title { margin-left: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.mock-body { padding: 32px 36px 40px; position: relative; min-height: 360px; }
.mock-shot { position: relative; line-height: 0; background: #0d0d10; }
.mock-shot img { display: block; width: 100%; height: auto; opacity: 0.96; }
.mock-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, #09090b 100%);
  pointer-events: none;
}
.hero-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
  margin-right: 6px; vertical-align: middle;
  animation: pulse 2s infinite;
}

/* ——— Logos strip ——— */
.logos {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, #00000040);
}
.logos-label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 36px; }
.logos-row {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 32px;
  align-items: center; justify-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.logos-row .logo-img {
  max-width: 100%; max-height: 32px; width: auto; height: auto;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(1) brightness(1.4) contrast(0.95);
  transition: opacity 200ms var(--ease), filter 200ms var(--ease);
}
.logos-row .logo-img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
.logo-item { font-family: var(--font-tight); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--text-3); opacity: 0.7; transition: opacity 200ms var(--ease), color 200ms var(--ease); }
.logo-item:hover { opacity: 1; color: var(--text); }
.logo-italic { font-style: italic; font-weight: 500; }
.logo-caps { font-family: var(--font); letter-spacing: 0.3em; font-weight: 500; font-size: 12px; }

/* ——— Section ——— */
section { position: relative; }
.section { padding: 112px 0; }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 20px 0 24px;
}
.section-head p {
  font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 640px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ——— Problem / Solution ——— */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.split-visual {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.split-visual-auto {
  aspect-ratio: auto;
  border: none;
  background: none;
  overflow: visible;
}
.split-visual.bare { border: none; background: none; }

/* ——— Feature grid ——— */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 400ms var(--ease-out);
  min-height: 420px;
  display: flex; flex-direction: column;
}
.feature.wide { grid-column: span 2; }
.feature.tall { grid-row: span 2; min-height: 520px; }
.feature.full { grid-column: span 3; }
.feature-icon-box {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-3); display: grid; place-items: center; margin-bottom: 20px;
  color: var(--lime);
}
.feature h3 { font-family: var(--font-tight); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: #fff; margin-bottom: 10px; line-height: 1.2; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.feature-visual { margin-top: auto; padding-top: 24px; }

/* ——— Stats + EU unified card ——— */
.scale-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.scale-card::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, #84cc1614 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.scale-card > * { position: relative; z-index: 1; }

.scale-card .stats {
  border-top: 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.scale-card .stat {
  padding: 36px 24px;
  border-right: 1px solid var(--border);
}
.scale-card .stat:last-child { border-right: 0; }
.scale-card .stat-value {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.scale-card .stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scale-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.scale-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}
.scale-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.scale-divider-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.trust-inset {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  padding: 44px 40px 44px;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.trust-inset::before { display: none; }
.trust-h {
  margin: 0 0 16px;
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: pretty;
}
.trust-p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}
.trust-inset .eu-map { margin-top: 20px; }

.eu3d {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 400px;
  margin-top: 0;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
.eu3d-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-5deg);
}
.eu3d-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  backface-visibility: hidden;
}
.eu3d-users { transform: translateZ(-150px); }
.eu3d-edge { transform: translateZ(-50px); }
.eu3d-core { transform: translateZ(20px); }
.eu3d-core-dot { filter: drop-shadow(0 0 5px #84cc16cc); }
@media (prefers-reduced-motion: reduce) {
  .eu3d-pkt { display: none; }
}

/* ——— Stats (legacy) ——— */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 48px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-tight); font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.stat-value .unit { color: var(--lime); }
.stat-label { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* ——— Trust / EU ——— */
.trust-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-radius: 22px;
  padding: 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.trust-card::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--lime-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.trust-list { display: grid; gap: 12px; }
.trust-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}
.trust-check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px; background: var(--lime-soft); border: 1px solid var(--lime-border); display: grid; place-items: center; color: var(--lime); margin-top: 2px; }
.trust-row strong { display: block; color: #fff; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.trust-row span { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ——— Comments mock (solution section) ——— */
.comments-mock {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 30px 80px -40px #000000cc, 0 0 0 1px #ffffff05 inset;
  position: relative;
}
.comments-mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.comments-mock-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.comments-mock-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.comments-mock-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.comments-mock-shot {
  position: relative;
  background: #050507;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.comments-mock-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ——— Reference Monitoring ——— */
.ref-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.ref-flow > .ref-device {
  flex: 1 1 0;
}
.ref-device {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: center;
}

/* Browser device */
.ref-browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  box-shadow: 0 24px 60px -30px #00000099;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ref-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.ref-chrome-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.ref-chrome-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.ref-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  flex: 1;
}
.ref-screen img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* Flow connector (encoder in / SDI out) */
.ref-conn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
}
.ref-conn-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  line-height: 1.3;
}
.ref-conn-arrow {
  width: 100%;
  height: 12px;
  display: block;
  overflow: visible;
}
.ref-conn-pulse {
  animation: ref-conn-move 2s var(--ease-out) infinite;
}
@keyframes ref-conn-move {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(63px); opacity: 0; }
}
/* dfine processing hub */
.ref-hub {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  position: relative;
  top: 14px;
}
.ref-hub-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1a2b08, #0c0c0e 75%);
  border: 1px solid #84cc1655;
  box-shadow: 0 0 0 4px #84cc1610, 0 0 28px #84cc1633, inset 0 0 16px #84cc1622;
}
.ref-hub-node svg {
  width: 34px;
  height: 34px;
}

/* ——— Reference monitor (panel matched to the browser device) ——— */
.ref-monitor {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  box-shadow: 0 24px 60px -30px #00000099;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ref-monitor-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.ref-monitor-led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime), inset 0 0 2px rgba(255,255,255,0.6);
}
.ref-monitor-input {
  color: var(--lime);
  font-weight: 600;
}
.ref-monitor-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  flex: 1;
}
.ref-monitor-screen img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08);
}
/* Reference rotation crossfade (editor GUI + output swap every 4s) */
.ref-screen .ref-rot, .ref-monitor-screen .ref-rot {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}
.ref-screen .ref-rot.on, .ref-monitor-screen .ref-rot.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ref-screen .ref-rot, .ref-monitor-screen .ref-rot { transition: none; }
}
/* Scanline overlay */
.ref-monitor-screen::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ——— Feature step cards (matching walkthrough style) ——— */
.ref-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.ref-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ref-chip-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lime);
  padding-top: 3px;
  min-width: 24px;
}
.ref-chip-text {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.ref-chip-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.ref-chip-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}
/* ——— Pricing ——— */
.pricing-free {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-bottom: 20px;
  border: 1px solid #84cc1633;
  background: linear-gradient(90deg, transparent, #84cc1612, transparent);
  border-radius: 14px;
}
.pricing-free-tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: #09090b;
  flex-shrink: 0;
}
.pricing-free-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}
.pricing-free-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #84cc1640;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}
.pricing-free-cta:hover {
  background: #84cc1614;
  border-color: var(--lime);
}
.pricing-free-cta svg { width: 12px; height: 12px; }

.pricing-sales-note {
  margin: 20px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}
.pricing-sales-note a {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}
.pricing-sales-note a svg { width: 12px; height: 12px; }
.oss-note { margin: 16px auto 0; max-width: 760px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; line-height: 1.6; color: var(--text-3); text-align: center; }
.oss-note > svg { width: 15px; height: 15px; flex: none; }
.oss-note > span { flex: 0 1 auto; }
.oss-note a { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-weight: 600; white-space: nowrap; flex: none; }
.oss-note a svg { width: 13px; height: 13px; }
.st-pricing-section { padding: 30px 0 110px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing.pricing-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing.pricing-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.plan.featured {
  border-color: var(--lime-border);
  background: linear-gradient(180deg, #84cc160d, var(--bg-1));
}
.plan.featured::after { display: none; }
.plan.enterprise {
  background: linear-gradient(180deg, var(--bg-1), #0d0d10);
}

.plan-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 28px; flex-wrap: wrap;
}
.plan-name {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
}
.plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f9731622;
  color: #fdba74;
  border: 1px solid #f9731640;
}
.plan-badge svg { width: 11px; height: 11px; }
.plan-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}

.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  flex-wrap: wrap;
}
.plan-price .amount {
  font-family: var(--font-tight);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--lime);
  line-height: 1;
  font-feature-settings: "tnum";
}
.plan-price .amount .currency {
  font-size: 26px;
  margin-left: 2px;
}
.plan-price .amount-sales {
  font-size: 30px;
  letter-spacing: -0.03em;
}
.plan-price .per {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-3);
  margin-left: 4px;
}

.plan-inherit {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lime);
  background: #84cc1614;
  border: 1px solid #84cc1633;
  padding: 6px 12px;
  border-radius: 999px;
}
.plan-inherit svg { width: 12px; height: 12px; }

.plan ul {
  list-style: none;
  display: grid; gap: 10px;
  margin: 0;
  padding: 0;
}
.plan li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.plan li svg { flex-shrink: 0; margin-top: 3px; color: var(--lime); }

.plan-extra {
  margin-top: 4px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.plan-extra-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-tight);
  font-weight: 600; font-size: 15px; color: #fff;
}
.plan-extra-title svg { color: var(--lime); }
.plan-extra-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
  margin: 0;
}
.plan-extra-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.plan-extra-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
}
.plan-extra-k { color: var(--text-3); }
.plan-extra-v {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #84cc1614;
  color: var(--lime);
  border: 1px solid #84cc1633;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-cta {
  margin-top: auto;
  justify-content: center;
}

/* ——— Testimonials ——— */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { border: 1px solid var(--border); background: var(--bg-1); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.quote p { font-family: var(--font-tight); font-size: 18px; line-height: 1.45; color: var(--text); letter-spacing: -0.01em; font-weight: 500; }
.quote-author { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); }
.quote-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.quote-name { font-size: 13px; color: #fff; font-weight: 500; }
.quote-role { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ——— Cases spotlight (CO₂ / Travel) ——— */
.case-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  background:
    radial-gradient(ellipse at 0% 100%, #84cc1614 0%, transparent 55%),
    linear-gradient(180deg, #0e120c 0%, #0a0c0a 100%);
  isolation: isolate;
}
.case-spotlight-copy {
  padding: 40px 44px;
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.case-spotlight-title {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 4px 0 4px;
  text-wrap: pretty;
}
.case-spotlight-detail {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  max-width: 56ch;
}
.case-spotlight-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.case-spotlight-metric {
  display: flex; flex-direction: column; gap: 4px;
}
.case-spotlight-metric-v {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--lime);
  font-feature-settings: "tnum";
}
.case-spotlight-metric-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.case-spotlight-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 4px;
}

/* Source links (used in spotlight + tabs) */
.case-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.case-source,
.industry-stat-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.case-source:hover,
.industry-stat-source:hover { color: var(--lime); }
.case-source svg,
.industry-stat-source svg { width: 10px; height: 10px; opacity: 0.6; }

/* ——— Industry tabs ——— */
.industry-tabs {
  margin-top: 40px;
}
.industry-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.industry-tab {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.industry-tab:hover { color: #fff; }
.industry-tab.active {
  background: var(--lime);
  color: #09090b;
  font-weight: 600;
}

.industry-tabs-stage {
  position: relative;
}
.industry-panel {
  display: none;
  animation: industry-fade 280ms var(--ease-out);
}
.industry-panel.active { display: block; }
@keyframes industry-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.industry-intro {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 24px;
  max-width: 640px;
}

.industry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.industry-stat {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.industry-stat:hover {
  border-color: rgba(173, 255, 0, 0.22);
  background: rgba(173, 255, 0, 0.03);
}
.industry-stat-value {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--lime);
  font-feature-settings: "tnum";
}
.industry-stat-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.industry-stat-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  flex: 1;
}
.industry-stat-source {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.case-spotlight-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.case-spotlight-img {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(13,17,11,0.65) 100%),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.case-spotlight-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #0e120c 0%, transparent 30%, transparent 100%);
  pointer-events: none;
}
.case-spotlight-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(13,17,11,0.78);
  border: 1px solid #84cc1640;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

/* ——— Cases (customer use cases) ——— */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, #13131680 0%, #0d0d1080 100%);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 240ms var(--ease);
  overflow: hidden;
}
.case::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.case:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.case:hover::before { opacity: 0.8; }

.case-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-industry {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.case-company {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.case-metric-value {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-feature-settings: "tnum";
}
.case-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  max-width: 120px;
  line-height: 1.3;
}

.case-challenge {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
  font-weight: 500;
}
.case-detail {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 0;
}

.case-savings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case-savings li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.case-sv-k {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.case-sv-v {
  color: #fff;
  font-weight: 500;
  text-align: right;
}

/* ——— Integrations (legacy) ——— */
.integrations-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.integration {
  aspect-ratio: 1; border: 1px solid var(--border); background: var(--bg-1); border-radius: 14px;
  display: grid; place-items: center; transition: all 200ms var(--ease);
  position: relative;
}
.integration:hover { background: var(--bg-2); border-color: var(--border-strong); transform: translateY(-2px); }
.integration span { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.05em; }

/* ——— FAQ ——— */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; cursor: pointer; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-tight); font-weight: 500; font-size: 20px; color: #fff; letter-spacing: -0.015em; }
.faq-toggle { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border); display: grid; place-items: center; transition: all 200ms var(--ease); color: var(--text-2); }
.faq-item[open] .faq-toggle { background: var(--lime); color: #09090b; border-color: var(--lime); transform: rotate(45deg); }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--text-2); padding-top: 16px; max-width: 680px; display: none; }
.faq-item[open] .faq-a { display: block; animation: fadeSlide 300ms var(--ease-out); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ——— CTA ——— */
.cta-section { padding: 112px 0; position: relative; overflow: hidden; }
.cta-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 80px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #84cc1618, transparent 60%), var(--bg-1);
  overflow: hidden;
}
.cta-card h2 { font-family: var(--font-tight); font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.04em; color: #fff; margin-bottom: 20px; }
.cta-card p { font-size: 18px; color: var(--text-2); max-width: 520px; margin: 0 auto 36px; line-height: 1.5; }

/* ——— Footer ——— */
.footer { border-top: 1px solid var(--border); padding: 80px 0 40px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { font-size: 14px; color: var(--text-2); margin: 20px 0; line-height: 1.55; max-width: 320px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-2); }
.footer ul a:hover { color: #fff; }
.footer-copy { display: block; margin-top: 16px; font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }
.footer-social { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.footer-social a { color: var(--text-3); display: inline-flex; transition: color 180ms var(--ease); }
.footer-social a:hover { color: var(--lime); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--text); }
.footer-totop { display: flex; justify-content: flex-start; margin-top: 24px; }
.footer-totop-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease); }
.footer-totop-btn:hover { color: #fff; border-color: var(--border-strong); background: var(--bg-3); }
.footer-totop-btn svg { width: 13px; height: 13px; transition: transform 180ms var(--ease); }
.footer-totop-btn:hover svg { transform: translateY(-2px); }

/* ——— Magnetic cursor ——— */
.magnet { transition: transform 180ms var(--ease-out); }

/* ——— Tweaks panel ——— */
#tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: rgba(19, 19, 22, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px;
  width: 280px;
  box-shadow: 0 20px 60px #000;
  display: none;
  font-size: 13px;
}
#tweaks.active { display: block; }
#tweaks h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
#tweaks .tweak-row { margin-bottom: 14px; }
#tweaks label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
#tweaks .seg { display: flex; gap: 2px; background: var(--bg-3); padding: 2px; border-radius: 8px; }
#tweaks .seg button { flex: 1; padding: 6px 8px; border-radius: 6px; color: var(--text-2); font-size: 11px; font-family: var(--font-mono); }
#tweaks .seg button.active { background: var(--bg-4); color: #fff; }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .trust-card, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-card { padding: 40px 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.wide, .feature.tall, .feature.full { grid-column: span 1; grid-row: auto; min-height: auto; }
  .pricing, .testimonials { grid-template-columns: 1fr; }
  .pricing.pricing-4 { grid-template-columns: 1fr; }
  .pricing.pricing-3 { grid-template-columns: 1fr; }
  .ref-flow { flex-direction: column; gap: 18px; }
  .ref-flow > .ref-device { width: 100%; }
  .ref-conn { width: 100%; flex-direction: row; justify-content: center; gap: 12px; }
  .ref-conn-arrow { width: 60px; transform: rotate(90deg); }
  .ref-chips { grid-template-columns: repeat(2, 1fr); }
  .ref-split { grid-template-columns: 1fr; gap: 32px; }
  .case-spotlight { grid-template-columns: 1fr; }
  .case-spotlight-copy { padding: 32px 28px; }
  .case-spotlight-visual { min-height: 240px; order: -1; }
  .logos-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .scale-card .stats { grid-template-columns: repeat(2, 1fr); }
  .scale-card .stat:nth-child(2) { border-right: 0; }
  .scale-card .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .trust-inset { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px 36px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .industry-stats { grid-template-columns: 1fr; }
  .industry-tabs-nav { flex-wrap: wrap; }
  .section { padding: 64px 0; }
  .cta-card { padding: 50px 24px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  /* Header fits on phones: tighter spacing, primary CTA only */
  .nav { padding: 14px 0; }
  .nav-inner { gap: 12px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost { display: none; }
  .nav-right .btn { padding: 9px 14px; }
  .lang-toggle button { padding: 5px 9px; }
  /* Review feature cards stack instead of cramping side by side */
  .features { grid-template-columns: 1fr; }
}


/* ——— Waitlist Modal (Clerk) ——— */
.dfine-waitlist {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.dfine-waitlist.open { display: flex; }
.dfine-waitlist-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dfine-waitlist-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow: hidden auto;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 32px 32px 24px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
  animation: dfine-waitlist-in 200ms ease-out;
}
@keyframes dfine-waitlist-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dfine-waitlist-head { margin-bottom: 20px; }
.dfine-waitlist-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}
.dfine-waitlist-card h2 {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 10px;
}
.dfine-waitlist-card > .dfine-waitlist-head p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}
.dfine-waitlist-mount {
  min-height: 220px;
}
.dfine-clerk-card {
  min-width: 0 !important;
  width: 100% !important;
  box-shadow: none !important;
}
.dfine-waitlist-loading,
.dfine-waitlist-fallback {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  padding: 24px 8px;
  text-align: center;
}
.dfine-waitlist-fallback p { font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.dfine-waitlist-fallback a { color: var(--lime); }

.dfine-waitlist-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  display: grid; place-items: center;
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease;
}
.dfine-waitlist-close:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Tame any Clerk internal margin */
.dfine-waitlist-mount > div { margin: 0; }
.dfine-waitlist-mount .cl-internal,
.dfine-waitlist-mount .cl-rootBox { width: 100%; }


/* ——— Footer trust strip ——— */
.trust-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
  margin-bottom: 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.trust-strip-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.06);
  border: 1px solid rgba(132, 204, 22, 0.25);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}
.trust-strip-badge:hover { background: rgba(132, 204, 22, 0.12); border-color: rgba(132, 204, 22, 0.5); }
.trust-strip-badge svg { width: 12px; height: 12px; }
.trust-strip-inherited {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.trust-strip-inherited strong {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.trust-strip-inherited a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px dashed rgba(132, 204, 22, 0.4);
  padding-bottom: 1px;
}
.trust-strip-inherited a:hover { border-color: var(--lime); }
.trust-strip-partners {
  display: inline-flex; gap: 10px; flex-wrap: wrap;
}
.trust-strip-partner {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
