/* Inktype — project site. Dark console look, same tokens as the app's Classic Dark. */

@font-face { font-family: "Literata"; src: url("fonts/literata-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "Literata"; src: url("fonts/literata-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #131313;
  --surface: #1a1a1b;
  --raised: #202021;
  --line: #2b2b2c;
  --fg: #e9e7e2;
  --muted: #8a8781;
  --faint: #5c5a56;
  --accent: #7fd6a4;
  --accent-ink: #0b1a12;
  --error: #ff6b6b;
  --serif: "Literata", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--gutter);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding-block: 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--fg); }
.brand span { font: italic 650 19px var(--serif); letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); font-size: 14px; }
.nav nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav nav a:hover { color: var(--fg); }
.lang { font: 600 12px var(--sans); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.lang:hover { border-color: var(--muted); }
@media (max-width: 620px) { .nav nav a:not(.gh) { display: none; } }

/* ----------------------------------------------------------------- hero */
.hero { max-width: 1120px; margin: 0 auto; padding-block: clamp(48px, 9vw, 110px) 40px; text-align: center; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wordmark { margin: 14px 0 0; font: italic 700 clamp(56px, 11vw, 124px)/.95 var(--serif); letter-spacing: -0.03em; }
.wordmark span { color: var(--accent); }
.tagline { margin: 18px auto 0; max-width: 34ch; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); text-wrap: balance; }

.console {
  position: relative; margin: clamp(36px, 6vw, 60px) auto 0; max-width: 820px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px clamp(18px, 4vw, 44px) 34px; cursor: text;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
  transition: border-color .2s;
}
.console:focus-within, .console:focus { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); outline: none; }
.console-bar { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.console-bar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-bar .stats { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.console-bar .stats b { font-weight: 600; }
.console-bar .stats small { color: var(--muted); font-size: 11px; margin-right: 8px; }
.demo-text { margin: 0; font: 700 clamp(18px, 2.6vw, 24px)/1.75 var(--serif); letter-spacing: .01em; color: var(--faint); min-height: 5.2em; }
.demo-text .t { color: var(--fg); }
.demo-text .e { color: var(--error); text-decoration: underline 2px color-mix(in srgb, var(--error) 70%, transparent); text-underline-offset: .18em; }
.demo-text .c { background: color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 3px; color: var(--fg); }
.console.user:not(:focus-within) .demo-text .c { animation: blink 1.1s steps(1) infinite; }
.demo-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; transition: opacity .2s; }
.console.user .demo-hint { color: var(--accent); }
@keyframes blink { 50% { background: transparent; } }

.fx-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.fx-chips button {
  font: 500 13px var(--sans); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; transition: all .15s;
}
.fx-chips button:hover { color: var(--fg); border-color: var(--faint); }
.fx-chips button[aria-checked="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px;
  font: 600 15px var(--sans); text-decoration: none; border: 1px solid var(--line); color: var(--fg);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.promise { margin-top: 18px; }

/* ---------------------------------------------------------- screenshots */
.shots {
  max-width: 1120px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- sections */
.section { max-width: 1120px; margin: clamp(80px, 12vw, 140px) auto 0; }
.section h2 { margin: 0; font: 700 clamp(30px, 4.6vw, 46px)/1.1 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 14px 0 0; max-width: 60ch; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.features article { background: var(--bg); padding: 26px 24px 28px; }
.features h3 { margin: 0 0 8px; font: 650 18px/1.3 var(--serif); }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.libs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-top: 36px; }
.libs article { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface); }
.libs .num { display: block; font: 700 34px var(--serif); color: var(--accent); letter-spacing: -0.02em; }
.libs h3 { margin: 6px 0 6px; font-size: 16px; }
.libs p { margin: 0; color: var(--muted); font-size: 15px; }
.search-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 40px 0 14px; }
.search-box, .search-hit { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--surface); min-width: 240px; }
.search-box { font: 16px var(--sans); }
.search-box .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.search-hit { display: flex; flex-direction: column; transition: opacity .25s, transform .25s; }
.search-hit.hidden { opacity: 0; transform: translateX(-6px); }
.search-hit b { font: 650 17px var(--serif); }
.arrow { color: var(--accent); font-size: 22px; }

.code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; margin: 34px 0 16px; }
.code { border: 1px solid var(--line); border-radius: 14px; background: #0e0e0e; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.copy { font: 500 12px var(--sans); color: var(--fg); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.copy.done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 14px/1.8 var(--mono); }
.code .p { color: var(--accent); user-select: none; }
.code .c { color: var(--faint); }

.vibe-card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, #9fb4ff 14%, transparent), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--surface);
}
.vibe-card p { max-width: 62ch; color: color-mix(in srgb, var(--fg) 82%, var(--bg)); font-size: 17px; }
.vibe-card .btn { margin-top: 10px; }
.badge { display: inline-block; margin-bottom: 14px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #0d1330; background: #9fb4ff; }

.footer { max-width: 1120px; margin: clamp(80px, 12vw, 140px) auto 0; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer a { color: var(--fg); text-underline-offset: 3px; }

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