/* Synaptech — architectural off-white. One system: ink on paper, 1px schematic lines, one accent. */
:root {
  --bg: #f5f4ef;
  --surface: #fbfaf7;
  --ink: #0e0e10;
  --muted: #5b5b61;
  --line: #d3d1c8;
  --line-strong: #0e0e10;
  --accent: #ff4f1f;
  --live: #1a8f4c;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.mono, dt, kbd { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand img { height: 30px; width: auto; mix-blend-mode: multiply; }
.bar nav { display: flex; gap: 4px; flex: 1; }
.bar nav a { text-decoration: none; font-size: 14px; padding: 6px 10px; border: 1px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current] { border-color: var(--line); background: var(--surface); }
.bar-end { display: flex; align-items: center; gap: 14px; }
.kbd-hint { background: none; border: 1px solid var(--line); padding: 3px 8px; cursor: pointer; color: var(--muted); }
.kbd-hint:hover { border-color: var(--ink); color: var(--ink); }
kbd { font-size: 11px; }
.internal { font: 12px var(--mono); color: var(--muted); text-decoration: none; opacity: .75; }
.internal:hover { opacity: 1; text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; padding-top: 72px; padding-bottom: 72px; align-items: stretch; }
.eyebrow { color: var(--muted); margin: 0 0 20px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 650; max-width: 16ch; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; margin: 0; font-weight: 600; line-height: 1.15; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; font-weight: 600; }
.lede { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.hero-copy { padding-right: 48px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 11px 18px; border: 1px solid var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; background: transparent; color: var(--ink); cursor: pointer; font-family: inherit; transition: background .12s, color .12s, transform .12s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }

/* spec table */
.spec { margin: 0; border: 1px solid var(--line-strong); background: var(--surface); display: grid; align-content: start; }
.spec > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font: 500 14px var(--mono); text-align: right; }
.hero .spec { align-self: center; }

/* sections */
.section { padding-top: 72px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.section.tight { border-top: 0; padding-top: 24px; padding-bottom: 72px; }
.section:last-of-type { padding-bottom: 96px; }
.section-head { display: grid; grid-template-columns: 160px 1fr auto; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--muted); }
.more { font-size: 14px; text-decoration: none; }
.more:hover { text-decoration: underline; }
.lead-in { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-strong); background: var(--surface); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px; text-decoration: none; border-right: 1px solid var(--line); transition: background .12s; position: relative; }
.card:last-child { border-right: 0; }
.card:hover { background: #fff; }
.card::after { content: ""; position: absolute; inset: -1px; border: 1px solid transparent; pointer-events: none; transition: border-color .12s; }
.card:hover::after { border-color: var(--accent); }
.card-top, .card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-top .mono, .card-foot .mono { color: var(--muted); }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card-foot { border-top: 1px solid var(--line); padding-top: 14px; }
.arrow { transition: transform .12s; }
.card:hover .arrow { transform: translateX(4px); color: var(--accent); }
.shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border: 1px solid var(--line); background: #0d1b29; }
.shot.placeholder { background: repeating-linear-gradient(0deg, transparent 0 15px, var(--line) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, var(--line) 15px 16px), var(--bg); display: grid; place-items: center; position: relative; color: var(--ink); }
.shot.placeholder .mono { position: absolute; left: 10px; top: 8px; color: var(--muted); }
.shot.placeholder svg { width: 70%; height: 40%; }
.icon { width: 24px; height: 24px; border-radius: 5px; }
.icon.lg { width: 48px; height: 48px; border-radius: 10px; display: inline-block; vertical-align: middle; margin-right: 14px; }

/* badge */
.badge { display: inline-flex; align-items: center; gap: 7px; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; background: var(--bg); color: var(--ink); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.live i { background: var(--live); }
.badge.in-development i { background: var(--accent); }

/* capabilities */
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); background: var(--surface); }
.caps li { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.caps li:last-child { border-right: 0; }
.caps .mono { color: var(--accent); }
.caps p { margin: 0; color: var(--muted); font-size: 15px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input, textarea { font: 16px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); padding: 11px 12px; border-radius: 0; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#form-status { margin: 0; color: var(--muted); text-transform: none; font-size: 13px; }
#form-status.ok { color: var(--live); }
#form-status.err { color: #c0361a; }

/* inner pages */
.page-head { padding-top: 64px; padding-bottom: 40px; }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-bottom: 48px; align-items: start; }
.detail .shot { margin-bottom: 28px; }
.body { max-width: 62ch; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; border: 1px solid var(--line); background: var(--surface); }
.ticks li { padding: 12px 16px 12px 40px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 8px; height: 8px; background: var(--accent); }
.spec.side { position: sticky; top: 84px; }
.next { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; transition: border-color .12s, background .12s; }
.next:hover { border-color: var(--accent); background: #fff; }
.next .mono { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line-strong); }
.foot { display: flex; gap: 24px; align-items: center; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.foot .mono { color: var(--muted); }
.foot nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* palette */
.palette { position: fixed; inset: 0; background: rgba(14, 14, 16, .35); z-index: 60; display: grid; justify-items: center; align-items: start; padding-top: 14vh; }
.palette[hidden] { display: none; }
.palette-box { width: min(520px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.palette-box input { border: 0; border-bottom: 1px solid var(--line); padding: 16px; }
.palette-box input:focus { outline: none; }
.palette-box ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette-box li a { display: flex; justify-content: space-between; padding: 10px 12px; text-decoration: none; font-size: 15px; }
.palette-box li a span { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; }
.palette-box li.sel a { background: var(--ink); color: var(--bg); }
.palette-box li.sel a span { color: var(--line); }

/* app portal */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); background: var(--surface); }
.tool { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; display: grid; gap: 8px; }
.tool:hover { background: #fff; outline: 1px solid var(--accent); outline-offset: -1px; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }
.notice { border: 1px dashed var(--line-strong); padding: 14px 16px; margin-top: 24px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .contact, .detail { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero-copy { padding-right: 0; }
  .grid, .app-grid { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .caps { grid-template-columns: 1fr 1fr; }
  .caps li:nth-child(2) { border-right: 0; }
  .caps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .spec.side { position: static; }
  .bar { gap: 12px; }
  .kbd-hint { display: none; }
}
@media (max-width: 520px) {
  .bar nav a { padding: 6px 6px; font-size: 13px; }
  .brand img { height: 24px; }
  .caps { grid-template-columns: 1fr; }
  .caps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .caps li:last-child { border-bottom: 0; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
