/* Redundant: shared stylesheet, v3.
   Terminal direction, full width. Black, acid green,
   Instrument Serif display, IBM Plex Mono body. */

:root {
  --bg: #0a0a0a;
  --text: #e8e8e4;
  --dim: #8a8a85;
  --acid: #b6ff00;
  --line: #2a2a28;
  --panel: #0d0d0c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--acid); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Mono", monospace;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(182, 255, 0, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  user-select: none;
}
.topnav .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topnav .logo {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.topnav .logo .logo-accent { color: var(--acid); }
.cursor {
  display: inline-block;
  width: 0.7em;
  height: 1.05em;
  background: var(--acid);
  vertical-align: text-bottom;
  margin-left: 0.3em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.topnav a.menu-item { color: var(--dim); text-decoration: none; }
.topnav a.menu-item:hover { color: var(--acid); }
.topnav .clock {
  margin-left: auto;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .topnav .clock { display: none; }
  .topnav .inner { gap: 1rem; overflow-x: auto; scrollbar-width: none; }
  .topnav .inner::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
}
.hero h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.9rem, 5.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero h1 em { font-style: italic; color: var(--acid); }
.hero .sub { margin-top: 1.75rem; color: var(--dim); max-width: 36em; font-size: 1rem; }
.hero .hero-cta { margin-top: 2rem; }

/* ---------- Terminal ---------- */
.terminal {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 60px rgba(182, 255, 0, 0.06);
}
.terminal .term-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.terminal .term-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  flex: none;
}
.terminal .term-body {
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 300px;
  font-size: 0.8125rem;
  line-height: 2;
}
@media (max-width: 560px) {
  .terminal .term-body { min-height: 260px; font-size: 0.75rem; }
}
.term-body .ln { display: block; color: var(--dim); white-space: pre-wrap; }
.term-body .ln b { color: var(--text); font-weight: 500; }
.term-body .prompt { color: var(--acid); }
.term-body .flag { color: var(--acid); }
.term-caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--acid);
  vertical-align: text-bottom;
  animation: blink 0.9s steps(1) infinite;
}
.term-note {
  margin-top: 0.75rem;
  color: var(--dim);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ---------- Status line ---------- */
.statusline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.85);
  padding: 0.875rem 0;
  color: var(--acid);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.statusline::-webkit-scrollbar { display: none; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.seclabel {
  color: var(--dim);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.seclabel::before { content: "// "; color: var(--acid); }

/* ---------- Pack pricing strip ---------- */
.packstrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  padding-bottom: 2.25rem;
}
@media (max-width: 880px) { .packstrip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .packstrip { grid-template-columns: repeat(2, 1fr); } }
.pbox {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(20, 20, 18, 0.9), rgba(13, 13, 12, 0.9));
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pbox:hover { border-color: var(--acid); transform: translateY(-2px); }
.pbox .pname {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  min-height: 2.3em;
}
.pbox .pname::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--acid);
  flex: none;
  margin-top: 0.35em;
}
.pbox .pmeta { font-size: 0.74rem; color: var(--dim); letter-spacing: 0.03em; margin-top: 0.7rem; }
.pbox .pprice {
  font-family: "Instrument Serif", serif;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--acid);
  margin-top: 0.35rem;
}
.pbox.soon { opacity: 0.72; }
.pbox.soon .pprice { color: var(--dim); font-style: italic; }
.pbox.soon:hover { opacity: 1; }
.pbox.bundle {
  border-color: var(--acid);
  background: linear-gradient(180deg, rgba(182, 255, 0, 0.1), rgba(182, 255, 0, 0.03));
}
.pbox.bundle .pname { color: var(--acid); }
.pbox.bundle .pname::before { background: var(--acid); }

/* ---------- Thesis + everything bundle ---------- */
.thesis-cols {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .thesis-cols { grid-template-columns: 1fr; gap: 2.5rem; }
}
.bundle-big {
  border: 1px solid var(--acid);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(182, 255, 0, 0.09), rgba(182, 255, 0, 0.02));
  box-shadow: 0 0 60px rgba(182, 255, 0, 0.06);
  padding: 2rem 1.9rem;
  text-align: center;
  max-width: 360px;
}
@media (max-width: 900px) { .bundle-big { max-width: 440px; } }
.bundle-big .bundle-label {
  display: block;
  color: var(--acid);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bundle-big h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.05;
  margin-top: 0.5rem;
}
.bundle-big .nums {
  font-family: "Instrument Serif", serif;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--acid);
  margin: 0.35rem 0 0.2rem;
}
.bundle-big > p {
  color: var(--dim);
  font-size: 0.82rem;
  margin: 0.6rem auto 0;
  max-width: 26em;
}
.bundle-big .cta { margin-top: 1.25rem; }
.bundle-big .cta-note { text-align: center; }

/* ---------- Pack page: skill walkthrough ---------- */
.worker-block { margin-bottom: 2.75rem; max-width: 760px; }
.worker-block:last-child { margin-bottom: 0; }
.worker-block h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
}
.worker-block h3 .num { color: var(--acid); }
.worker-block h3 .slug {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--dim);
  margin-left: 0.5rem;
}
.worker-block > p { color: var(--dim); font-size: 0.9rem; margin-top: 0.6rem; }
.shot-placeholder {
  margin-top: 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 12, 0.6);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
}
.shot-placeholder::before { content: "▸ "; color: var(--acid); }
.shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ---------- Catalog ---------- */
.catalog-intro { color: var(--dim); font-size: 0.9rem; max-width: 50em; margin: -0.75rem 0 1.75rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filters button {
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: none;
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 0.35rem 0.95rem;
  cursor: pointer;
}
.filters button:hover { border-color: var(--acid); color: var(--acid); }
.filters button.on {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(13, 13, 12, 0.9);
  min-height: 100%;
}
a.card:hover { border-color: var(--acid); }
.card .badge {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.9rem;
}
.card .badge.live { background: var(--acid); color: var(--bg); font-weight: 600; }
.card .badge.dev { border: 1px solid var(--line); color: var(--dim); }
.card h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.15;
}
.card p { color: var(--dim); font-size: 0.84rem; margin-top: 0.6rem; flex-grow: 1; }
.card .meta {
  display: block;
  margin-top: 1.1rem;
  color: var(--acid);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.card.dev-card { opacity: 0.62; }
a.card.dev-card { opacity: 0.78; }
a.card.dev-card:hover { opacity: 1; border-color: var(--acid); }
.card.dev-card .meta { color: var(--dim); }
.catalog-note { color: var(--dim); font-size: 0.8125rem; margin-top: 1.5rem; max-width: 50em; }

/* ---------- Prose ---------- */
.prose p { margin-bottom: 1.4rem; max-width: 40em; }
.prose p:last-of-type { margin-bottom: 0; }
.prose .close {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.875rem;
  color: #fff;
  margin-top: 2.25rem;
  line-height: 1.3;
}
.prose h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: #fff;
  margin: 2.5rem 0 1.25rem;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }

a.text-link {
  color: var(--acid);
  text-decoration: none;
  border-bottom: 1px solid var(--acid);
}
a.text-link:hover { background: var(--acid); color: var(--bg); }

/* ---------- Pack pages ---------- */
.page-title { padding: 3.5rem 0 2.5rem; }
.page-title .crumb {
  color: var(--dim);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.page-title .crumb a { color: var(--dim); text-decoration: none; }
.page-title .crumb a:hover { color: var(--acid); }
.page-title .crumb .here { color: var(--acid); }
.page-title h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.05;
  color: #fff;
}
.page-title .sub { margin-top: 1.5rem; color: var(--dim); max-width: 44em; }

.pack-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .pack-cols { grid-template-columns: 1fr; gap: 2.5rem; }
}

.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1.75rem 2.5rem;
}
.worker {
  border-left: 2px solid var(--acid);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.worker h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}
.worker h3 .mode { color: var(--acid); font-weight: 400; font-size: 0.8125rem; }
.worker p { color: var(--dim); font-size: 0.875rem; margin-top: 0.5rem; }

.plain-list { list-style: none; max-width: 44em; }
.plain-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--dim);
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
}
.plain-list li::before { content: ">"; color: var(--acid); position: absolute; left: 0; }

.price-block {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2.25rem 1.75rem;
}
.price-block .nums {
  font-family: "Instrument Serif", serif;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--acid);
}
.price-block .terms { margin-top: 1.5rem; color: var(--dim); font-size: 0.875rem; }
.cta {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--acid);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.25rem;
}
.cta:hover { background: #fff; }
.cta-note { display: block; margin-top: 0.875rem; font-size: 0.75rem; color: var(--dim); }

/* ---------- Email capture ---------- */
.embed-wrap { margin-top: 1.5rem; max-width: 560px; }

/* ---------- Manifesto byline ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.byline .avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex: none;
}
.byline-name { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.byline-loc { color: var(--dim); font-size: 0.8125rem; margin-top: 0.15rem; }
.embed-placeholder {
  margin-top: 1.5rem;
  border: 1px dashed var(--acid);
  padding: 2.25rem 1rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  max-width: 560px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.9);
  padding: 2.5rem 0 3.5rem;
}
footer .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
footer nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--acid);
  margin-right: 1.5rem;
  font-size: 0.875rem;
}
footer nav a:hover { color: var(--acid); }
footer .small { font-size: 0.75rem; color: var(--dim); }
