:root {
  --bg: #0b1020;
  --bg-soft: #111a33;
  --text: #e8ecf8;
  --muted: #9fb0d8;
  --line: #26345d;
  --brand: #4da3ff;
  --brand-strong: #2f86e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #1a2752 0%, var(--bg) 55%);
  line-height: 1.6;
}

.announce {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #2f4f88;
  background: linear-gradient(90deg, #152c5b, #0e1f45);
  color: #d8e8ff;
}

.announce p {
  margin: 0;
}

.announce a {
  color: #d8e8ff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 30, 0.8);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sponsor {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #2d426f;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.08);
  text-decoration: none;
  color: #cfe4ff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.sponsor img {
  width: 14px;
  height: 14px;
  display: block;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--text);
}

main {
  width: min(1100px, 92vw);
  margin: 2rem auto 4rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}

.hero p {
  max-width: 70ch;
  color: var(--muted);
}

.hero-highlight {
  color: #c0dbff !important;
  font-weight: 600;
}

.eyebrow {
  color: #7cb8ff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #051329;
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.stars-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #365b99;
  background: rgba(77, 163, 255, 0.12);
  color: #d7e8ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.grid {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: 14px;
  padding: 1rem;
}

.muted {
  color: var(--muted);
}

.realtime {
  margin-top: 1.5rem;
}

.realtime-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.realtime-head h2 {
  margin: 0;
}

.pill {
  padding: 0.3rem 0.6rem;
  border: 1px solid #3a5ea2;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #bbd7ff;
  background: rgba(77, 163, 255, 0.12);
}

.terminal {
  margin-top: 1rem;
  border: 1px solid #2f477f;
  border-radius: 12px;
  background: #060b17;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #202b4a;
  background: #0b1326;
}

.terminal-titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3f5f95;
}

.terminal-titlebar strong {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  color: #b6caef;
  font-weight: 600;
}

#terminal-output {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: #cde6ff;
  min-height: 290px;
  max-height: 390px;
  overflow: auto;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.15rem 0.8rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #e1eeff;
}

.prompt {
  color: #84c0ff;
}

#terminal-input {
  color: #e1eeff;
}

.cursor {
  color: #84c0ff;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.stack {
  margin-top: 2.25rem;
}

.stack-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack ul,
.docs ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.docs h1 {
  margin-top: 0;
}

.docs {
  display: grid;
  gap: 1rem;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1228;
  padding: 0.8rem;
  color: #dce6ff;
}

footer {
  width: min(1100px, 92vw);
  margin: 0 auto 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (max-width: 760px) {
  .announce {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .topbar-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  nav a {
    margin-left: 0;
    margin-right: 0.8rem;
  }
}
