/* Patchen Technologies LLC — patchentech.com
   Dark network-ops theme. No external dependencies. */

:root {
  --ink:        #0A0E17;
  --ink-2:      #0E1420;
  --surface:    #131B29;
  --surface-2:  #182234;
  --line:       #22304A;
  --line-soft:  #1A2333;
  --text:       #E7ECF5;
  --text-dim:   #9AA6BD;
  --text-faint: #66748F;
  --amber:      #FFB454;
  --amber-dim:  #C88A3E;
  --port:       #2A3956;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--amber); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Patch-panel top strip (signature motif) ---- */
.panel-strip {
  display: flex;
  gap: 6px;
  height: 6px;
  width: 100%;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.panel-strip span {
  flex: 1;
  background: var(--port);
}
.panel-strip span:nth-child(4n) { background: var(--amber-dim); }

/* ---- Nav ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--amber);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.brand small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-left: 2px;
}
nav.links { display: flex; gap: 26px; }
nav.links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav.links a:hover { color: var(--text); text-decoration: none; }
nav.links a.current { color: var(--amber); }

/* ---- Shared bits ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--amber-dim);
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 680; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 620; }

p.lead { font-size: 1.2rem; color: var(--text-dim); max-width: 60ch; }

/* ---- Hero ---- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line-soft); }
.hero h1 { max-width: 18ch; }
.hero p.lead { margin-top: 22px; }
.cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn.primary:hover { background: #ffc172; border-color: #ffc172; }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---- Sections ---- */
section.block { padding: 76px 0; border-bottom: 1px solid var(--line-soft); }
.block h2 + p.lead { margin-top: 16px; }

/* ---- Product grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 26px 26px 24px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.card:hover {
  border-color: var(--line);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line-soft);
  padding: 3px 9px;
  border-radius: 20px;
}
.card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card h3 { color: var(--text); }
.card h3 .name { color: var(--text); }
.card h3 a.name { color: var(--text); text-decoration: none; }
.card h3 a.name:hover { color: var(--amber); }
.card h3 a.name::after {
  content: " ↗";
  font-size: 0.72em;
  color: var(--text-faint);
  vertical-align: super;
}
.card h3 a.name:hover::after { color: var(--amber); }
.card p { color: var(--text-dim); font-size: 15px; margin: 10px 0 0; }

/* outbound links on product detail rows */
.detail .body .links {
  margin-top: 20px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
}
.detail .body .links a { color: var(--amber); }
.detail .body .links a::after { content: " ↗"; }

/* status chip (coming soon / in development) */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
}
.detail .meta .status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 12px;
}

/* ---- Detail rows (products page) ---- */
.detail {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.detail:last-child { border-bottom: 0; }
.detail .meta .kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail .meta h3 { margin: 8px 0 12px; font-size: 1.5rem; }
.detail .meta .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.detail .body p { color: var(--text-dim); margin: 0 0 14px; }
.detail .body ul {
  margin: 0; padding: 0; list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.detail .body ul li { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.detail .body ul li::before { content: "→ "; color: var(--amber-dim); }

/* ---- Contact / about prose ---- */
.prose { max-width: 68ch; }
.prose p { color: var(--text-dim); margin: 0 0 20px; }
.prose h2 { color: var(--text); margin: 40px 0 16px; }

.infocard {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 30px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 14px;
}
.infocard .row { display: flex; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.infocard .row:first-child { border-top: 0; }
.infocard .row .k { width: 130px; color: var(--text-faint); flex-shrink: 0; }
.infocard .row .v { color: var(--text); }

/* ---- Footer ---- */
footer.site {
  padding: 48px 0 60px;
  color: var(--text-faint);
  font-size: 13px;
}
footer.site .frow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
footer.site .legal { max-width: 46ch; line-height: 1.6; }
footer.site .legal strong { color: var(--text-dim); font-weight: 600; }
footer.site nav { display: flex; flex-direction: column; gap: 8px; }
footer.site nav a { color: var(--text-faint); }
footer.site nav a:hover { color: var(--text); text-decoration: none; }
footer.site .copy {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---- Legal pages (privacy / terms) ---- */
.legal-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 20px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 26px 30px;
  margin: 0 0 48px;
}
.toc .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}
.toc ol {
  margin: 0;
  padding-left: 1.5em;
  font-size: 14px;
  color: var(--text-dim);
}
.toc li { padding: 3px 0; }
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--amber); }
.prose ul, .prose ol { color: var(--text-dim); margin: 0 0 20px; padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--amber-dim); }
.prose h3 { color: var(--text); margin: 30px 0 12px; }
.prose strong { color: var(--text); font-weight: 600; }
.notice {
  background: var(--surface);
  border: 1px solid var(--amber-dim);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
}
.notice p { color: var(--text); }
.notice p:last-child { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  nav.links { gap: 18px; }
  nav.links a { font-size: 13px; }
  .brand small { display: none; }
  .grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 60px 0 52px; }
  section.block { padding: 56px 0; }
}

/* ---- A11y ---- */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
