/* ============================================================
   MacZones · modern minimal. All Geist, near-white, one accent.
   ============================================================ */

:root {
  /* palette */
  --bg:           #fafaf9;
  --bg-2:         #f4f4f3;
  --surface:      #ffffff;
  --ink:          #0a0a0a;
  --ink-2:        #2a2a2a;
  --ink-soft:     #6b6b6b;
  --ink-mute:     #9a9a9a;
  --rule:         #ececea;
  --rule-strong:  #d8d8d6;
  --accent:       #2563eb;          /* electric blue, used sparingly */
  --accent-tint:  rgba(37, 99, 235, .08);

  /* type */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max:    1180px;

  /* motion */
  --easing-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "cv11";
}

::selection { background: var(--ink); color: var(--bg); }

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

/* =================== TYPOGRAPHY =================== */

.display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  color: var(--ink);
  text-wrap: balance;
}
.display__accent {
  color: var(--ink-mute);
  font-weight: 500;
}
.display--md {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lede {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.microcopy {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0.9rem 0 0;
  letter-spacing: -0.005em;
}

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  padding: 0.15em 0.4em;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1;
  box-shadow: 0 1px 0 var(--rule-strong);
}

/* =================== HEADER =================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark--sm { font-size: 14px; }

.wordmark__mark {
  display: inline-grid;
  grid-template-columns: 7px 11px;
  grid-template-rows: 9px 9px;
  gap: 2px;
  padding: 3px;
  background: var(--ink);
  border-radius: 4px;
}
.wordmark__mark span { background: var(--bg); border-radius: 1px; }
.wordmark__mark span:nth-child(2) { grid-row: 1 / span 2; }
.wordmark__mark span:nth-child(3),
.wordmark__mark span:nth-child(4) { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.nav a { transition: color .2s var(--easing-out); }
.nav a:hover { color: var(--accent); }
.nav__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 720px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* =================== BUTTONS =================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--easing-out), color .2s var(--easing-out), border-color .2s var(--easing-out), transform .2s var(--easing-out);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { display: flex; width: 100%; }
.btn--xl { font-size: 15px; padding: 0.9rem 1.4rem; border-radius: 9px; }

/* =================== HERO =================== */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero__copy { animation: rise .7s var(--easing-out) both; }
.hero__copy .display { margin-bottom: 1.25rem; }
.hero__copy .lede { animation: rise .8s .1s var(--easing-out) both; }

.cta {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  animation: rise .9s .2s var(--easing-out) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =================== HERO DEMO (Mac) =================== */

.demo {
  margin: 0;
  animation: rise 1s .25s var(--easing-out) both;
}

.demo__chrome {
  position: relative;
  background: #18181b;
  border-radius: 12px;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06),
    0 1px 0 rgba(255,255,255,.06) inset,
    0 24px 48px -20px rgba(0,0,0,.25),
    0 6px 16px -8px rgba(0,0,0,.12);
  overflow: hidden;
  aspect-ratio: 4 / 2.7;
  width: 100%;
}

.demo__stage {
  position: relative;
  height: 100%;
  background: #1f1f23;
  overflow: hidden;
}

/* zones grid */
.demo__zones {
  position: absolute;
  inset: 7%;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1%;
  pointer-events: none;
}
.demo__zone {
  position: relative;
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(255,255,255,.015);
  transition: background .35s var(--easing-out), border-color .35s var(--easing-out), box-shadow .35s var(--easing-out);
}
.demo__zone span {
  position: absolute;
  bottom: 6px; right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,.32);
}

/* the moving window */
.demo__window {
  position: absolute;
  width: 26%;
  height: 32%;
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.18),
    0 14px 28px -8px rgba(0,0,0,.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: window-tour 11s var(--easing-out) infinite;
}
.demo__titlebar {
  flex: 0 0 20px;
  background: #f1f1f0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.demo__traffic { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; flex: 0 0 7px; }
.demo__traffic:nth-child(2) { background: #febc2e; }
.demo__traffic:nth-child(3) { background: #28c840; }
.demo__body {
  flex: 1;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(0,0,0,.05) 9px 10px),
    #ffffff;
}

@keyframes window-tour {
  /* idle in the middle */
  0%, 8%    { top: 32%; left: 38%; width: 26%;    height: 32%; }

  /* drift to zone 1 */
  16%       { top: 18%; left: 12%; width: 26%;    height: 32%; }
  /* snap into zone 1 (matches grid: inset 7%, gap 1% of container) */
  22%, 34%  { top:  7%; left:  7%; width: 24.79%; height: 86%; }

  /* drift to zone 2 */
  44%       { top: 24%; left: 36%; width: 28%;    height: 40%; }
  /* snap into zone 2 */
  52%, 64%  { top:  7%; left: 32.65%; width: 34.71%; height: 86%; }

  /* drift to zone 3 */
  74%       { top: 22%; left: 60%; width: 26%;    height: 32%; }
  /* snap into zone 3 */
  82%, 94%  { top:  7%; left: 68.21%; width: 24.79%; height: 86%; }

  /* drift back to idle */
  100%      { top: 32%; left: 38%; width: 26%;    height: 32%; }
}

/* Each zone has its own pulse keyed to the window's timeline, so the
   lit zone always matches where the window is snapping. */
.demo__zone[data-zone="1"] { animation: zone-1-pulse 11s linear infinite; }
.demo__zone[data-zone="2"] { animation: zone-2-pulse 11s linear infinite; }
.demo__zone[data-zone="3"] { animation: zone-3-pulse 11s linear infinite; }

@keyframes zone-1-pulse {
  0%, 14%   { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.18); border-style: dashed; box-shadow: none; }
  16%, 34%  { background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.9);  border-style: solid;  box-shadow: 0 0 0 1px rgba(37,99,235,.35) inset; }
  36%, 100% { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.18); border-style: dashed; box-shadow: none; }
}
@keyframes zone-2-pulse {
  0%, 42%   { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.18); border-style: dashed; box-shadow: none; }
  44%, 64%  { background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.9);  border-style: solid;  box-shadow: 0 0 0 1px rgba(37,99,235,.35) inset; }
  66%, 100% { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.18); border-style: dashed; box-shadow: none; }
}
@keyframes zone-3-pulse {
  0%, 72%   { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.18); border-style: dashed; box-shadow: none; }
  74%, 94%  { background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.9);  border-style: solid;  box-shadow: 0 0 0 1px rgba(37,99,235,.35) inset; }
  96%, 100% { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.18); border-style: dashed; box-shadow: none; }
}

.demo__hint {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.55);
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
.demo__hint kbd {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  font-size: 10px;
  min-width: 1.4em;
  padding: 0.05em 0.35em;
  box-shadow: none;
}

.demo__caption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 0.85rem;
  text-align: left;
  letter-spacing: -0.005em;
}

@media (prefers-reduced-motion: reduce) {
  .demo__window { animation: none; top: 7%; left: 32.65%; width: 34.71%; height: 86%; }
  .demo__zone   { animation: none; }
  .hero__copy, .hero__copy .lede, .cta, .demo { animation: none; }
}

/* =================== SECTIONS COMMON =================== */

.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0 var(--gutter);
}
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .display { max-width: 24ch; }
.section-head--center .display { margin: 0 auto; }

/* =================== FEATURES =================== */

.features {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.features__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.feature {
  background: var(--bg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .25s var(--easing-out);
}
.feature:hover { background: var(--surface); }

@media (max-width: 880px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 1.75rem;
}
.feature h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  color: var(--ink);
}
.feature p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
}
.feature kbd { font-size: 11px; }

/* =================== SHORTCUTS =================== */

.shortcuts {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--rule);
}

.shortcuts__sheet {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shortcuts__sheet ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.shortcuts__sheet li {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
@media (max-width: 600px) {
  .shortcuts__sheet li { grid-template-columns: 1fr; gap: 0.55rem; }
}

.kbds { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.kbds .sep {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0.3rem;
  letter-spacing: -0.005em;
}
.shortcuts__sheet p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.shortcuts__sheet p i {
  font-family: var(--mono);
  font-style: normal;
  color: var(--accent);
  font-size: 0.95em;
}
.shortcuts__foot {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--ink-mute);
}

/* =================== PRICING =================== */

.pricing {
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 12px 24px -16px rgba(0,0,0,.10);
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}
.card__currency { font-size: 1.4rem; color: var(--ink-mute); font-weight: 500; }
.card__amount   { font-size: clamp(3.2rem, 6vw, 4rem); line-height: 1; font-weight: 500; }
.card__unit     { font-size: 0.95rem; color: var(--ink-mute); margin-left: 0.45rem; letter-spacing: -0.005em; font-weight: 400; }

.card__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.card__list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 10px; height: 10px;
  border: 1.5px solid var(--ink);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translateY(-2px);
  width: 9px; height: 5px;
}

.card__cta {
  display: grid;
  gap: 0.5rem;
}
.card__fine {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
}

/* =================== DOWNLOAD =================== */

.download {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  text-align: center;
  background: var(--bg);
}
.download__inner { max-width: 680px; margin: 0 auto; }
.download h2 { margin-bottom: 1rem; }
.download .lede { margin: 0 auto 2rem; text-align: center; max-width: 48ch; }
.download .btn { margin-bottom: 0.9rem; }

/* =================== PAGE INTRO (subpages) =================== */

.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}
.page-intro .display { margin: 0 0 1.25rem; max-width: 22ch; }
.page-intro .lede { max-width: 54ch; }

/* =================== CHANGELOG =================== */

.changelog {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}

.release {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
}
.release:last-child { border-bottom: 0; }

@media (max-width: 720px) {
  .release { grid-template-columns: 1fr; gap: 1.25rem; }
}

.release__meta {
  position: sticky;
  top: 5rem;
  align-self: start;
}
@media (max-width: 720px) {
  .release__meta { position: static; }
}

.release__version {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.release__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0.55rem 0 0;
  letter-spacing: 0.01em;
}
.release__tag {
  display: inline-block;
  margin: 0.85rem 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
}
.release__tag--major {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--rule-strong));
  background: var(--accent-tint);
}

.release__body { min-width: 0; }

.release__lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin: 0 0 1.75rem;
  max-width: 56ch;
  line-height: 1.55;
}

.changeset { margin: 0 0 1.75rem; }
.changeset:last-child { margin-bottom: 0; }

.changeset__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.changeset__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-mute);
  display: inline-block;
}
.changeset__dot--new      { background: var(--accent); }
.changeset__dot--improved { background: #c084fc; }
.changeset__dot--fixed    { background: #16a34a; }

.changeset ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.changeset li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  line-height: 1.6;
  max-width: 64ch;
}
.changeset li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink-mute);
}
.changeset li strong {
  font-weight: 500;
  color: var(--ink);
}
.changeset li kbd { font-size: 11px; }

/* =================== FOOTER =================== */

.footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background: var(--bg);
  position: relative;
}
.footer__left p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  max-width: 30ch;
  letter-spacing: -0.005em;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { padding: 0.2rem 0; font-size: 13px; }
.footer__nav a { color: var(--ink-soft); }
.footer__nav a:hover { color: var(--accent); }

.footer__legal {
  grid-column: 1 / -1;
  margin: 1.75rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; }
}
