/* =============================================================
   AeroPong — high-tech AI aesthetic
   palette: orange #ff7a18 · cyan #22d3ee · violet #a855f7 · pink #ec4899
   ============================================================= */

:root {
  --bg-0: #050509;
  --bg-1: #0a0a12;
  --bg-2: #11111c;
  --ink-0: #f5f5fa;
  --ink-1: #d4d4dc;
  --ink-2: #9ca3af;
  --ink-3: #6b7280;
  --ink-4: #3f3f4a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.05);

  --c-orange: #ff7a18;
  --c-orange-2: #ffb347;
  --c-cyan: #22d3ee;
  --c-cyan-2: #67e8f9;
  --c-violet: #a855f7;
  --c-violet-2: #c084fc;
  --c-pink: #ec4899;
  --c-emerald: #34d399;

  --grad-aurora: linear-gradient(115deg, #ff7a18 0%, #ec4899 32%, #a855f7 62%, #22d3ee 100%);
  --grad-aurora-soft: linear-gradient(115deg, rgba(255,122,24,0.85), rgba(236,72,153,0.7) 35%, rgba(168,85,247,0.75) 65%, rgba(34,211,238,0.85));
  --grad-cyan-violet: linear-gradient(135deg, #22d3ee, #a855f7);
  --grad-orange-pink: linear-gradient(135deg, #ff7a18, #ec4899);

  --shadow-glow-orange: 0 0 0 1px rgba(255, 122, 24, 0.45), 0 10px 40px -10px rgba(255, 122, 24, 0.6);
  --shadow-glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 10px 40px -10px rgba(34, 211, 238, 0.55);
  --shadow-glow-violet: 0 0 0 1px rgba(168, 85, 247, 0.4), 0 10px 40px -10px rgba(168, 85, 247, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'tnum'; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ===== body background mesh ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(50% 50% at 85% 20%, rgba(34, 211, 238, 0.12), transparent 65%),
    radial-gradient(60% 60% at 50% 100%, rgba(168, 85, 247, 0.13), transparent 70%),
    linear-gradient(180deg, #06060c 0%, #08080f 60%, #050509 100%);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  z-index: 0;
}

.app { position: relative; z-index: 1; }

/* ===== reusable ===== */
.glass {
  background: linear-gradient(180deg, rgba(20,20,28,0.65), rgba(12,12,18,0.55));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(0, 0, 0, 0.5);
}

.glass-bright {
  background: linear-gradient(180deg, rgba(28,28,38,0.75), rgba(14,14,22,0.6));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

/* Aurora gradient text */
.aurora-text {
  background: var(--grad-aurora);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aurora-shift 8s linear infinite;
}
@keyframes aurora-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.metallic {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 35%, #a8a8b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Primary CTA — premium aurora pill ===== */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  letter-spacing: -0.005em;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%, rgba(0,0,0,0.18) 100%),
    linear-gradient(110deg, #ff7a18 0%, #ec4899 45%, #a855f7 100%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px -8px rgba(255, 122, 24, 0.55),
    0 0 0 4px rgba(255, 122, 24, 0);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease,
    background-position 600ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 200ms ease;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}
.btn-cta > * { position: relative; z-index: 2; }
.btn-cta:hover {
  transform: translateY(-1px);
  background-position: 0 0, 100% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 36px -8px rgba(255, 122, 24, 0.75),
    0 0 60px -8px rgba(236, 72, 153, 0.55),
    0 0 0 6px rgba(255, 122, 24, 0.06);
}
.btn-cta:hover::before { transform: translateX(130%); }
.btn-cta:active {
  transform: translateY(0.5px) scale(0.985);
  filter: brightness(0.95);
}
.btn-cta:focus-visible {
  outline: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(255, 122, 24, 0.35),
    0 12px 32px -8px rgba(255, 122, 24, 0.65);
}
.btn-cta:disabled, .btn-cta[aria-disabled="true"] {
  opacity: 0.45;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

/* ===== Ghost button — premium outlined ===== */
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(0, 0, 0, 0.3);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 250ms ease;
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 122, 24, 0.18), rgba(168, 85, 247, 0.18) 50%, rgba(34, 211, 238, 0.18));
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
  z-index: 0;
}
.btn-ghost > * { position: relative; z-index: 1; }
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(168, 85, 247, 0.25),
    0 12px 32px -10px rgba(168, 85, 247, 0.35);
}
.btn-ghost:hover::before { opacity: 1; }
.btn-ghost:active { transform: translateY(0) scale(0.985); }
.btn-ghost:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.3);
}

/* ===== Animated mesh blobs ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.blob-orange { background: radial-gradient(circle, #ff7a18, transparent 70%); }
.blob-cyan { background: radial-gradient(circle, #22d3ee, transparent 70%); }
.blob-violet { background: radial-gradient(circle, #a855f7, transparent 70%); }
.blob-pink { background: radial-gradient(circle, #ec4899, transparent 70%); }

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.15); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 50px) scale(0.95); }
}
.float-1 { animation: float-1 14s ease-in-out infinite; }
.float-2 { animation: float-2 18s ease-in-out infinite; }
.float-3 { animation: float-3 16s ease-in-out infinite; }

/* ===== Aurora animated border (gradient ring) ===== */
.aurora-border {
  position: relative;
  border-radius: 16px;
  isolation: isolate;
}
.aurora-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-aurora);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aurora-shift 6s linear infinite;
  z-index: -1;
}

/* ===== chips / tags ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.9);
  animation: dot-pulse 2s ease-in-out infinite;
}
.chip-cyan .dot { background: var(--c-cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.9); }
.chip-violet .dot { background: var(--c-violet); box-shadow: 0 0 10px rgba(168, 85, 247, 0.9); }
@keyframes dot-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ===== scan line ===== */
@keyframes scan-line {
  0% { transform: translateY(-100%); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateY(20000%); opacity: 0; }
}
.scan-line {
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  animation: scan-line 4s linear infinite;
}

/* ===== utilities ===== */
.fade-up { animation: fade-up 0.7s ease-out both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-grid-fade {
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

/* glowing soft halo */
.halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 300ms ease;
}
.halo-target:hover .halo { opacity: 1; }

/* progress bars */
.bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad-aurora);
  background-size: 200% 100%;
  animation: aurora-shift 4s linear infinite;
  transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.5);
}
.bar-fill.cyan { background: linear-gradient(90deg, var(--c-cyan), var(--c-violet)); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6); }
.bar-fill.violet { background: linear-gradient(90deg, var(--c-violet), var(--c-pink)); box-shadow: 0 0 10px rgba(168, 85, 247, 0.6); }

/* ===== Logo glow wrapper ===== */
.aeropong-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.45)) drop-shadow(0 0 16px rgba(34, 211, 238, 0.35));
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: logo-entry 1100ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.aeropong-logo svg { animation: logo-svg-intro 1100ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.aeropong-logo::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: logo-halo 4s ease-in-out infinite 1100ms, logo-burst 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logo-entry {
  0%   { opacity: 0; transform: scale(0.35) rotate(-180deg); filter: drop-shadow(0 0 0 transparent) blur(6px); }
  55%  { opacity: 1; transform: scale(1.12) rotate(12deg); filter: drop-shadow(0 0 18px rgba(255,122,24,0.7)) drop-shadow(0 0 24px rgba(34,211,238,0.5)) blur(0); }
  78%  { transform: scale(0.96) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(255,122,24,0.45)) drop-shadow(0 0 16px rgba(34,211,238,0.35)); }
}

@keyframes logo-svg-intro {
  0%, 30% { opacity: 0; transform: scale(0.6); }
  100%    { opacity: 1; transform: scale(1); }
}

@keyframes logo-burst {
  0%   { opacity: 0; transform: scale(0.4); }
  50%  { opacity: 1; transform: scale(1.8); }
  100% { opacity: 0.55; transform: scale(1); }
}

@keyframes logo-halo {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.nav-logo:hover .aeropong-logo {
  transform: scale(1.05) rotate(-6deg);
}

/* ===== navigation ===== */
.nav-root {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8, 8, 14, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nav-logo-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad-aurora);
  background-size: 200% 200%;
  animation: aurora-shift 5s linear infinite;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 6px 24px -4px rgba(255, 122, 24, 0.55);
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: rgba(10, 10, 14, 0.85);
}
.nav-logo-mark .core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-aurora);
  background-size: 200% 200%;
  animation: aurora-shift 4s linear infinite;
  z-index: 1;
  box-shadow: 0 0 12px rgba(255, 122, 24, 0.8);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 180ms ease;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

/* ===== sections ===== */
.section {
  position: relative;
  padding: 100px 28px;
  border-bottom: 1px solid var(--line-2);
}
.container { max-width: 1280px; margin: 0 auto; }

/* spec node hover */
.spec-node {
  cursor: pointer;
  transition: all 200ms ease;
}
.spec-node:hover { filter: brightness(1.3); }

/* persona card */
.persona-card {
  position: relative;
  border-radius: 16px;
  padding: 22px;
  text-align: left;
  background: linear-gradient(180deg, rgba(18,18,28,0.55), rgba(10,10,16,0.4));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 250ms ease;
  overflow: hidden;
}
.persona-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.persona-card.active {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(28,18,28,0.7), rgba(14,12,22,0.6));
  box-shadow:
    0 0 0 1px rgba(255, 122, 24, 0.55),
    0 0 60px -16px rgba(255, 122, 24, 0.5),
    0 0 80px -20px rgba(168, 85, 247, 0.4);
}
.persona-card.active::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 24, 0.35), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.3), transparent 55%);
  pointer-events: none;
  filter: blur(20px);
}

/* dashboard window */
.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}
.win-light { width: 11px; height: 11px; border-radius: 50%; }

/* chat message */
.chat-msg {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 92%;
  animation: fade-up 0.4s ease-out both;
}
.chat-msg.user {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-left: auto;
}
.chat-msg.ai {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--grad-aurora);
  background-size: 200% 200%;
  animation: aurora-shift 5s linear infinite;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #050505;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 16px -4px rgba(255, 122, 24, 0.5);
}
.chat-avatar.user {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-1);
}

.typing-dots span {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-cyan);
  margin-right: 3px;
  animation: dot-bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* row hover gradient */
.matrix-row {
  position: relative;
  transition: background 200ms ease;
}
.matrix-row:hover {
  background: linear-gradient(90deg, transparent, rgba(255, 122, 24, 0.04), transparent);
}

/* checkbox */
.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 200ms ease;
}
.check-box.checked {
  background: var(--grad-orange-pink);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.5), 0 0 16px rgba(255, 122, 24, 0.5);
}

/* live ticker */
.ticker {
  display: flex;
  gap: 32px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item .pill {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

/* footer */
.footer {
  padding: 60px 28px 32px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.tag-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tag-line .bar {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-orange));
}

/* numeric stat tile */
.stat-tile {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.stat-tile .v {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #a8a8b3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-tile .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* sparkline */
.sparkline {
  width: 100%;
  height: 80px;
}

/* input ring */
.input-ring {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 8px 14px;
  transition: all 200ms ease;
}
.input-ring:focus-within {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08), 0 0 24px -8px rgba(34, 211, 238, 0.5);
}
.input-ring input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink-0);
  font-family: inherit;
  font-size: 13.5px;
  padding: 6px 0;
}
.input-ring input::placeholder { color: var(--ink-3); }

/* typing cursor */
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* invalid-input shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* big logo pop for boot splash */
@keyframes boot-logo-pop {
  0%   { opacity: 0; transform: scale(0.2) rotate(-360deg); filter: blur(20px); }
  60%  { opacity: 1; transform: scale(1.15) rotate(20deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
}
.pulse-ring { animation: pulse-ring 2s ease-out infinite; }

/* dots grid bg */
.bg-dots {
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* small icon button */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-1);
  cursor: pointer;
  transition: all 180ms ease;
}
.icon-btn:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

/* gradient divider */
.grad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 24px 0;
}

/* selected segmented */
.seg {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 4px;
}
.seg button {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 180ms ease;
}
.seg button:hover { color: #fff; }
.seg button.active {
  background: var(--grad-orange-pink);
  color: #050505;
  box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.55), 0 4px 16px -4px rgba(255, 122, 24, 0.5);
}
