/* ============================================================
   Vertacx — design tokens + shared styles
   Dark default with light theme via [data-theme="light"]
   ============================================================ */

:root {
  /* Brand */
  --brand: #b83cff;
  --brand-strong: #a020f0;
  --brand-soft: rgba(184, 60, 255, 0.12);
  --brand-glow: rgba(184, 60, 255, 0.25);

  /* Dark theme (default) */
  --bg: #07080c;
  --bg-elev: #0d0f17;
  --bg-elev-2: #131623;
  --surface: #10131c;
  --surface-hi: #171a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5fa;
  --text-muted: #a0a4b8;
  --text-dim: #6b6f85;
  --success: #3ddc97;
  --warn: #f5b547;
  --danger: #ff5d6c;

  /* Type */
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f7f8fb;
  --bg-elev-2: #eef0f5;
  --surface: #ffffff;
  --surface-hi: #f7f8fb;
  --border: rgba(10, 13, 20, 0.08);
  --border-strong: rgba(10, 13, 20, 0.14);
  --text: #0b0d14;
  --text-muted: #4a4f62;
  --text-dim: #7a7f94;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ------------ Ambient background grid -------------- */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 30%, transparent 75%);
  opacity: 0.6;
}

/* ------------ Typography -------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand);
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid rgba(184, 60, 255, 0.3);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 60, 255, 0.18) 0%, rgba(184, 60, 255, 0.05) 100%);
  box-shadow: 0 1px 4px rgba(184, 60, 255, 0.08);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand-glow);
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; color: var(--text-muted); }
.lede { font-size: 19px; line-height: 1.5; max-width: 640px; color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ------------ Container + sections -------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
section { padding: 100px 0; position: relative; }
section.compact { padding: 72px 0; }
@media (max-width: 720px) {
  section { padding: 72px 0; }
  section.compact { padding: 56px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .eyebrow { align-self: flex-start; }

/* ------------ Buttons -------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 1px var(--brand), 0 8px 24px var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px var(--brand-strong), 0 12px 32px var(--brand-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: var(--border-strong);
}
.btn-quiet {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
}
.btn-quiet:hover { color: var(--text); }

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

/* ------------ Nav -------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-wrap.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.nav-logo img { height: 22px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--text-muted);
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hi); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--brand-glow);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.mobile-menu-btn { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .hero-cta { justify-content: center; }
}

/* ---------- Mobile nav drawer (animated) ---------- */
.nav-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  background: var(--bg);
  border-top: 1px solid transparent;
  transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), transform 0.3s var(--ease), border-top-color 0.25s var(--ease);
}
.nav-drawer.open {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
  border-top-color: var(--border);
}
.nav-drawer-inner { padding: 8px 24px 20px; }
.nav-drawer-link {
  display: block;
  padding: 12px 8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}
.nav-drawer-link:hover { color: var(--text); padding-left: 14px; }
.nav-drawer-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}
.mobile-menu-btn svg { transition: transform 0.25s var(--ease); }

/* ------------ Hero -------------- */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
}
.hero h1 span.accent {
  background: linear-gradient(105deg, var(--text) 40%, var(--brand) 60%, var(--text) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede { margin-top: 24px; max-width: 520px; font-size: 19px; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* subtle decorative backlight */
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

/* ------------ Cards -------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hi);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.5; }
.card ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14.5px; }
.card ul li { color: var(--text-muted); padding: 6px 0; display: flex; gap: 10px; align-items: flex-start; }
.card ul li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 5px; height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--brand);
}

/* Services grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* Feature card with number */
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s var(--ease);
}
.feat-card:hover { border-color: var(--border-strong); }
.feat-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  margin-bottom: 22px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  letter-spacing: 0.08em;
}

/* Solution card large */
.sol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sol-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.sol-card .sol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sol-card .sol-title { display: flex; align-items: center; gap: 12px; }
.sol-card .sol-title h3 { font-size: 20px; }
.sol-card .sol-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.sol-card .sol-arrow {
  color: var(--text-muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.sol-card:hover .sol-arrow { color: var(--brand); transform: translate(3px, -3px); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat-item { padding: 28px 24px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-feature-settings: "tnum"; }
.stat-num .brand { color: var(--brand); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* Industry chips */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
.industry-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.industry-chip:hover { border-color: var(--brand); color: var(--text); }
.industry-chip .ico {
  width: 34px; height: 34px;
  color: var(--brand);
  opacity: 0.9;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
  align-items: start;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: 16px;
  text-transform: capitalize;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-sans);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-muted); font-size: 14px; transition: color 0.2s var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); }
.address-line {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: normal;
}

/* ------------ Reveal animation -------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ------------ IDP demo mock (hero visual) -------------- */
.idp-mock {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.1),
    0 20px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
[data-theme="light"] .idp-mock {
  box-shadow:
    0 2px 4px rgba(10,13,20,0.04),
    0 20px 60px rgba(10,13,20,0.12);
}
.idp-mock-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
}
.idp-mock-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.idp-mock-chrome .urlbar {
  flex: 1;
  margin-left: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 3px 10px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  text-align: center;
}
.idp-mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 420px;
}
.idp-mock-sidebar {
  background: #0a0b12;
  color: #d8dae8;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  font-size: 11.5px;
}
.idp-mock-sidebar .logo-mini { padding: 6px 8px 16px; font-weight: 600; font-size: 13px; display: flex; align-items: baseline; color: #fff; }
.idp-mock-sidebar .logo-mini .logo-notch { width: 6px; height: 6px; background: var(--brand); margin-left: 2px; }
.idp-mock-sidebar .menu-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: #666a85; padding: 4px 8px; margin-top: 6px; }
.idp-mock-sidebar .menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; color: #9ea2b8; cursor: default;
  transition: background 0.15s, color 0.15s;
}
.idp-mock-sidebar .menu-item.active { background: rgba(184,60,255,0.12); color: #fff; }
.idp-mock-sidebar .menu-item .dot-ico { width: 10px; height: 10px; border-radius: 3px; background: currentColor; opacity: 0.35; }
.idp-mock-sidebar .menu-item.active .dot-ico { background: var(--brand); opacity: 1; }

.idp-mock-main {
  background: #f4f5f8;
  padding: 16px;
  overflow: hidden;
}
[data-theme="light"] .idp-mock-main { background: #f7f8fb; }
.idp-mock-main .crumb {
  font-size: 11px;
  color: #6b7085;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.idp-mock-main .crumb b { color: var(--brand); }
.idp-mock-main .title { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 2px; }
.idp-mock-main .subtitle { font-size: 11px; color: #6b7085; margin-bottom: 14px; }

.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mock-stat {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ececf2;
}
.mock-stat .ico { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mock-stat .ico.p { background: #f3e8ff; color: #9333ea; }
.mock-stat .ico.g { background: #fce7f3; color: #c026d3; }
.mock-stat .ico.b { background: #dbeafe; color: #2563eb; }
.mock-stat .ico.e { background: #dcfce7; color: #16a34a; }
.mock-stat .v { font-size: 14px; font-weight: 600; color: #111; line-height: 1; }
.mock-stat .l { font-size: 9.5px; color: #6b7085; margin-top: 3px; }

.mock-chart {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 8px;
  padding: 14px;
  height: 180px;
  position: relative;
}
.mock-chart .ch-title { font-size: 11px; font-weight: 600; color: #111; margin-bottom: 10px; }
.mock-chart svg { width: 100%; height: 130px; }

/* ------------ Form -------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.single { grid-template-columns: 1fr; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field .help { font-size: 12px; color: var(--text-dim); }

/* ------------ Utility -------------- */
.divider { height: 1px; background: var(--border); margin: 0; border: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.pill.neutral { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Industries bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--brand-soft) 0%, transparent 55%),
    linear-gradient(180deg, transparent 60%, var(--brand-soft) 200%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.bento-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hi);
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover::after { transform: scaleX(1); }

.bento-card-inner {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 200px;
}
.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.bento-card:hover .bento-ico { transform: rotate(-4deg) scale(1.05); }
.bento-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.bento-mid { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bento-title {
  font-size: 19px;
  letter-spacing: -0.018em;
}
.bento-uc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.bento-foot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.bento-stat {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-feature-settings: "tnum";
}
.bento-sl {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Scroll-to-top floating button */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
/* small dotted bg feature for section emphasis */
.dots-bg {
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
}

/* ---------- Solutions page (interactive tabbed layout) ---------- */
.sol-tabs-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) 1fr;
  gap: 24px;
  align-items: start;
}

.sol-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 100px;
}
.sol-tabs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 4px 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.sol-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  overflow: hidden;
}
.sol-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateX(2px);
}
.sol-tab.is-active {
  background: linear-gradient(135deg, rgba(184, 60, 255, 0.12), var(--surface) 70%);
  border-color: rgba(184, 60, 255, 0.4);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(184, 60, 255, 0.1);
}
.sol-tab.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--brand-glow);
}

.sol-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  width: 22px;
  text-align: center;
}
.sol-tab.is-active .sol-tab-num { color: var(--brand); }

.sol-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.sol-tab.is-active .sol-tab-icon {
  background: var(--brand-soft);
  border-color: rgba(184, 60, 255, 0.3);
  color: var(--brand);
}

.sol-tab-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sol-tab-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sol-tab-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sol-tab-indicator {
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.sol-tab.is-active .sol-tab-indicator,
.sol-tab:hover .sol-tab-indicator {
  opacity: 1;
  transform: translateX(0);
}
.sol-tab.is-active .sol-tab-indicator { color: var(--brand); }

/* Detail panel */
.sol-detail {
  position: relative;
  padding: 44px;
  background: linear-gradient(135deg, rgba(184, 60, 255, 0.06), var(--surface) 55%);
  border: 1px solid rgba(184, 60, 255, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  animation: sol-detail-in 0.35s var(--ease) both;
}
@keyframes sol-detail-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sol-detail-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px circle at 100% 0%, rgba(184, 60, 255, 0.18), transparent 55%),
    radial-gradient(380px circle at 0% 100%, rgba(184, 60, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.sol-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sol-detail-counter { color: var(--text-muted); }
.sol-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(184, 60, 255, 0.3);
  font-weight: 600;
}
.sol-detail-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand-glow);
  animation: sol-pulse 1.6s ease-in-out infinite;
}
@keyframes sol-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Animated icon mock area */
.sol-detail-mock {
  position: relative;
  height: 220px;
  background: radial-gradient(circle at center, rgba(184, 60, 255, 0.12), transparent 70%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  overflow: hidden;
}
.sol-detail-icon {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand), #7a1fc7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(184, 60, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 2;
  animation: sol-detail-icon-in 0.5s var(--ease) both;
}
.sol-detail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  z-index: 2;
  animation: sol-detail-icon-in 0.5s var(--ease) both;
}
@keyframes sol-detail-icon-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.sol-detail-orbit {
  position: absolute;
  border: 1px dashed rgba(184, 60, 255, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
.sol-detail-orbit-1 {
  width: 180px; height: 180px;
  animation: sol-orbit 22s linear infinite;
}
.sol-detail-orbit-2 {
  width: 280px; height: 280px;
  border-color: rgba(184, 60, 255, 0.18);
  animation: sol-orbit 36s linear infinite reverse;
}
.sol-detail-orbit-3 {
  width: 380px; height: 380px;
  border-color: rgba(184, 60, 255, 0.1);
  animation: sol-orbit 60s linear infinite;
}
@keyframes sol-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sol-detail-body { display: flex; flex-direction: column; gap: 14px; }
.sol-detail-sub {
  font-size: 12.5px;
  color: var(--brand);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}
.sol-detail-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}
.sol-detail-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.sol-detail-list {
  list-style: none;
  padding: 16px 0 0;
  margin: 4px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sol-detail-list li {
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: center;
}
.sol-detail-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14.5px;
  width: fit-content;
  margin-top: 12px;
  box-shadow: 0 0 0 1px var(--brand), 0 8px 24px var(--brand-glow);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), gap 0.25s var(--ease);
}
.sol-detail-cta:hover { background: var(--brand-strong); gap: 14px; }
.sol-detail-cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.sol-detail-cta-ghost:hover { background: var(--surface-hi); }

/* Tabbed layout responsive */
@media (max-width: 880px) {
  .sol-tabs-layout { grid-template-columns: 1fr; gap: 16px; }
  .sol-tabs-list { position: static; }
  .sol-detail { padding: 28px; }
  .sol-detail-mock { height: 180px; }
  .sol-detail-icon { width: 84px; height: 84px; }
  .sol-detail-orbit-3 { display: none; }
  .sol-detail-title { font-size: 26px; }
}

/* ---------- IDP flow demo (idp page hero) ---------- */
.idp-flow-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 520px) {
  .idp-flow-grid { grid-template-columns: 1fr; gap: 12px; }
  .idp-flow-grid > :nth-child(2) { transform: rotate(90deg); padding: 4px 0; }
}

/* ---------- CTA card ---------- */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  background-image: radial-gradient(ellipse at 100% 0%, var(--brand-soft) 0%, transparent 50%);
}
.cta-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 220px;
}
.cta-card-actions .btn { justify-content: center; }
@media (max-width: 720px) {
  .cta-card { grid-template-columns: 1fr; gap: 28px; }
  .cta-card-actions { min-width: 0; width: 100%; }
}

/* ---------- Video / Walkthrough ---------- */
/* Real video replacements — keep these even while placeholder is up */
.vx-video,
.vx-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #000;
  overflow: hidden;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.vx-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Placeholder card */
.vx-video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(196, 30, 86, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-elev), var(--surface));
  overflow: hidden;
  cursor: default;
  isolation: isolate;
}
.vx-video-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
  mask-image: radial-gradient(80% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}
.vx-video-content {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
}
.vx-video-play {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 50px var(--brand-glow), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}
.vx-video-play::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: 0.4;
  animation: vx-pulse 2.4s ease-out infinite;
}
.vx-video-play::after {
  content: "";
  position: absolute; inset: -22px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: 0.18;
  animation: vx-pulse 2.4s ease-out infinite 0.6s;
}
.vx-video-play:hover { transform: scale(1.06); background: var(--brand-strong); }
.vx-video-play svg { transform: translateX(2px); }
.vx-video-play.is-playing svg { transform: none; }

.vx-video-wrap { position: relative; }
.vx-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.vx-video-play-overlay:hover { transform: translate(-50%, -50%) scale(1.06); }
.vx-video-play-overlay.is-playing { opacity: 0.25; }
.vx-video-play-overlay.is-playing:hover { opacity: 1; }
.vx-video-play-overlay.is-playing::before,
.vx-video-play-overlay.is-playing::after { display: none; }

@keyframes vx-pulse {
  0%   { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1.45); opacity: 0; }
}

.vx-video-meta { display: flex; flex-direction: column; gap: 6px; }
.vx-video-tag {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vx-video-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.vx-video-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .vx-video-play { width: 64px; height: 64px; }
  .vx-video-play svg { width: 22px; height: 22px; }
  .vx-video-title { font-size: 17px; }
  .vx-video-content { gap: 16px; padding: 20px; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  font-size: 14px;
}
.legal-toc-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc a {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.45;
  display: block;
  padding: 4px 0;
  transition: color 0.15s var(--ease), padding 0.15s var(--ease);
}
.legal-toc a:hover { color: var(--brand); padding-left: 6px; }

.legal-body { display: flex; flex-direction: column; gap: 24px; }
.legal-section { padding: 0; scroll-margin-top: 100px; }
.legal-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-secnum {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(184, 60, 255, 0.3);
  border-radius: 999px;
  background: var(--brand-soft);
}
.legal-foot {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal-foot a { color: var(--brand); }

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

/* ---------- IDP flow demo keyframes ---------- */
@keyframes idpDocIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes idpScan {
  from { top: 0%; }
  to   { top: 100%; }
}
