/* ===========================================================
   BackOffice landing — handcrafted CSS
   =========================================================== */

:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef0f6;
  --ink: #0e1116;
  --ink-2: #2a2f3a;
  --muted: #5b6473;
  --muted-2: #8a93a3;
  --line: #e6e9ef;
  --line-2: #d8dde7;

  --brand: #7c5cff;
  --brand-2: #21d4fd;
  --accent: #21e6a4;
  --warn: #ffb547;
  --danger: #ff6f6f;
  --gold: #c89b3c;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 28px 60px -20px rgba(20, 24, 50, 0.28), 0 8px 20px -8px rgba(20, 24, 50, 0.18);
  --shadow-xl: 0 60px 120px -40px rgba(20, 24, 50, 0.45), 0 20px 40px -20px rgba(20, 24, 50, 0.25);

  --grad: linear-gradient(135deg, #7c5cff 0%, #21d4fd 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(33, 212, 253, 0.12));

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px -4px rgba(124, 92, 255, 0.45), 0 2px 6px rgba(33, 212, 253, 0.25);
}
.btn--primary:hover {
  box-shadow: 0 12px 26px -6px rgba(124, 92, 255, 0.55), 0 4px 12px rgba(33, 212, 253, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: #fff;
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04), 0 4px 16px -8px rgba(16, 24, 40, 0.08);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em;
  font-size: 18px;
}
.brand__mark { display: inline-flex; }
.nav__links {
  display: flex; align-items: center; gap: 22px;
  margin-left: 12px;
}
.nav__links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 6px 0;
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.nav__burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__burger span {
  width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px;
}

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}
.hero__glow--a {
  top: -260px; left: -160px;
  background: radial-gradient(circle at center, #b5a3ff 0%, transparent 60%);
}
.hero__glow--b {
  top: -200px; right: -200px;
  background: radial-gradient(circle at center, #9ee9ff 0%, transparent 60%);
}
.hero__inner {
  position: relative; z-index: 1;
  text-align: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}
.pill__arrow { color: var(--brand); font-weight: 700; }

.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero__sub strong { color: var(--ink-2); }

.hero__cta {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 9px;
  padding-left: 2px;
}

.hero__bullets {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0 0 60px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ============== Mockup ============== */
.mockup {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  text-align: left;
}
.mockup::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 17px;
  background: var(--grad);
  z-index: -1;
  opacity: 0.0;
}
.mockup__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.mockup__url {
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.mockup__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
.mockup__side {
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 16px 12px;
  font-size: 13.5px;
}
.ms__brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; padding: 6px 8px; margin-bottom: 12px;
}
.ms__mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--grad);
}
.ms__group {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); padding: 14px 8px 6px;
}
.ms__item {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: default;
}
.ms__item--active {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.mockup__main { padding: 22px 24px; }
.mm__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mm__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mm__sub { font-size: 13px; color: var(--muted); }
.mm__actions { display: flex; align-items: center; gap: 10px; }
.avatars { display: inline-flex; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
  border: 2px solid #fff;
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar.lg { width: 40px; height: 40px; font-size: 13px; }
.avatar.a1 { background: linear-gradient(135deg, #7c5cff, #b39bff); }
.avatar.a2 { background: linear-gradient(135deg, #21d4fd, #5ed8ff); }
.avatar.a3 { background: linear-gradient(135deg, #21e6a4, #6fefc7); color: #0e1116; }

.chip {
  display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 500;
  background: var(--surface-3);
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.chip--ghost { background: transparent; color: var(--muted); border-style: dashed; }
.chip--primary {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 10px -2px rgba(124, 92, 255, 0.4);
}

.mm__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.mm__table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.mm__table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mm__table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.mm__table tr:last-child td { border-bottom: 0; }
.mm__table tr:hover td { background: var(--surface-2); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-3); color: var(--muted);
}
.tag--gold { background: rgba(200, 155, 60, 0.14); color: #a3742a; }
.tag--blue { background: rgba(33, 212, 253, 0.16); color: #0d96b5; }

.mm__widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.widget {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.widget__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.widget__value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.widget__delta { font-size: 12px; margin-top: 4px; }
.widget__delta--up { color: #168f5b; }
.widget__bars {
  margin-top: 10px;
  display: flex; align-items: flex-end; gap: 4px;
  height: 40px;
}
.widget__bars span {
  flex: 1;
  background: var(--grad);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.widget__pipe {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.widget__pipe span {
  height: 8px;
  border-radius: 4px;
  background: var(--c, var(--brand));
  width: var(--w, 50%);
  opacity: 0.92;
}

/* ============== Proof ============== */
.proof {
  margin-top: 56px;
  text-align: center;
}
.proof__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.proof__row {
  display: flex; gap: 36px; flex-wrap: wrap; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* ============== Section base ============== */
section { padding: 96px 0; }
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.section__head p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  background: var(--grad-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ============== Value ============== */
.value { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
.value__copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 18px;
}
.value__copy p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 22px;
}
.value__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.value__list li {
  position: relative;
  padding: 14px 14px 14px 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--muted);
}
.value__list li::before {
  content: '✓';
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 700;
}
.value__list strong { color: var(--ink); }

.value__numbers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.num {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.num:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.num__big {
  font-size: 44px; font-weight: 800; letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.num__lbl { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

/* ============== Studio (Builder showcase) ============== */
.studio-sec { padding-top: 110px; padding-bottom: 110px; }

.studio {
  position: relative;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.studio::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.4), rgba(33, 212, 253, 0.3));
  z-index: 0;
  filter: blur(12px); opacity: 0.4;
  pointer-events: none;
}
.studio > * { position: relative; z-index: 1; }

.studio__tabs {
  display: flex;
  gap: 4px;
  padding: 14px 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), #fff);
}
.studio__tabs::-webkit-scrollbar { display: none; }
.studio__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: 12px 12px 0 0;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.studio__tab:hover { color: var(--ink-2); background: rgba(15, 23, 42, 0.03); }
.studio__tab .i { font-size: 16px; }
.studio__tab.is-active {
  color: var(--ink);
  background: #fff;
}
.studio__tab.is-active::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.studio__stage {
  position: relative;
  min-height: 500px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}
.studio__panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.3fr;
  gap: 36px;
  padding: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.studio__panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.studio__copy h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.studio__copy p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.checks li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}
.checks li::after {
  content: '✓';
  position: absolute; left: 4px; top: 4px;
  color: #fff; font-size: 10px; font-weight: 800;
}

.studio__viz {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff, #fafbfd);
  padding: 16px;
  overflow: hidden;
}

.studio__progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--surface-3);
  z-index: 2;
}
.studio__progress span {
  display: block; height: 100%;
  background: var(--grad);
  width: 0;
}
.studio.is-cycling .studio__progress span {
  animation: bar 7s linear infinite;
}
@keyframes bar {
  from { width: 0; }
  to { width: 100%; }
}

/* ----- Fields panel ----- */
.studio__viz--fields {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 14px;
}
.fl, .fp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.fl-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  padding: 4px 4px 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}
.fl-pill {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  background: var(--grad-soft); color: var(--brand);
  padding: 2px 8px; border-radius: 999px;
}
.fl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fl-grip { color: var(--muted-2); cursor: grab; font-weight: 700; }
.fl-type {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted);
  background: #fff; border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 4px;
}
.fl-row--drag {
  background: linear-gradient(180deg, #fff, #f3efff);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 14px 28px -8px rgba(124, 92, 255, 0.35);
  animation: dragRow 4.5s ease-in-out infinite;
  transform-origin: left center;
}
.fl-new {
  font-size: 10px; font-weight: 700;
  background: var(--grad); color: #fff;
  padding: 1px 6px; border-radius: 4px;
  letter-spacing: 0.05em;
}
.fl-add {
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  padding: 8px 10px;
  border: 1px dashed rgba(124, 92, 255, 0.4);
  border-radius: 8px;
  text-align: center;
}

@keyframes dragRow {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(28px, -6px) rotate(-1.4deg); }
  60% { transform: translate(0, 0) rotate(0); }
}

.fp-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 13px;
  padding: 4px 4px 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}
.fp-live {
  color: var(--accent);
  font-size: 11px; font-weight: 600;
}
.fp-l {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
}
.fp-l span { letter-spacing: 0.04em; text-transform: uppercase; }
.fp-l input {
  font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}
.fp-l--new input {
  background: linear-gradient(180deg, #fff, #f3efff);
  border-color: rgba(124, 92, 255, 0.4);
  animation: pulseBorder 2.4s ease-in-out infinite;
}
@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.0); }
  50% { box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); }
}
.fp-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
}
.fp-user .avatar { width: 22px; height: 22px; font-size: 9px; margin: 0; }

/* ----- Layout panel ----- */
.studio__viz--layout {
  display: flex; align-items: center; justify-content: center;
}
.lay {
  width: 100%; max-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 60px 90px 90px;
  gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lay-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.lay-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.lay-cell--1 { grid-column: 1 / -1; }
.lay-cell--2 { grid-row: 2 / 4; }
.lay-cell--3 { }
.lay-cell--4 { }
.lay-cell--5 { }
.lay-cell--ghost {
  background: transparent;
  border: 1.5px dashed rgba(124, 92, 255, 0.4);
  color: var(--brand);
  text-align: center; justify-content: center;
  box-shadow: none;
  font-size: 12px;
  font-style: italic;
}
.lay-cell--6 {
  background: linear-gradient(180deg, #fff, #f3efff);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 14px 28px -8px rgba(124, 92, 255, 0.35);
}
.lay-cell--drag { animation: dragLay 4.5s ease-in-out infinite; }
@keyframes dragLay {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(-14px, -22px) rotate(-2deg); }
  60% { transform: translate(0, 0) rotate(0); }
}

/* ----- Flow panel ----- */
.studio__viz--flow {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(33, 212, 253, 0.06), transparent 40%),
    linear-gradient(180deg, #fff, #fafbfd);
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.flow-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.flow-svg path {
  fill: none;
  stroke: url(#flowG);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  animation: dashflow 1.6s linear infinite;
}
@keyframes dashflow {
  to { stroke-dashoffset: -24; }
}

.fnode {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 130px;
  z-index: 2;
}
.fnode__kind {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2);
}
.fnode__title { font-weight: 700; color: var(--ink); }
.fnode--trig { border-color: rgba(124, 92, 255, 0.4); }
.fnode--trig .fnode__kind { color: var(--brand); }
.fnode--cond { border-color: rgba(33, 212, 253, 0.4); }
.fnode--cond .fnode__kind { color: #0d96b5; }
.fnode--act { border-color: rgba(33, 230, 164, 0.4); }
.fnode--act .fnode__kind { color: #168f5b; }

/* ----- Forms panel ----- */
.studio__viz--forms {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 16px;
}
.form-builder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.fb-head {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.fb-toggle {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.fb-toggle input { display: none; }
.fb-toggle span:first-of-type {
  width: 32px; height: 18px;
  background: var(--surface-3);
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.fb-toggle span:first-of-type::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.fb-toggle input:checked + span {
  background: var(--grad);
}
.fb-toggle input:checked + span::before {
  transform: translateX(14px);
}
.fb-toggle--anim input { animation: toggleAnim 4s ease-in-out infinite; }
@keyframes toggleAnim {
  0%, 40% { }
  50%, 90% { }
}
.fb-toggle--anim span:first-of-type {
  animation: bgToggle 4s ease-in-out infinite;
}
@keyframes bgToggle {
  0%, 45% { background: var(--surface-3); }
  55%, 100% { background: var(--grad); }
}
.fb-toggle--anim span:first-of-type::before {
  animation: knob 4s ease-in-out infinite;
}
@keyframes knob {
  0%, 45% { transform: translateX(0); }
  55%, 100% { transform: translateX(14px); }
}
.fb-color {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink-2);
  margin-top: 4px;
}
.swatch {
  width: 18px; height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}
.swatch.s1 { background: #ff6f6f; }
.swatch.s2 { background: #ffb547; }
.swatch.s3 { background: var(--brand); }
.swatch.s4 { background: var(--accent); }
.swatch.is-on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--brand);
  transform: scale(1.1);
}

.public-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.public-form::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--grad);
  border-radius: 12px 12px 0 0;
}
.pf-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 4px;
}
.pf-title {
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pf-row {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}
.pf-row span { font-weight: 600; }
.pf-row input {
  font: inherit; font-size: 14px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.pf-row--anim {
  animation: revealRow 4s ease-in-out infinite;
  overflow: hidden;
  max-height: 60px;
}
@keyframes revealRow {
  0%, 45% { max-height: 0; opacity: 0; margin-bottom: 0; }
  55%, 100% { max-height: 60px; opacity: 1; margin-bottom: 10px; }
}
.pf-submit {
  width: 100%;
  padding: 10px;
  background: var(--grad);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}

/* ----- Permissions panel ----- */
.studio__viz--perms {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}
.pmatrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.pmatrix th {
  font-weight: 600;
  padding: 10px;
  background: var(--surface-2);
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.pmatrix tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  border-right: 1px solid var(--line);
}
.pmatrix td {
  text-align: center;
  padding: 10px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.pmatrix tr:last-child td,
.pmatrix tr:last-child th { border-bottom: 0; }
.pc.on { color: #168f5b; background: rgba(33, 230, 164, 0.08); }
.pc.off { color: var(--muted-2); }
.pc.partial { color: var(--warn); font-size: 11px; background: rgba(255, 181, 71, 0.1); }
.pc.pulse { animation: pulseCell 2.4s ease-in-out infinite; }
@keyframes pulseCell {
  0%, 100% { background: rgba(33, 230, 164, 0.08); }
  50% { background: rgba(124, 92, 255, 0.18); }
}

.audit {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  overflow: hidden;
  position: relative;
}
.audit__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.audit__live {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #21e6a4;
  letter-spacing: 0;
  text-transform: none;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.audit__line {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: streamIn 8s linear infinite;
}
.audit__line:nth-child(2) { animation-delay: 0s; }
.audit__line:nth-child(3) { animation-delay: 2s; }
.audit__line:nth-child(4) { animation-delay: 4s; }
.audit__line:nth-child(5) { animation-delay: 6s; }
.audit__line .t { color: rgba(255, 255, 255, 0.4); margin-right: 8px; }
.audit__line code {
  color: #21d4fd;
  background: rgba(33, 212, 253, 0.1);
  padding: 1px 6px; border-radius: 4px;
  font-size: 11px;
}
@keyframes streamIn {
  0% { opacity: 0; transform: translateY(8px); }
  10%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ----- Dashboards panel ----- */
.studio__viz--dash {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.dash {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%; max-width: 540px;
}
.dwidget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.dw-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 6px;
  font-weight: 600;
}
.dw-stat .dw-val {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dw-spark {
  width: 100%; height: 30px;
  margin-top: 6px;
}
.dw-spark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawSpark 2s ease-out forwards;
}
@keyframes drawSpark {
  to { stroke-dashoffset: 0; }
}

.dw-chart { grid-row: 1 / -1; grid-column: 2; }
.dw-bars {
  height: calc(100% - 24px);
  display: flex; align-items: flex-end; gap: 6px;
}
.dw-bars span {
  flex: 1;
  background: var(--grad);
  border-radius: 4px 4px 0 0;
  height: var(--h);
  opacity: 0.85;
  animation: growBar 0.8s ease-out backwards;
}
.dw-bars span:nth-child(1) { animation-delay: 0.05s; }
.dw-bars span:nth-child(2) { animation-delay: 0.1s; }
.dw-bars span:nth-child(3) { animation-delay: 0.15s; }
.dw-bars span:nth-child(4) { animation-delay: 0.2s; }
.dw-bars span:nth-child(5) { animation-delay: 0.25s; }
.dw-bars span:nth-child(6) { animation-delay: 0.3s; }
.dw-bars span:nth-child(7) { animation-delay: 0.35s; }
.dw-bars span:nth-child(8) { animation-delay: 0.4s; }
@keyframes growBar {
  from { height: 0; opacity: 0; }
  to { height: var(--h); opacity: 0.85; }
}

.dw-pipes {
  display: flex; flex-direction: column; gap: 6px;
}
.dw-pipes span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--c);
  width: var(--w);
  animation: growW 0.9s ease-out backwards;
  transform-origin: left;
}
.dw-pipes span:nth-child(2) { animation-delay: 0.1s; }
.dw-pipes span:nth-child(3) { animation-delay: 0.2s; }
.dw-pipes span:nth-child(4) { animation-delay: 0.3s; }
@keyframes growW {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.dw-kan { display: none; }

/* ============== Bento (asymmetric) ============== */
.bento {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.bento-cell {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.bento__kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 10px;
}
.bento-cell h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 6px;
}
.bento-cell p { color: var(--muted); margin: 0; font-size: 14px; }

/* Multiplayer cell */
.bento--multi { grid-row: 1 / -1; grid-column: 1; padding-bottom: 0; }
.bento--multi .bento__copy { max-width: 320px; }
.bento--multi .bento__viz {
  position: absolute; inset: auto 0 0 0;
  height: 60%;
  background:
    radial-gradient(circle at 30% 70%, rgba(124, 92, 255, 0.12), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(33, 212, 253, 0.12), transparent 50%);
  border-top: 1px dashed var(--line);
}
.float-av {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}
.f-a1 { background: linear-gradient(135deg, #7c5cff, #b39bff); top: 25%; left: 18%; }
.f-a2 { background: linear-gradient(135deg, #21d4fd, #5ed8ff); top: 60%; left: 50%; animation-delay: -1.5s; }
.f-a3 { background: linear-gradient(135deg, #21e6a4, #6fefc7); color: var(--ink); top: 30%; left: 75%; animation-delay: -3s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-cursor {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  animation: floatCur 8s ease-in-out infinite;
}
.f-c1 { top: 30%; left: 28%; }
.f-c2 { top: 65%; left: 60%; animation-delay: -4s; }
.cursor-tag {
  display: inline-block;
  position: absolute; top: 18px; left: 18px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
}
.cursor-tag.t2 { background: var(--brand-2); }
@keyframes floatCur {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -10px); }
  50% { transform: translate(20px, 30px); }
  75% { transform: translate(-20px, 10px); }
}

/* Code cell */
.bento--code { grid-row: 1; grid-column: 2 / -1; }
.code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px 0 0;
  overflow-x: auto;
  line-height: 1.6;
}
.code .cmt { color: rgba(255, 255, 255, 0.4); }
.code .kw { color: #c4a3ff; }
.code .fn { color: #5ed8ff; }
.code .str { color: #21e6a4; }
.code .num { color: #ffb547; }

/* Multi-tenant cell */
.bento--multi-tenant { grid-row: 2; grid-column: 2; }
.ws-stack {
  position: relative;
  margin-top: 12px;
  height: 72px;
}
.ws {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: var(--shadow-sm);
  width: 70%;
  transition: transform 0.3s ease;
}
.ws-1 { left: 0; top: 0; transform: rotate(-3deg); border-color: rgba(124, 92, 255, 0.4); }
.ws-2 { left: 10%; top: 18px; transform: rotate(1deg); border-color: rgba(33, 212, 253, 0.4); }
.ws-3 { left: 18%; top: 36px; transform: rotate(-1deg); border-color: rgba(33, 230, 164, 0.4); }
.ws-4 { left: 26%; top: 54px; transform: rotate(2deg); color: var(--muted); border-style: dashed; }
.bento--multi-tenant:hover .ws-1 { transform: rotate(-5deg) translateX(-6px); }
.bento--multi-tenant:hover .ws-2 { transform: rotate(2deg) translateX(2px); }
.bento--multi-tenant:hover .ws-3 { transform: rotate(-2deg) translateX(6px); }
.bento--multi-tenant:hover .ws-4 { transform: rotate(3deg) translateX(10px); }

/* Billing cell */
.bento--billing { grid-row: 2; grid-column: 3; }
.invoice {
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  position: relative;
}
.inv-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 13px;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.inv-head span { color: var(--muted); font-weight: 400; font-size: 11px; }
.inv-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  color: var(--muted);
}
.inv-row span { color: var(--ink); font-weight: 600; }
.inv-total {
  display: flex; justify-content: space-between;
  margin-top: 4px; padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-weight: 700; color: var(--ink);
}
.inv-paid {
  position: absolute;
  top: 8px; right: -22px;
  background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: 10px;
  padding: 2px 24px;
  transform: rotate(28deg);
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
}

/* Templates cloud */
.bento--templates { grid-column: 1 / -1; grid-row: 3; padding: 26px 22px; }
.bento {
  grid-template-rows: 220px 220px auto;
}
.tpl-cloud {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.tpl-cloud span {
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tpl-cloud span:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============== Templates (in-page browser) ============== */
.templates { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.tplbrowser {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

/* Left list */
.tplbrowser__list {
  display: flex; flex-direction: column;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 8px;
  align-self: start;
  position: sticky;
  top: 88px;
}
.tpli {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  position: relative;
}
.tpli:hover { background: rgba(124, 92, 255, 0.06); }
.tpli.is-active {
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.tpli.is-active::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
}
.tpli__i {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  background: rgba(124, 92, 255, 0.1);
  flex-shrink: 0;
}
.tpli__i--crm  { background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.08)); }
.tpli__i--help { background: linear-gradient(135deg, rgba(33, 212, 253, 0.2), rgba(33, 212, 253, 0.08)); }
.tpli__i--proj { background: linear-gradient(135deg, rgba(33, 230, 164, 0.2), rgba(33, 230, 164, 0.08)); }
.tpli__i--inv  { background: linear-gradient(135deg, rgba(255, 181, 71, 0.22), rgba(255, 181, 71, 0.08)); }
.tpli__i--hr   { background: linear-gradient(135deg, rgba(255, 122, 217, 0.22), rgba(255, 122, 217, 0.08)); }
.tpli__i--ops  { background: linear-gradient(135deg, rgba(255, 111, 111, 0.2), rgba(255, 111, 111, 0.08)); }

.tpli__body {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.tpli__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tpli__meta {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.tpli__chev {
  color: var(--muted-2);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tpli.is-active .tpli__chev,
.tpli:hover .tpli__chev {
  opacity: 1;
  transform: none;
}
.tpli.is-active .tpli__chev { color: var(--brand); }

.tpli__foot {
  margin-top: 6px;
  padding: 14px 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px; color: var(--muted-2);
  display: flex; flex-direction: column; gap: 2px;
}
.tpli__foot span { font-weight: 700; color: var(--ink-2); }
.tpli__foot small { font-size: 11.5px; }

/* Right stage — panels are grid-stacked so the cell grows to the tallest panel */
.tplbrowser__stage {
  display: grid;
  grid-template-columns: 1fr;
}
.tplpanel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex; flex-direction: column;
  padding: 4px;
  visibility: hidden;
}
.tplpanel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.tplpanel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.tplpanel__title { display: flex; align-items: center; gap: 12px; }
.tplpanel__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 20px;
  box-shadow: 0 6px 14px -4px var(--c1);
}
.tplpanel__title h3 {
  margin: 0;
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
}
.tplpanel__sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  max-width: 460px;
  line-height: 1.45;
}
.tplpanel__stats {
  display: flex; gap: 8px;
  flex-shrink: 0;
}
.tplpanel__stats > div {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 54px;
}
.tplpanel__stats strong {
  font-size: 17px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tplpanel__stats span {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tplpanel__body {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1.4fr;
  gap: 14px;
  padding: 14px 16px;
  flex: 1;
  min-height: 0;
}

.tpl-section + .tpl-section { margin-top: 10px; }
.tpl-section h4 {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 0 0 6px;
}
.tplnode {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.3;
}
.tplnode__i { font-size: 14px; }
.tplnode__tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
}
.tplchips {
  display: flex; flex-wrap: wrap; gap: 3px;
  margin: 2px 0 6px 24px;
}
.tplchips span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.16);
  padding: 1px 6px;
  border-radius: 4px;
}
.tplflows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.tplflows li {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.3;
}
.tplflow__i {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  border-radius: 5px;
  font-size: 9px;
  flex-shrink: 0;
}
.tplform {
  padding: 7px 10px;
  background: var(--grad-soft);
  border: 1px dashed rgba(124, 92, 255, 0.3);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

/* Preview area */
.tplpanel__preview {
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tpv__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.tpv__live {
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  animation: livePulse 1.5s ease-in-out infinite;
}

/* CTA row */
.tplpanel__cta {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.04));
  border-radius: 0 0 14px 14px;
}
.tplpanel__note {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

/* ----- Preview: CRM (kanban) ----- */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.kcol {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.kcol__head {
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 6px 6px;
  border-bottom: 1px dashed var(--line);
}
.kcol__head span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  background: #fff;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.kcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  animation: dropIn 0.4s ease-out backwards;
}
.kcard:nth-child(2) { animation-delay: 0.05s; }
.kcard:nth-child(3) { animation-delay: 0.1s; }
.kcard:nth-child(4) { animation-delay: 0.15s; }
.kcard strong { font-weight: 600; color: var(--ink); }
.kcard span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.kcard--hot { border-color: rgba(255, 181, 71, 0.5); background: linear-gradient(180deg, #fff, #fffaf0); }
.kcard--won {
  border-color: rgba(33, 230, 164, 0.5);
  background: linear-gradient(180deg, #fff, #ecfff7);
}
.kcard--won span { color: #168f5b; font-weight: 700; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ----- Preview: Helpdesk (ticket inbox) ----- */
.ticketlist {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.tline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  animation: dropIn 0.4s ease-out backwards;
}
.tline:nth-child(2) { animation-delay: 0.05s; }
.tline:nth-child(3) { animation-delay: 0.1s; }
.tline:nth-child(4) { animation-delay: 0.15s; }
.tline:nth-child(5) { animation-delay: 0.2s; }
.tline strong { font-weight: 600; color: var(--ink); font-size: 13px; }
.tline__pri {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.tline--p1 .tline__pri { background: rgba(255, 111, 111, 0.16); color: #d63a3a; }
.tline--p2 .tline__pri { background: rgba(255, 181, 71, 0.18); color: #b07a14; }
.tline--p3 .tline__pri { background: rgba(33, 212, 253, 0.16); color: #0d96b5; }
.tline__sla {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 4px;
}
.tline__sla--bad {
  background: rgba(255, 111, 111, 0.16);
  color: #d63a3a;
  font-weight: 700;
  animation: livePulse 1.4s ease-in-out infinite;
}

/* ----- Preview: Projects (gantt) ----- */
.gantt {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
  position: relative;
}
.gantt__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}
.gantt__lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.gantt__bar {
  position: relative;
  display: block;
  height: 16px;
  border-radius: 4px;
  margin-left: var(--s);
  width: var(--w);
  box-shadow: var(--shadow-sm);
  animation: gbar 0.8s ease-out backwards;
  transform-origin: left;
}
.gantt__row:nth-child(2) .gantt__bar { animation-delay: 0.1s; }
.gantt__row:nth-child(3) .gantt__bar { animation-delay: 0.2s; }
.gantt__row:nth-child(4) .gantt__bar { animation-delay: 0.3s; }
.gantt__row:nth-child(5) .gantt__bar { animation-delay: 0.4s; }
@keyframes gbar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.gantt__axis {
  display: grid;
  grid-template-columns: 90px repeat(6, 1fr);
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: 'JetBrains Mono', monospace;
}
.gantt__axis::before { content: ''; }
.gantt__axis span { text-align: center; }

/* ----- Preview: Inventory (stock bars) ----- */
.stocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  flex: 1;
  align-content: start;
}
.stk {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
}
.stk__name { font-weight: 600; color: var(--ink); }
.stk__bar {
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.stk__bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  transform-origin: left;
  animation: gbar 0.9s ease-out backwards;
}
.stk:nth-child(2) .stk__bar span { animation-delay: 0.05s; }
.stk:nth-child(3) .stk__bar span { animation-delay: 0.1s; }
.stk:nth-child(4) .stk__bar span { animation-delay: 0.15s; }
.stk:nth-child(5) .stk__bar span { animation-delay: 0.2s; }
.stk:nth-child(6) .stk__bar span { animation-delay: 0.25s; }
.stk__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  min-width: 36px;
}
.stk__num--low {
  color: #d63a3a;
  background: rgba(255, 111, 111, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ----- Preview: HR (candidate pipeline) ----- */
.hrpipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
}
.hrcol {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.hrcol__head {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.hrcol__head span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 4px;
  color: var(--muted);
}
.hrcard {
  display: flex; align-items: center; gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  animation: dropIn 0.4s ease-out backwards;
}
.hrcard .avatar { width: 22px; height: 22px; font-size: 9px; margin: 0; }
.hrcard--hot { border-color: rgba(255, 181, 71, 0.5); background: linear-gradient(180deg, #fff, #fffaf0); }
.hrcard--won { border-color: rgba(33, 230, 164, 0.5); background: linear-gradient(180deg, #fff, #ecfff7); }

/* ----- Preview: Field service (dispatch board) ----- */
.dispatch { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.djob {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: 6px;
  font-size: 13px;
  animation: dropIn 0.4s ease-out backwards;
}
.djob:nth-child(2) { animation-delay: 0.05s; }
.djob:nth-child(3) { animation-delay: 0.1s; }
.djob:nth-child(4) { animation-delay: 0.15s; }
.djob__time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
}
.djob strong { font-weight: 600; color: var(--ink); }
.djob__t .avatar { width: 24px; height: 24px; font-size: 10px; margin: 0; }
.djob__status {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.djob--done { border-left-color: var(--accent); }
.djob--done .djob__status--done {
  background: rgba(33, 230, 164, 0.16);
  color: #168f5b;
}
.djob--active {
  border-left-color: var(--brand);
  background: linear-gradient(180deg, #fff, #f5f1ff);
}
.djob--active .djob__status--active {
  background: var(--grad);
  color: #fff;
  animation: livePulse 1.4s ease-in-out infinite;
}

/* ============== How it works (alternating story) ============== */
.howline {
  display: flex; flex-direction: column;
  gap: 110px;
  position: relative;
  margin-top: 16px;
}

.howstep {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.howstep--reverse .howstep__copy { order: 2; }
.howstep--reverse .howstep__art { order: 1; }

/* Animated dashed connector between steps */
.howstep + .howstep::before {
  content: '';
  position: absolute;
  top: -110px; left: 50%;
  width: 2px; height: 110px;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, var(--brand) 50%, transparent 50%);
  background-size: 2px 14px;
  background-repeat: repeat-y;
  opacity: 0.45;
  animation: dashFlow 1.6s linear infinite;
}
@keyframes dashFlow {
  to { background-position-y: 14px; }
}

.howstep__num {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.howstep__digit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.howstep__time {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--brand);
  border: 1px solid rgba(124, 92, 255, 0.2);
}
.howstep__copy h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.howstep__copy p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.howstep__bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.howstep__bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.howstep__bullets li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}
.howstep__bullets li::after {
  content: '✓';
  position: absolute; left: 5px; top: 4px;
  color: #fff; font-size: 10px; font-weight: 800;
  line-height: 18px;
}

.howstep__art {
  position: relative;
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 320px;
  box-shadow: var(--shadow-md);
}
.howstep__art::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(33, 212, 253, 0.14) 50%, transparent 80%);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.55;
}

/* ----- STEP 1: Provisioning ----- */
.howart--1 { display: flex; flex-direction: column; gap: 14px; }
.provision {
  background: #14181f;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.prov__head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.prov__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(33, 230, 164, 0.18);
  animation: livePulse 1.4s ease-in-out infinite;
}
.prov__name { font-weight: 700; color: #fff; }
.prov__time {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}
.prov__lines { display: flex; flex-direction: column; gap: 6px; }
.prov__line {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  animation: provLine 0.5s ease-out forwards;
}
.prov__line:nth-child(1) { animation-delay: 0.2s; }
.prov__line:nth-child(2) { animation-delay: 0.7s; }
.prov__line:nth-child(3) { animation-delay: 1.2s; }
.prov__line:nth-child(4) { animation-delay: 1.7s; }
.prov__line:nth-child(5) { animation-delay: 2.3s; }
@keyframes provLine {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.prov__check {
  color: var(--accent);
  font-weight: 700;
  width: 12px; flex-shrink: 0;
  text-align: center;
}
.prov__line code {
  color: #c4a3ff;
  background: rgba(124, 92, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.prov__spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--brand-2);
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.prov__bar {
  margin-top: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.prov__bar span {
  display: block; height: 100%;
  background: var(--grad);
  width: 0;
  animation: fillBar 4.5s ease-out forwards;
  animation-delay: 0.2s;
}
@keyframes fillBar { to { width: 100%; } }

.prov__cards {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.provcard {
  font-size: 12.5px; font-weight: 600;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.provcard--on {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px -4px rgba(124, 92, 255, 0.45);
  transform: translateY(-2px);
}
.provcard--blank {
  border-style: dashed;
  background: var(--surface-2);
  color: var(--muted);
}

/* ----- STEP 2: Customization ----- */
.howart--2 { display: flex; flex-direction: column; gap: 12px; }
.rename {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.rename__lbl {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.rename__input {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center;
  min-height: 40px;
  overflow: hidden;
}
.rename__ghost {
  color: var(--muted-2);
  text-decoration: line-through;
  margin-right: 10px;
  animation: ghostFade 5s ease-in-out infinite;
}
.rename__typed {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: typedReveal 5s ease-in-out infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}
@keyframes ghostFade {
  0%, 25% { opacity: 1; }
  40%, 100% { opacity: 0.35; }
}
@keyframes typedReveal {
  0%, 30% { max-width: 0; }
  50%, 100% { max-width: 200px; }
}
.rename__cursor {
  display: inline-block;
  width: 2px; height: 22px;
  background: var(--brand);
  margin-left: 3px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }

.brand-pick {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.brand-pick__head {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.brand-pick__row { display: flex; gap: 10px; align-items: center; }
.bp-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bp-swatch:hover { transform: scale(1.1); }
.bp-swatch--on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(124, 92, 255, 0.5);
  transform: scale(1.12);
  animation: pickPulse 2.4s ease-in-out infinite;
}
@keyframes pickPulse {
  0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(124, 92, 255, 0.5); }
  50% { box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(124, 92, 255, 0.25); }
}

.rename-fields {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}
.rf-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid transparent;
}
.rf-row--current {
  background: var(--grad-soft);
  border-color: rgba(124, 92, 255, 0.25);
  box-shadow: 0 4px 10px -4px rgba(124, 92, 255, 0.25);
}
.rf-grip { color: var(--muted-2); font-weight: 700; }
.rf-old {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  font-weight: 500;
}
.rf-arrow { color: var(--muted-2); }
.rf-new {
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
}
.rf-cursor {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--brand);
  margin-left: 3px;
  animation: blink 0.9s steps(2) infinite;
}

/* ----- STEP 3: Live workspace ----- */
.howart--3 { padding: 16px; }
.livews {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.livews__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
}
.livews__head strong { font-weight: 700; }
.livews__avs { margin-left: auto; display: inline-flex; }
.livews__avs .avatar { width: 26px; height: 26px; font-size: 10px; }
.avatar--more { background: var(--surface-3) !important; color: var(--muted) !important; }

.livews__body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.livefeed {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.livefeed__head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 8px;
}
.livefeed__row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  animation: feedIn 0.5s ease-out backwards;
}
.livefeed__row:nth-child(2) { animation-delay: 0.3s; }
.livefeed__row:nth-child(3) { animation-delay: 0.6s; }
.livefeed__row:nth-child(4) { animation-delay: 0.9s; }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.livefeed__row .avatar { width: 22px; height: 22px; font-size: 9px; margin: 0; flex-shrink: 0; }
.livefeed__row > div { flex: 1; min-width: 0; line-height: 1.35; }
.livefeed__row .ago {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted-2);
  flex-shrink: 0;
}
.livefeed__row--won {
  border-color: rgba(33, 230, 164, 0.4);
  background: linear-gradient(180deg, #fff, #ecfff7);
}
.livefeed__row--won .amt { color: #168f5b; font-weight: 700; }
.livefeed__row--auto {
  border-color: rgba(124, 92, 255, 0.3);
  background: linear-gradient(180deg, #fff, #f5f1ff);
}
.autoi {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  flex-shrink: 0;
}

.livestat {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(33, 212, 253, 0.06));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column;
  position: relative;
}
.livestat__lbl {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 700;
}
.livestat__val {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0 2px;
  line-height: 1;
}
.livestat__delta {
  font-size: 11.5px;
  color: #168f5b;
  font-weight: 600;
  margin-bottom: 8px;
}
.livestat__spark {
  margin-top: auto;
  height: 28px;
}
.livestat__spark svg {
  width: 100%; height: 100%;
}
.livestat__spark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawSpark 1.6s ease-out 0.5s forwards;
}

.livetoast {
  position: absolute;
  right: 14px; bottom: 14px;
  background: var(--bg);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toastSlide 7s ease-in-out infinite;
  max-width: 240px;
}
@keyframes toastSlide {
  0%, 5% { opacity: 0; transform: translateX(40px); }
  15%, 75% { opacity: 1; transform: translateX(0); }
  85%, 100% { opacity: 0; transform: translateX(40px); }
}
.livetoast__i {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}
.livetoast strong { display: block; color: #fff; line-height: 1.2; }
.livetoast span { font-size: 11px; color: rgba(255, 255, 255, 0.65); }

/* ============== Use cases ============== */
.usecases { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.uc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uc {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.uc:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.uc__emoji { font-size: 26px; display: block; margin-bottom: 8px; }
.uc strong { display: block; font-size: 15px; margin-bottom: 4px; }
.uc p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ============== Quotes ============== */
.quotes { background: var(--bg); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.quotes::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(33, 212, 253, 0.12), transparent 70%);
  pointer-events: none;
}
.quote {
  max-width: 820px; margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}
.quote blockquote {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.quote__by { display: inline-flex; align-items: center; gap: 12px; }
.quote__name { font-weight: 600; }
.quote__role { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); }

/* ============== Pricing ============== */
.price__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch;
}
.price {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.price--featured:hover { transform: translateY(-8px); }
.price__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px -4px rgba(124, 92, 255, 0.45);
}
.price__name {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.price__amount {
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.price__amount span {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  margin-left: 4px;
}
.price__sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.price ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; color: var(--ink-2);
}
.price ul li { line-height: 1.45; }
.price .btn { margin-top: auto; }
.price__note {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.price__note a { color: var(--brand); font-weight: 600; }

/* ============== FAQ ============== */
.faq { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq__list {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.faq__list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq__list details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.faq__list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--muted); font-weight: 400;
  transition: transform 0.2s ease;
}
.faq__list details[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq__list p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 15px;
}

/* ============== Final CTA ============== */
.cta { padding: 80px 0; }
.cta__card {
  position: relative;
  background: var(--bg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  text-align: center;
  overflow: hidden;
}
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 100%, rgba(124, 92, 255, 0.5), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(33, 212, 253, 0.35), transparent 60%);
  pointer-events: none;
}
.cta__card h2 {
  position: relative;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.cta__card p {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  margin: 0 0 28px;
}
.cta__row {
  position: relative;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta__row .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cta__row .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============== Footer ============== */
.foot {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}
.foot__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot__brand p { margin: 14px 0 0; font-size: 14px; max-width: 280px; }
.foot__brand .brand { color: #fff; }


.foot__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.foot__cols h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.foot__cols a {
  position: relative;
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 0 5px 0;
  transition: color 0.18s ease, padding-left 0.18s ease, transform 0.18s ease;
}
.foot__cols a::before {
  content: '→';
  position: absolute;
  left: -18px;
  top: 5px;
  color: var(--brand-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 13px;
}
.foot__cols a:hover {
  color: #fff;
  padding-left: 18px;
}
.foot__cols a:hover::before {
  opacity: 1;
  left: 0;
  transform: none;
}
.foot__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============== AI section ============== */
.ai {
  position: relative;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 110px 0;
  overflow: hidden;
}
.ai__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #0b0d12 0%, #0e1018 100%);
}
.ai__bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
}
.ai__orb {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.ai__orb--a {
  top: -200px; left: -180px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.7), transparent 60%);
}
.ai__orb--b {
  bottom: -240px; right: -160px;
  background: radial-gradient(circle, rgba(33, 212, 253, 0.55), transparent 60%);
  animation-delay: -6s;
}
@keyframes orbDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 40px); }
}

.ai > .container { position: relative; z-index: 1; }

.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255, 255, 255, 0.7); }

.eyebrow--ai {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(33, 212, 253, 0.22));
  color: #c4a3ff;
  display: inline-flex; align-items: center; gap: 8px;
}
.dot-glow {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(33, 212, 253, 0.18);
  animation: livePulse 1.5s ease-in-out infinite;
}

.nav__badge {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--grad);
  color: #fff;
  vertical-align: middle;
}

/* Big AI studio (chat + workspace) */
.ai-studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.ai-studio::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.4), rgba(33, 212, 253, 0.3), transparent 70%);
  z-index: 0;
  filter: blur(20px); opacity: 0.5;
  pointer-events: none;
}
.ai-studio > * { position: relative; z-index: 1; }

/* Chat pane */
.ai-studio__chat {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex; flex-direction: column;
  min-height: 480px;
  overflow: hidden;
}
.ai-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
}
.ai-mark {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  border-radius: 6px;
  font-size: 13px; font-weight: 700;
}
.ai-title { font-weight: 700; color: #fff; }
.ai-model {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 8px; border-radius: 4px;
}
.ai-msgs {
  flex: 1;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  font-size: 13.5px;
}

.ai-msg, .ai-typing {
  opacity: 0;
  transform: translateY(6px);
}
.ai-msgs.is-playing > * {
  animation: aiFadeIn 0.55s ease-out forwards;
  animation-delay: var(--d, 0s);
}
@keyframes aiFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ai-who {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
}
.ai-msg--you { padding-right: 32px; }
.ai-msg--you .ai-who { color: #5ed8ff; }
.ai-msg--you p {
  background: rgba(33, 212, 253, 0.1);
  border: 1px solid rgba(33, 212, 253, 0.22);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
}
.ai-msg--bot { padding-right: 32px; }
.ai-msg--bot .ai-who { color: #c4a3ff; }
.ai-msg--bot p {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.26);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
}
.ai-msg--tool {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0 4px 14px;
  border-left: 2px solid rgba(124, 92, 255, 0.35);
}
.ai-msg--tool code {
  color: #c4a3ff;
  background: transparent;
  padding: 0;
}
.ai-msg--tool em {
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  font-size: 11px;
}
.ai-msg--tool .ok {
  color: #21e6a4;
  margin-left: 8px;
  font-weight: 700;
}

.ai-typing {
  display: flex; gap: 5px;
  padding-left: 4px;
  margin-top: -4px;
}
.ai-msgs.is-playing .ai-typing span {
  animation: typingDot 1.2s ease-in-out infinite;
}
.ai-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(196, 163, 255, 0.7);
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s !important; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s !important; }
@keyframes typingDot {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Workspace pane */
.ai-studio__ws {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ai-studio__ws::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.7;
}
.ai-ws-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  font-weight: 600;
  color: #fff;
}
.ai-ws-tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px; border-radius: 4px;
}
.ai-ws-tree {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.ai-node {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}
.ai-studio.is-playing .ai-node {
  animation: aiNodeIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes aiNodeIn {
  to { opacity: 1; transform: none; }
}
.ai-node--root {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(33, 212, 253, 0.14));
  border-color: rgba(124, 92, 255, 0.4);
  font-weight: 700;
  color: #fff;
}
.ai-node--child {
  margin-left: 22px;
  position: relative;
}
.ai-node--child::before {
  content: '';
  position: absolute;
  left: -22px; top: 50%;
  width: 18px; height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.ai-node--child::after {
  content: '';
  position: absolute;
  left: -22px; top: 0; bottom: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.ai-node--child:last-child::after { bottom: 50%; }
.ai-node--pending {
  border-style: dashed;
  border-color: rgba(255, 181, 71, 0.4);
  background: rgba(255, 181, 71, 0.06);
}
.ai-node--pending .ai-tag { color: var(--warn); }
.ai-tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px; border-radius: 4px;
}
.ai-node-i { font-size: 16px; }

.ai-ws-status {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
}
.ai-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 230, 164, 0.18);
  animation: livePulse 1.4s ease-in-out infinite;
}

/* Three capability cards */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.ai-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 26px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.0), rgba(33, 212, 253, 0.0));
  pointer-events: none;
  transition: background 0.3s ease;
}
.ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.06);
  box-shadow: 0 24px 50px -20px rgba(124, 92, 255, 0.4);
}
.ai-card:hover::before {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(33, 212, 253, 0.04));
}
.ai-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--grad);
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -6px rgba(124, 92, 255, 0.5);
}
.ai-card h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 8px;
}
.ai-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.ai-card__demo {
  margin-top: auto;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 12.5px;
}

.ai-demo-q {
  color: #5ed8ff;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 13px;
}
.ai-demo-q::before { content: '› '; opacity: 0.5; }
.ai-demo-a strong { color: #fff; display: block; margin-bottom: 6px; font-weight: 600; }
.ai-demo-a ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 12.5px;
}
.ai-demo-a li {
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.7);
}
.ai-demo-a li::before {
  content: '— ';
  color: var(--brand);
}

.ai-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px;
  line-height: 1.6;
  white-space: pre;
}
.ai-code .kw { color: #c4a3ff; }
.ai-code .fn { color: #5ed8ff; }
.ai-code .str { color: #21e6a4; }

.ai-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ai-pills span {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.ai-flow-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 8px;
  margin-bottom: 10px;
}
.ai-flow-i {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  border-radius: 6px; font-size: 11px;
}
.ai-flow-step strong { color: #fff; font-size: 12.5px; }
.ai-flow-model {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
}
.ai-flow-out {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  padding-left: 4px;
  line-height: 1.7;
}
.ai-flow-tag {
  font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.ai-flow-tag.tag--gold { background: rgba(200, 155, 60, 0.2); color: #ffce6b; }
.ai-flow-tag.tag--blue { background: rgba(33, 212, 253, 0.18); color: #5ed8ff; }

/* Foot strip */
.ai-foot {
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(33, 212, 253, 0.06)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.ai-foot__row {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}
.ai-foot__row strong {
  color: #fff;
  margin-right: 6px;
  font-size: 15px;
}
.ai-foot__models {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: flex-end;
}
.ai-foot__models span {
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

/* ============== Video modal ============== */
.mockup__play {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(11, 13, 18, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mockup__play:hover {
  transform: translateY(-1px);
  background: rgba(11, 13, 18, 0.95);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.45);
}
.mockup__play-icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  font-size: 9px;
  padding-left: 2px;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
  animation: playPulse 2.4s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(124, 92, 255, 0); }
}

.vmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.vmodal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.vmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.vmodal__panel {
  position: relative;
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 50px 120px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(124, 92, 255, 0.15) inset;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vmodal.is-open .vmodal__panel { transform: scale(1) translateY(0); }
.vmodal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.vmodal__close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.06);
}
.vmodal__video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}

@media (max-width: 560px) {
  .mockup__play { font-size: 11.5px; padding: 6px 12px 6px 8px; top: 10px; right: 10px; }
  .mockup__play-icon { width: 18px; height: 18px; }
}

/* ============== Subpage layout ============== */
.page__hero {
  position: relative;
  padding: 96px 0 56px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page__hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 25% 15%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 85%, rgba(33, 212, 253, 0.08), transparent 60%);
  pointer-events: none;
}
.page__hero > .container { position: relative; }
.page__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.page__back:hover { color: var(--brand); transform: translateX(-2px); }
.page__hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.page__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 660px;
  margin: 0;
  line-height: 1.55;
}
.page__meta {
  margin-top: 22px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.page__meta strong { color: var(--ink-2); font-weight: 600; }

.page__body { padding: 64px 0 96px; }
.page__body > .container {
  max-width: 820px;
}

.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.5em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.prose li { margin-bottom: 0.5em; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose blockquote {
  border-left: 3px solid var(--brand);
  padding: 10px 16px;
  background: var(--grad-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  margin: 1.4em 0;
}
.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Changelog */
.changelog__entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.changelog__entry:first-child { padding-top: 0; }
.changelog__entry:last-child { border-bottom: 0; }
.changelog__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.changelog__entry h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.changelog__entry ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.changelog__entry li {
  position: relative;
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.changelog__tag {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.changelog__tag--new { background: rgba(33, 230, 164, 0.16); color: #168f5b; }
.changelog__tag--imp { background: rgba(33, 212, 253, 0.16); color: #0d96b5; }
.changelog__tag--fix { background: rgba(255, 181, 71, 0.18); color: #b07a14; }

/* Contact cards */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.contact__card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 92, 255, 0.3);
}
.contact__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  margin-bottom: 12px;
}
.contact__card h3 {
  margin: 0 0 6px;
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
}
.contact__card p {
  margin: 0 0 8px;
  color: var(--muted); font-size: 13.5px;
  line-height: 1.5;
}
.contact__card a {
  color: var(--brand);
  font-weight: 600;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', monospace;
}

/* Team grid */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.team__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.team__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700; font-size: 22px;
  box-shadow: 0 8px 18px -6px rgba(124, 92, 255, 0.4);
}
.team__avatar.av-2 { background: linear-gradient(135deg, #21d4fd, #5ed8ff); }
.team__avatar.av-3 { background: linear-gradient(135deg, #21e6a4, #6fefc7); color: var(--ink); }
.team__avatar.av-4 { background: linear-gradient(135deg, #ff7ad9, #ffa3e3); }
.team__name { font-weight: 700; margin: 0 0 4px; font-size: 15px; }
.team__role { font-size: 12.5px; color: var(--muted); }

/* Values grid for About page */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.values__cell {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.values__cell strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.values__cell span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .contact__grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { margin-left: auto; }

  .value__grid { grid-template-columns: 1fr; gap: 32px; }

  .howline { gap: 56px; }
  .howstep { grid-template-columns: 1fr; gap: 24px; }
  .howstep--reverse .howstep__copy { order: 1; }
  .howstep--reverse .howstep__art { order: 2; }
  .howstep + .howstep::before { display: none; }
  .livews__body { grid-template-columns: 1fr; }
  .livetoast { position: static; margin-top: 12px; max-width: none; }

  .tplbrowser { grid-template-columns: 1fr; padding: 12px; }
  .tplbrowser__list {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    padding: 6px;
    scrollbar-width: thin;
  }
  .tpli { flex-shrink: 0; min-width: 220px; }
  .tpli__foot { display: none; }
  .tplpanel__head { flex-direction: column; align-items: flex-start; }
  .tplpanel__stats { width: 100%; flex-wrap: wrap; }
  .tplpanel__body { grid-template-columns: 1fr; }
  .uc__grid { grid-template-columns: repeat(2, 1fr); }
  .price__grid { grid-template-columns: 1fr; }
  .price--featured { transform: none; }

  .mockup__body { grid-template-columns: 1fr; }
  .mockup__side { display: none; }
  .mm__widgets { grid-template-columns: 1fr; }
  .mm__table { font-size: 12.5px; }

  .studio__panel {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .studio__stage { min-height: 760px; }
  .studio__viz--fields { grid-template-columns: 1fr; }
  .studio__viz--forms { grid-template-columns: 1fr; }
  .studio__viz--flow { min-height: 320px; }
  .fnode { font-size: 11px; min-width: 110px; padding: 8px 10px; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento--multi { grid-row: 1; grid-column: 1 / -1; }
  .bento--code { grid-column: 1 / -1; grid-row: auto; }
  .bento--multi-tenant { grid-column: 1; grid-row: auto; }
  .bento--billing { grid-column: 2; grid-row: auto; }
  .bento--templates { grid-column: 1 / -1; }

  .ai-studio { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-foot { grid-template-columns: 1fr; gap: 14px; }
  .ai-foot__models { justify-content: flex-start; }

  .foot__inner { grid-template-columns: 1fr; gap: 32px; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero { padding: 32px 0 56px; }
  .uc__grid { grid-template-columns: 1fr 1fr; }
  .value__numbers { grid-template-columns: 1fr 1fr; }
  .num { padding: 18px; }
  .num__big { font-size: 34px; }
  .cta__card { padding: 48px 22px; }
  .mm__top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mm__filters { overflow-x: auto; flex-wrap: nowrap; }
  .mm__filters .chip { white-space: nowrap; }

  .studio__tab span:not(.i) { display: none; }
  .studio__tab .i { font-size: 18px; }
  .studio__stage { min-height: 720px; }

  .bento {
    grid-template-columns: 1fr;
  }
  .bento--multi-tenant, .bento--billing { grid-column: 1; }

  .tplpanel__stats > div { flex: 1 0 calc(50% - 7px); }
  .gantt__row { grid-template-columns: 70px 1fr; }
  .gantt__axis { grid-template-columns: 70px repeat(3, 1fr); }
  .gantt__axis span:nth-child(n+5) { display: none; }
  .stocks { grid-template-columns: 1fr; }
  .hrpipe { grid-template-columns: repeat(2, 1fr); }
}

/* ============== Reveal-on-scroll ============== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============== Mobile menu ============== */
.nav__mobile {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.nav__mobile a {
  padding: 10px 4px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav.is-open .nav__mobile { display: flex; }
