*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --grey-light: #8a8a8a;
  --grey-mid: #5a5a5a;
  --grey-dark: #2e2e2e;
  --green: #2ee64a;
  --green-dim: #1a9e30;
  --blue: #3b6fd9;
  --white: #ffffff;
  --font: "JetBrains Mono", "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--grey-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Header */

.header {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.logo-icon {
  color: var(--green);
}

.ca-badge {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green-dim);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  max-width: min(100%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-badge:hover {
  background: rgba(46, 230, 74, 0.08);
}

.ca-label {
  margin-right: 0.35rem;
  color: var(--grey-mid);
}

.ca-short {
  display: none;
}

@media (max-width: 520px) {
  .ca-full {
    display: none;
  }

  .ca-short {
    display: inline;
  }
}

/* Hero */

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.hero-image-wrap {
  margin-bottom: 0.5rem;
}

.hero-image {
  width: 200px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ticker {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.description {
  font-size: 0.8rem;
  color: var(--grey-mid);
  max-width: 420px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  word-break: break-all;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn-primary:hover {
  background: rgba(46, 230, 74, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-light);
  border: 1px solid var(--grey-dark);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--grey-mid);
}

/* Terminal */

.terminal-section {
  width: 100%;
  margin-top: 3rem;
}

.terminal {
  border: 1px solid var(--grey-dark);
  background: #0a0a0a;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--grey-dark);
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--green-dim);
  display: inline-block;
}

.terminal-title {
  flex: 1;
  font-size: 0.65rem;
  color: var(--grey-mid);
  margin-left: 0.35rem;
}

.terminal-close {
  font-size: 0.85rem;
  color: var(--grey-mid);
  line-height: 1;
}

.terminal-body {
  padding: 1.25rem 1rem;
  font-size: 0.72rem;
  line-height: 1.9;
}

.terminal-line {
  color: var(--grey-light);
}

.terminal-line.dim {
  color: var(--grey-mid);
}

.prompt {
  color: var(--green);
  margin-right: 0.4rem;
}

.green {
  color: var(--green);
}

.cursor {
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.progress-bar {
  display: flex;
  gap: 3px;
  margin: 0.75rem 0;
  height: 10px;
}

.progress-fill {
  display: block;
  width: 70%;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0px,
    var(--green) 8px,
    transparent 8px,
    transparent 11px
  );
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Footer */

.footer {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-top: 1px solid var(--grey-dark);
  margin-top: auto;
}

.footer-brand {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey-mid);
  letter-spacing: 0.1em;
}

.footer-link {
  font-size: 0.7rem;
  color: var(--grey-mid);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--green);
}

/* Responsive */

@media (min-width: 480px) {
  .hero-image {
    width: 260px;
  }
}

@media (min-width: 640px) {
  .hero-image {
    width: 300px;
  }
}
