:root {
  color-scheme: dark;
  --background: #080c0d;
  --panel: #0f1416;
  --panel-soft: #132419;
  --text: #f6f3e9;
  --muted: #9aaec2;
  --dim: #718191;
  --line: #27323a;
  --line-strong: #9cff9c;
  --accent: #9cff9c;
  --accent-bright: #65ff67;
  --warning: #ff5365;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(100%, 950px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px) 18px 48px;
}

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

.device-line,
.hint,
.label,
.ghost,
.shortcut {
  color: var(--muted);
}

.device-line {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.control,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b1012;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.control span {
  margin-left: 12px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  color: var(--accent);
}

.control:hover,
.cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.control.primary,
.cta {
  border-color: var(--line-strong);
  color: var(--accent-bright);
}

.hero {
  margin-bottom: 34px;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.prompt {
  color: var(--accent-bright);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.hint {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  padding: clamp(20px, 4vw, 28px);
  scroll-margin-top: 24px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.field-grid > div {
  min-height: 54px;
}

.label,
.ghost {
  display: block;
  font-size: 0.88rem;
}

.label {
  margin-bottom: 8px;
  font-weight: 700;
}

.ghost {
  color: var(--dim);
}

.quote-card {
  display: grid;
  gap: 14px;
  max-width: 82ch;
  margin: 0 0 24px;
}

.founder-quote {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.founder-quote p:last-child,
.footer-panel p:last-child {
  margin-bottom: 0;
}

.baby-thumbsup {
  display: block;
  width: min(100%, 160px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--background);
}

.signature-image {
  display: grid;
  justify-self: start;
  margin-left: 18px;
}

.feature-list {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
}

.features-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1rem;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 30px;
  padding: 0;
}

.feature-list span {
  color: var(--accent-bright);
}

.footer-panel {
  color: var(--muted);
}

.footer-panel p:not(.shortcut) {
  max-width: 70ch;
  color: var(--text);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 12, 13, 0.82);
}

.modal-panel {
  width: min(100%, 560px);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  padding: clamp(18px, 4vw, 26px);
}

.close-modal {
  color: var(--muted);
}

.command-options {
  display: grid;
  gap: 10px;
}

.command-option {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b1012;
  color: var(--text);
  text-decoration: none;
}

.command-option:hover,
.command-option[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--panel-soft);
}

.command-option span {
  color: var(--accent-bright);
  font-weight: 800;
}

.command-option small {
  color: var(--muted);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.35em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #11181b;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 760px) {
  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .actions,
  .cta {
    width: 100%;
  }

  .control {
    flex: 1 1 150px;
  }

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

  .baby-thumbsup {
    width: min(100%, 140px);
  }
}
