:root {
  --bg: #060914;
  --bg-soft: #0b1022;
  --panel: rgba(14, 18, 38, 0.84);
  --panel-strong: rgba(9, 13, 30, 0.94);
  --line: rgba(129, 148, 255, 0.16);
  --line-strong: rgba(129, 148, 255, 0.3);
  --text: #eef3ff;
  --muted: #a2add7;
  --blue: #7da0ff;
  --blue-soft: #c6d5ff;
  --violet: #a57cff;
  --violet-soft: #d8c8ff;
  --amber: #f0c46f;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 160, 255, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(165, 124, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #040610 0%, #070b18 38%, #0a1020 100%);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 160, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 124, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 58% 82%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px);
  background-size: 120px 120px;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
.prompt,
.kicker,
.topnav,
.button,
.badge,
.version,
.mono-list,
.signal-list,
.terminal-body {
  font-family: "IBM Plex Mono", monospace;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(18, 24, 48, 0.96), rgba(9, 13, 28, 0.93)),
    linear-gradient(135deg, rgba(125, 160, 255, 0.04), rgba(165, 124, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.compact-topbar {
  position: relative;
  top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(125, 160, 255, 0.14);
  color: var(--blue-soft);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.topnav a:hover,
.text-link:hover {
  color: var(--blue-soft);
}

.topnav-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.topnav-button:hover {
  color: var(--blue-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 22px;
  padding: 28px 0 12px;
  align-items: stretch;
}

.hero-stack {
  display: grid;
  gap: 20px;
}

.hero-copy,
.hero-note,
.section,
.admin-links,
.admin-hero {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 24px 22px;
}

.hero-note {
  padding: 0;
  overflow: hidden;
}

.kicker {
  margin: 0 0 14px;
  color: var(--violet-soft);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.story h2,
.admin-hero h1,
.admin-box h2,
.story h3 {
  margin: 0;
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.lead,
.section-head p,
.story p,
.admin-box p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.92rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(125, 160, 255, 0.18), rgba(165, 124, 255, 0.14));
  color: var(--blue-soft);
}

.button-secondary,
.button-inline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-inline {
  min-height: 36px;
  padding: 0 14px;
}

.button-disabled {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(162, 173, 215, 0.62);
  pointer-events: none;
}

.private-console {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.signal-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
}

.signal.ok {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(125, 160, 255, 0.8);
}

.signal.warn {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(240, 196, 111, 0.72);
}

.private-card {
  padding: 18px 20px 20px;
}

.private-card h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.terminal {
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-bar span:nth-child(1) {
  background: rgba(255, 125, 110, 0.82);
}

.terminal-bar span:nth-child(2) {
  background: rgba(240, 196, 111, 0.9);
}

.terminal-bar span:nth-child(3) {
  background: rgba(125, 160, 255, 0.92);
}

.terminal-bar strong {
  margin-left: auto;
  font-weight: 500;
}

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px 24px;
  color: var(--blue-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  min-height: 440px;
  max-height: 440px;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.terminal-body p {
  margin: 0;
}

.terminal-stream {
  display: grid;
  gap: 0;
}

.terminal-line {
  color: var(--blue-soft);
}

.prompt {
  color: var(--violet-soft);
}

.terminal-answer {
  color: var(--muted);
  margin-bottom: 8px;
}

.terminal-meta {
  margin-bottom: 12px;
  color: rgba(216, 200, 255, 0.88);
}

.terminal-live {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--blue-soft);
  min-height: 40px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: var(--blue);
  animation: blink 1s steps(1, end) infinite;
}

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

.section {
  padding-top: 44px;
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  margin-bottom: 12px;
}

.card-grid,
.split-layout,
.admin-links {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.release-card,
.story,
.admin-box,
.admin-hero {
  overflow: hidden;
}

.release-card {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid rgba(129, 148, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 24, 48, 0.96), rgba(8, 12, 26, 0.96)),
    radial-gradient(circle at top right, rgba(125, 160, 255, 0.08), transparent 28%);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.release-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 213, 255, 0.28), transparent);
  pointer-events: none;
}

.release-card:has(a[href]) {
  cursor: pointer;
}

.release-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 148, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(125, 160, 255, 0.14),
    0 34px 90px rgba(0, 0, 0, 0.42);
}

.release-card-muted {
  background:
    linear-gradient(180deg, rgba(12, 15, 28, 0.98), rgba(7, 10, 18, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.008));
  border-color: rgba(135, 147, 192, 0.08);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.release-card-muted .badge,
.release-card-muted .version,
.release-card-muted .tag,
.release-card-muted .card-copy p,
.release-card-muted .screen-code,
.release-card-muted .mini-pane,
.release-card-muted .phone-stack,
.release-card-muted .phone-notch {
  filter: grayscale(0.3);
  opacity: 0.68;
}

.release-card-muted .mini-pane.main,
.release-card-muted .phone-stack.accent,
.release-card-muted .screen-code .accent-line {
  opacity: 0.5;
}

.release-card-muted h3 {
  color: rgba(238, 243, 255, 0.78);
}

.terminal-trigger {
  cursor: pointer;
}

.terminal-trigger.is-active {
  border-color: var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(125, 160, 255, 0.22),
    var(--shadow);
}

.hero-shell {
  display: grid;
  gap: 18px;
  padding: 22px 18px 24px;
}

.hero-shell-code {
  align-content: start;
}

.hero-note-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-note-actions {
  margin-top: 22px;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
  padding: 34px 0 10px;
}

.login-panel {
  width: min(680px, 100%);
  overflow: hidden;
}

.login-console {
  display: grid;
  gap: 24px;
  padding: 24px 22px 26px;
}

.login-log {
  display: grid;
  gap: 0;
  min-height: 132px;
  max-height: 240px;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar,
.login-log::-webkit-scrollbar {
  display: none;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.login-label {
  color: var(--violet-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.login-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.badge,
.version,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  color: #d9e4ff;
  background: linear-gradient(135deg, rgba(125, 160, 255, 0.18), rgba(165, 124, 255, 0.12));
  border: 1px solid rgba(129, 148, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.version {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.screen {
  min-height: 220px;
  margin: 18px 20px 0;
  border: 1px solid rgba(129, 148, 255, 0.14);
  border-radius: calc(var(--radius-md) + 2px);
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.92), rgba(9, 13, 28, 0.98)),
    radial-gradient(circle at top right, rgba(125, 160, 255, 0.08), transparent 24%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.2);
}

.screen-console,
.screen-grid,
.screen-phone,
.screen-fe-audit,
.screen-pi-cosmos,
.screen-setuptuner,
.screen-password-cli {
  padding: 18px;
}

.screen-shell,
.screen-terminal-preview {
  padding: 0;
  overflow: hidden;
}

.screen-fe-audit {
  display: grid;
  align-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(127, 37, 37, 0.35), rgba(7, 10, 22, 0.96) 55%),
    radial-gradient(circle at 82% 22%, rgba(240, 196, 111, 0.22), transparent 26%),
    #060914;
}

.screen-setuptuner {
  display: grid;
  align-content: space-between;
  gap: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 82% 18%, rgba(125, 160, 255, 0.16), transparent 24%),
    radial-gradient(circle at 12% 86%, rgba(165, 124, 255, 0.11), transparent 22%),
    linear-gradient(135deg, rgba(8, 12, 26, 0.98), rgba(19, 24, 44, 0.96));
  background-size: 14px 14px, auto, auto, auto;
}

.setuptuner-sheet-top,
.setuptuner-sheet-flow,
.setuptuner-sheet-bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.setuptuner-sheet-top {
  color: var(--blue-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.setuptuner-sheet-top span,
.setuptuner-sheet-flow span {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--blue-soft);
  border: 1px solid rgba(129, 148, 255, 0.16);
}

.setuptuner-sheet-top strong {
  color: #dcdfff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.setuptuner-sheet-title {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.setuptuner-sheet-flow {
  justify-content: flex-start;
}

.setuptuner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: end;
}

.setuptuner-title-stack {
  display: grid;
  gap: 10px;
}

.setuptuner-mark {
  max-width: 8ch;
  color: #f4f7ff;
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.setuptuner-subtitle {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.setuptuner-racing-stripes {
  display: flex;
  gap: 8px;
  align-items: center;
}

.setuptuner-racing-stripes i {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.setuptuner-racing-stripes i.violet {
  width: 148px;
  background: linear-gradient(90deg, rgba(165, 124, 255, 0.96), rgba(104, 88, 244, 0.74));
}

.setuptuner-racing-stripes i.blue {
  width: 92px;
  background: linear-gradient(90deg, rgba(125, 160, 255, 0.92), rgba(59, 120, 255, 0.66));
}

.setuptuner-racing-stripes i.amber {
  width: 42px;
  background: linear-gradient(90deg, rgba(240, 196, 111, 0.95), rgba(255, 134, 76, 0.86));
}

.setuptuner-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setuptuner-sheet-flow b {
  width: 24px;
  height: 2px;
  background: rgba(165, 124, 255, 0.72);
}

.setuptuner-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setuptuner-sheet-cell {
  display: grid;
  gap: 6px;
  padding: 13px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(129, 148, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.setuptuner-sheet-cell.accent {
  background:
    linear-gradient(135deg, rgba(125, 160, 255, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.setuptuner-sheet-cell.accent-soft {
  background:
    linear-gradient(135deg, rgba(165, 124, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.setuptuner-sheet-cell small {
  color: var(--violet-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.setuptuner-sheet-cell strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.setuptuner-sheet-bars {
  display: grid;
  gap: 8px;
}

.tune-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
}

.tune-row span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  text-transform: uppercase;
}

.setuptuner-sheet-bars i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(198, 213, 255, 0.16);
}

.setuptuner-sheet-bars i.violet {
  width: 88%;
  background: linear-gradient(90deg, rgba(165, 124, 255, 0.82), rgba(125, 160, 255, 0.5));
}

.setuptuner-sheet-bars i.blue {
  width: 72%;
  background: linear-gradient(90deg, rgba(125, 160, 255, 0.78), rgba(99, 131, 232, 0.46));
}

.setuptuner-sheet-bars i.amber {
  width: 64%;
  background: linear-gradient(90deg, rgba(240, 196, 111, 0.9), rgba(255, 126, 90, 0.58));
}

.audit-preview-top,
.audit-preview-flow,
.audit-preview-bars {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-preview-top span,
.audit-preview-flow span {
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blue-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.audit-preview-top strong {
  color: #ffd2d2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.audit-preview-title {
  max-width: 9ch;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.audit-preview-flow b {
  width: 28px;
  height: 2px;
  background: rgba(240, 196, 111, 0.8);
}

.audit-preview-bars {
  display: grid;
  gap: 8px;
}

.audit-preview-bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(125, 160, 255, 0.24);
}

.audit-preview-bars i:nth-child(1) {
  width: 78%;
}

.audit-preview-bars i:nth-child(2) {
  width: 58%;
}

.audit-preview-bars i:nth-child(3) {
  width: 88%;
  background: rgba(255, 125, 110, 0.28);
}

.screen-pi-cosmos {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr) minmax(150px, 0.55fr);
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 24% 48%, rgba(240, 196, 111, 0.32), transparent 31%),
    radial-gradient(circle at 86% 18%, rgba(125, 160, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(7, 10, 22, 0.98), rgba(18, 24, 48, 0.96));
}

.pi-preview-main {
  display: grid;
  gap: 14px;
}

.pi-orbit {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 230px);
  justify-self: center;
  border-radius: 50%;
}

.pi-orbit span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(240, 196, 111, 0.18);
  color: #ffe2a0;
  border: 1px solid rgba(240, 196, 111, 0.48);
  font-size: 3.2rem;
  font-weight: 700;
}

.pi-orbit i {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: 5%;
  border: 1px solid rgba(125, 160, 255, 0.36);
}

.orbit-two {
  inset: 21%;
  border: 1px dashed rgba(165, 124, 255, 0.42);
}

.orbit-dot {
  width: 12px;
  height: 12px;
  right: 14%;
  top: 24%;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(125, 160, 255, 0.72);
}

.pi-search-preview,
.pi-fact-card,
.pi-postcard-preview {
  border: 1px solid rgba(129, 148, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 16px;
}

.pi-search-preview {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
}

.pi-search-preview small,
.pi-fact-card small,
.pi-postcard-preview span {
  color: var(--violet-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pi-search-preview strong {
  color: #fff5d8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.pi-search-preview span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pi-preview-copy {
  display: grid;
  gap: 10px;
}

.pi-preview-copy strong {
  font-size: 1.4rem;
}

.pi-preview-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.pi-digit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.pi-digit-strip b {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: #fff5d8;
  background: rgba(240, 196, 111, 0.14);
  border: 1px solid rgba(240, 196, 111, 0.26);
  font-family: "IBM Plex Mono", monospace;
}

.pi-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pi-mini-stats em {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue-soft);
  background: rgba(125, 160, 255, 0.1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-style: normal;
}

.pi-fact-card {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  background:
    linear-gradient(135deg, rgba(240, 196, 111, 0.13), rgba(125, 160, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.pi-fact-card strong {
  color: #ffe2a0;
  font-size: 1.02rem;
}

.pi-fact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pi-postcard-preview {
  display: grid;
  gap: 9px;
  align-content: center;
  min-height: 170px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(90deg, rgba(240, 196, 111, 0.08) 0 1px, transparent 1px 13px);
}

.pi-postcard-preview b {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(198, 213, 255, 0.16);
}

.pi-postcard-preview b:nth-child(2) {
  width: 88%;
  background: rgba(240, 196, 111, 0.22);
}

.pi-postcard-preview b:nth-child(3) {
  width: 64%;
}

.pi-postcard-preview b:nth-child(4) {
  width: 78%;
}

.pi-postcard-preview b:nth-child(5) {
  width: 48%;
  background: rgba(165, 124, 255, 0.2);
}

.screen-terminal-preview {
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.96), rgba(9, 13, 28, 0.99)),
    linear-gradient(90deg, rgba(125, 160, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.screen-terminal-preview .screen-shell-body {
  padding: 22px 20px 24px;
}

.code-preview {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #dbe7ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.72rem, 1.7vw, 0.98rem);
  line-height: 1.45;
}

.code-preview span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.code-preview b {
  color: #c58cff;
  font-weight: 600;
}

.code-preview .indent {
  padding-left: 22px;
}

.code-preview .indent.two {
  padding-left: 44px;
  color: #ffce82;
}

.code-preview .accent-line {
  color: #ffb56e;
}

.code-preview i {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--amber);
  animation: blink 1s steps(1, end) infinite;
}

.screen-password-cli {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 26%, rgba(125, 160, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(6, 9, 20, 0.98), rgba(15, 28, 43, 0.96));
}

.vault-preview {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.vault-lock {
  position: relative;
  width: 86px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(125, 160, 255, 0.24), rgba(125, 160, 255, 0.08));
  border: 1px solid rgba(198, 213, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 38px rgba(0, 0, 0, 0.22);
}

.vault-lock::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -28px;
  width: 42px;
  height: 42px;
  border: 8px solid rgba(198, 213, 255, 0.48);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}

.vault-lock span {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 10px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(240, 196, 111, 0.52);
}

.vault-lines {
  display: grid;
  gap: 8px;
  width: min(170px, 100%);
}

.vault-lines b {
  color: var(--blue-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  text-align: center;
}

.vault-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.vault-lines i:nth-child(3) {
  width: 72%;
}

.vault-lines i:nth-child(4) {
  width: 54%;
}

.vault-command {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vault-command span,
.tool-status {
  font-family: "IBM Plex Mono", monospace;
}

.vault-command span {
  display: block;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.vault-command .accent-line {
  color: var(--violet-soft);
  background: rgba(165, 124, 255, 0.14);
}

.tool-status {
  color: var(--amber);
  cursor: default;
}

.screen-shell-bar {
  border-bottom-color: rgba(129, 148, 255, 0.12);
}

.screen-shell-body {
  padding: 18px;
}

.screen-code {
  display: grid;
  gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--muted);
}

.screen-code span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  overflow-wrap: anywhere;
}

.screen-code .accent-line {
  color: var(--violet-soft);
  background: rgba(165, 124, 255, 0.14);
}

.screen-grid {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 12px;
}

.mini-pane {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.mini-pane.left {
  grid-row: span 2;
}

.mini-pane.main {
  min-height: 120px;
  background:
    linear-gradient(180deg, rgba(125, 160, 255, 0.16), rgba(165, 124, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.mini-pane.bottom {
  min-height: 64px;
}

.screen-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: 168px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, #111734, #090d1d);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-notch {
  width: 56px;
  height: 8px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.1);
}

.phone-stack {
  height: 34px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-stack.compact {
  height: 24px;
}

.phone-stack.accent {
  height: 68px;
  background: linear-gradient(135deg, rgba(125, 160, 255, 0.75), rgba(165, 124, 255, 0.4));
}

.card-copy,
.story,
.admin-box,
.admin-hero {
  padding: 24px 20px 20px;
}

.card-copy h3,
.story h3,
.admin-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  letter-spacing: -0.04em;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 52ch;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(129, 148, 255, 0.08);
  margin-top: 2px;
  padding-top: 18px;
}

.tag {
  color: var(--violet-soft);
  background: rgba(165, 124, 255, 0.1);
  border: 1px solid rgba(165, 124, 255, 0.16);
}

.split-layout {
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  margin-top: 10px;
}

.mono-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.compact-list {
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-soft);
  font-family: "IBM Plex Mono", monospace;
}

.admin-page .page-shell {
  padding-top: 22px;
}

.admin-hero {
  margin-top: 18px;
}

.admin-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.admin-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

@media (max-width: 1020px) {
  .hero-grid,
  .card-grid,
  .admin-links {
    grid-template-columns: 1fr;
  }

  .screen-pi-cosmos {
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
  }

  .pi-postcard-preview {
    grid-column: 1 / -1;
    min-height: 120px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .topbar {
    position: relative;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav,
  .hero-actions,
  .card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-inline {
    width: 100%;
  }

  .screen-pi-cosmos,
  .screen-password-cli {
    grid-template-columns: 1fr;
  }

  .pi-orbit {
    width: min(100%, 210px);
  }
}
