/* Workbench homepage */

:root {
  --bg: #0d0f12;
  --panel: #14171b;
  --panel-raised: #191d22;
  --panel-soft: #111418;
  --border: #2a3037;
  --border-strong: #3a424b;
  --text: #f2f0e9;
  --muted: #9ca3aa;
  --muted-2: #737b84;
  --amber: #e4b45c;
  --green: #7eb08c;
  --green-soft: #17251b;
  --blue: #7d9fc0;
  --blue-soft: #18222e;
  --purple: #a28bc2;
  --purple-soft: #221c2d;
  --max-width: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #111;
  background: var(--amber);
  border-radius: 9px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  letter-spacing: -.08em;
}

.brand-name { font-weight: 720; letter-spacing: -.02em; }

.topnav { display: flex; gap: 8px; }

.topnav a {
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  font-size: .92rem;
}

.topnav a:hover { color: var(--text); background: var(--panel); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 56px;
  align-items: center;
  min-height: 560px;
  padding: 78px 0 82px;
  border-bottom: 1px solid var(--border);
}

.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 760;
}

.hero-text {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 680;
}

.button-primary { color: #15120c; background: var(--amber); border-color: var(--amber); }
.button-primary:hover { background: #f0c36d; }
.button-quiet { background: var(--panel); }
.button-quiet:hover { border-color: var(--border-strong); background: var(--panel-raised); }

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: .55;
}

.terminal-strip { display: flex; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.terminal-strip span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.terminal-strip span:first-child { background: var(--amber); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hero-stat {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--panel);
}

.hero-stat strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 2.2rem;
  letter-spacing: -.06em;
}

.hero-stat span { color: var(--muted); font-size: .78rem; line-height: 1.4; }

.signal-lines {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .72rem;
  color: var(--muted-2);
  letter-spacing: .08em;
}

.tool-section { padding: 76px 0 94px; border-bottom: 1px solid var(--border); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 26px;
}

.section-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.05em; }

.section-note {
  max-width: 360px;
  margin: 0 0 5px;
  color: var(--muted-2);
  font-size: .9rem;
  line-height: 1.6;
  text-align: right;
}

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

.tool-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--panel-raised);
}

.tool-card-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tool-index { font-family: "SFMono-Regular", Consolas, monospace; color: var(--muted-2); font-size: .76rem; }

.tool-type {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
}

.tool-icon, .future-mark {
  width: 112px;
  height: 112px;
  margin: 48px 0 30px;
  border-radius: 24px;
}

.map-icon { position: relative; background: var(--green-soft); border: 1px solid #2d4633; }

.map-line {
  position: absolute;
  display: block;
  height: 2px;
  background: var(--green);
  transform-origin: left center;
}

.line-a { width: 66px; left: 22px; top: 43px; transform: rotate(-22deg); }
.line-b { width: 55px; left: 30px; top: 70px; transform: rotate(16deg); }

.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.dot-a { left: 25px; top: 31px; }
.dot-b { right: 24px; bottom: 26px; }

.pixel-icon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 20px;
  background: var(--purple-soft);
  border: 1px solid #3e3151;
}

.pixel-icon span { background: #6e5c86; border-radius: 2px; }
.pixel-icon span:nth-child(2), .pixel-icon span:nth-child(5), .pixel-icon span:nth-child(7),
.pixel-icon span:nth-child(10), .pixel-icon span:nth-child(11), .pixel-icon span:nth-child(15) {
  background: var(--purple);
}

.texture-icon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 18px;
  background: var(--blue-soft);
  border: 1px solid #2d4052;
}

.texture-icon span { background: #40586d; border-radius: 4px; }
.texture-icon span:nth-child(2), .texture-icon span:nth-child(4), .texture-icon span:nth-child(6), .texture-icon span:nth-child(8) {
  background: var(--blue);
}

.future-mark {
  display: grid;
  place-items: center;
  color: var(--muted-2);
  background: #121519;
  border: 1px dashed var(--border-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 2.6rem;
  font-weight: 300;
}

.tool-card-body { max-width: 520px; }
.tool-card h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.tool-card-body p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }

.tool-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: .8rem;
}

.tool-card-footer a { color: var(--text); text-decoration: none; font-weight: 680; }
.tool-card-footer a:hover { color: var(--amber); }

.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 50px;
  padding: 88px 0 96px;
}

.about-label span {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--amber);
  font-size: .76rem;
  letter-spacing: .12em;
}

.about-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.about-copy p { margin: 0 0 18px; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }

.footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
}

.footer > div { display: flex; gap: 12px; align-items: center; }
.footer-brand { color: var(--text); font-weight: 700; }
.footer-muted { color: var(--muted-2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 42px; padding: 64px 0 68px; }
  .hero-panel { min-height: 280px; }
  .tool-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 620px) {
  .site-shell { width: min(calc(100% - 22px), var(--max-width)); }
  .topbar { min-height: 66px; }
  .brand-name { display: none; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stat { min-height: 96px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { max-width: none; text-align: left; }
  .tool-card { min-height: 370px; padding: 17px; }
  .tool-icon, .future-mark { margin-top: 38px; }
  .tool-card-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer, .footer > div { align-items: flex-start; flex-direction: column; }
  .footer { justify-content: center; }
  .footer > div { gap: 4px; }
}
