﻿/* =================================================================
   BUTTONS
================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.2em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; }

.btn--lg { padding: 0.95em 1.6em; font-size: 15px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--grad);
  color: #001018;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 15px 35px -8px rgba(124, 58, 237, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  color: var(--accent);
}

/* =================================================================
   NAV
================================================================= */
.nav {
  position: fixed;
  top: clamp(0.5rem, 1.5vw, 1rem);
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  transition: top var(--dur) var(--ease-out);
}

.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 10px 14px 10px 20px;
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.5);
}

.nav[data-scrolled="true"] .nav__inner {
  background: rgba(8, 11, 22, 0.85);
  border-color: var(--border-hi);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.25), transparent 70%);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}
.brand__mark svg { width: 26px; height: 26px; animation: spinSlow 40s linear infinite; }
.brand__mark img { width: 26px; height: 26px; object-fit: contain; }

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
}

.nav__menu {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav__menu a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.nav__menu a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__cta {
  display: flex;
  gap: 8px;
}

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__cta .btn--ghost { display: none; }
}

@media (max-width: 640px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn--primary { display: none; }
}

/* =================================================================
   HERO
================================================================= */
.hero {
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  max-width: max-content;
  margin: 0 auto 2.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.chrome__dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.chrome__dot--r { background: #ff5f56; }
.chrome__dot--y { background: #ffbd2e; }
.chrome__dot--g { background: #27c93f; }
.chrome__path { margin-left: 10px; color: var(--text-dim); }
.chrome__status {
  margin-left: 18px;
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chrome__status em {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 6px var(--accent-3);
  animation: pulse 1.8s infinite;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__copy { max-width: 640px; }

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 1.2rem 0 1.5rem;
}

.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2rem 0;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 3rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero__meta li {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.hero__meta li:last-child { border-right: 0; }

.hero__meta strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__meta span {
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ---- Hero Visual: Orb ------------------------------------------------------ */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  container-type: inline-size;
}

.orb {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  /* orbit radius as a real length (not % of node box) */
  --orbit-r: clamp(130px, 40cqi, 240px);
}

.orb__core {
  position: absolute;
  inset: 31%;
  z-index: 3;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 212, 255, 0.26), transparent 64%),
    rgba(5, 7, 13, 0.34);
  border: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow:
    0 0 34px rgba(0, 212, 255, 0.32),
    0 0 80px rgba(124, 58, 237, 0.18),
    inset 0 0 24px rgba(0, 212, 255, 0.12);
  filter: drop-shadow(0 0 22px rgba(0, 212, 255, 0.45));
  animation: pulseCore 4s ease-in-out infinite;
}
.orb__core svg { width: 100%; height: 100%; }
.orb__core img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.52));
}

@keyframes pulseCore {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(124, 58, 237, 0.6)); }
}

.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  pointer-events: none;
}
.orb__ring--1 { inset: 22%; border-color: rgba(0, 212, 255, 0.3); animation: ringSpin 40s linear infinite; }
.orb__ring--2 { inset: 10%; border-color: rgba(124, 58, 237, 0.22); animation: ringSpin 60s linear infinite reverse; }
.orb__ring--3 { inset: 0;   border-color: rgba(255, 255, 255, 0.08); animation: ringSpin 90s linear infinite; }

.orb__ring--1::before,
.orb__ring--2::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: translateX(-50%);
}
.orb__ring--2::before { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orb__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ringSpin 80s linear infinite;
}

/* Orbit wrapper: zero-size pivot at center.
   --a is the node's starting angle on the ring.
   Parent spins from --a to --a+360; child counter-rotates to keep text upright. */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a, 0deg));
  animation: orbitSpin 60s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(var(--a, 0deg)); }
  to   { transform: rotate(calc(var(--a, 0deg) + 360deg)); }
}

.orb__node {
  position: absolute;
  top: 0;
  left: 0;
  /* place along parent's rotated x-axis, then counter-rotate by -a so text is upright */
  transform: translate(-50%, -50%) translateX(var(--orbit-r)) rotate(calc(var(--a, 0deg) * -1));
  animation: orbitCounter 60s linear infinite;
  padding: 10px 16px;
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  will-change: transform;
}

@keyframes orbitCounter {
  from { transform: translate(-50%, -50%) translateX(var(--orbit-r)) rotate(calc(var(--a, 0deg) * -1)); }
  to   { transform: translate(-50%, -50%) translateX(var(--orbit-r)) rotate(calc((var(--a, 0deg) + 360deg) * -1)); }
}

.orb__node::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: var(--grad);
  opacity: 0.4;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.orb__node span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 960px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; order: -1; margin-bottom: 1.5rem; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .hero__meta li { border-bottom: 1px solid var(--border); }
  .hero__meta li:nth-child(2) { border-right: 0; }
}

/* ---- Ribbon --------------------------------------------------------------- */
.ribbon {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.ribbon__label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}
.ribbon__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.ribbon__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.ribbon__row span {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-dim);
  white-space: nowrap;
}
.ribbon__row i {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =================================================================
   BENTO — AGENTS
================================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.agent {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
  isolation: isolate;
}

.agent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

.agent:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}
.agent:hover::before { opacity: 1; }

.agent--lg { grid-column: span 3; }
.agent--accent {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), rgba(0, 212, 255, 0.06));
  border-color: rgba(124, 58, 237, 0.3);
}
.agent--accent::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 70%);
  opacity: 1;
}

.agent__index {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}

.agent__glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--border);
}
.agent__glyph svg { width: 30px; height: 30px; }
.agent--accent .agent__glyph { color: var(--accent-2); }

.agent__name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.agent__desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

.agent__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agent__features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.agent__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.agent__actions {
  margin-top: 18px;
}

/* Chat preview in AI 客服 card */
.agent__preview {
  margin-top: 22px;
  padding: 14px;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat__bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  max-width: 88%;
  line-height: 1.5;
}
.chat__bubble--in {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text-dim);
}
.chat__bubble--out {
  background: var(--grad);
  color: #001018;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.chat__avatar {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0, 16, 24, 0.25);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}
.chat__typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat__typing em {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: typing 1.4s infinite;
}
.chat__typing em:nth-child(2) { animation-delay: 0.2s; }
.chat__typing em:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Article preview for AI 记者 */
.agent__preview--article {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.05));
}
.article__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.article h4 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 10px;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.article__meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-mute);
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .agent, .agent--lg { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

/* =================================================================
   CHANNELS
================================================================= */
.channels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 1rem;
}

.channels__hub {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.channels__core {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px 22px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  box-shadow: 0 16px 40px -12px rgba(0, 212, 255, 0.3);
}
.channels__core svg { width: 40px; height: 40px; }

.channel {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: all var(--dur) var(--ease-out);
  z-index: 1;
}
.channel:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

.channel__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.channel__icon svg { width: 20px; height: 20px; }

.channel h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.channel p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0;
}

.channel--wide {
  grid-column: span 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
}
.channel--wide h4 { margin: 0 0 2px; }
.channel--wide p { margin: 0; }

.code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-3);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0;
  white-space: pre;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
  .channel--wide { grid-column: span 2; grid-template-columns: auto 1fr; }
  .channel--wide .code { grid-column: 1 / -1; }
  .channels__hub { display: none; }
}

/* =================================================================
   TIERS (4-level Permissions)
================================================================= */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tier {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.tier:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
}

.tier::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease-out);
}
.tier:hover::after { opacity: 1; }

.tier > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tier__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
  border-radius: 999px;
}
.tier__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.tier h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.tier p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0 0 16px;
  min-height: 3em;
}
.tier ul {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.tier ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
}

.tier--01 { border-color: rgba(0, 212, 255, 0.25); }
.tier--02 { border-color: rgba(124, 58, 237, 0.22); }
.tier--03 { border-color: rgba(34, 211, 238, 0.2); }
.tier--04 { border-color: rgba(255, 255, 255, 0.1); }

@media (max-width: 960px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .tiers { grid-template-columns: 1fr; }
  .tier p { min-height: 0; }
}

/* =================================================================
   FLOW
================================================================= */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  counter-reset: step;
}

.flow__step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.flow__step:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}

.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -9px;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  z-index: 2;
}

.flow__idx {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  margin-bottom: 14px;
}
.flow__step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.flow__step p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
}
@media (max-width: 500px) {
  .flow { grid-template-columns: 1fr; }
}

/* =================================================================
   PLANS
================================================================= */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.plan:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
}

.plan > header {
  margin-bottom: 18px;
}
.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.plan > header p {
  color: var(--text-mute);
  font-size: 0.88rem;
  margin: 0;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 1rem 0 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border);
}
.plan__curr { color: var(--text-dim); font-family: var(--font-display); font-size: 1.1rem; }
.plan__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan__unit {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin-left: 4px;
}
.plan__price--text span {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__features li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
  transform-origin: left center;
}

.plan--featured {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(0, 212, 255, 0.08));
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-8px);
}
.plan--featured:hover {
  transform: translateY(-11px);
}
.plan--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad);
  opacity: 0.4;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.plan__ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: var(--grad);
  color: #001018;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  box-shadow: 0 4px 14px -3px rgba(0, 212, 255, 0.4);
}

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-3px); }
}

/* =================================================================
   CTA
================================================================= */
.cta { padding-bottom: var(--section-y); }

.cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(160deg, rgba(10, 14, 26, 0.8), rgba(15, 20, 36, 0.8));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.cta__panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--grad);
  opacity: 0.45;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.cta__halo {
  position: absolute;
  top: -40%; right: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.cta__body { position: relative; z-index: 1; }

.cta__body h2 {
  font-size: 4rem;
  line-height: 1.02;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.cta__body p {
  color: var(--text-dim);
  max-width: 42ch;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
}

.cta__form { position: relative; z-index: 1; }

.cta__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cta__fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cta__fields label > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.cta__fields input,
.cta__fields select {
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.cta__fields input:focus,
.cta__fields select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
}

.cta__fields input::placeholder { color: var(--text-mute); }

.cta__fields select option {
  color: #0b1020;
  background: #f6f9fc;
}

.cta__fields select option:checked {
  color: #fff;
  background: #2f3b52;
}

.cta__fields .btn { grid-column: span 2; margin-top: 6px; }

.cta__note {
  grid-column: span 2;
  font-size: 11px;
  color: var(--text-mute);
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.cta__done {
  text-align: center;
  padding: 2rem 1rem;
}
.cta__check {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #001018;
  box-shadow: 0 10px 30px -8px rgba(0, 212, 255, 0.4);
}
.cta__check svg { width: 30px; height: 30px; }
.cta__done h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cta__done p { color: var(--text-dim); margin: 0; }

@media (max-width: 860px) {
  .cta__panel { grid-template-columns: 1fr; }
  .cta__body h2 { font-size: 3rem; }
  .cta__fields { grid-template-columns: 1fr; }
  .cta__fields .btn,
  .cta__note { grid-column: span 1; }
}

@media (max-width: 520px) {
  .cta__body h2 { font-size: 2.45rem; }
  .cta__body p { font-size: 0.88rem; }
}

/* =================================================================
   RAG ASSISTANT
================================================================= */
.rag-assistant {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  top: auto;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: none;
  z-index: 80;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.rag-assistant__launcher,
.rag-assistant__panel {
  pointer-events: auto;
}

.rag-assistant__launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 190px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  isolation: isolate;
}

.rag-assistant__launcher:hover {
  background: transparent;
}

.rag-assistant__launcher::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 3px;
  width: 142px;
  height: 29px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.36), rgba(124, 58, 237, 0.12) 48%, transparent 72%);
  filter: blur(5px);
  transform: translateX(-50%);
  animation: robotShadow 2.8s ease-in-out infinite;
}

.rag-assistant__launcher-bubble {
  position: absolute;
  z-index: 2;
  right: 120px;
  top: 18px;
  display: grid;
  gap: 3px;
  width: max-content;
  min-width: 118px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 212, 255, 0.38);
  border-radius: 16px 16px 3px 16px;
  color: rgba(233, 249, 255, 0.94);
  background: linear-gradient(135deg, rgba(7, 18, 34, 0.96), rgba(14, 12, 38, 0.94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(14px);
  font-family: var(--font-display);
  text-align: left;
  animation: robotBubble 2.8s ease-in-out infinite;
  pointer-events: none;
}

.rag-assistant__launcher-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(0, 212, 255, 0.38);
  border-bottom: 1px solid rgba(0, 212, 255, 0.38);
  background: rgba(10, 15, 35, 0.96);
  transform: rotate(-45deg);
}

.rag-assistant__launcher-bubble strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.rag-assistant__launcher-bubble small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(199, 230, 239, 0.82);
  font-size: 10px;
  white-space: nowrap;
}

.rag-assistant__launcher-bubble i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36f59a;
  box-shadow: 0 0 10px rgba(54, 245, 154, 0.9);
}

.rag-assistant__launcher-icon {
  position: relative;
  display: block;
  width: 156px;
  height: 180px;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 16px 26px rgba(0, 212, 255, 0.42))
          drop-shadow(0 0 18px rgba(124, 58, 237, 0.2));
  animation: robotIdle 2.8s ease-in-out infinite;
  will-change: transform;
}

.rag-assistant__launcher-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rag-assistant__launcher:hover .rag-assistant__launcher-icon {
  animation: robotHello 780ms ease-in-out infinite alternate;
}

@keyframes robotIdle {
  0%, 100% { transform: translateY(3px) rotate(-1.2deg) scale(0.985); }
  48% { transform: translateY(-8px) rotate(1.2deg) scale(1.015); }
  72% { transform: translateY(-5px) rotate(0deg) scale(1.005); }
}

@keyframes robotHello {
  0% { transform: translateY(-6px) rotate(-2deg) scale(1.02); }
  100% { transform: translateY(-10px) rotate(2.5deg) scale(1.055); }
}

@keyframes robotShadow {
  0%, 100% { opacity: 0.56; transform: translateX(-50%) scaleX(0.9); }
  50% { opacity: 0.3; transform: translateX(-50%) scaleX(0.72); }
}

@keyframes robotBubble {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-4px); }
}

.rag-assistant__panel {
  position: absolute;
  right: 0;
  top: auto;
  bottom: 0;
  display: grid;
  grid-template-rows: 1fr;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.98), rgba(5, 7, 13, 0.98));
  box-shadow: 0 28px 80px -34px rgba(0, 212, 255, 0.75),
              0 18px 60px -30px rgba(124, 58, 237, 0.8);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility var(--dur) var(--ease-out);
}

.rag-assistant[data-open="true"] .rag-assistant__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.rag-assistant[data-open="true"] .rag-assistant__launcher {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
}

.rag-assistant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
}

.rag-assistant__head h2 {
  margin-top: 4px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.rag-assistant__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.rag-assistant__status em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12);
}

.rag-assistant__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.rag-assistant__close:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}

.rag-assistant__close svg {
  width: 18px;
  height: 18px;
}

.rag-assistant__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.35) transparent;
}

.rag-msg {
  display: flex;
  gap: 9px;
  max-width: 92%;
  align-items: flex-start;
}

.rag-msg--user {
  align-self: flex-end;
  justify-content: flex-end;
}

.rag-msg__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #001018;
  background: var(--grad);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.rag-msg--user .rag-msg__avatar {
  order: 2;
  color: var(--text);
  background: var(--surface-hi);
  border: 1px solid var(--border);
}

.rag-msg p {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.rag-msg--user p {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 5px;
  color: #001018;
  background: var(--grad);
  border-color: transparent;
  font-weight: 600;
}

.rag-msg--loading p {
  min-width: 74px;
}

.rag-assistant__suggestions {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
.rag-assistant__suggestions::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

.rag-assistant__suggestions button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--surface);
  font-size: 12px;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.rag-assistant__suggestions button:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}

.rag-assistant__form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 13, 0.82);
}

.rag-assistant__form textarea {
  width: 100%;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}

.rag-assistant__form textarea:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.06);
}

.rag-assistant__form textarea::placeholder {
  color: var(--text-mute);
}

.rag-assistant__form button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #001018;
  background: var(--grad);
  box-shadow: 0 10px 26px -13px rgba(0, 212, 255, 0.8);
}

.rag-assistant__form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.rag-assistant__form button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 560px) {
  .rag-assistant {
    right: 12px;
    bottom: 12px;
    top: auto;
    left: 12px;
    transform: none;
  }

  .rag-assistant__launcher {
    justify-self: end;
    width: 144px;
    height: 168px;
  }

  .rag-assistant__launcher-icon {
    width: 138px;
    height: 160px;
  }

  .rag-assistant__launcher-bubble {
    right: 108px;
    top: 10px;
    min-width: 104px;
    padding: 8px 10px;
  }

  .rag-assistant__launcher-bubble strong {
    font-size: 14px;
  }

  .rag-assistant__launcher-bubble small {
    font-size: 10px;
  }

  .rag-assistant__panel {
    top: auto;
    right: 0;
    left: 0;
    width: 100%;
    height: min(620px, calc(100vh - 92px));
    bottom: 64px;
    transform: translateY(14px) scale(0.98);
  }

  .rag-assistant[data-open="true"] .rag-assistant__panel {
    transform: translateY(0) scale(1);
  }

  .rag-assistant__suggestions {
    padding-bottom: 12px;
  }
}

/* =================================================================
   RAG ASSISTANT — KB Picker
================================================================= */
.rag-assistant__picker,
.rag-assistant__chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.rag-assistant__picker[hidden],
.rag-assistant__chat[hidden] {
  display: none;
}

/* Chat messages — let them fill remaining space */
.rag-assistant__chat .rag-assistant__messages {
  flex: 1;
  min-height: 0;
}

/* KB list container */
.rag-assistant__kb-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
}

/* KB card */
.rag-kb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.rag-kb-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  background: var(--surface-hi);
  box-shadow: 0 12px 32px -14px rgba(0, 212, 255, 0.25);
}

.rag-kb-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rag-kb-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--border);
}

.rag-kb-card__icon svg {
  width: 26px;
  height: 26px;
}

.rag-kb-card:nth-child(2) .rag-kb-card__icon {
  color: var(--accent-3);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(0, 212, 255, 0.08));
}

.rag-kb-card:nth-child(3) .rag-kb-card__icon {
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(0, 212, 255, 0.1));
}

.rag-kb-card__body {
  flex: 1;
  min-width: 0;
}

.rag-kb-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.rag-kb-card__body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.rag-kb-card__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-mute);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.rag-kb-card:hover .rag-kb-card__arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* Back / switch KB button */
.rag-assistant__back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
  flex-shrink: 0;
}

.rag-assistant__back:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}

.rag-assistant__back svg {
  width: 16px;
  height: 16px;
}

/* =================================================================
   ABOUT · STATS
================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 1rem;
}
.stat {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease-out);
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.stat:hover::after { opacity: 1; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin: 6px 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.stat p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

.about__mission {
  max-width: 76ch;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.8;
  color: var(--text-dim);
}
.about__mission strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* =================================================================
   CAPABILITY STACK
================================================================= */
.stack {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 1rem;
}
.stack__layer {
  position: relative;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur);
  isolation: isolate;
}
.stack__layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  z-index: -1;
}
.stack__layer:hover { transform: translateY(-3px); border-color: var(--border-hi); background: var(--surface-hi); }
.stack__layer:hover::before { opacity: 1; }
.stack__layer--accent {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(0, 212, 255, 0.07));
  border-color: rgba(0, 212, 255, 0.32);
}
.stack__layer--accent::before { opacity: 1; }
.stack__idx {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.stack__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--border);
}
.stack__icon svg { width: 28px; height: 28px; }
.stack__layer--accent .stack__icon { color: var(--accent-2); }
.stack__layer h3 { font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.stack__layer p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; }
.stack__arrow {
  align-self: center;
  width: 26px;
  height: 12px;
  background: var(--accent);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h18M14 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h18M14 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 1024px) {
  .stack { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stack__arrow { display: none; }
}
@media (max-width: 540px) { .stack { grid-template-columns: 1fr; } }

/* =================================================================
   LADDER (To C growth path)
================================================================= */
.ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
}
.ladder__step {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.ladder__step:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.ladder__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -9px;
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.4;
  z-index: 2;
}
.ladder__step--accent {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(0, 212, 255, 0.07));
  border-color: rgba(0, 212, 255, 0.32);
}
.ladder__idx {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  margin-bottom: 14px;
}
.ladder__step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.ladder__step p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; margin: 0; }

@media (max-width: 960px) {
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder__step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) { .ladder { grid-template-columns: 1fr; } }

/* loop banner */
.loop-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.loop-banner__chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text);
}
.loop-banner__chip--accent {
  background: var(--grad);
  color: #001018;
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(0, 212, 255, 0.5);
}
.loop-banner__arrow { width: 22px; height: 11px; color: var(--accent); opacity: 0.7; }
.loop-banner__label {
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-dim);
}
@media (max-width: 560px) { .loop-banner__label { margin-left: 0; width: 100%; } }

