/* ===================================================================
   GridTile — stylesheet
   =================================================================== */

:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-sunken: #EAEDF3;
  --text: #12151C;
  --text-secondary: #565C6B;
  --text-tertiary: #8A90A0;
  --border: #DCE1EA;
  --border-strong: #C3CADA;
  --accent: #0A6CFF;
  --accent-text: #FFFFFF;
  --accent-soft: rgba(10, 108, 255, 0.10);
  --accent-soft-strong: rgba(10, 108, 255, 0.18);

  --key-bg: #FFFFFF;
  --key-border: #CBD2E1;
  --key-shadow: rgba(20, 30, 50, 0.10);
  --key-text: #2B3040;

  --win-bg: #FBFCFE;
  --win-border: rgba(20, 30, 50, 0.10);
  --win-titlebar: #EEF1F7;
  --terminal-bg: #14161C;
  --terminal-text: #E4E6EC;
  --terminal-prompt: #5FD98A;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Code", monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 9px;

  --max-width: 860px;
  --max-width-wide: 1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080B14;
    --surface: #10141F;
    --surface-sunken: #0A0D16;
    --text: #EEF1F8;
    --text-secondary: #9BA1B4;
    --text-tertiary: #6A7086;
    --border: #232838;
    --border-strong: #333952;
    --accent: #5B9BFF;
    --accent-text: #071021;
    --accent-soft: rgba(91, 155, 255, 0.14);
    --accent-soft-strong: rgba(91, 155, 255, 0.26);

    --key-bg: #161B29;
    --key-border: #2C3348;
    --key-shadow: rgba(0, 0, 0, 0.4);
    --key-text: #D6DAE8;

    --win-bg: #12141C;
    --win-border: rgba(140, 170, 255, 0.14);
    --win-titlebar: #191D29;
    --terminal-bg: #0B0C11;
    --terminal-text: #DEE0E8;
    --terminal-prompt: #6FE3A0;

    color-scheme: dark;
  }
}

html[data-theme="dark"] {
  --bg: #080B14;
  --surface: #10141F;
  --surface-sunken: #0A0D16;
  --text: #EEF1F8;
  --text-secondary: #9BA1B4;
  --text-tertiary: #6A7086;
  --border: #232838;
  --border-strong: #333952;
  --accent: #5B9BFF;
  --accent-text: #071021;
  --accent-soft: rgba(91, 155, 255, 0.14);
  --accent-soft-strong: rgba(91, 155, 255, 0.26);

  --key-bg: #161B29;
  --key-border: #2C3348;
  --key-shadow: rgba(0, 0, 0, 0.4);
  --key-text: #D6DAE8;

  --win-bg: #12141C;
  --win-border: rgba(140, 170, 255, 0.14);
  --win-titlebar: #191D29;
  --terminal-bg: #0B0C11;
  --terminal-text: #DEE0E8;
  --terminal-prompt: #6FE3A0;

  color-scheme: dark;
}

/* ---------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 1000; font-size: 14px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

kbd { font-family: var(--font-mono); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; max-width: 18ch; }
.section-lede { margin-top: 14px; max-width: 50ch; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

@media (max-width: 640px) { .section { padding: 56px 0; } }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width-wide); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}

.header-inner {
  max-width: none;
  margin: 0;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.brand-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 5px;
}
.brand-mark { display: inline-grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; width: 15px; height: 15px; }
.brand-mark span { background: var(--accent); border-radius: 1px; }
.brand-mark span:nth-child(3) { opacity: 0.55; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .theme-icon { display: none; width: 16px; height: 16px; }
.theme-toggle[data-mode="system"] .theme-icon-system,
.theme-toggle[data-mode="light"] .theme-icon-light,
.theme-toggle[data-mode="dark"] .theme-icon-dark { display: block; }

.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav-menu a { text-decoration: none; color: var(--text-secondary); transition: color 0.15s var(--ease); }
.nav-menu a:hover { color: var(--text); }
.nav-menu a.nav-download { color: var(--text); border: 1px solid var(--border-strong); padding: 6px 13px; border-radius: var(--radius-sm); }
.nav-menu a.nav-download:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle-bar { width: 18px; height: 1.5px; background: var(--text); border-radius: 1px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease);
  }
  .nav-menu.is-open { max-height: 260px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 14px 24px; width: 100%; border-top: 1px solid var(--border); }
  .nav-menu a.nav-download { border-radius: 0; border-left: none; border-right: none; }
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-md); font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.text-link { display: inline-block; margin-top: 24px; color: var(--accent); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; }
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------
   HERO — the simulated macOS desktop
   --------------------------------------------------------------- */

.hero { padding: 28px 16px 40px; }

.mac-desktop {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 70px -20px rgba(5, 15, 40, 0.45),
    0 10px 24px -12px rgba(5, 15, 40, 0.35);
  border: 1px solid rgba(120, 150, 220, 0.18);
  display: flex;
  flex-direction: column;
}

.mac-menubar {
  flex: 0 0 auto;
  //height: %;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(18, 24, 42, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: rgba(235, 240, 255, 0.92);
  font-size: 12.5px;
  position: relative;
  z-index: 5;
}
.mac-menubar-left, .mac-menubar-right { display: flex; align-items: center; gap: 15px; }
.menubar-glyph { width: 13px; height: 13px; opacity: 0.92; }
.battery-glyph { width: 22px; height: 11px; }
.menu-app { font-weight: 600; }
.menu-item { opacity: 0.85; }
.menu-clock { font-variant-numeric: tabular-nums; opacity: 0.92; }
@media (max-width: 720px) { .menu-item:not(:last-child) { display: none; } }
@media (max-width: 520px) { .mac-menubar-left { gap: 10px; } }

.mac-wallpaper {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(120, 175, 255, 0.35), transparent 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(40, 90, 200, 0.35), transparent 60%),
    linear-gradient(160deg, #0B1C3E 0%, #0A1530 38%, #060B1C 78%, #04060F 100%);
}
.wallpaper-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 45% at 70% 30%, rgba(80, 150, 255, 0.28), transparent 70%),
    radial-gradient(30% 35% at 15% 75%, rgba(60, 120, 255, 0.16), transparent 70%);
  mix-blend-mode: screen;
}

.wallpaper-headline {
  position: absolute;
  top: 14%;
  left: 6%;
  right: 6%;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 30px rgba(10, 30, 80, 0.5);
  font-size: clamp(20px, 4.1vw, 46px);
  z-index: 2;
  pointer-events: none;
}
.hl-line { display: block; }
.hl-line-2 { margin-top: 0.15em; margin-left: 26%; }

.hero-instruction {
  position: absolute;
  left: 6%;
  bottom: 15%;
  z-index: 2;
  max-width: 70%;
}
.instruction-primary {
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(10, 30, 80, 0.55);
}
.instruction-primary em {
  font-style: normal;
  color: #7FB3FF;
  text-shadow: 0 0 22px rgba(110, 170, 255, 0.75);
}
.instruction-secondary {
  margin-top: 6px;
  font-size: clamp(13px, 1.4vw, 16px);
  color: rgba(220, 232, 255, 0.75);
  font-weight: 500;
}

.hint-keyboard {
  margin-top: 16px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.hint-keyboard .hk-row { display: flex; gap: 4px; }
.hint-keyboard .hk-key {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: rgba(230, 238, 255, 0.85);
  font-size: 10px;
  font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
}
.hint-keyboard .hk-key.is-hint {
  animation: hk-pulse 2.2s ease-in-out infinite;
}
@keyframes hk-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120, 180, 255, 0.5); border-color: rgba(255,255,255,0.22); }
  50% { box-shadow: 0 0 0 5px rgba(120, 180, 255, 0); border-color: rgba(140, 190, 255, 0.9); }
}

/* fake windows */
.fake-window {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  z-index: var(--z, 1);
  background: var(--win-bg);
  border-radius: 9px;
  border: 1px solid var(--win-border);
  box-shadow: 0 20px 44px -16px rgba(0,0,0,0.55), 0 4px 14px -6px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: left 0.62s var(--ease), top 0.62s var(--ease), width 0.62s var(--ease), height 0.62s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .fake-window { transition: none; }
}
.fake-window.is-active { box-shadow: 0 26px 60px -14px rgba(0,0,0,0.6), 0 0 0 1px rgba(120,170,255,0.25), 0 0 40px -8px rgba(90,150,255,0.35); }

.win-titlebar {
  flex: 0 0 auto;
  height: 26px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  background: var(--win-titlebar);
  border-bottom: 1px solid var(--win-border);
  position: relative;
}
.traffic-lights { display: inline-flex; gap: 6px; }
.traffic-lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.traffic-lights i:nth-child(1) { background: #FF5F57; }
.traffic-lights i:nth-child(2) { background: #FEBC2E; }
.traffic-lights i:nth-child(3) { background: #28C840; }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }
.active-dot { position: absolute; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

.win-body { flex: 1 1 auto; overflow: hidden; padding: 10px; font-size: 10px; }
.win-body-safari { background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.safari-toolbar { height: 14px; border-radius: 4px; background: var(--surface-sunken); display: flex; align-items: center; padding: 0 8px; }
.safari-url { font-size: 9px; color: var(--text-tertiary); }
.safari-block { background: var(--surface-sunken); border-radius: 4px; flex: 1; }
.safari-block.big { height: 40%; }
.safari-row { display: flex; gap: 8px; flex: 1; }

.win-body-xcode { background: #1B1E27; display: flex; gap: 8px; }
.xcode-sidebar { width: 30%; display: flex; flex-direction: column; gap: 6px; }
.xcode-file { height: 6px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.xcode-file.short { width: 60%; }
.xcode-code { flex: 1; display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.code-line { height: 6px; border-radius: 2px; background: rgba(120,170,255,0.28); }
.code-line.short { width: 45%; }

.win-body-terminal { background: var(--terminal-bg); color: var(--terminal-text); font-family: var(--font-mono); font-size: 10.5px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.win-body-terminal p { line-height: 1.5; }
.win-body-terminal .dim { color: rgba(222,224,232,0.45); }
.win-body-terminal .prompt { color: var(--terminal-prompt); margin-right: 4px; }
.win-body-terminal .cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* grid overlay */
.grid-overlay {
  position: absolute; inset: 0; z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.grid-overlay.is-visible { opacity: 1; pointer-events: auto; }

.grid-cell {
  background: rgba(20, 40, 90, 0.28);
  border: 1px solid rgba(150, 190, 255, 0.22);
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 6px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.grid-cell .cell-key { font-family: var(--font-mono); font-size: 11px; color: rgba(220,232,255,0.55); }
.grid-cell:hover { background: rgba(60, 110, 220, 0.3); }
.grid-cell.is-start { background: rgba(90, 150, 255, 0.45); border-color: rgba(160, 200, 255, 0.7); }
.grid-cell.is-start .cell-key { color: #fff; }
.grid-cell.is-in-rect { background: rgba(70, 130, 240, 0.4); border-color: rgba(160, 200, 255, 0.55); }
.grid-cell.is-in-rect .cell-key { color: #fff; }

/* Dock */
.mac-dock {
  position: absolute;
  left: 50%; bottom: 1.6%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.dock-icon {
  width: clamp(22px, 3.6vw, 34px);
  height: clamp(22px, 3.6vw, 34px);
  border-radius: 22%;
  display: block;
  transition: transform 0.15s var(--ease);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}
.mac-dock:hover .dock-icon:hover { transform: translateY(-6px) scale(1.12); }
.dock-icon-1 { background: linear-gradient(160deg, #6FC1FF, #1E6FE0); }
.dock-icon-2 { background: linear-gradient(160deg, #7CE0C6, #1FA982); }
.dock-icon-3 { background: linear-gradient(160deg, #FFB86B, #E8722A); }
.dock-icon-4 { background: linear-gradient(160deg, #FF8FA8, #E23F63); }
.dock-icon-5 { background: linear-gradient(160deg, #C9A6FF, #7A46D9); }
.dock-icon-6 { background: linear-gradient(160deg, #9AA5B8, #4A5468); }
.dock-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.25); margin: 2px 1px; }

@media (max-width: 720px) {
  .mac-desktop { aspect-ratio: 3 / 4; border-radius: 12px; }
  .wallpaper-headline { top: 8%; font-size: clamp(18px, 6.4vw, 26px); }
  .hl-line-2 { margin-left: 4%; }
  .fake-window#win-terminal { --x: 8% !important; --y: 16% !important; --w: 60% !important; --h: 20% !important; }
  .fake-window#win-safari, .fake-window#win-xcode { --w: 40% !important; --h: 18% !important; }
  .hero-instruction { bottom: 20%; max-width: 88%; }
  .instruction-primary { font-size: clamp(18px, 6vw, 24px); }
  .hint-keyboard { display: none; }
}

.hero-footer {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.keyboard { display: flex; flex-direction: column; gap: 5px; }
.keyboard-row { display: flex; gap: 5px; }
.key {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--key-border);
  background: var(--key-bg);
  color: var(--key-text);
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 2px 0 var(--key-shadow);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.key.is-pressed, .key.is-start, .key.is-in-rect {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--key-shadow);
  border-color: var(--accent);
  color: var(--accent);
}

.demo-reset {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.demo-reset:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 560px) {
  .hero-footer { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------
   Concept / flow list
   --------------------------------------------------------------- */

.flow-list { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.flow-list li { display: flex; gap: 18px; position: relative; padding-bottom: 30px; }
.flow-list li:last-child { padding-bottom: 0; }
.flow-list li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--border); }
.flow-list li:last-child::before { display: none; }
.flow-index {
  flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); background: var(--bg);
  position: relative; z-index: 1;
}
.flow-copy h3 { font-size: 16.5px; margin-bottom: 4px; }
.flow-copy p { color: var(--text-secondary); font-size: 15px; }

/* ---------------------------------------------------------------
   Compare
   --------------------------------------------------------------- */

.compare { margin-top: 36px; display: flex; gap: 40px; align-items: flex-start; }
.compare-divider { width: 1px; align-self: stretch; background: var(--border); }
.compare-col { flex: 1; min-width: 0; }
.compare-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); margin-bottom: 14px; }
.compare-steps { list-style: none; margin: 0; padding: 0; color: var(--text-secondary); }
.compare-steps li { padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.compare-steps-fast li { padding: 10px 0; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.mini-key { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--key-border); background: var(--key-bg); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; box-shadow: 0 1px 0 var(--key-shadow); }

@media (max-width: 640px) { .compare { flex-direction: column; gap: 24px; } .compare-divider { display: none; } }

/* ---------------------------------------------------------------
   Mini grid examples
   --------------------------------------------------------------- */

.mini-grid-examples { margin-top: 40px; display: flex; gap: 36px; flex-wrap: wrap; }
.mini-grid { width: 180px; }
.mini-grid-frame { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 5 / 3; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.mini-grid-cell { border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); position: relative; }
.mini-grid-cell .cell-key { position: absolute; bottom: 3px; left: 5px; font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); }
.mini-grid-cell.is-in-rect { background: var(--accent-soft); }
.mini-grid-cell.is-in-rect .cell-key { color: var(--accent); }
.mini-grid-caption { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); text-align: center; }

/* ---------------------------------------------------------------
   Config showcase (animated)
   --------------------------------------------------------------- */

.config-showcase { margin-top: 40px; }
.config-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-sunken); border: 1px solid var(--border); gap: 2px; }
.config-tab {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  background: none; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.config-tab.is-selected { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.config-stage {
  margin-top: 22px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.config-grid {
  display: grid;
  gap: 5px;
  width: min(320px, 100%);
  aspect-ratio: var(--cg-cols, 5) / var(--cg-rows, 3);
  transition: aspect-ratio 0.5s var(--ease);
}
.config-grid .cg-cell {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 5px;
  position: relative;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.config-grid .cg-cell .cg-key { position: absolute; bottom: 3px; left: 5px; font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); }

.config-meta { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); }
.config-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.config-meta-value { font-size: 20px; color: var(--text); font-weight: 600; margin-bottom: 6px; }
.config-meta-shortcut { display: flex; gap: 4px; }

.config-note { margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }

@media (max-width: 560px) { .config-stage { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------
   Native macOS grid
   --------------------------------------------------------------- */

.native-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.native-item { background: var(--bg); padding: 24px 24px 28px; }
.native-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.native-item p { color: var(--text-secondary); font-size: 14.5px; }
.native-req { margin-top: 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); }
@media (max-width: 640px) { .native-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Open source
   --------------------------------------------------------------- */

.tech-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px;
  background: var(--surface);
}

/* ---------------------------------------------------------------
   Final CTA
   --------------------------------------------------------------- */

.final-cta { text-align: center; }
.final-cta .section-inner { max-width: 600px; }
.final-cta h2 { max-width: none; margin: 0 auto; }
.final-cta .section-lede { margin-left: auto; margin-right: auto; }
.final-cta .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-tertiary); }
.footer-inner a { color: var(--text-tertiary); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.brand-footer { color: var(--text-secondary); font-size: 14px; }
