:root {
  --bg: #09090b;
  --panel: #0f0f12;
  --panel-alt: #141418;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --amber: #f59e0b;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell {
  min-height: 100dvh;
  max-width: 820px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
}

.mono-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 36px 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.hero-panel {
  padding: 36px 36px 0;
}

.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.mono-kicker,
.mono-domain,
.mono-cmd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  margin: 0 -36px;
}

.spec-cell {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.spec-cell:last-child {
  border-right: none;
}

.spec-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.spec-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.spec-link:hover {
  text-decoration-color: var(--text);
}

.preview-panel {
  background: var(--panel);
}

.preview-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-alt);
}

.term-frame {
  background: #0b0d11;
  padding: 10px;
}

.cli-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.footer {
  padding: 20px 0 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--dim);
}

.footer span:nth-child(2) {
  display: none;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .shell {
    padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  }

  .topbar {
    height: 60px;
  }

  .main {
    padding: 20px 0;
    gap: 16px;
  }

  .hero-panel {
    padding: 24px 20px 0;
  }

  .panel-meta {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 1.85rem;
    margin-bottom: 12px;
  }

  .lead {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    margin: 0 -20px;
  }

  .spec-cell {
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .spec-cell:last-child {
    border-bottom: none;
  }

  .preview-bar {
    padding: 12px 16px;
  }

  .term-frame {
    padding: 6px;
  }
}
