/* NetBlink. Engineering plain, warm charcoal + copper. Type: Geist / Geist Mono. */

:root {
  --bg:        #121110;
  --bg-raised: #1a1917;
  --surface:   #1e1c1a;
  --line:      #2e2b27;
  --line-soft: #26241f;
  --text:      #ece7df;
  --muted:     #9c968b;
  --dim:       #6e695f;
  --copper:    #d98a3f;
  --copper-hi: #f0a659;
  --ok:        #8fb996;

  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav__brand img { width: auto; height: 26px; filter: invert(1) brightness(0.95); }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.lang__btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: inherit; color: var(--dim); letter-spacing: 0.04em;
}
.lang__btn[aria-pressed="true"] { color: var(--copper); }
.lang__btn:hover { color: var(--text); }
.lang__sep { color: var(--line); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--copper); margin-bottom: 16px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--copper); color: #1a1208; border-color: var(--copper); }
.btn--primary:hover { background: var(--copper-hi); border-color: var(--copper-hi); }
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--ghost::after { content: "↓"; color: var(--copper); }
.btn:active { transform: translateY(1px); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line-soft); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.04;
  max-width: 12em;
  margin-bottom: 22px;
}
.hero--text h1 { max-width: 15em; font-size: clamp(2.3rem, 4.8vw, 4rem); }
.hero--text .lede { max-width: 40em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- trace panel ---------- */
.trace {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.trace__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 12px; letter-spacing: 0.03em;
}
.trace__bar > span { white-space: nowrap; }
.trace__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.trace__lines { padding: 14px 16px 16px; display: grid; gap: 6px; }
.t { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.t__role { color: var(--dim); }
.t__body { color: var(--text); overflow-wrap: anywhere; }
.t[data-role="claude"] .t__body { color: var(--copper); }
.t[data-role="server"] .t__body { color: var(--muted); }
.t[data-role="guard"] .t__role { color: var(--ok); }
.t[data-role="guard"] .t__body { color: var(--muted); }
.t__arg { color: var(--muted); }
.ok { color: var(--ok); }
.t--sql .t__body {
  margin: 0; padding: 8px 10px;
  background: var(--bg); border-radius: 6px;
  color: var(--text); font: inherit; white-space: pre; overflow-x: auto;
}

/* typed-in reveal */
.trace--animate .t { opacity: 0; transform: translateY(3px); }
.trace--animate .t.is-in { opacity: 1; transform: none; transition: opacity .28s ease, transform .28s ease; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line-soft); }
.section--raised { background: var(--bg-raised); }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }
.section__head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2, .split h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; }

/* steps: a real sequence, so numbering carries meaning */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--copper); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* split layout (partners, about/contact) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split h2 { margin-bottom: 16px; }
.split__body { padding-top: 6px; }
.split__body > p { color: var(--muted); }

.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-family: var(--mono); }

/* rows (service lists) */
.list__title { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.rows li { padding: 12px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows--tight { margin-top: 24px; }
.rows--tight li { padding: 10px 0; font-size: 15.5px; color: var(--text); }
.service .split > div:first-child .chips { margin-top: 26px; }
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
}

/* about photo */
.about-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-grid h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; margin-bottom: 16px; }
.about__photo { margin: 0; display: grid; gap: 10px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(.85); border: 1px solid var(--line); }
.about__photo figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.about__photo figcaption span { display: block; color: var(--dim); }

/* contact */
.contact { display: grid; gap: 16px; justify-items: start; }
.contact .eyebrow { margin-bottom: 0; }
.contact__lead { color: var(--muted); }
.contact__mail { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.contact__mail:hover { color: var(--copper-hi); }
.contact__addr { color: var(--dim); font-size: 15px; line-height: 1.5; }
.contact .btn { margin-top: 8px; }

/* footer */
.foot { padding-block: 28px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 180px minmax(0, 1fr); }
  .about-grid .contact { grid-column: 1 / -1; padding-top: 8px; }
  .hero h1 { max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about__photo { max-width: 160px; }
  .t { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .t__role { font-size: 11.5px; padding-top: 2px; }
  .trace { font-size: 12.5px; }
  .trace__bar > span:nth-child(n+4) { display: none; }
  .t--sql .t__body { font-size: 11.5px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .trace--animate .t { opacity: 1; transform: none; transition: none; }
  .btn, .tile { transition: none; }
}
