:root {
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --navy: #0b1b3d;
  --ink: #132047;
  --muted: #5b6b8c;
  --line: #e5eaf3;
  --soft: #f4f7fc;
  --green: #16a34a;
  --white: #fff;
  --font: "Plus Jakarta Sans", "Be Vietnam Pro", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: #e8eef8;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.journey {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(147, 197, 253, 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(186, 230, 253, 0.2), transparent 45%),
    linear-gradient(165deg, #e8eef8 0%, #eef3f9 40%, #e7edf6 100%);
  color: #132047;
  overflow: hidden;
}

.bg-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.j-top,
.j-progress-wrap,
.j-main {
  position: relative;
  z-index: 1;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.bg-orb.a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
}

.bg-orb.b {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 30%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.bg-orb.c {
  width: 460px;
  height: 460px;
  left: 25%;
  bottom: -180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
  animation-delay: -11s;
  animation-duration: 26s;
}

@keyframes orbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb {
    animation: none;
  }
  .bg-fx {
    display: none;
  }
}

.j-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5eaf3;
}

.j-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0b1b3d;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.j-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.j-brand .brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.j-brand .brand-text b { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.035em; color: #0f172a; white-space: nowrap; }
.j-brand .brand-text em { font-style: normal; margin-left: 4px; background: linear-gradient(95deg, #2563eb 10%, #7c3aed 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.j-brand .brand-text small { font-size: 0.58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; }

.j-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.08em;
}

.j-progress-wrap {
  padding: 16px 24px 0;
}

.j-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #5b6b8c;
}

.j-progress-meta strong {
  color: #1d4ed8;
  font-weight: 700;
}

.j-track {
  height: 4px;
  background: #e8eef8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.j-track > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: 999px;
  transition: width 0.45s ease;
}

.j-dots {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
}

.j-dots span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  position: relative;
  padding-top: 14px;
}

.j-dots span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.j-dots span.done {
  color: #2563eb;
}
.j-dots span.done::before {
  background: #3b82f6;
}
.j-dots span.current {
  color: #0b1b3d;
}
.j-dots span.current::before {
  background: rgba(236, 242, 249, 0.92);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.j-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 48px;
}

.panel {
  width: min(880px, 100%);
  animation: rise 0.45s ease;
}

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

.panel.center {
  text-align: center;
}

.spark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.kicker {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0b1b3d;
}

.lede {
  margin: 0 auto 28px;
  max-width: 540px;
  color: #5b6b8c;
  font-size: 1.05rem;
  line-height: 1.6;
}

.lede strong {
  color: #0b1b3d;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(236, 242, 249, 0.92);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.panel:not(.center) .btn-row {
  justify-content: flex-start;
}

/* Discover flow */
.flow-board {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
  text-align: left;
}

.flow-visual {
  background: rgba(236, 242, 249, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 20px;
  padding: 22px;
}

.flow-node {
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e3a8a;
}

.flow-arrow {
  text-align: center;
  color: #64748b;
  padding: 6px 0;
  font-size: 0.85rem;
}

.flow-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.flow-split .mini {
  background: rgba(236, 242, 249, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.75rem;
  color: #475569;
}

.flow-split .mini b {
  display: block;
  color: #0b1b3d;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pillar {
  background: rgba(236, 242, 249, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  padding: 16px;
}

.pillar h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0b1b3d;
}

.pillar p {
  margin: 0;
  font-size: 0.85rem;
  color: #5b6b8c;
  line-height: 1.45;
}

/* Forms / cards */
.q-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 10px;
}

.q-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: #0b1b3d;
  letter-spacing: -0.02em;
}

.q-help {
  margin: 0 0 18px;
  color: #5b6b8c;
  font-size: 0.98rem;
}

.field {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid #d5deee;
  background: rgba(236, 242, 249, 0.92);
  color: #132047;
  padding: 16px 18px;
  outline: none;
  line-height: 1.55;
}

.field:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field::placeholder {
  color: #64748b;
}

.ai-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.92rem;
  display: none;
}

.ai-note.show {
  display: block;
}

.extract-tree {
  margin-top: 16px;
  background: rgba(236, 242, 249, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
  display: none;
}

.extract-tree.show {
  display: block;
}

.extract-tree b {
  color: #2563eb;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pick-card {
  text-align: left;
  border-radius: 16px;
  padding: 16px;
  background: rgba(236, 242, 249, 0.92);
  border: 1.5px solid #e5eaf3;
  color: #132047;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.pick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.4);
}

.pick-card.on {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.pick-card .ico {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pick-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.pick-card span {
  font-size: 0.8rem;
  color: #5b6b8c;
}

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

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid #e5eaf3;
  background: rgba(236, 242, 249, 0.92);
  color: #132047;
  font-weight: 600;
  font-size: 0.88rem;
}

.chip.on {
  background: #dbeafe;
  border-color: #60a5fa;
}

.attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.attach {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed #94a3b8;
  color: #5b6b8c;
  font-size: 0.88rem;
  font-weight: 600;
}

.attach:hover {
  color: #132047;
  border-color: #2563eb;
}

/* Building */
.build-list {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 420px;
  text-align: left;
}

.build-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #eef2f7;
}

.build-list li.ok {
  color: #15803d;
}

.build-list li .mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex: 0 0 auto;
}

.build-list li.ok .mark {
  border-color: #22c55e;
  background: #dcfce7;
  color: #16a34a;
}

.build-bar {
  height: 10px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto 12px;
}

.build-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #34d399, #2563eb);
  transition: width 0.35s ease;
}

/* Brain */
.brain-card {
  background: rgba(236, 242, 249, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 20px;
  padding: 22px;
  text-align: left;
}

.brain-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5eaf3;
}

.brain-row:last-child {
  border-bottom: 0;
}

.brain-row label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding-top: 2px;
}

.brain-row div {
  color: #132047;
  font-weight: 600;
  line-height: 1.45;
}

/* Test lab */
.lab {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 16px;
  text-align: left;
}

.lab-pane {
  background: rgba(236, 242, 249, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.lab-h {
  padding: 12px 14px;
  border-bottom: 1px solid #e5eaf3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.lab-chat {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble.user {
  align-self: flex-start;
  background: #e8eef8;
  color: #132047;
}

.bubble.bot {
  align-self: flex-end;
  background: #2563eb;
  color: #0b1b3d;
}

.lab-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lab-input input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #0b1b3d;
  padding: 10px 14px;
  outline: none;
}

.lab-input button {
  border-radius: 999px;
  padding: 10px 16px;
  background: #2563eb;
  color: #0b1b3d;
  font-weight: 700;
}

.insight-list {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.insight {
  background: rgba(236, 242, 249, 0.92);
  border-radius: 12px;
  padding: 12px;
}

.insight label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.insight strong {
  color: #132047;
  font-size: 0.95rem;
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.suggest button {
  font-size: 0.78rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #e5eaf3;
  color: #475569;
}

/* Connect */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 16px;
  background: rgba(236, 242, 249, 0.92);
  border: 1.5px solid #e5eaf3;
  color: #132047;
  font-weight: 700;
}

.channel.on {
  border-color: #60a5fa;
  background: #eff6ff;
}

.channel .status {
  font-size: 0.78rem;
  color: #5b6b8c;
  font-weight: 600;
}

.channel.on .status {
  color: #16a34a;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .flow-board,
  .lab,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid,
  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brain-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .j-dots {
    display: none;
  }
}

@media (max-width: 520px) {
  .pillar-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-note a { color: #2563eb; font-weight: 700; }
.j-brand { color: #0b1b3d; }
.panel.center h1 { color: #0b1b3d; }
.btn-ghost { color: #334155; }
.field::placeholder { color: #94a3b8; }
.brain-card, .flow-visual, .pillar, .extract-tree, .ai-note { box-shadow: 0 8px 24px rgba(15,40,90,0.05); }
.channel { box-shadow: 0 4px 14px rgba(15,40,90,0.04); }

/* ========== Surfaces: tinted glass, không trắng tinh ========== */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 70%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.bg-beam {
  position: absolute;
  top: -10%;
  left: 40%;
  width: 28%;
  height: 120%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(-16deg);
  filter: blur(24px);
  opacity: 0.5;
  animation: beamSweep 16s ease-in-out infinite alternate;
}

.bg-orb {
  opacity: 0.45;
}

.bg-orb.d {
  width: 300px;
  height: 300px;
  right: 12%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.45), transparent 70%);
  animation-delay: -3s;
  animation-duration: 18s;
}

.bg-float {
  display: none;
}

@keyframes beamSweep {
  from { opacity: 0.25; transform: rotate(-16deg) translateX(-12px); }
  to { opacity: 0.55; transform: rotate(-12deg) translateX(18px); }
}

.journey {
  z-index: 1;
}

.glass-bar {
  background: rgba(232, 238, 248, 0.72);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.progress-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px 16px;
  border-radius: 16px;
}

.glass-card {
  background: rgba(241, 245, 251, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 28px rgba(15, 40, 90, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.surface-panel {
  position: relative;
  padding: 28px 28px 30px;
  border-radius: 24px;
  background: linear-gradient(
    165deg,
    rgba(246, 249, 252, 0.88) 0%,
    rgba(236, 242, 249, 0.82) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 40px rgba(15, 40, 90, 0.07);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.surface-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 42%);
  pointer-events: none;
}

.panel.is-enter {
  animation: panelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.is-enter .spark,
.panel.is-enter .kicker,
.panel.is-enter h1,
.panel.is-enter .q-title,
.panel.is-enter .lede,
.panel.is-enter .q-help,
.panel.is-enter .flow-board,
.panel.is-enter .field,
.panel.is-enter .card-grid,
.panel.is-enter .chip-row,
.panel.is-enter .btn-row,
.panel.is-enter .channel-grid,
.panel.is-enter .brain-card,
.panel.is-enter .build-list {
  animation: riseFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel.is-enter .kicker { animation-delay: 0.04s; }
.panel.is-enter .spark { animation-delay: 0.02s; }
.panel.is-enter h1,
.panel.is-enter .q-title { animation-delay: 0.08s; }
.panel.is-enter .lede,
.panel.is-enter .q-help { animation-delay: 0.12s; }
.panel.is-enter .flow-board,
.panel.is-enter .field,
.panel.is-enter .card-grid,
.panel.is-enter .chip-row,
.panel.is-enter .build-list,
.panel.is-enter .brain-card,
.panel.is-enter .channel-grid { animation-delay: 0.18s; }
.panel.is-enter .btn-row { animation-delay: 0.24s; }

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

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

.spark {
  background: linear-gradient(145deg, #e0ecff, #d6e6ff);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  animation: sparkPulse 3.5s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Nested surfaces — cùng hệ màu, không box trắng */
.flow-visual,
.pillar,
.pick-card,
.channel,
.brain-card,
.extract-tree,
.ai-note,
.chip,
.field,
.btn-ghost {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

.flow-visual {
  background: rgba(225, 234, 246, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.flow-node {
  background: rgba(219, 234, 254, 0.95);
  border: 1px solid rgba(147, 197, 253, 0.55);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  color: #1e3a8a;
}

.flow-split .mini {
  background: rgba(241, 245, 251, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #334155;
}

.pillar {
  background: rgba(232, 239, 248, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.pillar:hover,
.pick-card:hover,
.channel:hover {
  transform: translateY(-3px);
  background: rgba(226, 236, 250, 0.95);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.pick-card {
  background: rgba(232, 239, 248, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
  color: #132047;
}

.pick-card span {
  color: #64748b;
}

.pick-card.on {
  background: rgba(219, 234, 254, 0.95);
  border-color: #60a5fa;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.field {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 2px rgba(15, 40, 90, 0.04);
  color: #132047;
}

.chip {
  background: rgba(232, 239, 248, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  box-shadow: none;
  color: #334155;
}

.chip.on {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(232, 239, 248, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  color: #334155;
  box-shadow: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: btnSheen 4s ease-in-out infinite;
}

@keyframes btnSheen {
  0%, 65% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.brain-card {
  background: rgba(225, 234, 246, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brain-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.channel {
  background: rgba(232, 239, 248, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.channel.on {
  background: rgba(219, 234, 254, 0.95);
  border-color: #60a5fa;
}

.extract-tree,
.ai-note {
  background: rgba(219, 234, 254, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.45);
  box-shadow: none;
}

.build-list li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.j-track {
  background: rgba(148, 163, 184, 0.25);
}

.attach {
  background: rgba(232, 239, 248, 0.7);
  border: 1px dashed rgba(100, 116, 139, 0.45);
}

.j-brand img {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .bg-beam,
  .spark,
  .btn-primary::after,
  .panel.is-enter,
  .panel.is-enter * {
    animation: none !important;
  }
}
