:root {
  --bg: #000;
  --panel: #0a0a0a;
  --panel-2: #111;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --paper: #f2f0ea; /* the book in the icon */
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.85em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { margin: -4px; width: 34px; height: 34px; }
.nav nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.gh { display: inline-flex; align-items: center; gap: 7px; }

/* Buttons */
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta.left { justify-content: flex-start; align-items: center; margin-top: 28px; gap: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.btn.primary { background: var(--paper); color: #0b0b0b; }
.btn.primary:hover { background: #fff; }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255,255,255,.3); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14px; }
.quiet { color: var(--muted); font-size: 14px; }
.quiet:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 110px 0 40px; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; text-align: center; }
h1 {
  text-wrap: balance;
  margin: 0 auto; max-width: 900px;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
}
.lede { text-wrap: balance; max-width: 640px; margin: 24px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.fine { margin: 8px 0 0; color: var(--dim); font-size: 13px; }
.cta + .fine { margin-top: 18px; }

/* App window: a real screenshot, with macOS traffic lights drawn on top */
.window {
  position: relative; margin: 72px auto 0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 120px -30px rgba(242, 240, 234, 0.14);
}
.window img, .shot img { display: block; width: 100%; height: auto; }
.window .lights { position: absolute; top: 2.05%; left: 1.55%; display: flex; gap: 0.62%; width: 100%; }
.window .lights i { width: 0.94%; aspect-ratio: 1; border-radius: 50%; }
.window .lights i:nth-child(1) { background: #ff5f57; }
.window .lights i:nth-child(2) { background: #febc2e; }
.window .lights i:nth-child(3) { background: #28c840; }
figure { margin: 0; }

.shot {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px -30px rgba(0,0,0,.9);
}
.shot.narrow { max-width: 360px; margin: 0 auto; }
.stack { position: relative; padding-bottom: 8%; }
.stack .front { position: relative; width: 78%; margin: -34% 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 30px 90px -20px rgba(0,0,0,1); }

/* Feature rows */
.row { padding: 130px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; }
.split.reverse .copy { order: 2; }
.split.even { grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; margin-top: 48px; }
h2 {
  text-wrap: balance;
  margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600;
}
.copy p { color: var(--muted); font-size: 18px; margin: 20px 0 0; }
.how { display: block; margin-top: 24px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px !important; color: var(--text) !important; }
.how span { display: inline-block; margin-right: 12px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.how kbd { font: 600 13px var(--sans); color: var(--text); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.checks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px;
  border-left: 1.5px solid var(--paper); border-bottom: 1.5px solid var(--paper); transform: rotate(-45deg);
}
.checks.big { gap: 18px; margin: 0; }
.checks strong { color: var(--text); font-weight: 600; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}

/* Server diagram */
.diagram { display: flex; flex-direction: column; align-items: center; padding: 34px 20px; }
.devices { display: flex; gap: 14px; }
.device { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.dev-icon { display: inline-block; border: 1.5px solid var(--muted); border-radius: 3px; }
.dev-icon.mac { width: 20px; height: 13px; }
.dev-icon.phone { width: 10px; height: 17px; border-radius: 3px; }
.link { position: relative; width: 1px; height: 70px; background: linear-gradient(var(--line-2), var(--paper), var(--line-2)); margin: 4px 0; }
.link span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 11px var(--mono); color: var(--muted); letter-spacing: .08em; }
.server { width: 100%; max-width: 340px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); padding: 16px 18px; display: grid; gap: 8px; }
.server-head { font-size: 13px; color: var(--dim); font-family: var(--mono); }
.server code { color: var(--text); font-size: 14px; }
.server small { color: var(--dim); font-size: 12.5px; }

/* Terminal */
.term { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.term-bar .lights { position: absolute; left: 14px; display: flex; gap: 8px; }
.term-bar .lights i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3a; }
.term-bar { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.term pre { margin: 0; padding: 22px 22px 26px; font: 13px/1.85 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-all; }
.term .p { color: #7aa2f7; }
.term .o { color: var(--muted); }
.term .o b { color: var(--text); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--muted); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.side { padding: 30px; display: flex; flex-direction: column; justify-content: center; }

/* Closing */
.closing { padding: 160px 0 140px; }
.closing .lede { margin-top: 18px; }

footer { border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--dim); }
.foot nav { display: flex; gap: 20px; }
.foot a:hover { color: var(--text); }

/* Narrow screens */
@media (max-width: 900px) {
  .split, .split.even { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .copy { order: 0; }
  .row { padding-top: 96px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 72px; }
  h1 br { display: none; }
  h1 { font-size: 38px; }
  .nav nav a:first-child { display: none; }
  .window { margin-top: 48px; }
  .side { padding: 22px; }
  .cta.left { flex-direction: column; align-items: flex-start; }
}
