/* Quillote site. One stylesheet, no framework, self-hosted type. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #0b0d11;
  --ink-2: #0e1117;
  --ink-3: #131822;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3eee3;
  --muted: #a9a291;
  --quiet: #7d776a;
  --gold: #d9a441;
  --gold-bright: #f0c46a;
  --gold-soft: rgba(217, 164, 65, 0.12);
  --paper: #f3ecdf;
  --paper-2: #e9dfce;
  --paper-ink: #221d17;
  --paper-muted: #6f6454;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

::selection {
  background: var(--gold);
  color: #161006;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #161006;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(11, 13, 17, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
}
.brand-word {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f4efe4;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: #bdb6a7;
  font-size: 13px;
  font-weight: 450;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #191307;
  font-weight: 600;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.nav-links .nav-cta:hover {
  background: var(--gold-bright);
  color: #191307;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle-line {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition:
    transform 0.2s var(--ease),
    top 0.2s var(--ease);
}
.nav-toggle-line:nth-child(1) {
  top: 18px;
}
.nav-toggle-line:nth-child(2) {
  top: 25px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 148px 24px 84px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -20% -10% auto 30%;
  height: 900px;
  background: radial-gradient(ellipse at 55% 35%, rgba(217, 164, 65, 0.13), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b5ad9c;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.12);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 6.1vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #f7f2e7;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  margin: 26px 0 0;
  max-width: 520px;
  color: #b8b1a2;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: #171105;
  box-shadow: 0 10px 34px rgba(217, 164, 65, 0.2);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(217, 164, 65, 0.3);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: #ded7c9;
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateY(-2px);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #8f887a;
  font-size: 11.5px;
}
.hero-proof strong {
  color: #e6dfd1;
  font-weight: 600;
}

.hero-watermark {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -190px;
  width: 860px;
  height: auto;
  opacity: 0.035;
  transform: rotate(-9deg);
  pointer-events: none;
  user-select: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 80% 30%, rgba(217, 164, 65, 0.06), transparent 40%);
  pointer-events: none;
}

/* --------------------------------------------------------- hero devices */

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-frame {
  width: 100%;
  max-width: 660px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  overflow: hidden;
  background: #0d1016;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.62),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 90px rgba(217, 164, 65, 0.06);
}
.window-bar {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #151922;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.traffic {
  display: inline-flex;
  gap: 6px;
}
.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.traffic i:nth-child(1) {
  background: #ff5f57;
}
.traffic i:nth-child(2) {
  background: #febc2e;
}
.traffic i:nth-child(3) {
  background: #28c840;
}
.window-title {
  color: #8d8779;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.window-dots {
  margin-left: auto;
  color: #817b6e;
  letter-spacing: 2px;
  font-size: 12px;
}
.window-frame picture,
.window-frame img {
  display: block;
  width: 100%;
}

.phone-frame {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 176px;
  padding: 5px;
  border-radius: 28px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(217, 164, 65, 0.08);
  transform: rotate(2.4deg);
  overflow: hidden;
}
.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 23px;
}
.phone-notch {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 15px;
  border-radius: 999px;
  background: #05070a;
}

.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 21, 29, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #e8e1d4;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.chip small {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip-a {
  top: 4%;
  left: -26px;
}
.chip-b {
  bottom: 17%;
  left: -42px;
}
.chip-c {
  top: 43%;
  right: -20px;
}

/* --------------------------------------------------------- proof strip */

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.proof-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.proof-shell p {
  margin: 0;
  color: #8d8678;
  font-size: 11px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof-mark {
  color: var(--gold);
  font-size: 9px;
}

/* ------------------------------------------------------------- sections */

.section {
  position: relative;
  padding: clamp(84px, 10vw, 132px) 24px;
  scroll-margin-top: 80px;
}
.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  max-width: 780px;
  margin: 0 auto 52px;
}
.section-head .lead {
  max-width: 620px;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #817b6e;
}
.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}
.label span {
  color: var(--gold);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f6f1e6;
}

.lead {
  margin: 20px 0 0;
  color: #a9a291;
  font-size: 1.03rem;
  line-height: 1.72;
}

.text-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, 0.35);
  padding-bottom: 2px;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.text-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ----------------------------------------------------------------- demo */

.modes {
  background: linear-gradient(to bottom, var(--ink), #0a0c10);
}

.demo-window {
  position: relative;
  max-width: var(--max);
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  overflow: hidden;
  background: #0b0e13;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}
.demo-bar {
  height: 42px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #11151c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-tab-title {
  color: #a8a193;
  font-size: 11.5px;
}
.demo-dots {
  margin-left: auto;
  color: #6f6a5e;
  letter-spacing: 2px;
  font-size: 13px;
}

.demo-panels {
  min-height: 438px;
  padding: 42px 52px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217, 164, 65, 0.035), transparent 50%), #0b0e13;
}
.demo-panel[hidden] {
  display: none;
}
.source-code {
  margin: 0;
  max-width: 760px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.95;
  color: #c8c1b2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tok-h {
  color: var(--gold-bright);
}
.tok-strong {
  color: #f5f0e5;
  font-weight: 600;
}
.tok-em {
  color: #d8cbb2;
  font-style: italic;
}
.tok-plain {
  color: #d4cdbf;
}
.tok-link {
  color: #8eb8e8;
  text-decoration: underline;
  text-decoration-color: rgba(142, 184, 232, 0.4);
  text-underline-offset: 3px;
}
.tok-fence {
  color: #6b665b;
}
.tok-code {
  color: #a8d59b;
}

.live-doc {
  max-width: 620px;
}
.live-doc h3 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f8f3e8;
}
.live-doc h4 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0eadf;
}
.live-doc p {
  margin: 10px 0;
  color: #cbc4b5;
  font-size: 0.98rem;
  line-height: 1.75;
}
.live-doc strong {
  color: #fff;
  font-weight: 650;
}
.live-doc em {
  color: #e4d7c0;
}
.live-doc a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(240, 196, 106, 0.4);
  text-underline-offset: 3px;
}
.live-doc pre {
  margin: 22px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #121720;
}
.live-doc code,
.read-doc code {
  font-family: var(--mono);
  font-size: 12.5px;
}
.code-key {
  color: #c994e6;
}
.code-str {
  color: #a5d6a7;
}
.live-tail {
  display: inline-flex;
  align-items: center;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--gold);
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.demo-read {
  display: flex;
  justify-content: center;
}
.read-doc {
  width: 100%;
  max-width: 600px;
  padding-top: 4px;
}
.read-kicker {
  margin: 0 0 14px !important;
  font-family: var(--mono);
  font-size: 10px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold) !important;
}
.read-doc h3 {
  margin: 0 0 18px;
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #f8f3e8;
}
.read-doc p {
  margin: 12px 0;
  color: #c9c2b3;
  font-size: 1.02rem;
  line-height: 1.8;
}
.read-doc strong {
  color: #fff;
}
.read-doc em {
  color: #e5d8c1;
}
.read-doc a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(240, 196, 106, 0.4);
  text-underline-offset: 3px;
}
.read-doc pre {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #121720;
  overflow-x: auto;
}

.demo-status {
  min-height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f131a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7e786b;
}
.demo-file {
  color: #b7b0a2;
}
.demo-meta {
  color: #6f6a5e;
}
.demo-tabs {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: #0a0d12;
}
.demo-tab {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8d8779;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  padding: 6px 11px;
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.demo-tab:hover {
  color: #e9e2d4;
}
.demo-tab.is-active {
  background: #202733;
  color: #f6f1e6;
}
.demo-caption {
  margin-top: 15px;
  text-align: center;
  color: #6f6a5e;
  font-size: 10.5px;
}

/* ---------------------------------------------------------- live feature */

.live-feature {
  max-width: var(--max);
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 52px;
  align-items: center;
}
.live-feature-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #f6f1e6;
}
.live-feature-head > p:not(.label) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}
.live-feature-head .live-note {
  margin-top: 18px;
  color: #6f6a5e;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}
.live-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0a0d12;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(217, 164, 65, 0.04);
}
.live-video .demo-caption {
  margin-top: 10px;
  text-align: left;
}
.live-truth {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 14px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.live-truth h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.live-truth ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.live-truth li {
  margin-bottom: 5px;
}
.live-truth p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .live-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 54px;
  }
  .live-truth {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ------------------------------------------------------------ file list */

.file-section {
  border-top: 1px solid var(--line);
}
.split {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 96px;
  align-items: start;
}
.split-sticky {
  position: sticky;
  top: 122px;
}
.split-sticky .lead {
  max-width: 430px;
}
.split-sticky .text-link {
  display: inline-block;
  margin-top: 26px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.feature-num {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.feature-list h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0ebdf;
}
.feature-list p {
  margin: 0;
  max-width: 520px;
  color: #938c7e;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------- paper */

.paper-section {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(84px, 10vw, 132px) 24px;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.paper-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(#b6a78f 0.6px, transparent 0.6px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.paper-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 82px;
  align-items: center;
}
.label-dark {
  color: #85745d;
}
.label-dark::before {
  background: #8c4a12;
}
.label-dark span {
  color: #8c4a12;
}
.paper-copy h2 {
  color: #221d17;
  font-size: clamp(2.6rem, 4.6vw, 4.05rem);
}
.paper-lead {
  margin: 22px 0 0;
  max-width: 440px;
  color: #5a4f40;
  font-size: 1.03rem;
  line-height: 1.75;
}
.paper-note {
  margin: 18px 0 0;
  max-width: 440px;
  color: #776a58;
  font-size: 0.86rem;
  line-height: 1.65;
}
.paper-note strong {
  color: #332a1f;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 26px;
}
.swatches span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: #786b58;
}
.swatches i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(34, 29, 23, 0.14);
  display: block;
}

.paper-card {
  border: 1px solid #d8cdbb;
  border-radius: 13px;
  overflow: hidden;
  background: #fbf6ec;
  box-shadow:
    0 34px 80px rgba(61, 43, 21, 0.18),
    0 4px 16px rgba(61, 43, 21, 0.08);
  transform: rotate(-0.5deg);
}
.paper-bar {
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0e6d5;
  border-bottom: 1px solid #ddd2bf;
  color: #7d6f5b;
  font-family: var(--mono);
  font-size: 9.5px;
}
.traffic-light i:nth-child(1) {
  background: #e2938e;
}
.traffic-light i:nth-child(2) {
  background: #dfc17a;
}
.traffic-light i:nth-child(3) {
  background: #93ba8e;
}
.paper-article {
  padding: 44px 46px 40px;
  font-family: var(--serif);
  color: #2a241c;
}
.paper-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c6a3f;
}
.paper-article h3 {
  margin: 0 0 14px;
  font-size: 2.55rem;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #221d17;
}
.paper-article p {
  margin: 11px 0;
  font-size: 1.04rem;
  line-height: 1.62;
  color: #3e3529;
}
.paper-article strong {
  color: #221d17;
}
.paper-article em {
  color: #4c4032;
}
.paper-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 18px;
  font-family: var(--sans);
  font-size: 0.78rem;
}
.paper-article caption {
  text-align: left;
}
.paper-article th,
.paper-article td {
  padding: 8px 8px;
  border-bottom: 1px solid #ded3c1;
  text-align: left;
}
.paper-article thead th {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c6a3f;
  font-weight: 500;
}
.paper-article td {
  color: #544838;
}
.formula {
  margin: 20px 0 !important;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.75rem !important;
  font-style: italic;
  color: #8c4a12 !important;
}
.paper-article blockquote {
  margin: 20px 0 12px;
  padding-left: 16px;
  border-left: 2px solid #8c4a12;
  color: #5a4b39;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.45;
}
.paper-small {
  font-family: var(--sans);
  font-size: 0.72rem !important;
  color: #8b7c67 !important;
  margin-top: 18px !important;
}

/* ---------------------------------------------------------------- speed */

.speed {
  border-bottom: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 12px auto 60px;
}
.stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 4.2vw, 4.1rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold);
}
.stat-unit {
  font-family: var(--mono);
  font-size: 11px;
  color: #8e8779;
}
.stat-label {
  flex-basis: 100%;
  margin-top: 10px;
  font-size: 11.5px;
  color: #8e8779;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 620px;
}
.compare caption {
  padding: 14px 0 18px;
  text-align: left;
  color: #7e786b;
  font-size: 11px;
}
.compare thead th {
  padding: 14px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #817b6e;
  border-bottom: 1px solid var(--line);
}
.compare thead th:nth-child(2) {
  color: var(--gold);
}
.compare tbody th,
.compare tbody td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: #aaa394;
}
.compare tbody th {
  font-size: 0.82rem;
  color: #8e8779;
}
.compare tbody td:nth-child(2) {
  color: #f0ebdf;
  background: rgba(217, 164, 65, 0.045);
}
.footnote {
  margin: 16px auto 0;
  color: #6f6a5e;
  font-size: 10.5px;
}

/* ------------------------------------------------------------ platforms */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.platform {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1016;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.platform:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #10141b;
  transform: translateY(-3px);
}
.platform.is-ready {
  border-color: rgba(217, 164, 65, 0.32);
  background: linear-gradient(160deg, rgba(217, 164, 65, 0.08), #0d1016 60%);
}
.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.platform h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f0ebdf;
}
.status {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #968f80;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-ready {
  border-color: rgba(217, 164, 65, 0.4);
  color: var(--gold);
  background: rgba(217, 164, 65, 0.07);
}
.status-later {
  color: #6f6a5e;
}
.platform p {
  margin: 14px 0 18px;
  color: #8f887a;
  font-size: 0.82rem;
  line-height: 1.65;
}
.platform .text-link {
  margin-top: auto;
  font-size: 11.5px;
  width: fit-content;
}
.platform-note {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6f6a5e;
}

/* ------------------------------------------------------------------ faq */

.faq-section {
  border-top: 1px solid var(--line);
}
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  list-style: none;
  color: #ebe5d9;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 40px 24px 0;
  max-width: 680px;
  color: #958e80;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ------------------------------------------------------------- download */

.download-section {
  padding: 60px 24px 120px;
  scroll-margin-top: 80px;
}
.download-card {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid rgba(217, 164, 65, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(217, 164, 65, 0.13), transparent 55%),
    linear-gradient(140deg, #151a23, #0c0f14 70%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.download-copy h2 {
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
}
.download-copy .lead {
  max-width: 600px;
}
.download-copy .hero-actions {
  margin-top: 28px;
}
.hash-line {
  margin: 18px 0 0;
  color: #6f6a5e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  word-break: break-all;
  max-width: 580px;
}
.hash-line code {
  color: #8f887a;
  font-family: var(--mono);
  font-size: 9px;
}
.download-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-art img {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(217, 164, 65, 0.22));
}
.download-art span {
  display: none;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: #080a0d;
  border-top: 1px solid var(--line);
  padding: 64px 24px 24px;
}
.footer-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  margin: 16px 0 0;
  max-width: 280px;
  color: #7f796c;
  font-size: 12px;
  line-height: 1.7;
}
.footer-brand p a {
  color: #bdb6a7;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-col h3 {
  margin: 4px 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f6a5e;
}
.footer-col a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #a9a291;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  max-width: var(--max);
  margin: 52px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: #5f5b51;
  font-size: 10.5px;
}
.footer-bottom p {
  margin: 0;
}

/* ------------------------------------------------------------ subpages */

.page-main {
  padding: 150px 24px 100px;
  min-height: 70vh;
}
.page-shell {
  max-width: 820px;
  margin: 0 auto;
}
.page-hero {
  max-width: 760px;
  margin-bottom: 52px;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #f7f2e7;
}
.page-hero .lead {
  max-width: 620px;
}
.page-updated {
  margin-top: 18px;
  color: #6f6a5e;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.prose {
  max-width: 720px;
  color: #aba494;
  font-size: 0.98rem;
  line-height: 1.8;
}
.prose h2 {
  margin: 44px 0 12px;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #f2ede2;
}
.prose h3 {
  margin: 30px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #eee8dc;
}
.prose p {
  margin: 12px 0;
}
.prose ul,
.prose ol {
  margin: 14px 0;
  padding-left: 22px;
}
.prose li {
  margin: 7px 0;
}
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #141922;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85em;
  color: #d8d1c2;
}
.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  color: #f2ede2;
  font-weight: 600;
}
.prose td {
  color: #9e9788;
}
.prose pre {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1118;
  overflow-x: auto;
}
.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
}
.prose blockquote {
  margin: 22px 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: #c3bcad;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.page-cta {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.changelog-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.changelog-date {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.changelog-item h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0ebdf;
}
.changelog-item p {
  margin: 0;
  color: #948d7f;
  font-size: 0.9rem;
  line-height: 1.7;
}

.notfound {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
}
.notfound-inner {
  max-width: 560px;
}
.notfound-code {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.8;
  color: var(--gold);
  letter-spacing: -0.05em;
}
.notfound h1 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #f4efe4;
}
.notfound p {
  color: #9a9385;
}
.notfound .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1120px) {
  .hero-grid {
    gap: 30px;
  }
  .phone-frame {
    width: 150px;
    right: -6px;
  }
  .chip-b {
    left: -18px;
  }
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .platform {
    min-height: 210px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 130px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-stage {
    min-height: 0;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 34px;
  }
  .window-frame {
    max-width: 100%;
  }
  .phone-frame {
    width: 148px;
    right: 4px;
    bottom: -28px;
  }
  .chip-a {
    top: -18px;
    left: 10px;
  }
  .chip-b {
    bottom: 42px;
    left: -8px;
  }
  .chip-c {
    top: 38%;
    right: -4px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-sticky {
    position: static;
  }
  .split-sticky .lead {
    max-width: 620px;
  }
  .paper-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .paper-copy {
    max-width: 680px;
  }
  .paper-card {
    max-width: 680px;
    margin: 0 auto;
  }
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-art {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    height: 64px;
    padding: 0 18px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 20px;
    background: rgba(11, 13, 17, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  }
  .nav-links[data-open="true"] {
    display: flex;
  }
  .nav-links a {
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-links .nav-cta {
    margin-top: 12px;
    justify-content: center;
    border-bottom: 0;
    padding: 13px 16px;
  }
  .hero {
    min-height: auto;
    padding: 112px 18px 64px;
  }
  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.2rem);
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-proof {
    gap: 8px 16px;
  }
  .section {
    padding: 76px 18px;
  }
  .section-head {
    margin-bottom: 38px;
  }
  .demo-panels {
    min-height: 400px;
    padding: 30px 24px;
  }
  .demo-meta {
    display: none;
  }
  .demo-status {
    gap: 8px;
  }
  .source-code {
    font-size: 12px;
  }
  .live-doc h3 {
    font-size: 1.7rem;
  }
  .read-doc h3 {
    font-size: 1.8rem;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 42px;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform {
    min-height: 200px;
  }
  .footer-shell {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 440px;
  }
  .page-main {
    padding: 120px 18px 76px;
  }
  .changelog-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 3.7rem);
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-note {
    font-size: 10.5px;
  }
  .phone-frame {
    width: 112px;
    right: 0;
    bottom: -18px;
    padding: 3px;
  }
  .phone-frame img {
    border-radius: 20px;
  }
  .phone-notch {
    top: 8px;
    width: 34px;
    height: 10px;
  }
  .window-frame {
    transform: none;
  }
  .chip {
    display: none;
  }
  .proof-shell {
    justify-content: flex-start;
    gap: 8px 18px;
  }
  .proof-shell p:nth-child(4) {
    display: none;
  }
  .demo-tab {
    padding: 6px 8px;
    font-size: 10px;
  }
  .demo-file {
    display: none;
  }
  .demo-tabs {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .demo-tab {
    flex: 1;
  }
  .demo-status {
    min-height: 48px;
  }
  .paper-article {
    padding: 28px 24px 26px;
  }
  .paper-article h3 {
    font-size: 2rem;
  }
  .paper-article table {
    font-size: 0.72rem;
  }
  .paper-article th,
  .paper-article td {
    padding: 7px 5px;
  }
  .stat-num {
    font-size: 3rem;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform {
    min-height: 0;
  }
  .faq-item summary {
    font-size: 0.94rem;
  }
  .download-card {
    padding: 28px 22px;
  }
  .download-copy .hero-actions .btn {
    width: 100%;
  }
  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .caret {
    display: none;
  }
}
