/* ================================================
   $VICTIM — VICTIM MAXXING
   Dark, gritty, red-accented memecoin theme
   ================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #06080c;
  --bg-card:    #0c1018;
  --bg-card2:   #111722;
  --surface:    #161d2a;
  --border:     #1e2738;
  --text:       #c8cdd6;
  --text-dim:   #636e82;
  --heading:    #eef1f6;
  --accent:     #ff3333;
  --accent-glow:#ff333366;
  --green:      #22c55e;
  --red:        #ff3333;
  --pill-green: #34d399;
  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Space Grotesk', system-ui, sans-serif;
  --mono:       'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

img { max-width: 100%; display: block; }

/* ---------- FALLING PILLS CANVAS ---------- */
#pillCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(6, 8, 12, .72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -.02em;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--text-dim); font-size: .88rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--heading); opacity: 1; }

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .82rem;
  transition: transform .15s, box-shadow .2s;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 0 20px var(--accent-glow); opacity: 1 !important; }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}
.mobile-drawer a { color: var(--text-dim); font-size: .95rem; font-weight: 500; }
.mobile-drawer.open { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 7rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(120px);
  opacity: .3;
  pointer-events: none;
  z-index: -1;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  background: rgba(255,51,51,.1);
  border: 1px solid rgba(255,51,51,.25);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: .92;
  color: var(--heading);
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .92rem;
  padding: .75rem 1.6rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--accent-glow); color: #fff; opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--heading); opacity: 1; }

.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; border-radius: 12px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

#copyCA { font-family: var(--mono); font-size: .72rem; max-width: 100%; overflow: hidden; }

/* Hero price ticker */
.hero-price-ticker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .78rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1.2rem;
  max-width: 100%;
  overflow: hidden;
}

.ticker-label { color: var(--text-dim); }
.ticker-value { color: var(--heading); font-weight: 600; }
.ticker-divider { color: var(--border); }

/* Hero image — multi-shape blended frame */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 420px;
  height: 420px;
  cursor: pointer;
  user-select: none;
}

.image-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at 40% 50%, rgba(255,51,51,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 70% 30%, rgba(255,80,80,.12) 0%, transparent 50%);
  filter: blur(50px);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.06); }
}

/* The composite frame container */
.image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Decorative shards — geometric shapes around the image */
.frame-shard {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Top-left angular shard */
.frame-shard-1 {
  top: -8px;
  left: -8px;
  width: 70px;
  height: 70px;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  border-radius: 4px 0 0 0;
  opacity: .7;
}

/* Top-right bracket */
.frame-shard-2 {
  top: -8px;
  right: -8px;
  width: 70px;
  height: 70px;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  border-radius: 0 4px 0 0;
  opacity: .5;
}

/* Bottom-right angular shard */
.frame-shard-3 {
  bottom: -8px;
  right: -8px;
  width: 90px;
  height: 90px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 4px 0;
  opacity: .6;
}

/* Bottom-left bracket */
.frame-shard-4 {
  bottom: -8px;
  left: -8px;
  width: 50px;
  height: 50px;
  border-left: 2px solid rgba(255,51,51,.4);
  border-bottom: 2px solid rgba(255,51,51,.4);
  border-radius: 0 0 0 4px;
}

/* Mid-right accent tick */
.frame-shard-5 {
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .45;
}

/* Inner border — the main holding shape */
.frame-border {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--border);
  border-radius: 22px 8px 22px 8px;
  pointer-events: none;
  z-index: 1;
  transition: border-color .3s;
}

.hero-image-wrap:hover .frame-border {
  border-color: rgba(255,51,51,.35);
}

/* The actual image */
.hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Asymmetric clip-path: organic, multishaped edge */
  clip-path: polygon(
    4% 0%,
    96% 0%,
    100% 4%,
    100% 70%,
    96% 100%,
    30% 100%,
    0% 96%,
    0% 20%
  );
  border-radius: 22px 8px 22px 8px;
  filter: drop-shadow(0 0 30px rgba(255,51,51,.2));
  z-index: 2;
}

/* Gradient bleed edges — fades image into page bg */
.image-frame::before,
.image-frame::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

/* Bottom bleed */
.image-frame::before {
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  border-radius: 0 0 22px 8px;
}

/* Left bleed */
.image-frame::after {
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  border-radius: 22px 0 0 8px;
}

.image-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .25rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: .5;
  transition: opacity .3s;
  z-index: 4;
}

.hero-image-wrap:hover .image-badge { opacity: 1; }

/* Hover: shards subtly shift */
.hero-image-wrap:hover .frame-shard-1 { transform: translate(-3px, -3px); }
.hero-image-wrap:hover .frame-shard-2 { transform: translate(3px, -3px); }
.hero-image-wrap:hover .frame-shard-3 { transform: translate(3px, 3px); }
.hero-image-wrap:hover .frame-shard-4 { transform: translate(-3px, 3px); }
.hero-image-wrap:hover .frame-shard-5 { opacity: .8; height: 80px; }

.frame-shard {
  transition: transform .4s ease, opacity .4s ease, height .4s ease;
}

@media (max-width: 900px) {
  .hero { flex-direction: column-reverse; text-align: center; gap: 2rem; padding-top: 6rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-content { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { width: 260px; height: 260px; max-width: 70vw; }
  .frame-shard-5 { display: none; }
  .frame-shard-1, .frame-shard-2 { width: 45px; height: 45px; }
  .frame-shard-3 { width: 55px; height: 55px; }
  .frame-shard-4 { width: 35px; height: 35px; }
  .image-frame::after { width: 25px; }
  .image-frame::before { height: 50px; }
}

/* ---------- CHART CRASH BURST (click effect) ---------- */
.spawned-crash {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  animation: crashBurst 2.4s cubic-bezier(.12,.62,.25,1) forwards;
}

@keyframes crashBurst {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(.5); }
  8%   { opacity: 1; transform: translate(calc(var(--dx) * .15), calc(var(--dy) * .15)) rotate(calc(var(--rot) * .03)) scale(1.25); }
  30%  { opacity: 1; transform: translate(calc(var(--dx) * .6), calc(var(--dy) * .6)) rotate(calc(var(--rot) * .2)) scale(1.1); }
  65%  { opacity: .7; transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * .55)) scale(.95); }
  100% { opacity: 0; transform: translate(var(--dx2), var(--dy2)) rotate(var(--rot)) scale(.4); }
}

/* ---------- MARQUEE ---------- */
.marquee-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--accent);
  padding: .55rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
  flex-shrink: 0;
}

.marquee-track span::after {
  content: " \2022";
  margin-left: 2rem;
  opacity: .4;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  width: 100%;
}

.section-dark { background: var(--bg-card); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: .88rem;
  margin-bottom: 3rem;
}

.accent { color: var(--accent); }

/* ---------- ABOUT GRID ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color .3s, transform .3s;
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.about-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.about-card h3 { color: var(--heading); font-size: 1.15rem; margin-bottom: .5rem; }
.about-card p  { color: var(--text-dim); font-size: .9rem; line-height: 1.65; }

/* ---------- STATS GRID ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color .3s, box-shadow .3s;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255,51,51,.08);
}

.stat-label {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
}

.stats-updated {
  text-align: center;
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-family: var(--mono);
}

/* ---------- STEPS / HOW TO BUY ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem 2rem;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .12;
  position: absolute;
  top: .5rem;
  right: 1rem;
  line-height: 1;
}

.step-card h3 { color: var(--heading); font-size: 1.1rem; margin-bottom: .5rem; }
.step-card p  { color: var(--text-dim); font-size: .88rem; line-height: 1.65; }

/* ---------- CTA SECTION ---------- */
.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0a14 100%);
  text-align: center;
  padding: 6rem 2rem;
}

.cta-inner { max-width: 640px; }

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .75rem;
  letter-spacing: -.03em;
}

.cta-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- LOSS SIMULATOR ---------- */
.sim-container {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.sim-input-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  margin-bottom: 1.5rem;
  transition: border-color .3s;
}

.sim-input-row:focus-within { border-color: var(--accent); }

.sim-dollar {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.sim-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
  min-width: 0;
}

.sim-input::placeholder { color: var(--text-dim); opacity: .4; }
.sim-input::-webkit-outer-spin-button,
.sim-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-input[type=number] { -moz-appearance: textfield; }

.sim-btn { flex-shrink: 0; }

.sim-display {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  overflow: hidden;
  min-height: 200px;
}

.sim-current {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.25rem;
  transition: color .15s;
}

.sim-current.bleeding { color: var(--accent); }

.sim-bar-track {
  position: relative;
  height: 28px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.sim-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff3333, #ff1a1a, #cc0000);
  border-radius: 999px;
  transition: width .1s linear;
  position: relative;
}

.sim-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,.15));
  border-radius: 999px;
}

.sim-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
}

.sim-tears {
  font-size: 1.8rem;
  min-height: 2.2rem;
  margin-bottom: .5rem;
  letter-spacing: .15em;
}

.sim-verdict {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--text-dim);
  min-height: 1.4rem;
}

.sim-verdict .verdict-red {
  color: var(--accent);
  font-weight: 700;
}

/* Screen shake */
@keyframes simShake {
  0%, 100% { transform: translate(0); }
  10%      { transform: translate(-4px, 2px); }
  20%      { transform: translate(3px, -3px); }
  30%      { transform: translate(-2px, 4px); }
  40%      { transform: translate(4px, -1px); }
  50%      { transform: translate(-3px, 3px); }
  60%      { transform: translate(2px, -4px); }
  70%      { transform: translate(-4px, 1px); }
  80%      { transform: translate(3px, 2px); }
  90%      { transform: translate(-2px, -3px); }
}

.sim-display.shaking {
  animation: simShake .4s ease-in-out;
}

/* Red flash overlay */
.sim-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,0,0,.25) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  border-radius: var(--radius-lg);
}

.sim-flash.visible { opacity: 1; }

/* ---------- COPE TERMINAL ---------- */
.terminal-window {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0d12;
  box-shadow: 0 20px 80px rgba(0,0,0,.5), 0 0 60px rgba(255,51,51,.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  background: #12161e;
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  height: 380px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.terminal-line {
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.75;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-boot { color: #4a5568; }

.terminal-line .t-time  { color: #4a5568; }
.terminal-line .t-user  { color: var(--accent); font-weight: 600; }
.terminal-line .t-msg   { color: var(--text); }
.terminal-line .t-cope  { color: var(--pill-green); }
.terminal-line .t-doom  { color: var(--accent); }

/* Typing cursor blink */
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Terminal scrollbar */
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: #1e2738; border-radius: 4px; }

/* ---------- FOOTER (minimal) ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--heading);
  font-family: var(--mono);
  font-size: .8rem;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- SELECTION ---------- */
::selection { background: var(--accent); color: #fff; }

/* ---------- STAT PULSE ANIMATION ---------- */
@keyframes statPulse {
  0%   { color: var(--accent); }
  100% { color: var(--heading); }
}

.stat-value.updated {
  animation: statPulse .6s ease-out;
}

/* ---------- 3D HERO TILT ---------- */
.hero-image-wrap {
  transform-style: preserve-3d;
  perspective: 800px;
}

.image-frame {
  transition: transform .1s ease-out;
  transform-style: preserve-3d;
}

/* ---------- RESPONSIVE TOUCH-UPS ---------- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 1rem; }
  .section-cta { padding: 4rem 1rem; }
  .hero-glow { width: 400px; height: 400px; left: -60px; top: -100px; }
  .marquee-track span { font-size: .68rem; }
  .stat-value { font-size: 1.1rem; }
  .stat-card { padding: 1.1rem .75rem; }
  .about-card { padding: 1.5rem 1.25rem; }
  .step-card { padding: 1.75rem 1.25rem 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 5.5rem; gap: 1.5rem; min-height: auto; }
  .hero-title { font-size: 2.4rem; }
  .hero-sub { font-size: .92rem; }
  .hero-tag { font-size: .65rem; padding: .3rem .65rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; font-size: .85rem; padding: .7rem 1.2rem; }
  #copyCA { font-size: .62rem; }
  .hero-price-ticker { font-size: .62rem; gap: .3rem; padding: .3rem .7rem; flex-wrap: wrap; justify-content: center; }
  .hero-image-wrap { width: 220px; height: 220px; max-width: 65vw; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .sim-input-row { flex-direction: column; gap: .75rem; }
  .sim-dollar { font-size: 1.1rem; }
  .sim-input { font-size: 1.1rem; text-align: center; }
  .sim-btn { width: 100%; justify-content: center; }
  .sim-display { padding: 1.75rem 1.25rem; }
  .sim-current { font-size: 1.8rem; }
  .terminal-body { height: 280px; padding: .75rem 1rem; }
  .terminal-line { font-size: .65rem; line-height: 1.65; }
  .terminal-bar { padding: .5rem .75rem; }
  .terminal-title { font-size: .6rem; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: .8rem; margin-bottom: 2rem; }
  .image-badge { font-size: .58rem; }
  .footer { padding: 1.5rem 1rem; }
  .footer-logo { font-size: 1.2rem; }
}
