/* FlowDex website — design system aligned with the FlowDex app (Manrope, dark navy, violet accent). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0e1a;
  --bg-deep: #070a13;
  --surface: #0d111e;
  --surface-2: #111827;
  --line: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6edf3;
  --text-2: #a8b3c7;
  --muted: #6f7d94;
  --violet: #7c72ff;
  --violet-2: #8b83ff;
  --violet-soft: rgba(124, 114, 255, 0.16);
  --violet-border: rgba(124, 114, 255, 0.36);
  --accent: #c4bfff;
  --kicker: #a79fff;
  --blue: #58a6ff;
  --green: #3fb950;
  --amber: #d29922;
  --orange: #f0883e;
  --red: #f85149;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(124, 114, 255, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 6px;
}

* {
  scrollbar-color: rgba(88, 166, 255, 0.38) rgba(12, 19, 36, 0.9);
  scrollbar-width: thin;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--violet);
  color: #0a0e1a;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 900px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.038em;
  line-height: 1.06;
}

.h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kicker);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.grad {
  background: linear-gradient(92deg, #d6d2ff 0%, #9d94ff 30%, #58a6ff 65%, #8fe3ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

.text-2 {
  color: var(--text-2);
}

.muted {
  color: var(--muted);
}

.code {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #d2dcff;
  font-family: var(--mono);
  font-size: 0.82em;
  line-height: 1.5;
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 1.02rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6f64fb, #5247df);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(124, 114, 255, 0.55), 0 10px 30px -10px rgba(124, 114, 255, 0.85);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(139, 131, 255, 0.8), 0 16px 40px -10px rgba(124, 114, 255, 1);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(10, 14, 26, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 26, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f8fafc;
  text-decoration: none;
  flex: none;
}

.brand img {
  display: block;
  width: 40px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(88, 166, 255, 0.25));
}

.brand-word {
  font-family: "Montserrat", var(--font);
  font-size: 1.36rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-word b {
  font-weight: 700;
}

.brand-word span {
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.main-nav .nav-login {
  display: none;
}

.lang {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #0f1424;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lang.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-menu a,
.lang-menu span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.lang-menu [aria-current="true"] {
  color: var(--text);
}

.lang-menu small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(84px, 10vw, 136px) 0;
}

.section.tight {
  padding: clamp(56px, 7vw, 88px) 0;
}

.section.deep {
  background: var(--bg-deep);
}

.section-head {
  max-width: 800px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .h2 {
  margin: 14px 0 18px;
}

.hr-glow {
  position: relative;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(124, 114, 255, 0.55), rgba(88, 166, 255, 0.45), transparent);
}

.hr-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 50%;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 114, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.glow {
  isolation: isolate;
  overflow: hidden;
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 114, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.glow:hover::before {
  opacity: 1;
}

.glow:hover {
  border-color: rgba(124, 114, 255, 0.34);
}

.grad-border {
  position: relative;
}

.grad-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(124, 114, 255, 0.85), rgba(88, 166, 255, 0.15) 38%, transparent 60%, rgba(124, 114, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--violet-border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.28), rgba(124, 114, 255, 0.08));
  color: #d9d5ff;
  box-shadow: 0 8px 30px -10px rgba(124, 114, 255, 0.8);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ee2a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.check-list li strong {
  color: var(--text);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 25%, #000 25%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  top: -260px;
  left: -160px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 114, 255, 0.55), transparent 62%);
}

.orb-2 {
  top: -80px;
  right: -220px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(43, 148, 254, 0.42), transparent 62%);
  animation-delay: -7s;
}

.orb-3 {
  bottom: -320px;
  left: 30%;
  width: 760px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 65%);
  animation-delay: -12s;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(196, 191, 255, 0.8), transparent),
    radial-gradient(1px 1px at 63% 38%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 78% 16%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 88% 62%, rgba(158, 203, 255, 0.8), transparent),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 55% 90%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 94% 34%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 36% 44%, rgba(255, 255, 255, 0.35), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--violet-border);
  border-radius: 999px;
  background: rgba(124, 114, 255, 0.08);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.announce:hover {
  background: rgba(124, 114, 255, 0.14);
  border-color: rgba(124, 114, 255, 0.55);
}

.announce .tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--violet);
  color: #0a0e1a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announce svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  margin: 24px 0;
}

.hero .lead {
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.showcase {
  position: relative;
  padding: 16px 16px 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(13, 17, 30, 0.92));
  box-shadow: 0 50px 120px -40px rgba(92, 80, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.film-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.film-tabs button {
  position: relative;
  overflow: hidden;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.film-tabs button[aria-selected="true"] {
  background: var(--violet-soft);
  color: var(--accent);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6);
  animation: pulse 2s infinite;
}

.film {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* ---------- Films (ported from the FlowDex sign-in showcase) ---------- */

.f-caption {
  fill: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.f-edge {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  animation: f-dash 1.2s linear infinite;
}

.f-edge.reply {
  stroke: var(--text-2);
}

.f-arrow path {
  fill: var(--violet);
}

.f-arrow.open path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
}

.f-edge-label {
  fill: var(--text-2);
  font-size: 10px;
  font-weight: 600;
}

.f-node rect,
.f-lifeline-head {
  fill: var(--surface);
  stroke: var(--border);
}

.f-node.focus rect {
  stroke: var(--violet);
  stroke-width: 1.5;
}

.f-node.bus rect,
.f-backend {
  fill: var(--violet-soft);
  stroke: var(--violet);
  stroke-width: 1.5;
}

.f-backend {
  stroke: var(--violet-border);
  stroke-width: 1;
}

.f-node.bus .f-kind {
  fill: var(--accent);
}

.f-kind {
  fill: var(--text-2);
  font-size: 10px;
  font-weight: 600;
}

.f-label {
  fill: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.f-count {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.f-packet {
  opacity: 0;
  fill: var(--accent);
  animation: f-packet 2.4s linear infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

.f-badge {
  fill: var(--violet);
}

.f-num {
  fill: #0a0e1a;
  font-size: 11px;
  font-weight: 800;
}

.f-lifeline {
  stroke: var(--border);
  stroke-dasharray: 3 4;
}

.f-lifeline-label {
  fill: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.f-card rect,
.f-row rect,
.f-rule-row {
  fill: var(--surface);
  stroke: var(--border);
}

.f-card.focus rect,
.f-row.focus rect {
  fill: var(--violet-soft);
  stroke: var(--violet);
  stroke-width: 1.5;
}

.ls-scene {
  opacity: 0;
  transform-box: view-box;
  animation: 30s ease-in-out infinite both;
}

.ls-apps {
  transform-origin: 240px 83px;
  animation-name: ls-apps;
}

.ls-areas {
  animation-name: ls-areas;
}

.ls-flows {
  transform-origin: 124px 113px;
  animation-name: ls-flows;
}

.f-card,
.f-row {
  opacity: 0;
  animation: 30s ease-out infinite backwards;
  animation-delay: calc(var(--i) * 0.5s);
}

.f-card {
  animation-name: f-card;
}

.f-row {
  animation-name: f-row;
}

.ls-step .f-bar {
  fill: var(--border);
  animation: ls-bar 30s linear infinite;
  animation-delay: calc(var(--i) * 10s);
}

.ls-step .f-bar-label {
  fill: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  animation: ls-label 30s linear infinite;
  animation-delay: calc(var(--i) * 10s);
}

.fl-scene {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 385px 141px;
  animation: 40s ease-in-out infinite both;
}

.fl-overview {
  animation-name: fl-overview;
}

.fl-backend {
  animation-name: fl-backend;
}

.fl-sequence {
  animation-name: fl-sequence;
}

.fl-rules {
  animation-name: fl-rules;
}

.f-seq-msg {
  opacity: 0;
  animation: f-seq-msg 40s ease-out infinite backwards;
  animation-delay: calc(var(--i) * 1.1s);
}

.f-seq-dot {
  opacity: 0;
  fill: var(--accent);
  animation: f-seq-dot 40s linear infinite backwards;
  animation-delay: inherit;
}

.f-seq-label {
  fill: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  animation: f-seq-label 40s linear infinite backwards;
  animation-delay: inherit;
}

.f-rule {
  opacity: 0;
  animation: f-rule 40s ease-out infinite backwards;
  animation-delay: calc(var(--i) * 1s);
}

.fl-step .f-bar {
  fill: var(--border);
  animation: fl-bar 40s linear infinite;
  animation-delay: calc(var(--i) * 10s);
}

.fl-step .f-bar-label {
  fill: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  animation: fl-label 40s linear infinite;
  animation-delay: calc(var(--i) * 10s);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
  animation: marquee 95s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

.chip i.b {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.chip i.g {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.chip i.a {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.trust-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.stat {
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat > span {
  color: var(--text-2);
  font-size: 0.93rem;
}

.footnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Problem ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.quotes {
  display: grid;
  gap: 14px;
}

.bubble {
  position: relative;
  max-width: 470px;
  padding: 15px 20px;
  border: 1px solid rgba(124, 114, 255, 0.28);
  border-radius: 18px 18px 18px 4px;
  background: rgba(124, 114, 255, 0.1);
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.5;
}

.bubble:nth-child(even) {
  margin-left: auto;
  border-color: rgba(88, 166, 255, 0.25);
  border-radius: 18px 18px 4px 18px;
  background: rgba(88, 166, 255, 0.08);
}

.bubble b {
  font-weight: 800;
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.js .bubble.reveal {
  transform: translateY(18px) scale(0.96);
}

.js .bubble.reveal.is-in {
  transform: none;
}

.pr {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
  font-size: 0.86rem;
}

.pr-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.pr-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 800;
}

.pr-title .num {
  color: var(--muted);
  font-weight: 600;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #238636;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.state svg {
  width: 13px;
  height: 13px;
}

.pr-meta {
  margin-top: 8px;
  color: var(--muted);
}

.pr-meta b {
  color: var(--text-2);
}

.pr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.pr-stats .add {
  color: #7ee2a0;
  font-weight: 800;
}

.pr-stats .del {
  color: #ff9b95;
  font-weight: 800;
}

.diff {
  margin: 0;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  overflow: hidden;
}

.diff span {
  display: block;
  padding: 0 20px;
  white-space: pre;
  color: var(--text-2);
}

.diff .a {
  background: rgba(63, 185, 80, 0.12);
  color: #aff5b4;
}

.diff .d {
  background: rgba(248, 81, 73, 0.12);
  color: #ffc1bc;
}

.diff .h {
  color: var(--muted);
}

.pr-foot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0883e, #d29922);
  color: #0a0e1a;
  font-size: 0.72rem;
  font-weight: 800;
}

.avatar.ai {
  background: linear-gradient(135deg, #7c72ff, #58a6ff);
}

.pr-foot p {
  color: var(--text-2);
}

.pr-foot strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
}

.handwrite {
  margin-top: 16px;
  color: var(--text);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  transform: rotate(-3deg);
}

.problems {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.problem {
  padding: 22px;
}

.problem .icon-tile {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-color: rgba(248, 81, 73, 0.3);
  background: linear-gradient(180deg, rgba(248, 81, 73, 0.2), rgba(248, 81, 73, 0.05));
  color: #ffb4ae;
  box-shadow: none;
}

.problem .icon-tile svg {
  width: 18px;
  height: 18px;
}

.problem p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

.problem strong {
  color: var(--text);
}

/* ---------- Statement (scroll scrub) ---------- */

.statement-wrap {
  position: relative;
  padding: clamp(96px, 13vw, 180px) 0;
  text-align: center;
  isolation: isolate;
}

.statement-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(900px, 90vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 114, 255, 0.16), transparent 70%);
}

.statement {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.js .statement .w {
  color: rgba(230, 237, 243, 0.14);
  transition: color 0.35s;
}

.js .statement .w.on {
  color: var(--text);
}

.js .statement .w.hl.on {
  color: var(--accent);
}

.statement-foot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--text-2);
  font-size: 1.15rem;
  font-weight: 700;
}

.statement-foot b {
  color: #ff9b95;
}

.statement-foot .dot-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--violet);
  color: #0a0e1a;
}

.statement-foot .dot-arrow svg {
  width: 18px;
  height: 18px;
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.how-intro {
  position: sticky;
  top: 110px;
}

.how-intro .h2 {
  margin: 14px 0 18px;
}

.how-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.how-badge .icon-tile {
  width: 36px;
  height: 36px;
}

.steps {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 0 72px;
  list-style: none;
}

.steps::before,
.steps-fill {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  width: 2px;
  border-radius: 2px;
}

.steps::before {
  bottom: 24px;
  background: var(--line);
}

.steps-fill {
  height: calc(var(--p, 0) * (100% - 48px));
  background: linear-gradient(180deg, #7c72ff, #58a6ff);
  box-shadow: 0 0 18px rgba(124, 114, 255, 0.9);
}

.step {
  position: relative;
  overflow: visible;
  padding: 24px 26px;
}

.step-icon {
  position: absolute;
  left: -72px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  transition: all 0.5s var(--ease);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step.is-lit .step-icon {
  border-color: var(--violet-border);
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.4), rgba(124, 114, 255, 0.12));
  color: #fff;
  box-shadow: 0 0 34px -4px rgba(124, 114, 255, 0.9);
}

.step small {
  color: var(--kicker);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step h3 {
  margin: 6px 0 8px;
  font-size: 1.28rem;
}

.step p {
  color: var(--text-2);
}

.step .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

/* ---------- Product tour ---------- */

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
}

.tour-tab {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tour-tab svg {
  width: 16px;
  height: 16px;
}

.tour-tab:hover {
  color: var(--text);
}

.tour-tab[aria-selected="true"] {
  border-color: var(--violet-border);
  background: rgba(124, 114, 255, 0.15);
  color: #fff;
}

.tour-tab .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c72ff, #58a6ff);
}

.tour-tab.is-playing .bar {
  animation: tab-bar var(--dur, 10s) linear forwards;
}

.app {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #0b0f1c;
  box-shadow: 0 60px 160px -50px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-wrap {
  position: relative;
}

.app-wrap::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8%;
  bottom: -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(124, 114, 255, 0.35), transparent 70%);
  filter: blur(40px);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3142;
}

.app-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  max-width: 460px;
  height: 26px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
}

.app-url svg {
  width: 12px;
  height: 12px;
}

.demo-badge {
  padding: 3px 9px;
  border: 1px solid rgba(210, 153, 34, 0.4);
  border-radius: 999px;
  background: rgba(210, 153, 34, 0.1);
  color: #f2cc60;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-body {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 640px;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.app-side .brand {
  padding: 2px 8px 14px;
}

.app-side .brand img {
  width: 32px;
}

.app-side .brand-word {
  font-size: 1.1rem;
}

.side-label {
  padding: 12px 10px 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 650;
  transition: background 0.3s, color 0.3s;
}

.side-item svg {
  width: 16px;
  height: 16px;
}

.side-item.is-active {
  background: var(--violet-soft);
  color: var(--accent);
}

.side-item .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
}

.side-project {
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.side-project b {
  display: block;
  color: var(--text-2);
  font-size: 0.78rem;
}

.app-main {
  position: relative;
  min-width: 0;
  padding: 24px 26px 28px;
}

.panel {
  display: none;
}

.no-js .panel,
.panel.is-active {
  display: block;
}

.panel.is-active {
  animation: panel-in 0.55s var(--ease) both;
}

.no-js .panel + .panel {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.ui-eyebrow {
  color: var(--kicker);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ui-title {
  margin: 6px 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ui-lead {
  max-width: 780px;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ui-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ui-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.pill svg {
  width: 12px;
  height: 12px;
}

.pill.violet {
  border-color: var(--violet-border);
  background: var(--violet-soft);
  color: var(--accent);
}

.pill.blue {
  border-color: rgba(88, 166, 255, 0.35);
  background: rgba(88, 166, 255, 0.1);
  color: #9ecbff;
}

.pill.green {
  border-color: rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.1);
  color: #7ee2a0;
}

.pill.amber {
  border-color: rgba(210, 153, 34, 0.4);
  background: rgba(210, 153, 34, 0.1);
  color: #f2cc60;
}

.pill.orange {
  border-color: rgba(240, 136, 62, 0.4);
  background: rgba(240, 136, 62, 0.1);
  color: #ffb77c;
}

.pill.red {
  border-color: rgba(248, 81, 73, 0.4);
  background: rgba(248, 81, 73, 0.1);
  color: #ff9b95;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.metric strong {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.focus-card {
  position: relative;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.focus-card.is-hot {
  border-color: var(--violet-border);
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.15), rgba(124, 114, 255, 0.03));
}

.focus-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.focus-card h3 svg {
  width: 16px;
  height: 16px;
  color: var(--kicker);
}

.focus-card p {
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

.focus-card .ui-pills {
  margin-top: 0;
}

.conf {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.conf i {
  display: block;
  width: var(--v);
  height: 100%;
  background: linear-gradient(90deg, #7c72ff, #58a6ff);
  transform-origin: left;
}

.panel.is-active .conf i {
  animation: grow-x 1.2s var(--ease) both;
  animation-delay: 0.2s;
}

.ui-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.ui-card + .ui-card {
  margin-top: 12px;
}

.ui-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.ui-card-title span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.ui-card p {
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.6;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.crumbs svg {
  width: 12px;
  height: 12px;
}

.flow-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 14px;
  margin-top: 16px;
}

.rules {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.rule .n {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet);
  color: #0a0e1a;
  font-size: 0.68rem;
  font-weight: 800;
}

.rule small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rule.gap {
  border-color: rgba(210, 153, 34, 0.35);
  background: rgba(210, 153, 34, 0.06);
}

.rule.gap .n {
  background: var(--amber);
}

.panel.is-active .rule {
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.08s + 0.15s);
}

.seq {
  display: block;
  width: 100%;
  height: auto;
}

.seq .ll {
  stroke: var(--border);
  stroke-dasharray: 3 4;
}

.seq .ll-head {
  fill: var(--surface);
  stroke: var(--border);
}

.seq .ll-text {
  fill: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.seq .m path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.4;
}

.seq .m.async path {
  stroke-dasharray: 5 4;
}

.seq .m.reply path {
  stroke: var(--text-2);
  stroke-dasharray: 3 3;
}

.seq .m text {
  fill: var(--text-2);
  font-size: 9.5px;
  font-weight: 700;
}

.seq .m circle {
  fill: var(--violet);
}

.seq .m .num {
  fill: #0a0e1a;
  font-size: 8px;
  font-weight: 800;
}

.seq .arrow-fill {
  fill: var(--violet);
}

.seq .arrow-open {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.4;
}

.seq .arrow-reply {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.4;
}

.panel.is-active .seq .m {
  animation: seq-in 0.45s var(--ease) both;
  animation-delay: calc(var(--i) * 0.42s + 0.3s);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fact {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.76rem;
}

.fact b {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

.fact .code {
  font-size: 0.72rem;
}

.op {
  display: inline-block;
  min-width: 52px;
  font-weight: 800;
}

.op.c {
  color: #7ee2a0;
}

.op.r {
  color: #9ecbff;
}

.op.u {
  color: #f2cc60;
}

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}

.bar i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: var(--c, linear-gradient(90deg, #7c72ff, #58a6ff));
  transform-origin: left;
}

.panel.is-active .bar i,
.is-in .bar i {
  animation: grow-x 1.1s var(--ease) both;
  animation-delay: 0.25s;
}

/* Impact */

.impact-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 14px;
  margin-top: 16px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.kpi {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.kpi strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.kpi span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.kpi.hot {
  border-color: rgba(240, 136, 62, 0.35);
  background: rgba(240, 136, 62, 0.06);
}

.kpi.hot strong {
  color: #ffb77c;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ui-table th {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ui-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ui-table tr:last-child td {
  border-bottom: 0;
}

.ui-table td small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.ui-table .strong {
  font-weight: 750;
}

.panel.is-active .ui-table tbody tr {
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.07s + 0.15s);
}

.retest {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f2cc60;
  font-size: 0.7rem;
  font-weight: 800;
}

.retest svg {
  width: 13px;
  height: 13px;
}

.graph {
  display: block;
  width: 100%;
  height: auto;
}

.graph .edge {
  fill: none;
  stroke: rgba(124, 114, 255, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
}

.graph .edge.hot {
  stroke: rgba(240, 136, 62, 0.8);
}

.panel.is-active .graph .edge {
  animation: f-dash 1.2s linear infinite;
}

.graph .node rect {
  fill: var(--surface);
  stroke: var(--border);
}

.graph .node.center rect {
  fill: rgba(240, 136, 62, 0.12);
  stroke: rgba(240, 136, 62, 0.7);
  stroke-width: 1.5;
}

.graph .node.hot rect {
  stroke: rgba(240, 136, 62, 0.55);
}

.graph .node text {
  fill: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.graph .node .k {
  fill: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
}

.graph .pulse {
  fill: #ffb77c;
  opacity: 0;
}

.panel.is-active .graph .pulse {
  animation: f-packet 2.4s linear infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

.panel.is-active .graph .node {
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: 12px;
  background: rgba(248, 81, 73, 0.07);
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.55;
}

.note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: #ff9b95;
}

.note b {
  color: var(--text);
}

.note.amber {
  border-color: rgba(210, 153, 34, 0.35);
  background: rgba(210, 153, 34, 0.07);
}

.note.amber svg {
  color: #f2cc60;
}

.note.violet {
  border-color: var(--violet-border);
  background: rgba(124, 114, 255, 0.08);
}

.note.violet svg {
  color: var(--accent);
}

/* Security */

.sec-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.sec-card {
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.sec-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--tone);
}

.sec-card.active {
  border-color: rgba(248, 81, 73, 0.4);
  background: rgba(248, 81, 73, 0.05);
}

.sec-card .top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 750;
}

.sec-card .top svg {
  width: 14px;
  height: 14px;
  color: var(--tone);
}

.sec-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.sec-card small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.tone-bad {
  --tone: var(--red);
}

.tone-warn {
  --tone: var(--amber);
}

.tone-good {
  --tone: var(--green);
}

.tone-accent {
  --tone: var(--violet);
}

.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.sev::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.sev.critical {
  color: #ff7b72;
}

.sev.high {
  color: var(--orange);
}

.sev.medium {
  color: #e3b341;
}

.sev.low {
  color: var(--blue);
}

.sevbar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin: 8px 0 8px;
}

.sevbar i {
  flex: var(--n);
  border-radius: 3px;
  transform-origin: left;
}

.panel.is-active .sevbar i,
.is-in .sevbar i {
  animation: grow-x 0.9s var(--ease) both;
  animation-delay: calc(var(--k, 0) * 0.12s + 0.2s);
}

.sevbar .c {
  background: var(--red);
}

.sevbar .h {
  background: var(--orange);
}

.sevbar .m {
  background: var(--amber);
}

.sevbar .l {
  background: var(--blue);
}

.sev-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.72rem;
}

.sec-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.finding {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.finding:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.finding:first-of-type {
  padding-top: 0;
}

.finding .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.finding b {
  font-size: 0.8rem;
}

.finding span {
  color: var(--text-2);
}

.finding .code {
  font-size: 0.68rem;
  white-space: normal;
  word-break: break-all;
}

.cve {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sc);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.cve + .cve {
  margin-top: 7px;
}

.cve.critical {
  --sc: var(--red);
  --sc-text: #ff9b95;
  --sc-bg: rgba(248, 81, 73, 0.12);
}

.cve.high {
  --sc: var(--orange);
  --sc-text: #ffb77c;
  --sc-bg: rgba(240, 136, 62, 0.12);
}

.cve.medium {
  --sc: var(--amber);
  --sc-text: #f2cc60;
  --sc-bg: rgba(210, 153, 34, 0.12);
}

.sev-badge {
  justify-self: start;
  padding: 3px 9px;
  border: 1px solid var(--sc);
  border-radius: 999px;
  background: var(--sc-bg);
  color: var(--sc-text);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cve-main {
  min-width: 0;
}

.cve-main b {
  display: block;
  font-size: 0.8rem;
}

.cve-main b .code {
  margin-left: 4px;
  font-size: 0.7rem;
}

.cve-main small {
  display: block;
  overflow: hidden;
  color: var(--text-2);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cve-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.panel.is-active .cve {
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.07s + 0.2s);
}

.brules {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brule {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.5;
}

.brule:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.brule b {
  font-weight: 800;
}

.brule span {
  color: var(--text-2);
}

.brule.gap b {
  color: #f2cc60;
}

.panel.is-active .brule {
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.07s + 0.3s);
}

.vc {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.seg span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 700;
}

.seg span.on {
  background: var(--violet);
  color: #0a0e1a;
}

.seg svg {
  width: 12px;
  height: 12px;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-title .ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: 10px;
  background: rgba(248, 81, 73, 0.1);
  color: #ff9b95;
}

.sec-title .ic svg {
  width: 18px;
  height: 18px;
}

.sec-title b {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.sec-title small {
  color: var(--text-2);
  font-size: 0.78rem;
}

.upgrade {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
}

.upgrade b {
  color: #7ee2a0;
  font-weight: 700;
}

/* Quality */

.gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(248, 81, 73, 0.12), rgba(248, 81, 73, 0.03));
}

.gate .big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff9b95;
  font-size: 1.05rem;
  font-weight: 800;
}

.gate .big svg {
  width: 20px;
  height: 20px;
}

.gate p {
  color: var(--text-2);
  font-size: 0.8rem;
}

.conds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.conds li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.conds svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.conds .ok svg {
  color: var(--green);
}

.conds .ko svg {
  color: var(--red);
}

.conds .ko {
  color: var(--text);
  font-weight: 700;
}

.cx {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.cx.g {
  background: rgba(63, 185, 80, 0.14);
  color: #7ee2a0;
}

.cx.a {
  background: rgba(210, 153, 34, 0.16);
  color: #f2cc60;
}

.cx.r {
  background: rgba(248, 81, 73, 0.16);
  color: #ff9b95;
}

.cov {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  font-size: 0.72rem;
  font-weight: 700;
}

.cov .bar {
  flex: 1;
}

.dup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dup pre {
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080b15;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.6;
}

.dup pre b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 700;
}

.dup .same {
  background: rgba(240, 136, 62, 0.14);
  color: #ffd2ad;
}

/* ---------- Security spotlight ---------- */

.sec-visual {
  position: relative;
  padding: 22px;
}

.cve-card {
  padding: 16px 18px;
  border: 1px solid rgba(240, 136, 62, 0.4);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(240, 136, 62, 0.12), rgba(240, 136, 62, 0.03));
}

.cve-card .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cve-card h4 {
  font-size: 1.05rem;
}

.cve-card p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.86rem;
}

.reach {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 36px;
  margin-top: 26px;
}

.reach-col h5 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.84rem;
  font-weight: 700;
}

.reach-item small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.reach-item.hot {
  border-color: rgba(240, 136, 62, 0.4);
  background: rgba(240, 136, 62, 0.06);
}

.js .reach-item {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 0.12s + 0.3s);
}

.is-in .reach-item {
  opacity: 1;
  transform: none;
}

.sec-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.feature {
  padding: 24px;
}

.feature h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}

.feature p {
  color: var(--text-2);
  font-size: 0.93rem;
}

/* ---------- MCP ---------- */

.ide {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #0b0f1c;
  box-shadow: 0 60px 140px -50px rgba(88, 166, 255, 0.45);
  font-size: 0.86rem;
}

.ide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.ide-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.ide-tab svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.ide-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 560px;
  padding: 20px;
}

.js .ide [data-step] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.js .ide [data-step].on {
  opacity: 1;
  transform: none;
}

.js .ide [data-step]:not(.on) .bar i {
  animation: none;
}

.msg-user {
  justify-self: end;
  max-width: 88%;
  padding: 12px 15px;
  border: 1px solid var(--violet-border);
  border-radius: 14px 14px 4px 14px;
  background: rgba(124, 114, 255, 0.14);
  line-height: 1.55;
}

.msg-user .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.tool-call {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.tool-call .t {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-call .t svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.tool-call .t b {
  color: #9ecbff;
  font-weight: 700;
}

.tool-call .r {
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.76rem;
}

.tool-call .r em {
  color: var(--text-2);
  font-style: normal;
  font-weight: 700;
}

.msg-agent {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.65;
}

.msg-agent p + p,
.msg-agent p + ul {
  margin-top: 8px;
}

.msg-agent ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
}

.agent-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-name .avatar {
  width: 22px;
  height: 22px;
  font-size: 0.6rem;
}

.tokens {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
}

.tokens .row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  color: var(--text-2);
}

.tokens .row b {
  color: var(--text);
  text-align: right;
}

.tokens .bar {
  height: 8px;
}

.mcp-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mcp-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mcp-list .icon-tile {
  width: 40px;
  height: 40px;
}

.mcp-list .icon-tile svg {
  width: 19px;
  height: 19px;
}

.mcp-list strong {
  display: block;
  margin-bottom: 2px;
}

.mcp-list p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tool-chips .code {
  padding: 4px 9px;
  font-size: 0.78rem;
}

/* ---------- Board (feature to stories) ---------- */

.board {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #0b0f1c;
  font-size: 0.84rem;
}

.board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(88, 166, 255, 0.06);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.board-head svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.board-head .sep {
  color: var(--muted);
}

.board-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.work-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--wi, var(--violet));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.work-item .type {
  color: var(--wi, var(--violet));
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-item h5 {
  margin: 3px 0 4px;
  font-size: 0.92rem;
}

.work-item p {
  color: var(--text-2);
  font-size: 0.78rem;
}

.work-item .ui-pills {
  margin-top: 8px;
}

.wi-feature {
  --wi: #c084fc;
}

.wi-story {
  --wi: var(--blue);
}

.wi-task {
  --wi: #e3b341;
  margin-left: 22px;
  padding: 8px 12px;
}

.wi-task h5 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.ask {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 13px;
  border: 1px solid var(--violet-border);
  border-radius: 12px;
  background: rgba(124, 114, 255, 0.08);
}

.ask .q {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet);
  color: #0a0e1a;
  font-weight: 800;
}

.ask p {
  color: var(--text);
  font-size: 0.82rem;
}

.ask small {
  display: block;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.js .board .reveal-seq > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.35s + 0.2s);
}

.board.is-in .reveal-seq > * {
  opacity: 1;
  transform: none;
}

/* ---------- Pipeline check (GitHub-style PR checks) ---------- */

.checks {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.84rem;
}

.checks-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.checks-head .ring {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(210, 153, 34, 0.14);
  color: #f2cc60;
}

.checks-head .ring svg {
  width: 18px;
  height: 18px;
}

.checks-head b {
  display: block;
}

.checks-head span {
  color: var(--muted);
  font-size: 0.76rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

.check:last-child {
  border-bottom: 0;
}

.check svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.check .ok {
  color: var(--green);
}

.check .warn {
  color: #f2cc60;
}

.check .ko {
  color: var(--red);
}

.check b {
  color: var(--text);
}

.check .details {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.bento > .card {
  padding: clamp(22px, 2.6vw, 32px);
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.bento h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
}

.bento p {
  color: var(--text-2);
}

.bento .visual {
  margin-top: 22px;
}

/* ---------- Roles ---------- */

.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.role {
  padding: 26px;
}

.role .num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6f64fb, #5247df);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px -10px rgba(124, 114, 255, 0.9);
}

.role h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.role p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.role .gain {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ---------- Delivery compare ---------- */

.delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.deliv {
  padding: clamp(24px, 3vw, 36px);
}

.deliv .label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.deliv.with .label {
  border-color: transparent;
  background: linear-gradient(180deg, #6f64fb, #5247df);
  color: #fff;
}

.deliv.with {
  border-color: var(--violet-border);
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.12), rgba(124, 114, 255, 0.02));
}

.deliv .big {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.deliv .big b {
  font-weight: 800;
}

.deliv .row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.deliv .row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.deliv .row small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.dev-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dev-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.deliv.with .dev-dots i {
  background: linear-gradient(135deg, #7c72ff, #58a6ff);
}

.feat-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.feat-dots i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.deliv.with .feat-dots i {
  background: rgba(124, 114, 255, 0.8);
}

.js .feat-dots i,
.js .dev-dots i {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.04s + 0.3s);
}

.is-in .feat-dots i,
.is-in .dev-dots i {
  opacity: 1;
  transform: none;
}

.deliv-mid {
  display: grid;
  gap: 18px;
  justify-items: stretch;
  text-align: center;
}

.deliv-mid .arrow-big {
  justify-self: center;
}

.deliv-metric {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--violet-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.12), rgba(124, 114, 255, 0.03));
}

.deliv-metric strong {
  display: block;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.deliv-metric .lbl {
  max-width: 120px;
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.deliv-mid .arrow-big {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6f64fb, #5247df);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(124, 114, 255, 0.12), 0 10px 36px -8px rgba(124, 114, 255, 0.9);
}

.deliv-mid .arrow-big svg {
  width: 20px;
  height: 20px;
}

/* ---------- ROI calculator ---------- */

.roi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.roi-inputs {
  display: grid;
  gap: 26px;
  padding: clamp(24px, 3.5vw, 44px);
}

.roi-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.roi-field output {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
}

.roi-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #7c72ff, #58a6ff) 0 / var(--fill, 50%) 100% no-repeat, rgba(255, 255, 255, 0.1);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #7c72ff, #58a6ff) 0 / var(--fill, 50%) 100% no-repeat, rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(124, 114, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4);
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(124, 114, 255, 0.25);
}

.roi-result {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 3.5vw, 44px);
  border-left: 1px solid var(--border);
  background: radial-gradient(90% 80% at 80% 10%, rgba(124, 114, 255, 0.28), transparent 60%), radial-gradient(70% 60% at 10% 100%, rgba(88, 166, 255, 0.16), transparent 60%);
}

.roi-result .value {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.roi-result .sub {
  color: var(--text-2);
}

.roi-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.roi-split div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 14, 26, 0.5);
}

.roi-split strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
}

.roi-split span {
  color: var(--muted);
  font-size: 0.8rem;
}

.roi-group {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.roi-group + .roi-group {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.roi-group legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: left;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
  color: var(--kicker);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roi-group legend + * {
  clear: both;
}

.roi-dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.roi-dot.a {
  background: #8b83ff;
  box-shadow: 0 0 10px rgba(139, 131, 255, 0.8);
}

.roi-dot.b {
  background: #3fb9a0;
  box-shadow: 0 0 10px rgba(63, 185, 160, 0.8);
}

.roi-bar {
  display: flex;
  gap: 3px;
  height: 12px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.roi-bar i {
  flex: 0 0 var(--w);
  min-width: 3px;
  transition: flex-basis 0.45s var(--ease);
}

.roi-bar .a {
  background: linear-gradient(90deg, #7c72ff, #8b83ff);
}

.roi-bar .b {
  background: linear-gradient(90deg, #58a6ff, #3fb9a0);
}

.roi-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roi-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 14, 26, 0.5);
  font-weight: 700;
}

.roi-legend small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.roi-legend b {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Compare table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare thead th {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 800;
  vertical-align: bottom;
}

.compare tbody th {
  color: var(--text);
  font-weight: 650;
}

.compare tr:last-child > * {
  border-bottom: 0;
}

.compare .fd {
  background: rgba(124, 114, 255, 0.1);
  box-shadow: inset 1px 0 0 var(--violet-border), inset -1px 0 0 var(--violet-border);
}

.compare thead .fd {
  color: #fff;
  font-size: 1rem;
}

.compare .fd .brand-word {
  font-size: 1.05rem;
}

.yes,
.no,
.part {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.yes {
  background: rgba(63, 185, 80, 0.14);
  color: #7ee2a0;
}

.fd .yes {
  background: rgba(124, 114, 255, 0.3);
  color: #fff;
}

.no {
  color: var(--muted);
}

.part {
  background: rgba(210, 153, 34, 0.14);
  color: #f2cc60;
}

.yes svg,
.no svg,
.part svg {
  width: 14px;
  height: 14px;
}

/* ---------- Deploy / control ---------- */

.deploy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deploy .card {
  padding: 28px;
}

.deploy h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.deploy p {
  color: var(--text-2);
}

.shield {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 56px;
  width: 120px;
  height: 120px;
}

.shield::before,
.shield::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--violet-border);
  border-radius: 50%;
  animation: ripple 3.6s var(--ease) infinite;
}

.shield::after {
  animation-delay: 1.8s;
}

.shield .core {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.45), rgba(124, 114, 255, 0.12));
  border: 1px solid var(--violet-border);
  color: #fff;
  box-shadow: 0 0 60px -6px rgba(124, 114, 255, 0.9);
}

.shield .core svg {
  width: 40px;
  height: 40px;
}

.quote-line {
  max-width: 820px;
  margin: 48px auto 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
}

.quote-line b {
  font-weight: 800;
}

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 34px);
}

.plan.featured {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.16), rgba(124, 114, 255, 0.03));
  box-shadow: 0 40px 100px -40px rgba(124, 114, 255, 0.7);
}

.plan .badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--violet);
  color: #0a0e1a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan .for {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

.plan .from {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.plan .btn {
  margin: 24px 0 26px;
}

.plan .check-list li {
  font-size: 0.93rem;
}

.plan .check-list .sub {
  padding-left: 44px;
  color: var(--muted);
  font-size: 0.86rem;
}

.plan .check-list .sub::before {
  display: none;
}

.plans-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.save-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  margin-top: 28px;
  padding: clamp(26px, 3.6vw, 46px) clamp(24px, 4.2vw, 56px);
  border-color: transparent;
  background: radial-gradient(560px 260px at 100% 50%, rgba(124, 114, 255, 0.24), transparent 70%), linear-gradient(180deg, rgba(124, 114, 255, 0.12), rgba(124, 114, 255, 0.02));
  box-shadow: 0 40px 100px -50px rgba(124, 114, 255, 0.75);
}

.save-cta h3 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  letter-spacing: -0.035em;
}

.save-cta p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.save-cta .btn {
  height: 64px;
  padding: 0 34px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.save-cta .btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-q {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: #fff;
}

.faq .plus {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.faq .plus::before,
.faq .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--text-2);
  transform: translate(-50%, -50%);
}

.faq .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] .plus {
  transform: rotate(45deg);
  background: var(--violet-soft);
}

.faq .a {
  padding: 0 48px 24px 0;
  color: var(--text-2);
  line-height: 1.75;
}

.faq .a p + p {
  margin-top: 10px;
}

/* ---------- Key facts ---------- */

.facts-dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.facts-dl div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts-dl div:nth-child(4n) {
  border-right: 0;
}

.facts-dl div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.facts-dl dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts-dl dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 0;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  z-index: -1;
  width: min(1100px, 120vw);
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 114, 255, 0.35), rgba(88, 166, 255, 0.12) 40%, transparent 70%);
}

.cta-mark {
  width: 110px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(88, 166, 255, 0.55));
  animation: float-y 6s ease-in-out infinite;
}

.cta .h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}

.cta .lead {
  max-width: 640px;
  margin: 20px auto 0;
}

.cta .hero-cta {
  justify-content: center;
}

.cta .mail {
  display: inline-block;
  margin-top: 26px;
  color: var(--text-2);
  font-weight: 600;
}

.cta .mail a {
  color: var(--accent);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}

.page-hero h1 {
  max-width: 980px;
  margin: 20px auto 22px;
}

.page-hero .lead {
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* ---------- Before / after ---------- */

.shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.shift .card {
  padding: clamp(24px, 3vw, 36px);
}

.shift h3 {
  margin: 14px 0 18px;
  font-size: 1.4rem;
}

.shift .card.after {
  border-color: rgba(248, 81, 73, 0.3);
  background: linear-gradient(180deg, rgba(248, 81, 73, 0.08), rgba(248, 81, 73, 0.01));
}

.x-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
}

.x-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(248, 81, 73, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9b95' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.pairs {
  display: grid;
  gap: 14px;
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.25fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.pair > div {
  padding: 22px 24px;
}

.pair .p {
  background: rgba(248, 81, 73, 0.05);
}

.pair .p small,
.pair .s small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pair .p small {
  color: #ff9b95;
}

.pair .s small {
  color: var(--kicker);
}

.pair .p strong {
  font-size: 1.06rem;
}

.pair .s p {
  color: var(--text-2);
}

.pair .s strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.pair .mid {
  display: grid;
  place-items: center;
  padding: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--accent);
}

.pair .mid svg {
  width: 20px;
  height: 20px;
}

.usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.usecase {
  padding: 26px;
}

.usecase h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
}

.usecase p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.usecase .check-list {
  margin-top: 14px;
  font-size: 0.9rem;
}

.diff-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.diff-points .card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.diff-points h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.diff-points p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ---------- Form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.form-side {
  display: grid;
  gap: 16px;
}

.form-side .card {
  padding: 26px;
}

.form-side h2 {
  margin: 12px 0 16px;
  font-size: 1.35rem;
}

.form-card {
  padding: clamp(24px, 3.4vw, 40px);
}

.form-card h2 {
  margin: 10px 0 10px;
  font-size: 1.7rem;
}

.form-card > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--text-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.field .req {
  color: var(--accent);
}

.field .hint {
  display: block;
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.field input,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
  height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(124, 114, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(124, 114, 255, 0.2);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(248, 81, 73, 0.14);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.form-foot .note-text {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-foot .note-text a {
  color: var(--text-2);
}

.form-status {
  min-height: 1.5em;
  margin-top: 16px;
  font-weight: 700;
}

.form-status.is-error {
  color: #ff9b95;
}

.form-status.is-success {
  color: #7ee2a0;
}

.form-status.is-pending {
  color: var(--text-2);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tl;
}

.timeline-list li {
  position: relative;
  padding-left: 40px;
  color: var(--text-2);
  counter-increment: tl;
}

.timeline-list li::before {
  content: counter(tl);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--violet-soft);
  border: 1px solid var(--violet-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------- Prose (legal) ---------- */

.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-2);
  line-height: 1.8;
}

.prose ul {
  margin: 10px 0 0;
  padding-left: 1.3rem;
}

.prose p + p,
.prose ul + p {
  margin-top: 12px;
}

.prose a {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

/* ---------- 404 ---------- */

.nf {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
}

.nf .code-big {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.93rem;
}

.footer-brand .tagline {
  color: var(--text);
  font-weight: 700;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  padding: 5px 0;
  color: var(--text-2);
  font-size: 0.93rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom a {
  color: var(--text-2);
}

.social {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}

.social:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.social svg {
  width: 16px;
  height: 16px;
}

/* ---------- Agent workflows ---------- */

.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 0;
  list-style: none;
}

.lifecycle::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 44px;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 114, 255, 0), rgba(124, 114, 255, 0.7), rgba(88, 166, 255, 0.7), rgba(63, 185, 80, 0.7), rgba(63, 185, 80, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.3s;
}

.lifecycle.is-in::before {
  transform: scaleX(1);
}

.lc-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
}

.lc-step .icon-tile {
  position: relative;
  z-index: 1;
}

.lc-num {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.lc-step h3 {
  margin-top: 6px;
  font-size: 1.05rem;
}

.lc-step p {
  flex: 1;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.lc-step .code {
  align-self: flex-start;
  font-size: 0.7rem;
  white-space: normal;
}

.lc-step:nth-child(3) .icon-tile {
  border-color: rgba(248, 81, 73, 0.4);
  background: linear-gradient(180deg, rgba(248, 81, 73, 0.28), rgba(248, 81, 73, 0.08));
  color: #ffc1bc;
  box-shadow: 0 8px 30px -10px rgba(248, 81, 73, 0.8);
}

.lc-step:nth-child(6) .icon-tile {
  border-color: rgba(63, 185, 80, 0.4);
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.3), rgba(63, 185, 80, 0.08));
  color: #aff5b4;
  box-shadow: 0 8px 30px -10px rgba(63, 185, 80, 0.8);
}

.runs {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.run-tabs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.run-tab {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.run-tab:hover {
  border-color: var(--border-strong);
}

.run-tab[aria-selected="true"] {
  border-color: var(--violet-border);
  background: linear-gradient(180deg, rgba(124, 114, 255, 0.14), rgba(124, 114, 255, 0.03));
}

.run-tab-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.run-tab-top svg {
  width: 18px;
  height: 18px;
  color: var(--kicker);
}

.run-tab small {
  font-size: 0.88rem;
  line-height: 1.5;
}

.run-tab .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c72ff, #58a6ff);
}

.run-tab.is-playing .bar {
  animation: tab-bar var(--dur, 9s) linear forwards;
}

.console {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #0b0f1c;
  box-shadow: 0 50px 130px -50px rgba(124, 114, 255, 0.55);
}

.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.console-progress {
  height: 2px;
  background: var(--line);
}

.console-progress i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: linear-gradient(90deg, #7c72ff, #58a6ff, #3fb950);
  transition: width 0.5s var(--ease);
}

.run-panel {
  display: none;
  padding: 18px 20px 22px;
}

.no-js .run-panel,
.run-panel.is-active {
  display: block;
}

.run-prompt {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.run-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.run-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
}

.js .run-panel .run-step {
  opacity: 0;
  transform: translateY(6px);
}

.js .run-panel .run-step.on {
  opacity: 1;
  transform: none;
}

.run-step.current {
  background: rgba(124, 114, 255, 0.08);
}

.run-step b {
  font-weight: 800;
}

.run-step .code {
  margin-left: 4px;
  font-size: 0.7rem;
  white-space: normal;
}

.run-step small {
  display: block;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.5;
}

.run-step small em {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

.rs-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.rs-icon svg {
  width: 14px;
  height: 14px;
}

.rs-icon.ok {
  background: rgba(63, 185, 80, 0.16);
  color: #7ee2a0;
}

.rs-icon.red {
  background: rgba(248, 81, 73, 0.16);
  color: #ff9b95;
}

.rs-icon.pr {
  background: #238636;
  color: #fff;
  box-shadow: 0 0 20px -2px rgba(63, 185, 80, 0.7);
}

.run-step.on .rs-icon {
  animation: pop 0.45s var(--ease) both;
}

.run-step:last-child {
  margin-top: 6px;
  border: 1px solid rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.07);
}

.guardrails {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 88px);
}

.guard-intro h3 {
  margin: 12px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
}

.guard-intro p {
  color: var(--text-2);
}

.guard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guard-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.guard-list svg {
  width: 20px;
  height: 20px;
  color: var(--kicker);
}

.guard-list b {
  display: block;
  margin-bottom: 3px;
}

.guard-list span {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .lifecycle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lifecycle::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .runs,
  .guardrails {
    grid-template-columns: minmax(0, 1fr);
  }

  .run-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .run-tab small {
    display: none;
  }
}

@media (max-width: 640px) {
  .lifecycle,
  .guard-list,
  .run-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .console {
    min-height: 0;
  }
}

/* ---------- Keyframes ---------- */

@keyframes pop {
  0% {
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, 30px) scale(1.06);
  }
  66% {
    transform: translate(-30px, 20px) scale(0.96);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(63, 185, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes tab-bar {
  to {
    width: 100%;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes seq-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes f-dash {
  to {
    stroke-dashoffset: -22;
  }
}

@keyframes f-packet {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  10% {
    opacity: 1;
    transform: translate(0, 0);
  }
  60% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy));
  }
  70%,
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }
}

@keyframes ls-apps {
  0% { opacity: 0; transform: scale(1); }
  3%, 27% { opacity: 1; transform: scale(1); }
  34% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes ls-areas {
  0%, 28% { opacity: 0; transform: scale(0.3); transform-origin: 240px 83px; }
  36%, 60% { opacity: 1; transform: scale(1); transform-origin: 240px 83px; }
  61% { opacity: 1; transform: scale(1); transform-origin: 124px 113px; }
  67% { opacity: 0; transform: scale(2.6); transform-origin: 124px 113px; }
  100% { opacity: 0; transform: scale(1); transform-origin: 240px 83px; }
}

@keyframes ls-flows {
  0%, 62% { opacity: 0; transform: scale(0.3); }
  70%, 97% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes f-card {
  0%, 36% { opacity: 0; }
  38%, 100% { opacity: 1; }
}

@keyframes f-row {
  0%, 70% { opacity: 0; }
  72%, 100% { opacity: 1; }
}

@keyframes ls-bar {
  0%, 33.2% { fill: var(--violet); }
  33.4%, 100% { fill: var(--border); }
}

@keyframes ls-label {
  0%, 33.2% { fill: var(--accent); }
  33.4%, 100% { fill: var(--text-2); }
}

@keyframes fl-overview {
  0% { opacity: 0; transform: scale(1); }
  2.85%, 16.15% { opacity: 1; transform: scale(1); }
  22.8% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes fl-backend {
  0%, 17.1% { opacity: 0; transform: scale(0.3); }
  24.7%, 41.8% { opacity: 1; transform: scale(1); }
  45.6%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes fl-sequence {
  0%, 45.6% { opacity: 0; }
  49.4%, 74.35% { opacity: 1; }
  78.15%, 100% { opacity: 0; }
}

@keyframes fl-rules {
  0%, 77.2% { opacity: 0; }
  80.05%, 97.15% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes f-seq-msg {
  0%, 50.35% { opacity: 0; }
  51.8%, 100% { opacity: 1; }
}

@keyframes f-seq-dot {
  0%, 50.35% { opacity: 0; transform: translateX(0); }
  51.3% { opacity: 1; transform: translateX(0); }
  54.15% { opacity: 1; transform: translateX(var(--dx)); }
  55.1%, 100% { opacity: 0; transform: translateX(var(--dx)); }
}

@keyframes f-seq-label {
  0%, 50.35% { fill: var(--text-2); }
  51.3%, 55.1% { fill: var(--accent); }
  57%, 100% { fill: var(--text-2); }
}

@keyframes f-rule {
  0%, 79.1% { opacity: 0; }
  81%, 100% { opacity: 1; }
}

@keyframes fl-bar {
  0%, 24.9% { fill: var(--violet); }
  25%, 100% { fill: var(--border); }
}

@keyframes fl-label {
  0%, 24.9% { fill: var(--accent); }
  25%, 100% { fill: var(--text-2); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .problems {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sec-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-dl div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .facts-dl div:nth-child(2n) {
    border-right: 0;
  }

  .facts-dl div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .facts-dl div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 14, 26, 0.97);
  }

  .main-nav a {
    padding: 12px;
    font-size: 1rem;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .split,
  .how,
  .roi,
  .form-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-intro {
    position: static;
  }

  .roi-result {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .flow-cols,
  .impact-cols,
  .sec-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans,
  .deploy,
  .usecases,
  .sec-features,
  .save-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .save-cta .btn {
    justify-self: start;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento > .card {
    grid-column: auto;
  }

  .delivery {
    grid-template-columns: minmax(0, 1fr);
  }

  .deliv-mid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .deliv-metric {
    min-width: 0;
    width: 100%;
    align-content: center;
  }

  .deliv-mid .arrow-big {
    align-self: center;
    transform: rotate(90deg);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .shift,
  .diff-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-side {
    display: none;
  }

  .app-main {
    padding: 18px 16px 20px;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-actions .btn-demo {
    display: none;
  }

  .problems,
  .roles,
  .focus-grid,
  .metric-strip,
  .sec-cards,
  .facts,
  .conds,
  .dup,
  .reach,
  .form-grid,
  .roi-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .save-cta .btn {
    justify-self: stretch;
  }

  .facts-dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-dl div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .facts-dl div:last-child {
    border-bottom: 0 !important;
  }

  .pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair .mid {
    padding: 8px;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .pair .mid svg {
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tokens .row {
    grid-template-columns: 100px minmax(0, 1fr) 52px;
  }

  .tour-tab {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .app-url {
    display: none;
  }

  .cve {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cve-tags {
    justify-content: flex-start;
  }

  .brule {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brule span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .faq .a {
    padding-right: 0;
  }
}

/* Below this width the header login moves into the menu so brand, language and toggle keep fitting. */
@media (max-width: 480px) {
  .header-actions .btn-login {
    display: none;
  }

  .main-nav .nav-login {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .ls-scene,
  .fl-scene,
  .f-card,
  .f-row,
  .f-seq-msg,
  .f-rule {
    animation: none !important;
  }

  .ls-apps,
  .fl-backend {
    opacity: 1;
  }

  .js .reveal,
  .js .ide [data-step],
  .js .run-panel .run-step,
  .js .reach-item,
  .js .board .reveal-seq > *,
  .js .feat-dots i,
  .js .dev-dots i {
    opacity: 1;
    transform: none;
  }
}
