:root {
  color-scheme: dark;
  --bg: #07090C;
  --panel: #0D1117;
  --panel-2: #11161D;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #E6EDF3;
  --muted: #7D8590;
  --muted-2: #545C66;
  --signal: #7CE38B;
  --signal-deep: #2DA84F;
  --warn: #F0B454;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 80% -10%, rgba(124,227,139,0.06), transparent 40%),
    linear-gradient(180deg, #0a0e13 0%, #07090C 50%);
  min-height: 100vh;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }

/* GRID BACKGROUND */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top, black 35%, transparent 75%);
  z-index: 0;
}
.container { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; position: relative; z-index: 1; }
.container.narrow { max-width: 820px; }

/* TOPBAR */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,12,0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 34px; height: 27px;
  background: url(/assets/logo.svg) center/contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(124,227,139,0.4));
}
nav.primary { display: flex; gap: 26px; color: var(--muted); }
nav.primary a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.15s ease; }
nav.primary a::before { content: "~/"; color: var(--muted-2); }
nav.primary a.active { color: var(--signal); }
nav.primary a:hover { color: var(--text); }
nav.primary a.active:hover { color: var(--signal); }
.topbar-right { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(124,227,139,0.08);
  border: 1px solid rgba(124,227,139,0.2);
  color: var(--signal);
  font-size: 11px;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px rgba(124,227,139,0.7); }

/* HERO */
section.hero { padding: 100px 0 80px; position: relative; }
section.hero.compact { padding: 72px 0 40px; }
.prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.prompt .user { color: var(--signal); }
.prompt .path { color: var(--warn); }
.prompt .cmd { color: var(--text); }
.prompt .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--signal);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 18ch;
}
h1.page {
  font-size: clamp(40px, 5.5vw, 64px);
  max-width: 22ch;
}
h1 .accent { color: var(--signal); }
h1 .accent-dim { color: var(--muted); }
.lede {
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 36px;
}
.lede strong { color: var(--text); font-weight: 500; }
.lede a { color: var(--signal); border-bottom: 1px dashed rgba(124,227,139,0.4); transition: color 0.15s ease, border-color 0.15s ease; }
.lede a:hover { color: var(--text); border-bottom-color: var(--text); }

.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn:hover { border-color: var(--signal); color: var(--signal); }
.btn-primary {
  background: var(--signal);
  color: #07090C;
  border-color: var(--signal);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
  color: #07090C;
}

/* SECTION HEAD */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 36px;
  gap: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.section-tag .signal { color: var(--signal); }

/* SERVICES (3-card grid) */
section.services { padding: 96px 0; position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.svc {
  padding: 28px;
  background: var(--panel);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  position: relative;
  transition: background 0.2s ease;
}
.svc:hover { background: var(--panel-2); }
.svc .ix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.svc h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.svc .ascii {
  position: absolute; top: 24px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--muted-2);
  opacity: 0.7;
}

/* CAPABILITIES PANEL */
section.capabilities { padding: 0 0 96px; position: relative; }
.cap-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.cap-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.cap-panel-head .left { display: flex; align-items: center; gap: 10px; }
.cap-panel-head .left::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 8px rgba(124,227,139,0.6);
}
.cap-panel-head .right { color: var(--muted-2); letter-spacing: 0.04em; }
.cap-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.cap {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px;
}
.cap:last-child { border-right: 0; }
.cap-marker {
  font-size: 13px;
  color: var(--signal);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cap p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.cap .proof {
  margin-top: auto;
  padding-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  border-top: 1px dashed var(--line);
}

/* SERVICES CTA */
.svc-cta {
  margin-top: 24px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.svc-cta .left {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px;
  color: var(--text);
}
.svc-cta .left .mono {
  color: var(--signal);
  font-size: 13px;
}
.svc-cta .left .muted { color: var(--muted); }

/* APPS */
section.apps { padding: 96px 0; position: relative; }
.ls-output {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.ls-output .signal { color: var(--signal); }
.ls-output .warn { color: var(--warn); }
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 28px;
  display: flex; flex-direction: row; align-items: flex-start; gap: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.app-icon {
  display: block;
  width: 72px; height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  filter: saturate(0.75);
  box-shadow: 0 10px 28px rgba(124,227,139,0.4);
  transition: filter 0.35s ease, box-shadow 0.35s ease;
}
.app-card:hover .app-icon {
  filter: saturate(1);
  box-shadow: 0 14px 38px rgba(124,227,139,0.55);
}
.app-icon.large {
  width: 112px; height: 112px;
  border-radius: 24px;
}
.app-icon-frame {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.app-icon-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  position: relative;
}
.app-icon-preview::before,
.app-icon-preview::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--signal);
}
.app-icon-preview::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
}
.app-icon-preview::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
}
.app-icon-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.app-card-body {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.app-card:hover { border-color: var(--line-strong); }
.app-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0.4;
}
.app-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.app-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.app-id .file { color: var(--text); }
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(240,180,84,0.1);
  color: var(--warn);
  border: 1px solid rgba(240,180,84,0.25);
}
.app-name {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.app-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.app-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.app-features li {
  display: flex; align-items: baseline; gap: 10px;
}
.app-features li::before {
  content: "▸";
  color: var(--signal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.app-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  display: grid; gap: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.app-spec .row { display: flex; gap: 14px; }
.app-spec .row .k { color: var(--muted-2); min-width: 80px; text-transform: uppercase; }
.app-spec .row .v { color: var(--text); }

/* PRACTICE PANELS (services page) */
section.practices { padding: 40px 0 96px; position: relative; }
.practice-stack { display: flex; flex-direction: column; gap: 20px; }
.practice {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  transition: border-color 0.2s ease;
}
.practice:hover { border-color: var(--line-strong); }
.practice-head { display: flex; flex-direction: column; gap: 12px; }
.practice-head .ix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.practice-head h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.practice-head .lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.practice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--text);
  align-self: center;
}
.practice-list li {
  display: flex; align-items: baseline; gap: 10px;
}
.practice-list li::before {
  content: "▸";
  color: var(--signal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  flex-shrink: 0;
}

/* PROCESS STEPS */
section.process { padding: 0 0 96px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}
.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* CALLOUT (article body) */
.callout {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 6px;
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.callout p { margin: 0; font-size: 14px; color: var(--text); }
.callout a {
  color: var(--signal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px dashed rgba(124,227,139,0.4);
}
.callout a:hover { color: var(--text); border-bottom-color: var(--text); }

/* ARTICLE / LEGAL PAGES */
.article {
  padding: 56px 0 96px;
}
.article-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.article-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px;
}
.article-head .left::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 8px rgba(124,227,139,0.6);
}
.article-body { padding: 40px 48px; max-width: 720px; }
.article-body h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.article-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--signal); border-bottom: 1px dashed rgba(124,227,139,0.4); }
.article-body a:hover { color: var(--text); border-bottom-color: var(--text); }
.article-body ul, .article-body ol { color: var(--muted); padding-left: 20px; margin: 0 0 16px; }
.article-body li { margin: 6px 0; line-height: 1.6; }
.article-body .meta-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.article-body .meta-row span { color: var(--text); }

/* SUPPORT CARDS */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.support-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.support-card .name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--signal);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.support-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}
.support-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.support-card a.email {
  font-family: 'JetBrains Mono', monospace;
  color: var(--signal);
  font-size: 14px;
}

/* ABOUT / VALUES */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 1080px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.value-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.value-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.value-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* CONTACT BLOCK */
.contact-block {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.contact-block h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}
.contact-block p { margin: 0 0 20px; color: var(--muted); }
.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.contact-list li { display: flex; gap: 18px; align-items: baseline; }
.contact-list li .k { color: var(--muted-2); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; min-width: 100px; }
.contact-list li .v { color: var(--signal); }

/* FOOTER */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--panel);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-grid h4 {
  margin: 0 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.foot-grid ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.foot-grid ul a:hover { color: var(--signal); }
.foot-brand {
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 600;
  display: flex; flex-direction: column; gap: 8px;
}
.foot-brand-line {
  display: flex; align-items: center; gap: 12px;
}
.foot-brand-mark {
  display: inline-block;
  width: 30px; height: 24px;
  background: url(/assets/logo.svg) center/contain no-repeat;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(124,227,139,0.3));
}
.foot-brand small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.colophon {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .svc-grid, .cap-grid, .apps-grid, .support-grid, .values-grid, .steps-grid { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr; gap: 24px; }
  .practice-list { grid-template-columns: 1fr; }
  .cap { border-right: 0; border-bottom: 1px solid var(--line); }
  .cap:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .topbar-right { display: none; }
  nav.primary { gap: 18px; }
  section.hero { padding: 64px 0 56px; }
  .article-body { padding: 28px 24px; }
  .app-card { flex-direction: column; gap: 18px; }
  .app-icon, .app-icon.large { width: 80px; height: 80px; border-radius: 18px; }
}
@media (max-width: 600px) {
  .container { padding-left: 22px; padding-right: 22px; }
  nav.primary { gap: 16px; font-size: 14px; }
  nav.primary a::before { content: ""; }
  .topbar-inner { font-size: 14px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; row-gap: 10px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand-mark { width: 26px; height: 21px; }
  .section-tag { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .colophon { flex-direction: column; align-items: flex-start; }
  .svc-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  nav.primary { gap: 14px; font-size: 13px; width: 100%; justify-content: space-between; }
  .brand { font-size: 17px; }
  .brand-mark { width: 24px; height: 19px; }
}
