/* ===================================================================
   MacDow marketing site
   Palette pulled from the app icon: a slate/ink tile with three
   stacked "desktop" cards in indigo, violet and pink. The stacked-card
   motif shows up throughout (eyebrows, step numbers, mockups).
   =================================================================== */

:root {
  --bg: #0c0e1a;
  --bg-2: #13162a;
  --ink: #171a2c;
  --slate: #272c40;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #eceefa;
  --text-dim: #a7accb;
  --text-faint: #6b7194;

  --indigo: #7384ee;
  --violet: #997dee;
  --pink: #e48abd;
  --lilac: #a4aff4;

  --grad: linear-gradient(120deg, var(--indigo), var(--violet) 52%, var(--pink));
  --grad-soft: linear-gradient(120deg, rgba(115, 132, 238, 0.16), rgba(228, 138, 189, 0.12));

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.5);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--panel-strong);
  color: var(--text);
  line-height: 1.4;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- background: aurora wash + a faint "desktop" dot grid ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 18% -8%, rgba(115, 132, 238, 0.22), transparent 70%),
    radial-gradient(900px 480px at 92% 6%, rgba(228, 138, 189, 0.14), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(153, 125, 238, 0.12), transparent 70%),
    var(--bg);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(12, 14, 26, 0.66);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn svg {
  flex-shrink: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  text-shadow: 0 1px 1px rgba(23, 26, 44, 0.25);
  box-shadow: 0 10px 30px rgba(153, 125, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 38px rgba(153, 125, 238, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--panel-strong);
}

.btn-small {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-large {
  padding: 15px 26px;
  font-size: 15px;
  border-radius: 14px;
}

/* ---------- eyebrow: three stacked cards, like the icon ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: var(--pink);
  box-shadow: -3px -3px 0 -0.5px var(--violet), -6px -6px 0 -1px var(--indigo);
  margin: 6px 0 0 6px;
  flex-shrink: 0;
}

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

.hero {
  padding: 84px 0 40px;
  text-align: center;
}

.hero-copy {
  max-width: 960px;
  margin: 0 auto;
}

h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 760;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18.5px;
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

.hero-note span + span::before {
  content: "·";
  margin: 0 8px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-dim);
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 15px;
  height: 15px;
  color: var(--pink);
  flex-shrink: 0;
}

/* ===================================================================
   Hero mockup: a Mac screen with Mission Control open.
   Everything inside scales with the screen's own width (cqi units).
   =================================================================== */

.screen-wrap {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
}

.screen-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 0 -10%;
  background: radial-gradient(closest-side, rgba(153, 125, 238, 0.35), transparent);
  filter: blur(40px);
  z-index: -1;
}

.screen {
  container-type: inline-size;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), 0 0 0 6px rgba(255, 255, 255, 0.025);
  background:
    radial-gradient(70% 90% at 15% 100%, rgba(228, 138, 189, 0.38), transparent 60%),
    radial-gradient(60% 80% at 90% 10%, rgba(115, 132, 238, 0.45), transparent 60%),
    linear-gradient(160deg, #262b4a, #191c33 55%, #241a35);
  text-align: left;
}

/* Mission Control dims the wallpaper */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 18, 0.32);
  pointer-events: none;
}

.screen > * {
  position: relative;
  z-index: 1;
}

/* menu bar */
.mb {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  height: max(22px, 2.9cqi);
  padding: 0 1.4cqi;
  font-size: clamp(9px, 1.32cqi, 13.5px);
  background: rgba(20, 22, 40, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.mb-apple {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.mb-app {
  font-weight: 700;
}

.mb-menus {
  display: flex;
  gap: 1.6cqi;
  color: rgba(255, 255, 255, 0.82);
}

.mb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.3cqi;
}

.mb-right svg {
  width: 1.15em;
  height: 1.15em;
  opacity: 0.85;
}

.mb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.15em 0.55em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 500;
}

.mb-item svg {
  opacity: 1;
}

.mb-name {
  display: inline-block;
  min-width: 4.5em;
  transition: opacity 0.2s ease;
}

/* Mission Control spaces bar */
.mc-bar {
  display: flex;
  justify-content: center;
  gap: 1.8cqi;
  padding: 2.4cqi 3cqi 1.6cqi;
}

.mc-space {
  flex: 0 1 14.5cqi;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9cqi;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
}

.mc-label {
  position: relative;
  height: max(18px, 2.3cqi);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-label .sys {
  font-size: clamp(8px, 1.05cqi, 12px);
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(8.5px, 1.12cqi, 12.5px);
  font-weight: 650;
  color: #fff;
  padding: 0.28em 0.8em;
  border-radius: 999px;
  background: rgba(30, 33, 58, 0.88);
  border: 1px solid rgba(164, 175, 244, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mc-space.is-active .pill {
  background: var(--grad);
  border-color: transparent;
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.7cqi;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 15% 100%, rgba(228, 138, 189, 0.45), transparent 60%),
    radial-gradient(60% 80% at 90% 10%, rgba(115, 132, 238, 0.55), transparent 60%),
    linear-gradient(160deg, #2c3256, #1c2038);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mc-space:hover .thumb {
  transform: translateY(-2px);
}

.mc-space.is-active .thumb {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--lilac);
}

.thumb i {
  position: absolute;
  border-radius: 2px;
  background: #dfe3f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.thumb i.dk { background: #23263a; }
.thumb i.tm { background: #0f1018; }
.thumb i.lt { background: #f3f4fa; }
.thumb i.pk { background: #f2d4e5; }

/* Mission Control stage: the current desktop's windows, spread out */
.stage-wrap {
  position: relative;
  aspect-ratio: 16 / 7.4;
  margin: 0 3cqi 3cqi;
}

.stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.stage.is-active {
  opacity: 1;
  transform: none;
}

/* ---------- generic mini windows ---------- */

.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: max(5px, 0.8cqi);
  overflow: hidden;
  background: #f4f5fa;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: clamp(6px, 0.95cqi, 11px);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.3em;
  padding: 0 0.9em;
  flex-shrink: 0;
  background: #e6e8f1;
  color: #4a4f68;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.win-bar b {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: #ff5f57;
  flex-shrink: 0;
}

.win-bar b + b { background: #febc2e; }
.win-bar b + b + b { background: #28c840; margin-right: 0.6em; }

.win-bar .url {
  flex: 1;
  margin: 0 1em;
  padding: 0.2em 0.8em;
  border-radius: 0.6em;
  background: #fff;
  color: #6b7194;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1.1em 1.2em;
  min-width: 0;
}

.lines i {
  display: block;
  height: 0.55em;
  border-radius: 1em;
  background: #cfd3e3;
}

.side {
  width: 26%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1.1em 0.9em;
  background: #e9ebf3;
}

.side i {
  display: block;
  height: 0.55em;
  border-radius: 1em;
  background: #c7cbe0;
}

/* dark editor */
.win.dark {
  background: #1c1e2b;
}

.win.dark .win-bar {
  background: #262839;
  color: #b5b9d2;
}

.win.dark .side {
  background: #202232;
}

.win.dark .side i {
  background: #3a3d55;
}

.win.dark .lines i {
  background: #3c4060;
}

.lines i.c1 { background: var(--violet) !important; opacity: 0.85; }
.lines i.c2 { background: var(--pink) !important; opacity: 0.75; }
.lines i.c3 { background: var(--lilac) !important; opacity: 0.7; }
.lines i.c4 { background: #7fd1b9 !important; opacity: 0.7; }
.lines i.in1 { margin-left: 1.6em; }
.lines i.in2 { margin-left: 3.2em; }

/* terminal */
.win.term {
  background: #0f1018;
}

.win.term .win-bar {
  background: #1b1c27;
  color: #9da2bf;
}

.win.term .lines i {
  background: #3a3e58;
}

.win.term .lines i.ok {
  background: #63d297;
  opacity: 0.85;
}

/* browser page blocks */
.page-hero {
  height: 34%;
  margin: 1em 1.2em 0;
  border-radius: 0.6em;
  background: var(--grad-soft), #e3e6f5;
}

.page-hero.pk {
  background: linear-gradient(120deg, #f6d6e8, #dcdcfa);
}

/* chat */
.bubbles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 1.1em 1.2em;
}

.bubbles i {
  display: block;
  height: 1.7em;
  border-radius: 0.9em;
  background: #e1e4f0;
}

.bubbles i.me {
  align-self: flex-end;
  background: var(--indigo);
}

/* design canvas */
.canvas {
  flex: 1;
  position: relative;
  background: #eceef6;
  background-image: radial-gradient(#d6d9e8 1px, transparent 1px);
  background-size: 1.2em 1.2em;
}

.canvas i {
  position: absolute;
  display: block;
  border-radius: 0.8em;
}

/* phone simulator */
.phone {
  position: absolute;
  border-radius: max(9px, 1.6cqi);
  background: #111320;
  padding: 0.55cqi;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone-screen {
  height: 100%;
  border-radius: max(7px, 1.2cqi);
  overflow: hidden;
  background: linear-gradient(180deg, #fbf3f8, #eef0fb);
  display: flex;
  flex-direction: column;
  gap: 0.7cqi;
  padding: 2cqi 0.9cqi 0.9cqi;
}

.phone-screen i {
  display: block;
  border-radius: 0.5cqi;
  background: #dfe2f1;
  height: 0.5cqi;
}

.phone-screen i.card {
  height: 4.2cqi;
  background: var(--grad);
  opacity: 0.85;
}

.phone-screen i.row {
  height: 2.2cqi;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- section shell ---------- */

section {
  padding: 92px 0;
  position: relative;
}

.section-head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 760;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0;
}

/* ---------- problem cards ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.problem {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 26px;
}

.problem-visual {
  height: 74px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.problem h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.problem p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.tag-sys {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 6px 9px;
  white-space: nowrap;
}

.pile {
  position: relative;
  width: 120px;
  height: 64px;
}

.pile i {
  position: absolute;
  width: 62px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--slate);
}

.pile i:nth-child(1) { left: 0; top: 18px; transform: rotate(-9deg); }
.pile i:nth-child(2) { left: 26px; top: 6px; transform: rotate(5deg); background: #2f3450; }
.pile i:nth-child(3) { left: 52px; top: 20px; transform: rotate(-3deg); background: #353a58; }

.fs-row {
  display: flex;
  gap: 6px;
}

.fs-row i {
  width: 40px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--slate);
  position: relative;
}

.fs-row i::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- names section ---------- */

.names-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.names-col {
  display: grid;
  gap: 20px;
}

.surface {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.surface-stage {
  position: relative;
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  background:
    radial-gradient(80% 100% at 0% 100%, rgba(228, 138, 189, 0.22), transparent 60%),
    radial-gradient(70% 90% at 100% 0%, rgba(115, 132, 238, 0.28), transparent 60%),
    linear-gradient(160deg, #20243f, #171a2c);
  border-bottom: 1px solid var(--border);
}

.surface-copy {
  padding: 20px 24px 24px;
}

.surface-copy h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  margin: 0 0 6px;
}

.surface-copy h3 svg {
  width: 17px;
  height: 17px;
  color: var(--pink);
}

.surface-copy p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* macOS menu dropdown mockup */
.menu-demo {
  width: 100%;
  max-width: 340px;
}

.menu-demo .mb {
  border-radius: 8px 8px 0 0;
  justify-content: flex-end;
  font-size: 12.5px;
  height: 26px;
  gap: 12px;
  padding: 0 10px;
}

.menu-demo .mb-item {
  background: rgba(255, 255, 255, 0.24);
}

.menu {
  margin: 6px 0 0 auto;
  width: 100%;
  max-width: 300px;
  padding: 5px;
  border-radius: 11px;
  background: rgba(36, 39, 62, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  color: #e9eaf5;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 9px 3.5px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.menu-item .ck {
  width: 14px;
  flex-shrink: 0;
  font-size: 11px;
  text-align: center;
}

.menu-item .num {
  width: 16px;
  color: rgba(233, 234, 245, 0.55);
  font-variant-numeric: tabular-nums;
}

.menu-item .key {
  margin-left: auto;
  padding-left: 16px;
  color: rgba(233, 234, 245, 0.45);
}

.menu-item.is-hl {
  background: var(--indigo);
  color: #fff;
}

.menu-item.is-hl .num,
.menu-item.is-hl .key {
  color: rgba(255, 255, 255, 0.8);
}

.menu-item .label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: rgba(255, 255, 255, 0.12);
}

/* desktop-switch HUD mockup */
.hud {
  min-width: 190px;
  padding: 20px 30px 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(22, 24, 42, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hud.is-swapping {
  opacity: 0;
  transform: scale(0.94);
}

.hud-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hud-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.hud-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.hud-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hud-dots i.on {
  background: #fff;
  transform: scale(1.25);
}

/* Mission Control before/after */
.mc-compare {
  container-type: inline-size;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mc-compare .mc-bar {
  padding: 0;
  gap: 3cqi;
  width: 100%;
}

.mc-compare .mc-space {
  flex: 1 1 0;
  cursor: default;
}

.mc-compare .mc-label {
  height: 22px;
}

.mc-compare .mc-label .sys {
  font-size: clamp(9px, 3cqi, 12px);
}

.mc-compare .pill {
  font-size: clamp(9px, 3.1cqi, 12.5px);
}

.mc-compare .thumb {
  border-radius: 6px;
}

.mc-compare[data-mode="macos"] .pill {
  opacity: 0;
  transform: translate(-50%, -20%);
}

.mc-compare[data-mode="macdow"] .mc-label .sys {
  opacity: 0;
}

.mc-label .sys {
  transition: opacity 0.3s ease;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.seg button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

/* ---------- layouts section ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}

.point {
  display: flex;
  gap: 14px;
}

.point-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(115, 132, 238, 0.14);
  border: 1px solid rgba(115, 132, 238, 0.32);
  color: var(--lilac);
}

.point:nth-child(2) .point-icon {
  background: rgba(153, 125, 238, 0.14);
  border-color: rgba(153, 125, 238, 0.32);
  color: #c3b1f7;
}

.point:nth-child(3) .point-icon {
  background: rgba(228, 138, 189, 0.13);
  border-color: rgba(228, 138, 189, 0.32);
  color: var(--pink);
}

.point-icon svg {
  width: 19px;
  height: 19px;
}

.point h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.point p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* layout editor mockup */
.editor {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #1b1e31;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.editor-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: #22253a;
  border-bottom: 1px solid var(--border);
}

.editor-bar b {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.editor-bar b + b { background: #febc2e; }
.editor-bar b + b + b { background: #28c840; }

.editor-bar span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
  pointer-events: none;
}

.editor-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 330px;
}

.editor-side {
  padding: 12px 8px;
  background: #191b2c;
  border-right: 1px solid var(--border);
}

.editor-side .cap {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 2px 8px 8px;
}

.desk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--text-dim);
  white-space: nowrap;
}

.desk .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  width: 12px;
}

.desk.is-on {
  background: rgba(115, 132, 238, 0.28);
  color: var(--text);
}

.desk.is-on .n {
  color: var(--lilac);
}

.editor-main {
  padding: 16px 18px 18px;
  min-width: 0;
}

.editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.editor-title strong {
  font-size: 17px;
}

.editor-title span {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.item-kind {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(115, 132, 238, 0.16);
  color: var(--lilac);
}

.item-kind.k-cmd {
  background: rgba(99, 210, 151, 0.13);
  color: #7fd9a8;
}

.item-kind.k-url {
  background: rgba(228, 138, 189, 0.15);
  color: var(--pink);
}

.item-kind.k-app {
  background: rgba(153, 125, 238, 0.16);
  color: #c3b1f7;
}

.item-kind svg {
  width: 16px;
  height: 16px;
}

.item-text {
  min-width: 0;
}

.item-text code {
  display: block;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-text small {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.editor-foot span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.editor-foot span.primary {
  background: var(--indigo);
  border-color: transparent;
  color: #fff;
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--panel-strong);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--lilac);
  background: rgba(115, 132, 238, 0.14);
  border: 1px solid rgba(115, 132, 238, 0.3);
}

.card:nth-child(3n + 2) .card-icon {
  color: #c3b1f7;
  background: rgba(153, 125, 238, 0.14);
  border-color: rgba(153, 125, 238, 0.3);
}

.card:nth-child(3n) .card-icon {
  color: var(--pink);
  background: rgba(228, 138, 189, 0.13);
  border-color: rgba(228, 138, 189, 0.3);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ---------- json callout ---------- */

.json-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  padding: 40px;
}

.json-band h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.json-band p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.json-band p code {
  display: block;
  margin: 8px 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

pre.code {
  margin: 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: #11131f;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #c9cce0;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

pre.code .k { color: var(--lilac); }
pre.code .s { color: #f0b3d4; }
pre.code .b { color: #7fd9a8; }
pre.code .p { color: var(--text-faint); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 28px 26px 26px;
}

.step-num {
  position: relative;
  width: 44px;
  height: 34px;
  margin: 8px 0 22px 8px;
}

.step-num::before,
.step-num::after,
.step-num span {
  position: absolute;
  border-radius: 7px;
}

.step-num::before {
  content: "";
  inset: -8px 8px 8px -8px;
  background: var(--indigo);
  opacity: 0.55;
}

.step-num::after {
  content: "";
  inset: -4px 4px 4px -4px;
  background: var(--violet);
  opacity: 0.7;
}

.step-num span {
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #2a1b2a;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.step .where {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
}

.step .where code {
  color: var(--lilac);
}

/* ---------- requirements ---------- */

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.req {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 22px 24px;
}

.req > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--lilac);
  margin-top: 2px;
}

.req h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15.5px;
  margin: 0 0 5px;
}

.req p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.req .path {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--pink);
  background: rgba(228, 138, 189, 0.13);
  border: 1px solid rgba(228, 138, 189, 0.3);
}

.badge.req-badge {
  color: var(--lilac);
  background: rgba(115, 132, 238, 0.14);
  border-color: rgba(115, 132, 238, 0.3);
}

.req-more {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.req-more a {
  color: var(--lilac);
  font-weight: 600;
}

.req-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- privacy band ---------- */

.privacy-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(115, 132, 238, 0.1), rgba(228, 138, 189, 0.06));
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.privacy-band h2 {
  margin-bottom: 12px;
}

.privacy-band p.lead-sm {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 16px;
  max-width: 44ch;
}

.privacy-band a.more {
  font-size: 14px;
  font-weight: 600;
  color: var(--lilac);
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.privacy-item svg {
  width: 18px;
  height: 18px;
  color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.privacy-item span {
  font-size: 13.5px;
  color: var(--text-dim);
}

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

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.faq-item a {
  color: var(--lilac);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- final cta ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(153, 125, 238, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.025);
  padding: 68px 32px 60px;
}

.final-cta img {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}

.final-cta h2 {
  margin-bottom: 14px;
}

.final-cta p {
  color: var(--text-dim);
  max-width: 48ch;
  margin: 0 auto 30px;
}

.final-cta .hero-note {
  margin-top: 6px;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}

.footer-links {
  display: flex;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-fine {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.footer-fine a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-fine a:hover {
  color: var(--text);
}

/* ===================================================================
   Inner pages (support, privacy, 404)
   =================================================================== */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 0 48px;
}

.legal h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  margin: 0 0 12px;
}

.legal .updated {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 36px;
}

.legal .intro {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 52px 0 14px;
}

.legal h3 {
  font-size: 16px;
  margin: 28px 0 8px;
  color: var(--text);
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 4px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal code {
  color: var(--text);
  word-break: break-word;
}

.legal a {
  color: var(--lilac);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a.btn {
  color: #fff;
  text-decoration: none;
}

.legal .summary-box {
  border: 1px solid var(--border);
  background: var(--grad-soft);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 8px;
}

.legal .summary-box p {
  margin: 0;
  color: var(--text);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.legal .toc a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.legal .toc a:hover {
  color: var(--text);
  background: var(--panel-strong);
}

/* install walkthrough */
.walk {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: walk;
}

.walk > li {
  counter-increment: walk;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 20px 22px 20px 70px;
}

.walk > li::before {
  content: counter(walk);
  position: absolute;
  left: 20px;
  top: 19px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--grad);
  box-shadow: -3px -3px 0 rgba(115, 132, 238, 0.35);
}

.walk > li h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}

.walk > li p {
  margin: 0 0 8px;
}

.walk > li p:last-child,
.walk > li ul:last-child {
  margin-bottom: 0;
}

.settings-path {
  display: inline;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.callout {
  border-left: 3px solid var(--pink);
  background: rgba(228, 138, 189, 0.07);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin: 16px 0;
}

.legal .callout p {
  margin: 0;
}

.not-found {
  text-align: center;
  padding: 120px 0 100px;
}

.not-found .mc-label {
  position: relative;
  width: 220px;
  height: 34px;
  margin: 0 auto 26px;
}

.not-found .pill {
  font-size: 14px;
}

.not-found p {
  color: var(--text-dim);
  margin: 0 auto 28px;
  max-width: 44ch;
}

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

@media (max-width: 960px) {
  .names-grid,
  .split,
  .json-band,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 40px;
  }

  .feature-grid,
  .problem-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid .problem:last-child,
  .steps .step:last-child {
    grid-column: 1 / -1;
  }

  .privacy-band {
    padding: 34px;
  }

  .json-band {
    padding: 32px;
  }
}

@media (max-width: 720px) {
  /* Fewer desktops in the hero mockup so the names stay readable */
  .screen .mc-space:nth-child(5) {
    display: none;
  }

  .screen .mc-space {
    flex-basis: 22cqi;
  }

  .mb-menus {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .feature-grid,
  .problem-grid,
  .steps,
  .req-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 52px 0 24px;
  }

  .lead {
    font-size: 17px;
  }

  .screen-wrap {
    margin-top: 40px;
  }

  .screen .mc-space:nth-child(4) {
    display: none;
  }

  .screen .mc-space {
    flex-basis: 30cqi;
  }

  .mb-clock,
  .mb-wifi {
    display: none;
  }

  .editor-body {
    grid-template-columns: 1fr;
  }

  .editor-side {
    display: flex;
    gap: 4px;
    overflow: hidden;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }

  .editor-side .cap {
    display: none;
  }

  .editor-side .desk {
    flex-shrink: 0;
  }

  .editor-side .desk:nth-child(n + 5) {
    display: none;
  }

  .json-band,
  .privacy-band {
    padding: 26px 22px;
  }

  pre.code {
    font-size: 10.5px;
    padding: 14px;
  }

  .final-cta {
    padding: 44px 22px;
  }

  .walk > li {
    padding: 18px 18px 18px 62px;
  }

  .walk > li::before {
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* editor header + footer details */
.editor-title .sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 1px;
}

.editor-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.editor-btns span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.editor-btns span.primary {
  background: var(--indigo);
  border-color: transparent;
  color: #fff;
}

.editor-foot {
  align-items: center;
}

.editor-foot em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-faint);
  min-width: 0;
}

/* the hero mockup only shows MacDow's names, not the labels underneath */
.screen .mc-label .sys {
  visibility: hidden;
}

h1,
h2,
.section-head p,
.lead {
  text-wrap: balance;
}

.final-cta .hero-note {
  max-width: none;
}

.hero-note span {
  display: inline-block;
}

.hero-note a {
  color: var(--lilac);
}

.hero-note a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .editor-title {
    flex-wrap: wrap;
  }

  .editor-main {
    padding: 14px;
  }
}
