/* ============================================================================
   CATALYST — green-on-black terminal theme
   Tuned to the neon-wireframe cat logo: vivid emerald-green glow on true black.
   ========================================================================== */

:root {
  --black: #000000;
  --panel: #04070500;
  --panel-solid: #050a07;
  --panel-line: rgba(41, 245, 106, 0.18);

  --neon: #29f56a; /* primary neon green (matches the logo) */
  --neon-bright: #7dffb0; /* highlight / core glow */
  --neon-dim: #0f7a3a; /* muted green for secondary text */
  --neon-deep: #063a1c; /* darkest usable green */
  --text: #c9ffdd; /* soft green-white body text */
  --muted: #4f9c6e; /* dim labels */

  --glow-s: 0 0 4px rgba(41, 245, 106, 0.7);
  --glow-m: 0 0 10px rgba(41, 245, 106, 0.55), 0 0 24px rgba(41, 245, 106, 0.25);
  --glow-l: 0 0 18px rgba(41, 245, 106, 0.6), 0 0 60px rgba(41, 245, 106, 0.3);

  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display: 'Share Tech Mono', var(--mono);

  --maxw: 1080px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--neon);
  color: #001a0c;
}

a {
  color: var(--neon);
  text-decoration: none;
  transition: color 0.15s, text-shadow 0.15s;
}
a:hover {
  color: var(--neon-bright);
  text-shadow: var(--glow-s);
}

/* ------------------------------ CRT overlays ----------------------------- */
.crt-scanlines,
.crt-vignette,
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.crt-scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
  opacity: 0.5;
  animation: flicker 5s infinite;
}
.crt-vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.85) 100%);
}
.grid-bg {
  z-index: -1;
  background-image: linear-gradient(rgba(41, 245, 106, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 245, 106, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 0.5; }
  97% { opacity: 0.42; }
  98% { opacity: 0.55; }
  99% { opacity: 0.46; }
}

.blink {
  animation: blink 1.1s step-end infinite;
  color: var(--neon);
}
@keyframes blink {
  50% { opacity: 0; }
}

.prompt {
  color: var(--neon);
  text-shadow: var(--glow-s);
  font-weight: 700;
}

/* --------------------------------- NAV ----------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  filter: drop-shadow(var(--glow-s));
}
.nav__wordmark {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow: var(--glow-s);
}
.nav__ticker {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--panel-line);
  padding: 2px 8px;
  border-radius: 4px;
}
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav__links a {
  color: var(--text);
  opacity: 0.85;
}
.nav__links a:hover {
  color: var(--neon);
  opacity: 1;
}
.nav__socials {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: fill 0.15s, filter 0.15s;
}
.nav__socials a:hover .social-icon,
.footer__socials a:hover .social-icon {
  fill: var(--neon);
  filter: drop-shadow(var(--glow-s));
}

/* --------------------------------- HERO ---------------------------------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) 20px 60px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  height: 560px;
  background: radial-gradient(circle, rgba(41, 245, 106, 0.22) 0%, transparent 62%);
  filter: blur(20px);
  z-index: -1;
}
.hero__logo {
  width: clamp(180px, 34vw, 300px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(var(--glow-l));
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(41, 245, 106, 0.5)) drop-shadow(0 0 60px rgba(41, 245, 106, 0.22)); }
  50% { filter: drop-shadow(0 0 26px rgba(41, 245, 106, 0.75)) drop-shadow(0 0 90px rgba(41, 245, 106, 0.4)); }
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(48px, 12vw, 104px);
  letter-spacing: clamp(4px, 2vw, 16px);
  margin: 22px 0 6px;
  color: var(--neon);
  text-shadow: var(--glow-m);
}
.hero__tagline {
  font-size: clamp(15px, 2.4vw, 20px);
  color: var(--text);
  margin: 0 0 14px;
}
.hero__sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 15px;
}
.hero__ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  margin-bottom: 28px;
  max-width: 100%;
}
.hero__ca-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.hero__ca code {
  color: var(--neon-bright);
  font-size: 13px;
  word-break: break-all;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__disclaimer {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.8;
}

/* -------------------------------- BUTTONS -------------------------------- */
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--neon);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.btn--solid {
  background: var(--neon);
  color: #00150a;
  box-shadow: var(--glow-m);
}
.btn--solid:hover {
  background: var(--neon-bright);
  box-shadow: var(--glow-l);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--neon);
}
.btn--outline:hover {
  background: rgba(41, 245, 106, 0.1);
  box-shadow: var(--glow-s);
}
.btn--ghost {
  border-color: var(--panel-line);
  background: transparent;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 12px;
}
.btn--ghost:hover {
  color: var(--neon);
  border-color: var(--neon);
}

/* ------------------------------- SECTIONS -------------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) 20px;
}
.section__head {
  margin-bottom: 34px;
}
.section__title {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--neon);
  letter-spacing: 2px;
  margin: 0 0 10px;
  text-shadow: var(--glow-s);
}
.section__desc {
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  font-size: 15px;
}

/* ------------------------------- TERMINAL -------------------------------- */
.terminal {
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(5, 12, 8, 0.9), rgba(0, 0, 0, 0.9));
  box-shadow: 0 0 40px rgba(41, 245, 106, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(41, 245, 106, 0.05);
  border-bottom: 1px solid var(--panel-line);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot--r { background: #ff5f56; }
.dot--y { background: #ffbd2e; }
.dot--g { background: #27c93f; }
.terminal__title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}
.terminal__status {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--neon);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow-s);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.terminal__body {
  padding: 18px;
  height: 440px;
  overflow-y: auto;
  font-size: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-deep) transparent;
}
.terminal__body::-webkit-scrollbar { width: 8px; }
.terminal__body::-webkit-scrollbar-thumb {
  background: var(--neon-deep);
  border-radius: 4px;
}

/* Feed entries */
.feed__loading {
  color: var(--muted);
}
.feed__entry {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(41, 245, 106, 0.12);
  animation: fadein 0.5s ease;
}
.feed__entry:last-child { border-bottom: none; }
.feed__meta {
  color: var(--neon-dim);
  font-size: 12px;
  margin-bottom: 4px;
}
.feed__meta .who { color: var(--neon); text-shadow: var(--glow-s); }
.feed__text { color: var(--text); }
.feed__cursor::after {
  content: '▋';
  color: var(--neon);
  animation: blink 1s step-end infinite;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------- CHAT ---------------------------------- */
.terminal--chat .terminal__body { height: 380px; }
.chat__line {
  margin-bottom: 14px;
  animation: fadein 0.4s ease;
}
.chat__who {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 1px 7px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: top;
}
.chat__line--cata .chat__who {
  color: #00150a;
  background: var(--neon);
  box-shadow: var(--glow-s);
}
.chat__line--user .chat__who {
  color: var(--neon);
  border: 1px solid var(--neon-dim);
}
.chat__line--user .chat__text { color: var(--muted); }
.chat__line--cata .chat__text { color: var(--text); }
.chat__text { display: inline; }
.chat__typing .chat__text::after {
  content: '▋';
  animation: blink 1s step-end infinite;
}
.chat__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--panel-line);
  background: rgba(41, 245, 106, 0.04);
}
.chat__prompt {
  color: var(--neon);
  font-size: 13px;
  white-space: nowrap;
  text-shadow: var(--glow-s);
}
.chat__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  caret-color: var(--neon);
  min-width: 0;
}
.chat__input::placeholder { color: var(--neon-deep); }
.btn--send { padding: 8px 16px; }
.chat__error { color: #ff7b6b; }

/* ------------------------------ TOKENOMICS ------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel-solid);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--neon-dim);
  box-shadow: var(--glow-s);
  transform: translateY(-2px);
}
.card__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card__value {
  font-family: var(--display);
  font-size: 26px;
  color: var(--neon);
  margin: 8px 0 6px;
  text-shadow: var(--glow-s);
  word-break: break-word;
}
.card__note {
  font-size: 12px;
  color: var(--muted);
}
.tok-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------- ABOUT ---------------------------------- */
.about {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.about__logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: drop-shadow(var(--glow-m));
  flex-shrink: 0;
}
.about__text {
  flex: 1;
  min-width: 280px;
}
.about__text p { margin: 0 0 16px; }

/* -------------------------------- FOOTER --------------------------------- */
.footer {
  border-top: 1px solid var(--panel-line);
  padding: 44px 20px 60px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  color: var(--neon);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  filter: drop-shadow(var(--glow-s));
}
.footer__socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}
.footer__disclaimer {
  max-width: 700px;
  margin: 0 auto 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.footer__copy {
  font-size: 12px;
  color: var(--neon-deep);
}

/* ------------------------------ RESPONSIVE ------------------------------- */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { gap: 12px; }
  .about { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
