/* Donald Trump Bot — NEO / Matrix terminal */
:root {
  --bg: #000000;
  --bg-panel: rgba(0, 8, 0, 0.88);
  --matrix: #00ff41;
  --matrix-bright: #b8ffb8;
  --matrix-dim: #008f11;
  --matrix-faint: #003300;
  --glow: rgba(0, 255, 65, 0.45);
  --text: #00dd38;
  --text-dim: #007a1a;
  --border: #00ff41;
  --font-mono: "Share Tech Mono", "JetBrains Mono", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Matrix rain canvas */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.neo-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6) 100%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  animation: scan-flicker 6s infinite;
}

@keyframes scan-flicker {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Nav — flat neo bar, no mac chrome */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--matrix-dim);
  box-shadow: 0 0 20px var(--glow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--matrix);
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 0 10px var(--glow);
  letter-spacing: 0.08em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--matrix);
  box-shadow: 0 0 12px var(--glow);
  filter: saturate(1.2) contrast(1.1);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--matrix);
  text-shadow: 0 0 8px var(--glow);
}

.nav-links a::before {
  content: ">";
  margin-right: 0.35rem;
  color: var(--matrix-dim);
}

/* Neo terminal panels — sharp, no mac dots */
.term-window {
  background: var(--bg-panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--matrix-dim);
  border-radius: 0;
  box-shadow:
    0 0 1px var(--matrix),
    0 0 24px rgba(0, 255, 65, 0.15),
    inset 0 0 80px rgba(0, 255, 65, 0.03);
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

.term-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--matrix), transparent);
  opacity: 0.6;
}

.neo-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  background: rgba(0, 255, 65, 0.06);
  border-bottom: 1px solid var(--matrix-faint);
  font-size: 0.72rem;
  color: var(--matrix-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.neo-pulse {
  color: var(--matrix);
  animation: pulse-glow 1.5s ease-in-out infinite;
  text-shadow: 0 0 8px var(--glow);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.neo-cmd {
  color: var(--matrix);
  text-shadow: 0 0 6px var(--glow);
}

.term-body {
  padding: 1.75rem 1.5rem 2rem;
}

/* Typing cursor */
.type-line,
[data-type],
.neo-cmd[data-type] {
  min-height: 1.2em;
}

.is-typing::after,
.prompt-line.typed::after,
.type-line.is-typing::after {
  content: "█";
  display: inline-block;
  margin-left: 2px;
  color: var(--matrix);
  animation: blink 0.7s step-end infinite;
  text-shadow: 0 0 8px var(--glow);
}

@keyframes blink {
  50% { opacity: 0; }
}

.prompt-line {
  color: var(--matrix-dim);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.prompt-line .user {
  color: var(--matrix);
  text-shadow: 0 0 6px var(--glow);
}

.prompt-line .path {
  color: var(--matrix-bright);
}

/* Reveal after typing */
.reveal-block {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.reveal-block.revealed {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Hero */
.hero {
  padding: 3rem 0 1rem;
  text-align: center;
}

.hero-logo {
  width: min(200px, 45vw);
  height: auto;
  border: 1px solid var(--matrix);
  box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(0, 255, 65, 0.2);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--matrix);
  text-shadow: 0 0 20px var(--glow), 0 0 40px rgba(0, 255, 65, 0.3);
  margin-bottom: 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 1.2em;
}

.hero .symbol {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--matrix-bright);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 12px var(--glow);
  min-height: 1.2em;
}

.hero .tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  min-height: 1.4em;
}

.hero-bio {
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--matrix-faint);
  padding: 0.75rem 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: left;
  min-height: 3em;
  box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.05);
}

.hero-bio-label {
  color: var(--matrix-dim);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  display: block;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--matrix-dim);
  letter-spacing: 0.08em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: transparent;
  color: var(--matrix);
  border-color: var(--matrix);
  box-shadow: 0 0 12px var(--glow), inset 0 0 20px rgba(0, 255, 65, 0.08);
}

.btn-primary:hover {
  background: rgba(0, 255, 65, 0.12);
  box-shadow: 0 0 24px var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--matrix-bright);
  border-color: var(--matrix-dim);
}

.btn-secondary:hover {
  border-color: var(--matrix);
  box-shadow: 0 0 16px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--matrix-faint);
}

.btn-ghost:hover {
  color: var(--matrix);
  border-color: var(--matrix);
}

.ca-box {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ca-box label {
  color: var(--matrix-dim);
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.1em;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ca-row code {
  flex: 1;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--matrix-faint);
  padding: 0.5rem 0.75rem;
  color: var(--matrix);
  font-size: 0.72rem;
  word-break: break-all;
  text-shadow: 0 0 6px var(--glow);
  min-height: 1.5em;
}

.btn-copy {
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  background: transparent;
  color: var(--matrix);
  border: 1px solid var(--matrix-dim);
  font-family: var(--font-mono);
  cursor: pointer;
  letter-spacing: 0.08em;
}

.btn-copy:hover {
  box-shadow: 0 0 12px var(--glow);
}

/* Section headings */
section h2 {
  font-size: 1rem;
  color: var(--matrix);
  margin-bottom: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--glow);
  min-height: 1.2em;
}

section h2::before {
  content: "// ";
  color: var(--matrix-dim);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text);
  min-height: 1.2em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Steps */
.steps {
  list-style: none;
}

.steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--matrix);
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 0 6px var(--glow);
}

.steps li strong {
  color: var(--matrix-bright);
  display: block;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 6px var(--glow);
}

.step-title,
.step-body {
  display: block;
  min-height: 1.2em;
}

.steps a {
  color: var(--matrix);
  text-shadow: 0 0 4px var(--glow);
}

.step-actions,
.step-link {
  margin-top: 0.75rem;
  font-size: 0.78rem;
}

.step-link a {
  color: var(--matrix);
}

/* Chart */
.chart-wrap {
  overflow: hidden;
  border: 1px solid var(--matrix-faint);
  min-height: 500px;
  background: #000;
  box-shadow: inset 0 0 40px rgba(0, 255, 65, 0.05);
}

.chart-wrap iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-dim);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  min-height: 1.4em;
}

.chart-link-line {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.chart-link-line a {
  color: var(--matrix);
}

/* Join */
.join-banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--matrix-dim);
  margin-bottom: 1.5rem;
  display: block;
  box-shadow: 0 0 30px var(--glow);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.join-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--matrix-faint);
  padding: 1.25rem;
  box-shadow: inset 0 0 24px rgba(0, 255, 65, 0.04);
}

.join-card h3 {
  font-size: 0.82rem;
  color: var(--matrix);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  min-height: 1.2em;
}

.join-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  min-height: 2.4em;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0 3rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--matrix-faint);
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

.footer .disclaimer {
  max-width: 640px;
  margin: 0.75rem auto 0;
  line-height: 1.5;
}

main {
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .term-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .chart-wrap iframe {
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #matrix-canvas {
    display: none;
  }

  .scanlines {
    animation: none;
  }

  .reveal-block {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
