@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --orange: #FF5A1F;
  --orange-hi: #FF6E3A;
  --ink: #17181C;
  --ink-2: #23252B;
  --ply: #EDE4D3;
  --hot: #FFD27A;
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --text: #17181C;
  --muted: #5E6168;
  --line: #E4DED3;
  --code: #F3EEE5;
  --accent: var(--orange);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F12;
    --card: #1A1B20;
    --text: #F2F2F5;
    --muted: #A2A5AD;
    --line: #2C2E35;
    --code: #22242A;
    --accent: var(--orange-hi);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: "Inter", -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: 28px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
code, pre { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top img { height: 30px; display: block; }
.top nav { white-space: nowrap; }
.top nav a { color: #C9CCD3; text-decoration: none; margin-left: 22px; font-size: 15px; }
.top nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #F2F2F5; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; margin: 0 0 16px; }
.hero h1 span { color: var(--orange-hi); }
.hero p { color: #C9CCD3; font-size: 18px; max-width: 34em; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--hot); border: 1px solid #3A3D45; border-radius: 99px; padding: 3px 12px; margin-bottom: 18px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 10px; padding: 12px 20px; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-hi); }
.btn.ghost { color: #F2F2F5; border: 1px solid #3A3D45; }
.btn.ghost:hover { border-color: #6B6E76; }

a.pill.beta { color: #fff; background: rgba(255, 90, 31, 0.18); border-color: var(--orange); text-decoration: none; }
a.pill.beta:hover { background: rgba(255, 90, 31, 0.3); }

/* Hero diagram: iPad → bridge → laser */
.diagram { width: 100%; height: auto; display: block; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { color: var(--muted); font-size: 18px; max-width: 40em; margin-bottom: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
section.alt .feature { background: var(--bg); }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.feature .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.downloads.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.downloads.three .cmd { white-space: pre-wrap; word-break: break-all; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dl .what { color: var(--muted); font-size: 15px; margin: 0; }
.dl .files { display: flex; flex-wrap: wrap; gap: 8px; }
.dl .files a { text-decoration: none; font-weight: 600; font-size: 14px; background: var(--code); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.dl .files a:hover { border-color: var(--accent); color: var(--accent); }
.dl .note { color: var(--muted); font-size: 14px; margin: 0; }
.cmd { position: relative; background: var(--ink); color: #E8E8EC; border-radius: 10px; padding: 12px 70px 12px 14px; overflow-x: auto; white-space: pre; }
.cmd .copy { position: absolute; top: 8px; right: 8px; font: 600 12px system-ui; color: #C9CCD3; background: #2C2E35; border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.build { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Two columns of prose */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cols ul { margin: 0; padding-left: 20px; color: var(--muted); }
.cols li { margin-bottom: 6px; }

/* App teaser */
.app { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; }
.app img { width: 96px; height: 96px; border-radius: 22px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.shots a.zoom { display: block; cursor: zoom-in; }
.shots a.zoom:hover img { border-color: var(--accent); }
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 11, 14, 0.94); }
.viewer::backdrop { background: rgba(10, 11, 14, 0.94); }
.viewer img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); border-radius: 12px; cursor: zoom-out; }
.viewer button { position: absolute; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 28px/1 system-ui; width: 48px; height: 48px; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, 0.26); }
.viewer .close { top: 16px; right: 16px; }
.viewer .prev, .viewer .next { top: 50%; transform: translateY(-50%); }
.viewer .prev { left: 16px; }
.viewer .next { right: 16px; }
@media (max-width: 800px) {
  .viewer img { max-height: calc(100vh - 160px); }
  .viewer .prev, .viewer .next { top: auto; bottom: 24px; transform: none; }
  .viewer .prev { left: calc(50% - 64px); }
  .viewer .next { right: calc(50% - 64px); }
}
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.steps { margin: 0; padding-left: 22px; color: var(--muted); }
.steps li { margin-bottom: 8px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { background: var(--ink); color: #9EA2AA; font-size: 14px; padding: 32px 0; }
footer a { color: #C9CCD3; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

@media (max-width: 420px) {
  .top nav a:not(.keep) { display: none; }
}
@media (max-width: 800px) {
  .hero .wrap, .grid3, .downloads, .downloads.three, .cols { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-icon { display: none; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 36px 0 48px; }
  section { padding: 44px 0; }
  .top nav a { margin-left: 14px; }
  .top nav .hide-sm { display: none; }
  .top img { height: 24px; }
  .app { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .app img { width: 64px; height: 64px; border-radius: 15px; }
}
