:root {
  --bg: #071018;
  --panel: rgba(10, 20, 32, 0.72);
  --line: rgba(255, 108, 108, 0.28);
  --text: #e8f3ff;
  --muted: #8cb1d1;
  --accent: #ff5a5a;
  --accent-2: #ff2e2e;
  --warn: #f7c948;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: #050b12;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 46, 46, 0.24), rgba(0, 0, 0, 0) 38%),
    radial-gradient(circle at 90% 15%, rgba(255, 90, 90, 0.2), rgba(0, 0, 0, 0) 36%),
    linear-gradient(160deg, #090409 0%, #12060a 58%, #080508 100%);
}

.shell {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.04em;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(255, 46, 46, 0.75);
}

.toplinks {
  display: flex;
  gap: 18px;
}

.toplinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.toplinks a:hover {
  color: var(--text);
}

.hero {
  margin-bottom: 22px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 20px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  max-width: 16ch;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 60ch;
}

.hero-art {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-art-fallback::before {
  content: "Add your image as /public/hero-agents.png";
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-cards {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-cards article {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.65);
}

.hero-cards p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ca-strip {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(7, 16, 27, 0.86);
}

.ca-strip p {
  margin: 0;
  color: var(--muted);
}

.ca-strip code {
  font-family: Consolas, "Courier New", monospace;
  background: rgba(0, 0, 0, 0.28);
  padding: 6px 8px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.ca-strip button {
  width: auto;
  padding: 6px 10px;
}

#copyCaStatus {
  color: var(--accent);
  font-size: 0.85rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 20px;
}

.manifesto {
  margin-bottom: 18px;
}

.manifesto p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.manifesto a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 90, 90, 0.6);
}

.manifesto-points {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.manifesto-points p {
  margin: 0;
  color: #d4e9ff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.muted {
  margin: 8px 0 0;
  color: var(--muted);
}

.policy {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.policy p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.policy span {
  color: var(--muted);
}

.policy strong {
  overflow-wrap: anywhere;
}

button {
  cursor: pointer;
  border: none;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #031018;
  font-weight: 700;
}

button:hover {
  filter: brightness(1.06);
}

.result {
  margin-top: 14px;
  min-height: 500px;
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(15, 35, 20, 0.32), rgba(3, 8, 14, 0.95) 42%);
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #8dffac;
  font-family: Consolas, "Courier New", monospace;
  position: relative;
}

.result::after {
  content: "_";
  display: inline-block;
  margin-left: 4px;
  color: #d8ffe2;
  animation: blink 1.1s steps(2, end) infinite;
}

.status-panel.wide {
  width: 100%;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  49% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-head button {
  width: auto;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.launch-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-footer {
  margin-top: 26px;
  padding: 20px 0 8px;
  display: flex;
  justify-content: center;
}

.footer-mark {
  width: min(260px, 60vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 60, 60, 0.28));
}

.launch-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 16, 27, 0.86);
}

.launch-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f1f32;
}

.launch-content {
  padding: 10px;
}

.launch-title {
  margin: 0;
  font-weight: 700;
}

.launch-meta {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.launch-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.launch-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.83rem;
}

.tag {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(247, 201, 72, 0.4);
  color: var(--warn);
}

@media (max-width: 1024px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
  }

  .hero-cards,
  .launch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .result {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-cards,
  .launch-list {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(1200px, 96vw);
  }
}
