/* ============================================================
   Cute Animal Tech — $CAT
   Matrix-green, pixel headings, rounded cute body text.
   ============================================================ */

:root {
  --bg: #020603;
  --bg-2: #04100a;
  --panel: rgba(3, 12, 6, 0.82);
  --panel-solid: #06130b;
  --green: #00ff41;
  --green-soft: #5dff8a;
  --green-dim: #0d8f32;
  --green-deep: #063d17;
  --lime: #c6ff00;
  --text: #dcffe4;
  --muted: #8fc39c;
  --border: rgba(0, 255, 65, 0.28);
  --border-strong: rgba(0, 255, 65, 0.6);
  --glow: 0 0 18px rgba(0, 255, 65, 0.35), 0 0 60px rgba(0, 255, 65, 0.12);
  --font-head: 'Press Start 2P', 'Courier New', monospace;
  --font-body: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

/* ---------- background matrix rain ---------- */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- CA bar ---------- */
.ca-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(2, 6, 3, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
}
.ca-chip {
  font-family: var(--font-head);
  font-size: 11px;
  color: #000;
  background: var(--green);
  padding: 6px 8px;
  border-radius: 4px;
}
.ca-text { word-break: break-all; }
.ca-copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
.ca-copy:hover { background: var(--green); color: #000; }

/* ---------- layout ---------- */
section, footer { position: relative; z-index: 1; }
.section {
  padding: 96px 16px;
  background: linear-gradient(180deg, rgba(2, 6, 3, 0.86), rgba(2, 6, 3, 0.9));
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.in-view { opacity: 1; transform: none; }
.wrap { max-width: 1100px; margin: 0 auto; }
.center { text-align: center; }
.wrap.center .chart-box { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}
.eyebrow.center { text-align: center; }
h2 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
h3 { font-size: 24px; font-weight: 700; color: #fff; }
.lead { font-size: 20px; color: var(--muted); max-width: 760px; margin-bottom: 36px; }
.lead.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--green);
  background: rgba(0, 20, 6, 0.75);
  border: 3px solid var(--green);
  border-radius: 10px;
  padding: 12px 26px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 255, 65, 0);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-soft); }
.btn-big { font-size: 20px; padding: 14px 30px; }
.btn-small { font-size: 14px; padding: 6px 12px; border-width: 2px; border-radius: 6px; }

/* ---------- hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.pfp-frame {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  border: 4px solid var(--green);
  border-radius: 18px;
  background: #000;
  overflow: hidden;
  box-shadow: var(--glow), inset 0 0 0 2px #000;
  animation: breathe 4s ease-in-out infinite;
}
.pfp-frame img { width: 100%; height: 100%; object-fit: cover; }
.pfp-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 4px);
}
.pfp-scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  top: -60px;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 65, 0.22), transparent);
  animation: scan 3.6s linear infinite;
}
.pfp-tag {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 3px 8px;
}
.hero-title { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-title-small {
  font-family: var(--font-head);
  font-size: clamp(12px, 2.2vw, 18px);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 3px 3px 0 #000, 0 0 14px rgba(0, 255, 65, 0.5);
}
.hero-ticker {
  font-family: var(--font-head);
  font-size: clamp(42px, 9vw, 76px);
  color: var(--green);
  text-shadow: 4px 4px 0 #000, 0 0 24px rgba(0, 255, 65, 0.8), 0 0 70px rgba(0, 255, 65, 0.35);
}
.hero-tagline {
  margin-top: 18px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 2px 10px #000;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.scroll-hint {
  margin-top: 44px;
  color: var(--green);
  text-decoration: none;
  font-size: 22px;
  animation: bob 1.6s ease-in-out infinite;
}
.hero-paws { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.paw {
  position: absolute;
  font-size: 56px;
  opacity: 0.22;
  filter: hue-rotate(80deg) saturate(2) drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
  animation: floaty 7s ease-in-out infinite;
}
.paw.p1 { left: 6%; top: 18%; }
.paw.p2 { right: 8%; top: 24%; animation-delay: -2s; font-size: 70px; }
.paw.p3 { left: 12%; bottom: 14%; animation-delay: -4s; font-size: 44px; }
.paw.p4 { right: 14%; bottom: 10%; animation-delay: -1s; }

/* ---------- chart ---------- */
.chart-box {
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--green);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-box iframe { width: 100%; height: 100%; border: 0; }
.chart-placeholder { font-family: var(--font-mono); color: var(--green); }
.chart-placeholder p { font-family: var(--font-body); font-size: 24px; font-weight: 700; color: #fff; margin: 8px 0 4px; }
.chart-placeholder small { color: var(--muted); }
.blink { font-size: 28px; animation: blink 1s steps(2) infinite; }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.story-text p { color: var(--text); }
.steps { list-style: none; padding: 0; margin: 28px 0; display: flex; gap: 14px; flex-wrap: wrap; }
.steps li {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.steps li span { font-family: var(--font-head); font-size: 11px; color: var(--green); }
.quote-card {
  background: #000;
  border: 3px solid var(--green);
  border-radius: 18px;
  padding: 40px 32px;
  transform: rotate(-2deg);
  box-shadow: var(--glow);
}
.quote-card p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.8;
  color: var(--green);
  text-shadow: 0 0 14px rgba(0, 255, 65, 0.7);
  text-align: center;
}

/* ---------- levels ---------- */
.levels { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.level {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  padding: 22px 26px;
}
.level-num { font-family: var(--font-head); font-size: 10px; letter-spacing: 1.5px; color: var(--green); display: block; margin-bottom: 8px; }
.level h3 { font-size: 22px; }
.level p { margin: 0; color: var(--text); }
.level-cap {
  font-family: var(--font-head);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.6);
  white-space: nowrap;
}
.level-final { border-color: var(--lime); border-left-color: var(--lime); box-shadow: 0 0 24px rgba(198, 255, 0, 0.18); }
.level-final .level-num, .level-final .level-cap { color: var(--lime); text-shadow: 0 0 12px rgba(198, 255, 0, 0.7); }

/* ---------- cards ---------- */
.cards, .links { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.links { grid-template-columns: repeat(4, 1fr); }
.card, .link-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}
.card:hover, .link-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--glow); }
.card-icon, .link-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.link-icon { font-weight: 700; color: var(--green); }
.card h3, .link-card h3 { font-size: 20px; margin-bottom: 8px; }
.card p, .link-card p { margin: 0; color: var(--muted); }
.link-cta { display: block; margin-top: 14px; font-family: var(--font-mono); color: var(--green); }

/* ---------- footer ---------- */
footer {
  padding: 70px 16px 40px;
  text-align: center;
  background: #000;
  border-top: 2px solid var(--green);
}
.footer-pfp { margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--green); box-shadow: var(--glow); }
.footer-tag { font-weight: 700; font-size: 20px; color: #fff; }
.footer-fine { font-family: var(--font-mono); font-size: 11px; color: var(--muted); max-width: 720px; margin: 0 auto 10px; letter-spacing: 0.5px; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--green-dim); margin: 0; }

/* ---------- animations ---------- */
@keyframes scan { 0% { top: -60px; } 100% { top: 110%; } }
@keyframes breathe { 0%, 100% { box-shadow: var(--glow); } 50% { box-shadow: 0 0 28px rgba(0, 255, 65, 0.55), 0 0 90px rgba(0, 255, 65, 0.22); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes glitch {
  0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
  50% { transform: translate(-6px, 3px) skewX(4deg); filter: hue-rotate(90deg) contrast(1.6); }
  100% { transform: translate(5px, -3px); filter: hue-rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .section { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .links { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .quote-card { transform: rotate(-1deg); max-width: 520px; margin: 0 auto; }
  .level { grid-template-columns: 1fr; gap: 10px; }
  .level-cap { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding: 72px 16px; }
  .links { grid-template-columns: 1fr; }
  .traits { grid-template-columns: 1fr 1fr; }
  .btn-big { width: 100%; }
  .paw { display: none; }
}
