/* ───────────────────────────────────────────────────────────
   AI-FUTURISTIC LAYER
   Top status ticker, holographic borders, neural data stream,
   grain overlay, cursor glow, scanlines, brand-logo theming.
   This layer is additive — it builds on the existing CSS.
   ─────────────────────────────────────────────────────────── */

/* ─── Brand logo: real Membership Wallet mark + wordmark ─── */
.logo--brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.logo__mark--brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg,
    color-mix(in srgb, #14b8a6 14%, transparent),
    color-mix(in srgb, #FF5B04 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.logo--brand:hover .logo__mark--brand {
  transform: translateY(-1px) rotate(-2deg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.logo__mark--brand svg {
  display: block;
  overflow: visible;
}

/* Dark mode: brighten the deep-teal peaks so they stay visible */
:root[data-theme="dark"] .logo-mark__peak {
  fill: #5eead4 !important;
}

.logo__text--brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 0.95rem;
  color: var(--text);
  text-transform: none;
}

.logo__text-accent {
  color: var(--accent);
  background: linear-gradient(120deg, #FF5B04, #FFD1A8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

:root[data-theme="dark"] .logo__text-accent {
  background: linear-gradient(120deg, #FFD1A8, #FF5B04);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Restore wordmark on mid-width screens (components.css collapses it to "MW") */
@media (max-width: 1200px) {
  .logo--brand .logo__text--brand {
    font-size: 0.9rem;
    letter-spacing: -0.03em;
  }
  .logo--brand .logo__text--brand::after {
    content: none !important;
  }
}

@media (max-width: 720px) {
  .logo--brand .logo__text--brand {
    display: none;
  }
}

.logo--footer.logo--brand {
  gap: var(--space-3);
}

/* ─── Top AI status ticker (above header) ─── */
.ai-ticker {
  position: relative;
  z-index: calc(var(--z-header) + 5);
  background: linear-gradient(90deg,
    rgba(13, 148, 136, 0.08) 0%,
    rgba(124, 58, 237, 0.06) 50%,
    rgba(6, 182, 212, 0.08) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  position: relative;
}

.ai-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(20, 184, 166, 0.18) 50%,
    transparent 70%);
  transform: translateX(-100%);
  animation: ai-ticker-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ai-ticker-sheen {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(120%); }
}

.ai-ticker__track {
  display: flex;
  gap: 32px;
  padding: 7px 0;
  white-space: nowrap;
  width: max-content;
  animation: ai-ticker-scroll 42s linear infinite;
}

.ai-ticker:hover .ai-ticker__track {
  animation-play-state: paused;
}

.ai-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.ai-ticker__item--live {
  color: var(--accent);
}

.ai-ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-mint);
  box-shadow: 0 0 0 0 var(--ai-mint);
  animation: ai-ticker-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes ai-ticker-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ai-mint) 60%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes ai-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.ai-ticker__num {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .ai-ticker__track,
  .ai-ticker::before { animation: none; }
}

/* ─── Body grain overlay (subtle film noise) ─── */
.ai-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

:root[data-theme="dark"] .ai-grain {
  opacity: 0.12;
  mix-blend-mode: screen;
}

/* ─── Neural data-stream characters in the hero ─── */
.data-stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.55;
}

:root[data-theme="light"] .data-stream,
:root:not([data-theme]) .data-stream {
  opacity: 0.18;
}

.data-stream__col {
  position: absolute;
  top: -120%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ai-mint);
  white-space: pre;
  text-shadow: 0 0 8px color-mix(in srgb, var(--ai-mint) 60%, transparent);
  animation: data-stream-fall var(--ds-dur, 14s) linear infinite;
  animation-delay: var(--ds-delay, 0s);
  will-change: transform;
}

.data-stream__col:nth-child(odd) {
  color: var(--ai-cyan);
  text-shadow: 0 0 8px color-mix(in srgb, var(--ai-cyan) 60%, transparent);
}

@keyframes data-stream-fall {
  from { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(220vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .data-stream { display: none; }
}

/* ─── Cursor glow follower ─── */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 25%, transparent) 0%,
    color-mix(in srgb, var(--ai-cyan) 12%, transparent) 35%,
    transparent 65%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  opacity: 0;
  left: -1000px;
  top: -1000px;
}

:root[data-theme="light"] .cursor-glow,
:root:not([data-theme]) .cursor-glow {
  mix-blend-mode: multiply;
  opacity: 0;
}

.cursor-glow.is-visible {
  opacity: 1;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* ─── Holographic conic borders on key surfaces ─── */
.feature-card--ai,
.pricing-card--featured,
.demo-panel,
.studio-card,
.security-panel,
.testimonial,
.roi-block,
.step-card,
.feature-card {
  position: relative;
  isolation: isolate;
}

.feature-card--ai::after,
.pricing-card--featured::after,
.security-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--holo-angle, 0deg),
    transparent 0deg,
    color-mix(in srgb, var(--accent) 80%, transparent) 40deg,
    color-mix(in srgb, var(--ai-cyan) 80%, transparent) 90deg,
    transparent 130deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: holo-rotate 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.pricing-card--featured::after {
  animation-duration: 5s;
}

@property --holo-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes holo-rotate {
  to { --holo-angle: 360deg; }
}

/* Fallback for browsers without @property — rotate the element itself */
@supports not (background: conic-gradient(from var(--x, 0deg), red, blue)) {
  .feature-card--ai::after,
  .pricing-card--featured::after,
  .security-panel::after {
    animation: holo-spin 8s linear infinite;
  }
  @keyframes holo-spin {
    to { transform: rotate(360deg); }
  }
}

/* Make sure card content sits above the holo border layer */
.feature-card > *,
.pricing-card > *,
.security-panel > *,
.demo-panel > *,
.studio-card > *,
.testimonial > *,
.roi-block > *,
.step-card > * {
  position: relative;
  z-index: 1;
}

/* Ribbon must stay absolutely positioned — the rule above otherwise
   re-flows it into the card body and pushes title/price down. */
.pricing-card > .pricing-card__ribbon {
  position: absolute;
  z-index: 2;
}

/* ─── Scanline sweep on AI surfaces ─── */
.feature-card--ai,
.demo-panel,
.studio-card,
.security-panel {
  overflow: hidden;
}

.feature-card--ai::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -50%;
  height: 200%;
  background: linear-gradient(180deg,
    transparent 40%,
    color-mix(in srgb, var(--ai-cyan) 18%, transparent) 50%,
    transparent 60%);
  pointer-events: none;
  animation: scanline-sweep 4.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes scanline-sweep {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(80%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card--ai::before,
  .feature-card--ai::after,
  .pricing-card--featured::after,
  .security-panel::after {
    animation: none;
  }
}

/* ─── Hero CTA upgrades: holographic glow on primary button ─── */
.hero__cta .btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--ai-gradient);
  border-color: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
              0 10px 40px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero__cta .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%);
  transform: translateX(-100%);
  animation: hero-cta-shine 3.6s ease-in-out infinite;
}

@keyframes hero-cta-shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(120%); }
}

/* ─── Eyebrow pulse: more elaborate (two-ring) ─── */
.eyebrow--ai .eyebrow__pulse {
  position: relative;
}

.eyebrow--ai .eyebrow__pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ai-mint);
  opacity: 0.6;
  animation: eyebrow-ring-grow 2.4s ease-out infinite;
}

@keyframes eyebrow-ring-grow {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow--ai .eyebrow__pulse::before { animation: none; }
}

/* ─── AI command-K hint in header ─── */
.cmd-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-muted) 80%, transparent);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cmd-hint:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.cmd-hint kbd {
  font-family: inherit;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 900px) {
  .cmd-hint { display: none; }
}

/* ─── AI live badge (reusable little dot+label combo) ─── */
.ai-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ai-mint);
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ai-mint) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ai-mint) 30%, var(--border));
}

.ai-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-mint);
  box-shadow: 0 0 0 0 var(--ai-mint);
  animation: ai-ticker-pulse 1.6s ease-out infinite;
}

/* ─── Hero title gradient sweep on the accent word ─── */
.hero__accent {
  background: linear-gradient(115deg, var(--accent) 0%, var(--ai-cyan) 50%, #FF5B04 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-accent-shift 6s ease-in-out infinite;
}

@keyframes hero-accent-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__accent { animation: none; }
}

/* ─── Phone mockup: holo chrome frame ─── */
.phone-mock {
  background:
    linear-gradient(160deg, #0f172a 0%, #1e293b 100%),
    conic-gradient(from 0deg, #14b8a6, #06b6d4, #7c3aed, #FF5B04, #14b8a6);
  background-blend-mode: normal;
  position: relative;
}

.phone-mock::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 40px;
  background: conic-gradient(from var(--holo-angle, 0deg),
    transparent 0deg,
    #14b8a6 60deg,
    #06b6d4 120deg,
    #7c3aed 180deg,
    #FF5B04 240deg,
    #14b8a6 300deg,
    transparent 360deg);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.55;
  animation: holo-rotate 10s linear infinite;
}

/* ─── Section-level subtle scanline grid on the AI section ─── */
#ai-platform {
  position: relative;
  overflow: hidden;
}

#ai-platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 1px), color-mix(in srgb, var(--accent) 14%, transparent) 100%);
  background-size: 100% 24px;
  pointer-events: none;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ─── Showcase phone section: add neural circuit bg ─── */
.showcase {
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    transparent 55%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: showcase-pulse 8s ease-in-out infinite;
}

@keyframes showcase-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
}

.showcase__copy,
.showcase__visual {
  position: relative;
  z-index: 1;
}

/* ─── Stronger scroll-progress bar (override motion.css) ─── */
.scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #06b6d4, #7c3aed, #FF5B04);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* ─── Body shifts so fixed ticker doesn't cover header ─── */
.has-ai-ticker .site-header {
  top: 28px;
}

.ai-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
}

.has-ai-ticker body {
  padding-top: 28px;
}

.has-ai-ticker .scroll-progress {
  top: 28px;
}

/* ─── Stat blocks in trust: shine on hover ─── */
.roi-block strong .count-up {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── AI Studio output: terminal-style ─── */
.studio-output {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 95%, var(--accent)) 0%,
      var(--bg) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)) !important;
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--accent) 8%, transparent);
  position: relative;
}

.studio-output::before {
  content: "● ● ●";
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 8px;
  margin-bottom: var(--space-2);
  opacity: 0.55;
}

/* ─── Hero: stronger glow on the wallet stack ─── */
.hero-wallet-deck::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 30%, transparent) 0%,
    transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: deck-aura 6s ease-in-out infinite;
}

@keyframes deck-aura {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-wallet-deck {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wallet-deck::before,
  .phone-mock::after,
  .showcase::before { animation: none; }
}

/* ─── Floating hero side widgets (fills wide-screen gutters) ─── */
.hero-widgets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
}

@media (min-width: 1360px) {
  .hero-widgets { display: block; }
}

.hero-widget {
  position: absolute;
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow:
    0 14px 40px -10px color-mix(in srgb, var(--accent) 24%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.75rem;
  color: var(--text);
  width: 240px;
  animation: hw-float 8s ease-in-out infinite;
  will-change: transform;
  pointer-events: auto;
}

.hero-widget--left {
  top: 18%;
  left: clamp(16px, 3vw, 60px);
  animation-delay: 0s;
}

.hero-widget--left-bottom {
  bottom: 10%;
  left: clamp(16px, 4vw, 80px);
  width: 280px;
  animation-delay: 1.6s;
}

.hero-widget--right {
  top: 16%;
  right: clamp(16px, 3vw, 60px);
  animation-delay: 0.8s;
}

.hero-widget--right-bottom {
  bottom: 12%;
  right: clamp(16px, 4vw, 80px);
  width: 220px;
  animation-delay: 2.4s;
}

@keyframes hw-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-10px) rotate(0.6deg); }
}

/* Holographic frame around each widget */
.hero-widget::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--holo-angle, 0deg),
    transparent 0deg,
    color-mix(in srgb, var(--accent) 70%, transparent) 60deg,
    color-mix(in srgb, var(--ai-cyan) 70%, transparent) 120deg,
    transparent 180deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: holo-rotate 9s linear infinite;
  pointer-events: none;
}

.hero-widget__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-widget__head--mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin: -2px -2px 8px;
  padding-left: 4px;
}

.hero-widget__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-mint);
  box-shadow: 0 0 0 0 var(--ai-mint);
  animation: ai-ticker-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

.hero-widget__pulse--cyan { background: var(--ai-cyan); }
.hero-widget__pulse--violet { background: #a78bfa; }

.hero-widget__title {
  flex: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-widget__badge {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ai-mint) 18%, transparent);
  color: var(--ai-mint);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-widget__badge--cyan {
  background: color-mix(in srgb, var(--ai-cyan) 18%, transparent);
  color: var(--ai-cyan);
}

.hero-widget__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-widget__label {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hero-widget__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.hero-widget__bars i {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: bottom;
  animation: hw-bar 1.3s ease-in-out infinite;
}

.hero-widget__bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.hero-widget__bars i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.hero-widget__bars i:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.hero-widget__bars i:nth-child(4) { height: 60%; animation-delay: 0.36s; }
.hero-widget__bars i:nth-child(5) { height: 85%; animation-delay: 0.48s; }

@keyframes hw-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.hero-widget__thought {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.4;
  min-height: 32px;
}

.hero-widget__chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.hero-widget__chips span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.hero-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-widget__dot--r { background: #ef4444; }
.hero-widget__dot--y { background: #f59e0b; }
.hero-widget__dot--g { background: #22c55e; }

.hero-widget__file {
  margin-left: 6px;
  color: var(--text-muted);
}

.hero-widget__code {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre;
  overflow: hidden;
}

.hero-widget__code .c-kw { color: #c084fc; font-weight: 700; }
.hero-widget__code .c-fn { color: var(--ai-cyan); }
.hero-widget__code .c-var { color: var(--accent); }
.hero-widget__code .c-str { color: var(--ai-mint); }
.hero-widget__code .c-cm { color: var(--text-muted); font-style: italic; }

.hero-widget__metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.hero-widget__metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--ai-cyan), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-widget__metric-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-widget__metric-trend {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ai-mint);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.hero-widget__chart {
  display: block;
  width: 100%;
  height: 60px;
}

.hero-widget__chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: hw-chart-draw 3.5s ease-out forwards 0.4s;
}

@keyframes hw-chart-draw {
  to { stroke-dashoffset: 0; }
}

.hero-widget__graph {
  display: block;
  width: 100%;
  height: 110px;
}

.hero-widget__nodes circle {
  transform-origin: center;
  animation: hw-node-pulse 2.5s ease-in-out infinite;
}

.hero-widget__nodes circle:nth-child(odd) {
  animation-delay: 0.35s;
}
.hero-widget__nodes circle:nth-child(3n) {
  animation-delay: 0.75s;
}

@keyframes hw-node-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-widget,
  .hero-widget::after,
  .hero-widget__bars i,
  .hero-widget__chart-line,
  .hero-widget__nodes circle { animation: none; }
}

/* ─── Hero layout: shift wallet deck slightly so widgets breathe ─── */
@media (min-width: 1360px) {
  .hero__layout {
    gap: var(--space-7);
  }
}
