/* ============================================================
   JOE_TERMINAL — memecoin landing template (trading desk edition)
   Design tokens: swap these to rebrand the whole site.
   ============================================================ */
:root {
  --bg: #050807;
  --bg-2: #0a0f0c;
  --panel: #0b120e;
  --panel-2: #0e1712;
  --ink: #d8e2da;
  --muted: #5f7064;
  --green: #00e66b;
  --green-dim: rgba(0, 230, 107, 0.14);
  --amber: #f5c542;
  --red: #ff5d5d;
  --line: rgba(0, 230, 107, 0.16);
  --line-soft: rgba(216, 226, 218, 0.08);
  --font-mono: "IBM Plex Mono", "Space Mono", monospace;
  --font-display: "Space Grotesk", "IBM Plex Mono", sans-serif;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(0, 230, 107, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

main { max-width: 1180px; margin: 0 auto; padding: 0 22px 30px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.green { color: var(--green); }
.ok { color: var(--green); }
.warn { color: var(--amber); }

/* ============ boot overlay ============ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-text {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  line-height: 1.8;
  color: var(--green);
  white-space: pre-wrap;
  padding: 0 24px;
}

/* ============ CRT overlay ============ */
.crt {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.4));
}

/* ============ ticker tape ============ */
.tape {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 8px 0;
  white-space: nowrap;
}
.tape-track {
  display: inline-flex;
  gap: 40px;
  animation: tape-scroll 26s linear infinite;
  will-change: transform;
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tape-item { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); }
.tape-item.up { color: var(--green); }
.tape-item.down { color: var(--red); }

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(5, 8, 7, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-avatar {
  display: block;
  width: 38px; height: 38px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.brand-avatar svg { display: block; width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.brand-cursor {
  width: 9px; height: 18px;
  background: var(--green);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.header-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.navlink {
  padding: 9px 13px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.navlink:hover { color: var(--green); border-color: var(--line); }
.navlink-solid {
  color: var(--bg);
  background: var(--green);
  font-weight: 700;
}
.navlink-solid:hover { color: var(--bg); background: #3bff92; }

/* ============ shared ============ */
.sys-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.prompt { color: var(--green); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--green); background: var(--green-dim); }
.btn-solid {
  background: var(--green);
  border-color: var(--green);
  color: #04140a;
  font-weight: 700;
  box-shadow: 0 0 26px rgba(0, 230, 107, 0.35);
}
.btn-solid:hover { background: #3bff92; box-shadow: 0 0 40px rgba(0, 230, 107, 0.5); }
.btn-copy { padding: 10px 18px; }

.section-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-reveal.is-visible { opacity: 1; transform: none; }

/* ============ hero ============ */
.hero { padding: 56px 0 10px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero-typed {
  min-height: 1.6em;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.type-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  margin-left: 3px;
  background: var(--green);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 26px;
}
.hero-price-label { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--muted); }
.hero-price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
}
.hero-price-value.tick { color: var(--green); }
.hero-price-delta { font-size: 0.85rem; font-weight: 600; }
.hero-price-delta.up { color: var(--green); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions.center { justify-content: center; }

/* monitor */
.monitor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 230, 107, 0.07);
}
.monitor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.term-dots i:nth-child(1) { background: var(--red); }
.term-dots i:nth-child(2) { background: var(--amber); }
.term-dots i:nth-child(3) { background: var(--green); }
.monitor-live { margin-left: auto; color: var(--red); animation: blink 1.6s steps(1) infinite; }

.monitor-screen {
  position: relative;
  aspect-ratio: 4 / 3.1;
  background: #060a07;
}
.monitor-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.monitor-joe {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
  animation: joe-bob 3.4s ease-in-out infinite;
}
@keyframes joe-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-9px); }
}

/* contract bar */
.contract-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.9rem;
}
.contract-cmd { color: var(--muted); }
.contract-address {
  flex: 1;
  font-family: var(--font-mono);
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ panels ============ */
.panel {
  margin: 44px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(26px, 4.5vw, 48px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-tag {
  font-size: 0.72rem;
  color: var(--bg);
  background: var(--green);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  letter-spacing: 0.06em;
}
.panel-note {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.panel-sub {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 640px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* ============ stats ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
  background: rgba(0, 0, 0, 0.25);
}
.stat-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat-card:nth-child(3n) { border-right: none; }
.stat-card:nth-child(n+4) { border-bottom: none; }
.stat-card.highlight { background: var(--green-dim); }
.stat-label { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; }
.stat-delta { font-size: 0.8rem; }
.stat-delta.up { color: var(--green); }

.chart-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.live-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 107, 0.6); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(0, 230, 107, 0); }
}
.candle-chart { display: block; width: 100%; height: 340px; background: #060a07; }

/* ============ logs ============ */
.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-entry {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.85rem;
  line-height: 1.55;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
a.log-entry:hover {
  border-color: var(--green);
  background: var(--green-dim);
  transform: translateX(4px);
}
.log-time { color: var(--muted); white-space: nowrap; font-size: 0.78rem; }
.log-level { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; white-space: nowrap; }
.log-msg { flex: 1; color: var(--ink); }
.log-link { color: var(--green); font-size: 0.78rem; white-space: nowrap; }
.log-live { border-style: dashed; }

/* ============ steps ============ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.step-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: var(--green); transform: translateY(-3px); }
.step-no { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--green); }
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 10px 0 12px;
}
.step-cmd {
  font-size: 0.82rem;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  overflow-x: auto;
  white-space: nowrap;
}
.step-note { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ============ tokenomics bars ============ */
.bar-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.bar-row {
  display: grid;
  grid-template-columns: 170px 1fr 56px;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}
.bar-label { letter-spacing: 0.12em; color: var(--muted); }
.bar-track {
  display: block;
  height: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, rgba(0, 230, 107, 0.55) 8px 12px);
  box-shadow: 0 0 18px rgba(0, 230, 107, 0.4);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-pct { text-align: right; color: var(--green); font-weight: 700; }

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fact-strip span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ============ faq ============ */
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: ">";
  color: var(--green);
  margin-right: 12px;
  transition: transform 0.25s;
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover { color: var(--green); }
.faq-item p {
  padding: 0 18px 16px 40px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============ final ============ */
.final {
  margin: 60px 0 30px;
  padding: clamp(40px, 7vw, 80px) 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(0, 230, 107, 0.14), transparent 70%),
    var(--panel);
}
.final .sys-line { justify-content: center; }
.final-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 30px;
}

/* ============ footer ============ */
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.status-light {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ============ toast ============ */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: var(--green);
  color: #04140a;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 24px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 480px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .stat-card:nth-child(2n) { border-right: none; }
  .stat-card:nth-child(n+4) { border-bottom: 1px solid var(--line-soft); }
  .stat-card:nth-child(n+5) { border-bottom: none; }
  .step-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-nav .navlink:not(.navlink-solid) { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none !important; border-bottom: 1px solid var(--line-soft) !important; }
  .stat-card:last-child { border-bottom: none !important; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-pct { text-align: left; }
  .contract-bar { flex-wrap: wrap; }
  .log-entry { flex-wrap: wrap; }
  .site-footer { flex-direction: column; }
}
