/* ============================================================
   GRACIAX HOME — "AI everywhere" layer  (v2)
   Loaded only on index.html, on top of revamp.css.
   Dark hero + dark AI showcase bands, light product bands.
   ============================================================ */

:root {
  --night: #07090f;
  --night-2: #0c1020;
  --night-3: #121a30;
  --night-line: rgba(255, 255, 255, 0.08);
  --night-line-2: rgba(255, 255, 255, 0.14);
  --night-text: #e6e9f2;
  --night-muted: #98a2b8;
  --glow-blue: #1e90ff;
  --glow-violet: #8b5cf6;
  --glow-jade: #10b981;
  --glow-amber: #f59e0b;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Dark nav variant (home only) ---------- */
body.home-ai { background: var(--night); }
body.home-ai .nav-wrap {
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--night-line);
}
body.home-ai .nav-wrap.is-stuck { box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8); }
body.home-ai .nav-link, body.home-ai .nav-signin, body.home-ai .nav-burger { color: var(--night-text); }
body.home-ai .nav-links a.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
body.home-ai .nav-signin:hover { color: #fff; }
body.home-ai .nav-logo img { filter: brightness(0) invert(1); }
body.home-ai .nav-ai {
  display: inline-flex; align-items: center; gap: 6px;
  color: #c4b5fd !important;
}
body.home-ai .nav-ai .spark { width: 14px; height: 14px; }
body.home-ai .nav-cta .btn-primary {
  background: #fff; color: var(--ink); border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px -10px rgba(255,255,255,0.35);
}
body.home-ai .nav-cta .btn-primary:hover { background: #eef2ff; color: var(--ink); }

/* ---------- Mobile nav: animated burger + themed slide-down menu ---------- */
body.home-ai .nav-burger {
  position: relative; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  display: none; place-items: center; color: #fff;
  transition: background 0.2s ease, transform 0.35s var(--ease-out);
}
body.home-ai .nav-burger:hover { background: rgba(255,255,255,0.08); }
body.home-ai .nav-burger:active { transform: scale(0.94); }
body.home-ai .nav-burger .bg-l {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.25s ease, width 0.3s var(--ease-out);
}
body.home-ai .nav-burger .bg-l:nth-child(1) { top: 14px; }
body.home-ai .nav-burger .bg-l:nth-child(2) { top: 21px; width: 16px; }
body.home-ai .nav-burger .bg-l:nth-child(3) { top: 28px; }
body.home-ai .nav-burger[aria-expanded="true"] { background: rgba(255,255,255,0.1); }
body.home-ai .nav-burger[aria-expanded="true"] .bg-l:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.home-ai .nav-burger[aria-expanded="true"] .bg-l:nth-child(2) { opacity: 0; transform: translateX(-8px); }
body.home-ai .nav-burger[aria-expanded="true"] .bg-l:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1020px) { body.home-ai .nav-burger { display: grid; } }

body.home-ai .m-nav {
  display: block; max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  padding-top: 0; padding-bottom: 0; border-top-color: transparent;
  background: linear-gradient(180deg, #0c1020, #07090f);
  transition: max-height 0.55s var(--ease-out), opacity 0.3s ease, padding 0.4s var(--ease-out), border-color 0.3s ease;
}
body.home-ai .m-nav.open {
  max-height: calc(100vh - 72px); overflow-y: auto; opacity: 1; pointer-events: auto;
  padding: 10px 24px 28px; border-top-color: var(--night-line);
}
body.home-ai .m-nav a {
  color: var(--night-text); border-color: var(--night-line); padding: 14px 6px; border-radius: 10px;
  opacity: 0; transform: translateY(10px);
  transition: color 0.2s ease, background 0.2s ease, padding 0.25s var(--ease-out);
}
body.home-ai .m-nav a:hover, body.home-ai .m-nav a:active { color: #fff; background: rgba(255,255,255,0.05); padding-left: 12px; }
body.home-ai .m-nav a.m-sub { color: var(--night-muted); padding-left: 22px; }
body.home-ai .m-nav a.m-sub:hover { padding-left: 28px; }
body.home-ai .m-nav a.btn { color: var(--ink); background: #fff; opacity: 0; transform: translateY(10px); padding: 12px 20px; }
body.home-ai .m-nav a.btn:hover { background: #e0e7ff; padding-left: 20px; }
body.home-ai .m-nav.open a { animation: heroIn 0.5s var(--ease-out) forwards; }
body.home-ai .m-nav.open a:nth-child(1) { animation-delay: 0.05s; } body.home-ai .m-nav.open a:nth-child(2) { animation-delay: 0.09s; }
body.home-ai .m-nav.open a:nth-child(3) { animation-delay: 0.13s; } body.home-ai .m-nav.open a:nth-child(4) { animation-delay: 0.17s; }
body.home-ai .m-nav.open a:nth-child(5) { animation-delay: 0.21s; } body.home-ai .m-nav.open a:nth-child(6) { animation-delay: 0.25s; }
body.home-ai .m-nav.open a:nth-child(7) { animation-delay: 0.29s; } body.home-ai .m-nav.open a:nth-child(8) { animation-delay: 0.33s; }
body.home-ai .m-nav.open a:nth-child(9) { animation-delay: 0.37s; } body.home-ai .m-nav.open a:nth-child(10) { animation-delay: 0.41s; }
body.home-ai .m-nav.open a:nth-child(n+11) { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  body.home-ai .m-nav, body.home-ai .nav-burger .bg-l { transition: none; }
  body.home-ai .m-nav a, body.home-ai .m-nav a.btn { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- Shared dark band ---------- */
.band-dark {
  background: var(--night);
  color: var(--night-text);
  position: relative;
  overflow: hidden;
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .lede { color: var(--night-muted); }
.band-dark .eyebrow { color: #a5b4fc; }
.band-dark .btn-ghost { color: #fff; border-color: var(--night-line-2); background: rgba(255,255,255,0.03); }
.band-dark .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.band-dark .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.band-dark .btn-primary:hover { background: #e0e7ff; color: var(--ink); }
.band-light { background: var(--canvas); color: var(--body); position: relative; }

/* Gradient text */
.grad {
  background: linear-gradient(92deg, #7dd3fc 0%, #a78bfa 45%, #6ee7b7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- HERO ---------- */
.h-ai {
  padding: clamp(72px, 10vw, 128px) 0 0;
  text-align: center;
}
.h-ai .container { position: relative; z-index: 2; }
.h-ai .display-hero {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 15em;
  margin: 18px auto 0;
}
.h-ai .lede { max-width: 40em; margin: 24px auto 30px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

/* Aurora backdrop — pure gradients, no filters (blur + animation re-rasterises every frame in Safari) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; transform: translateZ(0); }
.aurora i {
  position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, var(--gc) 0%, transparent 80%);
  animation: drift 20s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  transform: translateZ(0);
}
.aurora i:nth-child(1) { --gc: rgba(30,144,255,0.9); width: 1200px; height: 1200px; left: -20%; top: -55%; }
.aurora i:nth-child(2) { --gc: rgba(139,92,246,0.85); width: 1100px; height: 1100px; right: -22%; top: -45%; animation-delay: -7s; animation-duration: 24s; }
.aurora i:nth-child(3) { --gc: rgba(16,185,129,0.55); width: 900px; height: 900px; left: 30%; bottom: -55%; animation-delay: -13s; animation-duration: 28s; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(7,9,15,0) 0%, rgba(7,9,15,0.55) 70%, var(--night) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.09)'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* Pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--night-line-2);
  background: rgba(255,255,255,0.04);
  font-size: 0.86rem; font-weight: 600; color: var(--night-text);
}
.pill b {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #7c3aed, #1e90ff);
  color: #fff; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.pill .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.pill .dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #34d399; opacity: 0; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.8); opacity: 0; } }

/* Rotating word */
.rot { display: inline-grid; text-align: left; vertical-align: top; }
.rot > span {
  grid-area: 1 / 1; white-space: nowrap;
  visibility: hidden; opacity: 0; transform: translateY(0.35em);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
  /* gradient applied per phrase: Safari ignores child opacity under a background-clip:text parent */
  background: linear-gradient(92deg, #7dd3fc 0%, #a78bfa 45%, #6ee7b7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding: 0.12em 0.06em 0.22em 0; margin: -0.12em -0.06em -0.22em 0; /* box must cover ascenders + descenders or they are cut */
}
.rot > span.on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.rot > span.out { visibility: hidden; opacity: 0; transform: translateY(-0.35em); }

/* Ask bar (prompt) */
.ask {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(167,139,250,0.4);
  box-shadow: 0 30px 80px -30px rgba(30,144,255,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: left; position: relative;
  transition: border-color 0.25s ease, box-shadow 0.35s var(--ease-out);
}
.ask:focus-within { border-color: rgba(167,139,250,0.8); box-shadow: 0 30px 80px -30px rgba(139,92,246,0.55), 0 0 0 4px rgba(139,92,246,0.15); }
.ask .spark { width: 20px; height: 20px; color: #c4b5fd; flex: none; }
.ask input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 1.05rem; padding: 10px 0;
}
.ask input::placeholder { color: rgba(230,233,242,0.55); }
.ask .caret { display: none; }
.ask button {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border: 0; border-radius: 12px;
  padding: 12px 18px; font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ask button:hover { background: #e0e7ff; transform: translateY(-1px); }
.ask button svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px auto 0; max-width: 760px; }
.chip {
  font-size: 0.84rem; font-weight: 600; color: var(--night-muted);
  border: 1px solid var(--night-line); background: rgba(255,255,255,0.02);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.h-ai .hero-ctas { margin-top: 30px; }
.h-ai .hero-note { color: var(--night-muted); }
.h-ai .hero-note svg { color: #34d399; }

/* ---------- LIVE CONSOLE (under hero) ---------- */
.console-wrap { margin: clamp(48px, 6vw, 84px) auto 0; max-width: 1080px; position: relative; z-index: 2; text-align: left; }
.console-wrap::before {
  content: ""; position: absolute; inset: -80px -10% auto; height: 320px; z-index: -1;
  background: radial-gradient(closest-side, rgba(139,92,246,0.3), transparent 70%);
}
.console {
  background: linear-gradient(180deg, #0f1528, #0b0f1d);
  border: 1px solid var(--night-line-2);
  border-radius: 20px;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr;
}
.console-head {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--night-line);
  font-size: 0.8rem; color: var(--night-muted);
}
.console-head .dots { display: flex; gap: 6px; }
.console-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3350; }
.console-head .dots i:nth-child(1) { background: #ff5f57; } .console-head .dots i:nth-child(2) { background: #febc2e; } .console-head .dots i:nth-child(3) { background: #28c840; }
.console-head .tabs { display: flex; gap: 4px; margin-left: 8px; }
.console-head .tabs span { padding: 5px 10px; border-radius: 8px; }
.console-head .tabs span.on { background: rgba(255,255,255,0.08); color: #fff; }
.console-head .wallet { margin-left: auto; font-family: var(--mono); font-size: 0.76rem; color: #a5b4fc; display: inline-flex; gap: 8px; align-items: center; }
.console-head .wallet b { color: #fff; font-weight: 700; }
.roster { border-right: 1px solid var(--night-line); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.roster-title { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); padding: 4px 8px 8px; font-weight: 700; }
.agent {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.agent.on { background: rgba(255,255,255,0.05); border-color: var(--night-line-2); }
.agent .av {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.78rem; color: #fff; background: var(--ac, #334155);
}
.agent .nm { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.15; }
.agent .ty { font-size: 0.74rem; color: var(--night-muted); }
.agent .st { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.agent .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.work { color: #34d399; background: rgba(52,211,153,0.12); }
.st.work::before { animation: blink 1.1s infinite; }
.st.sleep { color: #94a3b8; background: rgba(148,163,184,0.12); }
.st.appr { color: #fbbf24; background: rgba(251,191,36,0.14); }
@keyframes blink { 50% { opacity: 0.25; } }
.feed { padding: 14px 18px 18px; height: 440px; overflow: hidden; position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(11,15,29,0), #0b0f1d); pointer-events: none; }
.feed-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); font-weight: 700; padding-bottom: 6px; }
.feed-title .live { color: #34d399; display: inline-flex; align-items: center; gap: 6px; }
.feed-title .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: blink 1.1s infinite; }
.ev {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--night-line);
  opacity: 0; transform: translateY(-10px) scale(0.985); animation: evIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes evIn { to { opacity: 1; transform: none; } }
.ev .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--ec, #334155); }
.ev .ic svg { width: 13px; height: 13px; color: #fff; }
.ev .who { font-weight: 800; color: #fff; font-size: 0.82rem; }
.ev .who .tool { font-family: var(--mono); font-weight: 500; color: #a5b4fc; font-size: 0.74rem; margin-left: 8px; }
.ev .msg { color: #cbd5e1; margin-top: 2px; line-height: 1.45; }
.ev .msg em { color: #fbbf24; font-style: normal; }
.ev .tk { font-family: var(--mono); font-size: 0.72rem; color: var(--night-muted); white-space: nowrap; }
.ev.approve { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.05); }
.ev .act { display: flex; gap: 6px; margin-top: 8px; }
.ev .act span { font-size: 0.74rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--night-line-2); color: #fff; }
.ev .act span.ok { background: #34d399; color: #052e1c; border-color: transparent; }
.typing { display: inline-flex; gap: 3px; align-items: center; height: 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #a5b4fc; animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Promo video ---------- */
.promo { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.promo .center { margin-bottom: 28px; }
.promo-frame {
  position: relative; max-width: 1080px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 22px; overflow: hidden; background: #0b0f1d;
  border: 1px solid var(--night-line-2);
  box-shadow: 0 60px 140px -50px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.06);
  isolation: isolate;
}
.promo-frame::before {
  content: ""; position: absolute; inset: -120px -10% auto; height: 340px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(30,144,255,0.32), transparent 70%);
}
.promo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b0f1d; }
.promo-fs, .promo-pp {
  position: absolute; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,9,15,0.72); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.35s var(--ease-out), background 0.2s ease;
}
.promo-fs { right: 16px; } .promo-pp { left: 16px; width: 40px; padding: 0; justify-content: center; }
.promo-frame:hover .promo-fs, .promo-frame:hover .promo-pp, .promo-frame:focus-within .promo-fs, .promo-frame:focus-within .promo-pp, .promo-pp.is-paused { opacity: 1; transform: none; }
.promo-fs:hover, .promo-pp:hover { background: rgba(255,255,255,0.14); }
.promo-fs svg, .promo-pp svg { width: 18px; height: 18px; }
.promo-pp .i-play { display: none; } .promo-pp.is-paused .i-play { display: block; } .promo-pp.is-paused .i-pause { display: none; }
.promo-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.08); z-index: 2; }
.promo-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7dd3fc, #a78bfa, #6ee7b7); transform-origin: left; transform: scaleX(0); }
.promo-note { text-align: center; color: var(--night-muted); font-size: 0.9rem; margin: 18px 0 0; }
.promo-frame:fullscreen { border-radius: 0; border: 0; max-width: none; }
.promo-frame:fullscreen video { object-fit: contain; }
@media (hover: none) { .promo-fs, .promo-pp { opacity: 1; transform: none; } }
@media (max-width: 640px) { .promo-frame { border-radius: 14px; } .promo-fs span { display: none; } .promo-fs { width: 40px; padding: 0; justify-content: center; } }

/* ---------- Logo strip on dark ---------- */
.band-dark .logostrip p { color: var(--night-muted); }
.band-dark .logo-marquee { -webkit-mask-image: none; mask-image: none; position: relative; }
.band-dark .logo-marquee::before, .band-dark .logo-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.band-dark .logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--night), rgba(7,9,15,0)); }
.band-dark .logo-marquee::after { right: 0; background: linear-gradient(270deg, var(--night), rgba(7,9,15,0)); }
.band-dark .logo-track img { background: #fff; padding: 8px 14px; border-radius: 10px; height: 56px; opacity: 0.85; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.band-dark .logo-track img:hover { opacity: 1; }
@media (max-width: 640px) { .band-dark .logo-track img { height: 46px; padding: 6px 10px; } }

/* ---------- AI BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.bcard {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--night-line);
  border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--bc, #8b5cf6) 22%, transparent), transparent 70%);
}
.bcard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.bcard:hover::after { opacity: 1; }
.bcard.w2 { grid-column: span 2; }
.bcard.h2 { grid-row: span 2; }
.bic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--bc, #8b5cf6) 22%, transparent); color: var(--bc, #c4b5fd); }
.bic svg { width: 20px; height: 20px; }
.bcard h4 { font-size: 1.15rem; margin: 0; letter-spacing: -0.01em; }
.bcard h4 small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bc, #c4b5fd); margin-bottom: 6px; }
.bcard p { margin: 0; color: var(--night-muted); font-size: 0.95rem; line-height: 1.55; }
.bvis { margin-top: auto; padding-top: 10px; position: relative; z-index: 1; }
.bcard .more { color: #fff; font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.bcard .more svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.bcard:hover .more svg { transform: translateX(3px); }

/* Bento mini-visuals */
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.types span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; color: #fff;
  padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--night-line);
}
.types span i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, #8b5cf6); }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; }
.wave i { width: 4px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #7dd3fc, #8b5cf6); transform: scaleY(0.2); transform-origin: 50% 100%; animation: wv 1.2s ease-in-out infinite; will-change: transform; }
.wave i:nth-child(odd) { animation-duration: 1.4s; }
.wave i:nth-child(3n) { animation-delay: -0.4s; } .wave i:nth-child(3n+1) { animation-delay: -0.8s; }
@keyframes wv { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.transcript { font-size: 0.82rem; color: #cbd5e1; border-left: 2px solid #8b5cf6; padding-left: 10px; margin-top: 10px; line-height: 1.45; }
.transcript b { color: #fff; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv div { background: rgba(255,255,255,0.04); border: 1px solid var(--night-line); border-radius: 10px; padding: 10px 12px; }
.kv small { display: block; font-size: 0.7rem; color: var(--night-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.kv b { font-size: 1.1rem; color: #fff; }
.kv b.up { color: #34d399; }
.bubble { border-radius: 14px; padding: 10px 12px; font-size: 0.86rem; line-height: 1.45; max-width: 92%; }
.bubble.me { background: rgba(255,255,255,0.08); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.ai { background: rgba(139,92,246,0.18); color: #e9e3ff; border: 1px solid rgba(139,92,246,0.3); border-bottom-left-radius: 4px; margin-top: 8px; }
.bubble.ai b { color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--night-line-2); border-radius: 10px; padding: 8px 12px; font-size: 0.86rem; color: #fff; }
.search svg { width: 14px; height: 14px; color: var(--night-muted); }
.hits { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 0.8rem; color: #cbd5e1; }
.hits div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); }
.hits em { color: #fbbf24; font-style: normal; }
.hits span:last-child { color: var(--night-muted); font-family: var(--mono); font-size: 0.72rem; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { font-family: var(--mono); font-size: 0.74rem; color: #a5b4fc; background: rgba(165,180,252,0.1); border: 1px solid rgba(165,180,252,0.25); padding: 5px 9px; border-radius: 8px; }
.guard { display: flex; flex-direction: column; gap: 8px; }
.guard div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: #e6e9f2; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--night-line); }
.tog { width: 34px; height: 20px; border-radius: 999px; background: #34d399; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.tog.off { background: #3b4360; } .tog.off::after { right: auto; left: 3px; }
.logos-ai { display: flex; flex-wrap: wrap; gap: 8px; }
.logos-ai span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 700; color: #fff; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--night-line-2); }
.logos-ai span i { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 0.6rem; font-weight: 900; color: #fff; }

/* ---------- Products (light) with AI chips ---------- */
.ai-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(90deg, #ede9fe, #e0f2fe); color: #5b21b6; padding: 5px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}
.ai-tag svg { width: 12px; height: 12px; }
.prod-feats li .ai { color: #7c3aed; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.08em; margin-left: 6px; }
.mock-ai {
  margin-top: 10px; border-radius: 12px; padding: 10px 12px; font-size: 0.82rem; line-height: 1.45;
  background: linear-gradient(90deg, #f5f3ff, #eff6ff); border: 1px solid #ddd6fe; color: #3b2a6b;
  display: flex; gap: 8px; align-items: flex-start;
}
.mock-ai svg { width: 15px; height: 15px; color: #7c3aed; flex: none; margin-top: 2px; }
.mock-ai b { color: #1e1b4b; }

/* ---------- MCP band ---------- */
.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.term {
  background: #0b1020; border: 1px solid var(--night-line-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9); font-size: 0.9rem; line-height: 1.55;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--night-line); font-size: 0.76rem; color: var(--night-muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3350; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; color: #cbd5e1; }
.term .u { color: #7dd3fc; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; }
.term .a { color: #6ee7b7; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.term .a code { font-family: var(--mono); font-weight: 500; color: #a5b4fc; background: rgba(165,180,252,0.1); padding: 2px 7px; border-radius: 6px; font-size: 0.72rem; letter-spacing: 0; }
.term .r { color: #e6e9f2; }
.term .r em { color: #fbbf24; font-style: normal; }
.term ul { margin: 0; padding-left: 18px; color: #94a3b8; font-size: 0.86rem; }
.mcp-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.mcp-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--night-text); }
.mcp-list li svg { width: 20px; height: 20px; color: #34d399; flex: none; margin-top: 2px; }
.mcp-list li b { color: #fff; }
.mcp-list li span { color: var(--night-muted); }

/* ---------- Guardrails (light) ---------- */
.pillars.ai .pillar-ic { background: linear-gradient(135deg, #ede9fe, #e0f2fe); color: #6d28d9; }

/* ---------- Stats on dark ---------- */
.band-dark .stat-num { color: #fff; }
.band-dark .stat-num em { color: #a78bfa; }
.band-dark .stat-label { color: var(--night-muted); }
.band-dark .stats { border-color: var(--night-line); }

/* ---------- Final CTA ---------- */
.cta-ai { text-align: center; padding: var(--sect-y) 0; }
.cta-ai h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.cta-ai .lede { margin: 16px auto 28px; }

/* ---------- Footer on dark home ---------- */
body.home-ai .footer { border-top: 1px solid var(--night-line); }

/* ---------- Motion system ---------- */
html { scroll-padding-top: 84px; }

/* Lenis inertia scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; } /* Lenis owns easing; native smooth-scroll would double it */
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Off-screen sections stop animating so they never compete for frames */
.is-off .aurora i, .is-off .wave i, .is-off .pill .dot::after, .is-off .st.work::before, .is-off .feed-title .live::before { animation-play-state: paused; }
.console { will-change: transform; }
.aurora { will-change: transform; }
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* Hero entrance: staged fade-up on load */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.h-ai .container > * { animation: heroIn 0.9s var(--ease-out) both; }
.h-ai .container > :nth-child(1) { animation-delay: 0.05s; }
.h-ai .container > :nth-child(2) { animation-delay: 0.15s; }
.h-ai .container > :nth-child(3) { animation-delay: 0.25s; }
.h-ai .container > :nth-child(4) { animation-delay: 0.35s; }
.h-ai .container > :nth-child(5) { animation-delay: 0.42s; }
.h-ai .container > :nth-child(6) { animation-delay: 0.5s; }
.h-ai .container > :nth-child(7) { animation-delay: 0.56s; }
.h-ai .container > :nth-child(8) { animation-delay: 0.6s; }
.h-ai .container > :nth-child(9) { animation-delay: 0.7s; animation-duration: 1.1s; }

/* Scroll reveals: longer, springier, GPU-only */
body.home-ai .rv {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
body.home-ai .rv.in { opacity: 1; transform: none; }

/* Staggered children inside grids: keyframe with backwards fill, so hover transforms work once revealed */
@keyframes childIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.bento.rv:not(.in) .bcard, .pillars.rv:not(.in) .pillar, .stats.rv:not(.in) > div, .mcp-grid.rv:not(.in) > * { opacity: 0; }
.bento.rv.in .bcard, .pillars.rv.in .pillar, .stats.rv.in > div, .mcp-grid.rv.in > * {
  animation: childIn 0.8s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.bento.rv .bcard:nth-child(1), .pillars.rv .pillar:nth-child(1), .stats.rv > div:nth-child(1), .mcp-grid.rv > :nth-child(1) { --i: 0; }
.bento.rv .bcard:nth-child(2), .pillars.rv .pillar:nth-child(2), .stats.rv > div:nth-child(2), .mcp-grid.rv > :nth-child(2) { --i: 1; }
.bento.rv .bcard:nth-child(3), .pillars.rv .pillar:nth-child(3), .stats.rv > div:nth-child(3) { --i: 2; }
.bento.rv .bcard:nth-child(4), .pillars.rv .pillar:nth-child(4), .stats.rv > div:nth-child(4) { --i: 3; }
.bento.rv .bcard:nth-child(5) { --i: 4; } .bento.rv .bcard:nth-child(6) { --i: 5; }
.bento.rv .bcard:nth-child(7) { --i: 6; } .bento.rv .bcard:nth-child(8) { --i: 7; } .bento.rv .bcard:nth-child(9) { --i: 8; }
.bcard { transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.45s var(--ease-out); }

/* Buttons and links: springy hover */
body.home-ai .btn { transition: transform 0.35s var(--ease-out), background 0.2s ease, color 0.2s ease, box-shadow 0.35s var(--ease-out); }
body.home-ai .btn:hover { transform: translateY(-2px); }
body.home-ai .btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.chip { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.35s var(--ease-out); }
.chip:hover { transform: translateY(-1px); }

/* ---------- Inner pages: dark hero on every page (site-wide AI treatment) ---------- */
body.home-ai .page-hero {
  background: var(--night); color: var(--night-text);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
body.home-ai .page-hero::before {
  top: -55%; width: 1300px; height: 820px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ph, var(--accent)) 42%, transparent), transparent 75%);
}
body.home-ai .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(139,92,246,0.22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}
body.home-ai .page-hero .container { z-index: 1; }
body.home-ai .page-hero h1, body.home-ai .page-hero h2, body.home-ai .page-hero h3 { color: #fff; }
body.home-ai .page-hero .u-mark { color: #fff; }
body.home-ai .page-hero .u-mark > svg path { stroke: var(--ph, #a78bfa); }
body.home-ai .page-hero .lede, body.home-ai .page-hero p { color: var(--night-muted); }
body.home-ai .page-hero .eyebrow { color: color-mix(in srgb, var(--ph, #a5b4fc) 55%, #fff); }
body.home-ai .page-hero .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
body.home-ai .page-hero .btn-primary:hover { background: #e0e7ff; color: var(--ink); }
body.home-ai .page-hero .btn-ghost { color: #fff; border-color: var(--night-line-2); background: rgba(255,255,255,0.03); }
body.home-ai .page-hero .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.home-ai .page-hero .hero-note { color: var(--night-muted); }
body.home-ai .page-hero .hero-note svg { color: #34d399; }
body.home-ai .page-hero .badge-row .badge { background: rgba(255,255,255,0.06); color: #fff; border-color: var(--night-line-2); }
body.home-ai .page-hero a:not(.btn) { color: #c4b5fd; }
body.home-ai .page-hero .stat-num { color: #fff; }
body.home-ai .page-hero .stat-num em { color: #a78bfa; }
body.home-ai .page-hero .stat-label { color: var(--night-muted); }
body.home-ai .page-hero .rv { opacity: 1; transform: none; }
/* Inner pages: plain sections stay light; only explicit bands are dark */
body.home-ai main { background: var(--canvas); }
body.home-ai .page-hero .container > * { animation: heroIn 0.9s var(--ease-out) both; }
body.home-ai .page-hero .container > :nth-child(2) { animation-delay: 0.1s; }
body.home-ai .page-hero .container > :nth-child(3) { animation-delay: 0.2s; }
body.home-ai .page-hero .container > :nth-child(4) { animation-delay: 0.3s; }
body.home-ai .page-hero .container > :nth-child(5) { animation-delay: 0.38s; }
body.home-ai .page-hero .container > :nth-child(6) { animation-delay: 0.46s; }
body.home-ai .page-hero .container > :nth-child(7) { animation-delay: 0.54s; animation-duration: 1.1s; }
body.home-ai .page-hero .container > :nth-child(8) { animation-delay: 0.62s; animation-duration: 1.1s; }

/* ---------- Page transitions: nav stays pinned, content crossfades with a soft lift ---------- */
@view-transition { navigation: auto; }
body.home-ai .nav-wrap { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-old(root) { animation: vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- Nav dropdown: dark, no hover gap, springy ---------- */
body.home-ai .dd {
  top: 100%; padding: 10px; margin-top: 8px;
  background: #0f1528; border-color: var(--night-line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(8px) scale(0.98); transform-origin: top left;
  transition: opacity 0.22s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.22s;
}
body.home-ai .dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge over the gap */
body.home-ai .nav-links li:hover > .dd, body.home-ai .nav-links li:focus-within > .dd { transform: none; }
body.home-ai .dd-item { transition: background 0.18s ease, transform 0.25s var(--ease-out); }
body.home-ai .dd-item:hover { background: rgba(255,255,255,0.06); transform: translateX(2px); }
body.home-ai .dd-t { color: #fff; display: block; }
body.home-ai .dd-d { display: block; margin-top: 2px; }
body.home-ai .dd-d { color: var(--night-muted); }
body.home-ai .nav-links a.nav-link svg { transition: transform 0.25s var(--ease-out); }
body.home-ai .nav-links li:hover > a.nav-link svg { transform: rotate(180deg); }
body.home-ai .nav-links li:hover > a.nav-link { color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Sign-in takeover: dark to match the site ---------- */
body.home-ai .so-backdrop { background: linear-gradient(180deg, rgba(7,9,15,0.82), rgba(12,16,32,0.88)); }
body.home-ai .so-eyebrow { color: #a5b4fc; }
body.home-ai .so-title { color: #fff; }
body.home-ai .so-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-color: var(--night-line-2); box-shadow: none;
}
body.home-ai .so.open .so-card:hover, body.home-ai .so.open .so-card:focus-visible {
  border-color: color-mix(in srgb, var(--sc) 60%, var(--night-line-2));
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--sc) 55%, transparent);
  background: rgba(255,255,255,0.08);
}
body.home-ai .so-name { color: #fff; }
body.home-ai .so-dom { color: var(--night-muted); }
body.home-ai .so-card .go { background: color-mix(in srgb, var(--sc) 22%, transparent); color: #fff; }
body.home-ai .so-card:hover .go { background: var(--sc); }
body.home-ai .so-close { background: rgba(255,255,255,0.08); border-color: var(--night-line-2); color: #fff; }
body.home-ai .so-close:hover { border-color: #fff; color: #fff; }
body.home-ai .so-hint { color: var(--night-muted); }
@media (max-width: 760px) {
  body.home-ai .so-backdrop { background: rgba(7,9,15,0.7); }
  body.home-ai .so-panel { background: #0c1020; border-top: 1px solid var(--night-line-2); }
}

/* ---------- Consistent hover language on light cards ---------- */
body.home-ai .feat-card, body.home-ai .b-card, body.home-ai .pillar, body.home-ai .info-tile,
body.home-ai .price-card, body.home-ai .rev-card, body.home-ai .step-ai, body.home-ai .ai-price > div {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.25s ease;
}
body.home-ai .feat-card:hover, body.home-ai .b-card:hover, body.home-ai .pillar:hover, body.home-ai .info-tile:hover,
body.home-ai .rev-card:hover, body.home-ai .step-ai:hover, body.home-ai .ai-price > div:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7dce6;
}
body.home-ai .price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
body.home-ai .prod-link { transition: gap 0.2s var(--ease-out); }
body.home-ai .prod-link:hover { gap: 10px; }
body.home-ai .btn-ghost { transition: transform 0.35s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
body.home-ai .faq details { transition: border-color 0.2s ease, box-shadow 0.3s var(--ease-out); }
body.home-ai .faq details:hover { border-color: #c4b5fd; box-shadow: var(--shadow-sm); }
body.home-ai .faq details > div { animation: heroIn 0.35s var(--ease-out) both; }
body.home-ai .footer a { transition: color 0.2s ease, transform 0.25s var(--ease-out); display: inline-block; }
body.home-ai .footer a:hover { transform: translateX(3px); }
body.home-ai .footer .store-badge { display: inline-flex; }
body.home-ai .footer .store-badge:hover { transform: translateY(-2px); }
body.home-ai .footer .store-badge span { display: flex; }

/* Homepage: how-it-works strip */
.steps-ai { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.step-ai { position: relative; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-ai .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #1e90ff); color: #fff; font-weight: 800; font-size: 0.9rem; margin-bottom: 14px; }
.step-ai h4 { font-size: 1.05rem; margin: 0 0 6px; }
.step-ai p { margin: 0; font-size: 0.93rem; color: var(--body); }
.step-ai .t { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; color: #6d28d9; background: #f5f3ff; padding: 4px 8px; border-radius: 6px; }
.step-ai::after { content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #c4b5fd; border-right: 2px solid #c4b5fd; transform: translateY(-50%) rotate(45deg); }
.step-ai:last-child::after { display: none; }
@media (max-width: 1020px) { .steps-ai { grid-template-columns: repeat(2, 1fr); } .step-ai::after { display: none; } }
@media (max-width: 640px) { .steps-ai { grid-template-columns: 1fr; } }

/* Pricing: how AI is priced */
.ai-price { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.ai-price > div { padding: 22px; border-radius: 16px; background: linear-gradient(180deg, #faf5ff, #fff); border: 1px solid #e9d5ff; }
.ai-price h4 { font-size: 1.02rem; margin: 10px 0 6px; }
.ai-price p { margin: 0; font-size: 0.92rem; color: var(--body); }
.ai-price .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #ede9fe; color: #6d28d9; }
.ai-price .ic svg { width: 18px; height: 18px; }
@media (max-width: 1020px) { .ai-price { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ai-price { grid-template-columns: 1fr; } }


/* ---------- Feature cards, site-wide premium treatment ---------- */
body.home-ai .feat-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: 28px 26px 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(13,18,32,0.04);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
body.home-ai .feat-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--fc, var(--accent)), color-mix(in srgb, var(--fc, var(--accent)) 30%, #fff));
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
body.home-ai .feat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(360px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--fc, var(--accent)) 13%, transparent), transparent 70%);
}
body.home-ai .feat-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--fc, var(--accent)) 45%, var(--line));
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--fc, var(--accent)) 45%, transparent), 0 8px 24px -16px rgba(13,18,32,0.2);
}
body.home-ai .feat-card:hover::before { transform: scaleX(1); }
body.home-ai .feat-card:hover::after { opacity: 1; }
body.home-ai .feat-ic {
  width: 50px; height: 50px; border-radius: 15px; margin-bottom: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--fc, var(--accent)) 16%, #fff), color-mix(in srgb, var(--fc, var(--accent)) 6%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc, var(--accent)) 18%, transparent);
  transition: transform 0.5s var(--ease-out), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
body.home-ai .feat-card:hover .feat-ic {
  transform: scale(1.08) rotate(-5deg);
  background: linear-gradient(145deg, var(--fc, var(--accent)), color-mix(in srgb, var(--fc, var(--accent)) 70%, #8b5cf6));
  color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--fc, var(--accent)) 70%, transparent);
}
body.home-ai .feat-card h4 { font-size: 1.08rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.home-ai a.feat-card h4::after {
  content: ""; width: 16px; height: 16px; flex: none; margin-left: auto; opacity: 0; transform: translateX(-6px);
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%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 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  color: var(--fc, var(--accent)); transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
body.home-ai a.feat-card:hover h4::after { opacity: 1; transform: none; }
body.home-ai .feat-card p { color: var(--body); line-height: 1.55; }
/* staggered entrance when the grid itself reveals */
body.home-ai .feat-grid.rv:not(.in) .feat-card { opacity: 0; }
body.home-ai .feat-grid.rv.in .feat-card { animation: childIn 0.75s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
body.home-ai .feat-grid .feat-card:nth-child(2) { --i: 1; } body.home-ai .feat-grid .feat-card:nth-child(3) { --i: 2; }
body.home-ai .feat-grid .feat-card:nth-child(4) { --i: 3; } body.home-ai .feat-grid .feat-card:nth-child(5) { --i: 4; }
body.home-ai .feat-grid .feat-card:nth-child(6) { --i: 5; } body.home-ai .feat-grid .feat-card:nth-child(7) { --i: 6; }
body.home-ai .feat-grid .feat-card:nth-child(8) { --i: 7; } body.home-ai .feat-grid .feat-card:nth-child(9) { --i: 8; }
body.home-ai .feat-grid .feat-card:nth-child(10) { --i: 9; } body.home-ai .feat-grid .feat-card:nth-child(11) { --i: 10; }
body.home-ai .feat-grid .feat-card:nth-child(12) { --i: 11; } body.home-ai .feat-grid .feat-card:nth-child(n+13) { --i: 12; }

/* Pillars and info tiles get the same icon and glow language */
body.home-ai .pillar, body.home-ai .info-tile { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; }
body.home-ai .pillar::after, body.home-ai .info-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(320px 200px at var(--mx, 50%) var(--my, 0%), rgba(124,58,237,0.12), transparent 70%);
}
body.home-ai .pillar:hover::after, body.home-ai .info-tile:hover::after { opacity: 1; }
body.home-ai .pillar-ic { transition: transform 0.5s var(--ease-out); }
body.home-ai .pillar:hover .pillar-ic { transform: scale(1.08) rotate(-5deg); }
@media (prefers-reduced-motion: reduce) {
  body.home-ai .feat-grid.rv .feat-card { opacity: 1; animation: none; }
  body.home-ai .feat-card:hover, body.home-ai .feat-card:hover .feat-ic, body.home-ai .pillar:hover .pillar-ic { transform: none; }
}

/* ---------- Store badge (same design as the Tour Bazaar app badge: dark pill, gradient glyph) ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 12px;
  background: #0d1220; color: #fff; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.35s var(--ease-out), background 0.2s ease, box-shadow 0.35s var(--ease-out);
  line-height: 1; text-decoration: none;
}
.store-badge:hover { transform: translateY(-2px); background: #000; color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6); }
.store-badge svg { width: 18px; height: 20px; flex: none; }
.store-badge span { display: flex; flex-direction: column; text-align: left; }
.store-badge small { font-size: 9px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.store-badge b { margin-top: 3px; font-size: 0.9rem; font-weight: 800; }
.band-dark .store-badge { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.band-dark .store-badge:hover { background: rgba(255,255,255,0.12); }
.hero-store { display: flex; justify-content: center; margin-top: 18px; }
.store-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 0.88rem; color: var(--muted); max-width: 32em; }
.store-row .store-badge { flex: none; }
.footer-store { margin-top: 16px; }
.footer .store-badge { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #fff; }
.footer .store-badge:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .console { grid-template-columns: 1fr; }
  .roster { border-right: 0; border-bottom: 1px solid var(--night-line); flex-direction: row; overflow-x: auto; padding: 10px; }
  .roster-title { display: none; }
  .agent { flex: none; min-width: 230px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .mcp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bcard.w2, .bcard.h2 { grid-column: auto; grid-row: auto; }
  .ask { flex-wrap: wrap; padding: 10px; border-radius: 16px; }
  .ask input { width: 100%; flex-basis: 100%; }
  .ask button { width: 100%; justify-content: center; }
  .console-head .tabs { display: none; }
  .feed { height: 380px; }
  .ev .tk { display: none; }
  .agent { min-width: 200px; }
  .pill { white-space: normal; max-width: 100%; text-align: left; line-height: 1.3; font-size: 0.8rem; }
  .rot { display: grid; width: 100%; text-align: center; }
  .rot > span { white-space: normal; }
  .h-ai .display-hero { font-size: clamp(2.3rem, 10.5vw, 5.4rem); }
  .h-ai .display-hero br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .wave i, .pill .dot::after, .st.work::before, .feed-title .live::before, .typing i { animation: none; }
  .ev { opacity: 1; transform: none; animation: none; }
  .h-ai .container > * { animation: none; }
  body.home-ai .rv, .bento.rv .bcard, .pillars.rv .pillar, .stats.rv > div, .mcp-grid.rv > * { opacity: 1; transform: none; transition: none; animation: none; }
  .rot > span { transition: none; }
  .rot > span:not(.on) { visibility: hidden; }
}
