/* Framehand landing: matches the app (cli/ui/app.css): dark base, one signal colour, hairlines. */
@font-face { font-family: 'FH Display'; src: url(fonts/ArchivoBlack-400.woff) format('woff'); font-weight: 400; font-display: swap; }

:root {
  --bg: #0B0B0C; --bg-1: #111113; --bg-2: #161618;
  --line: #222225; --line-2: #2e2e33;
  --ink: #F2F1EE; --ink-2: #b4b4ba; --muted: #8a8a92;
  --accent: #FF5A1F; --accent-hi: #ff7340; --accent-ink: #160803;
  --display: 'FH Display', 'Arial Black', system-ui, sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* top bar */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,11,12,.94); z-index: 5; }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 12px; font: 17px/1 var(--display); letter-spacing: .05em; text-decoration: none; }
.top nav { display: flex; gap: 28px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 72px 0 96px; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.kicker { font: 600 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
h1 { font: clamp(36px, 5.4vw, 76px)/.98 var(--display); letter-spacing: -.02em; }
h1 span { color: var(--ink-2); }
.sub { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 28px; border-radius: 10px; font: 700 18px/1 var(--text); text-decoration: none; transition: background 140ms, border-color 140ms, transform 140ms; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.hero-video { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); aspect-ratio: 16 / 9; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }

/* sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.h2 { font: clamp(30px, 3.6vw, 46px)/1 var(--display); letter-spacing: -.01em; margin-bottom: 48px; }
h3 { font: 700 21px/1.25 var(--text); margin-bottom: 10px; }
.section p { color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.steps li { padding: 32px 32px 8px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.n { display: block; font: 44px/1 var(--display); color: var(--accent); margin-bottom: 24px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts li { background: var(--bg-1); padding: 32px 36px; border-left: 3px solid transparent; }
.facts li:hover { border-left-color: var(--accent); }

.install { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.os { scroll-margin-top: 96px; }
.os:target { border-color: var(--accent); }
.os { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.os p a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.code { display: flex; align-items: stretch; gap: 0; margin-top: 22px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.code code { flex: 1; min-width: 0; padding: 18px 20px; font: 15px/1.5 var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; }
.copy { flex: none; min-width: 104px; border: 0; border-left: 1px solid var(--line-2); background: var(--ink); color: var(--bg); font: 700 16px/1 var(--text); cursor: pointer; }
.copy:hover { background: #fff; }
.status { min-height: 1.5em; margin-top: 10px; font-size: 14px; }

/* footer */
.foot { padding: 40px 0 56px; }
.foot-in { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }

/* phones and tablets */
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .top nav a:not(:last-child) { display: none; }
  .sub { font-size: 17px; }
  h1 { font-size: 36px; }
  .ctas { flex-direction: column; }
  .btn { width: 100%; }
  .section { padding: 64px 0; }
  .h2 { margin-bottom: 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .os { padding: 24px; }
  .code { flex-direction: column; }
  .code code { white-space: normal; word-break: break-all; }
  .copy { min-height: 52px; border-left: 0; border-top: 1px solid var(--line-2); }
  .foot-in { align-items: flex-start; }
  .foot p { word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.nw { white-space: nowrap; }
