/* Homepage — hero, mockups, features, requirements */

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px clamp(48px, 6vw, 88px);
  align-items: start;
  padding: 64px 0 48px;
}

.hero { text-align: left; padding: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  color: var(--muted); margin-bottom: 28px; letter-spacing: 0.01em;
}
.badge-prompt { color: var(--accent-lit); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-lit);
}
.hero-cycle-wrap {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  vertical-align: baseline;
  gap: 0.06em;
  margin-left: 0.06em;
  position: relative;
  top: 0.015em;
}
.hero-cycle {
  font-family: var(--mono);
  font-size: 0.97em;
  font-weight: 500;
  font-style: normal;
  color: var(--accent-lit);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.78em;
  background: var(--accent-lit);
  flex-shrink: 0;
  position: relative;
  top: 0.04em;
  opacity: 0.85;
  animation: cursor-blink 1.05s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-cursor { animation: none; opacity: 0.6; }
}
.hero-sub {
  font-size: 17px; color: var(--muted);
  margin: 0 0 36px; line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   Download
══════════════════════════════════════════════ */
.download-area { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none;
  background: transparent; color: var(--accent-lit);
  border: 1px solid var(--accent-dim);
  padding: 12px 22px; border-radius: var(--r);
  transition: background 150ms, border-color 150ms, color 150ms;
}
.btn-download:hover {
  background: var(--accent-glow);
  border-color: var(--accent-lit);
  color: var(--text);
}
.btn-download:active { opacity: 0.85; }

.btn-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1px solid var(--sep);
  background: transparent;
  letter-spacing: 0.02em;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.btn-guide:hover {
  color: var(--text);
  border-color: var(--hover-border);
  background: var(--hover-surface);
}

/* Other platforms — inline secondary links */
.other-platforms {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--faint);
  font-family: var(--mono);
}
.other-label { white-space: nowrap; }
.alt-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color 150ms;
}
.alt-link:hover { color: var(--accent-lit); }
.alt-sep { color: var(--faint); opacity: 0.4; }
.alt-tag {
  font-size: 9px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--accent-lit); background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 0 4px; border-radius: 2px;
}

/* Tooltip */
.tip { position: relative; display: inline-flex; align-items: center; }
.tip-icon {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid var(--accent-dim);
  color: var(--accent-lit); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: default;
  transition: background 150ms; flex-shrink: 0;
}
.tip:hover .tip-icon { background: rgba(99,102,241,0.18); }
.tip-text {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--elevated); border: 1px solid rgba(99,102,241,0.18);
  color: var(--muted); font-size: 11.5px; line-height: 1.55;
  padding: 9px 12px; border-radius: 8px;
  width: 210px; text-align: left;
  transition: opacity 150ms; z-index: 30;
}
.tip-text::after {
  content: '';
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(99,102,241,0.18);
}
.tip:hover .tip-text { visibility: visible; opacity: 1; }

.hero-meta {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px; flex-wrap: wrap;
}
.hero-meta a { color: var(--muted); text-decoration: none; transition: color 150ms; }
.hero-meta a:hover { color: var(--accent-lit); }
.hero-meta-sep { opacity: 0.35; }

.hero-support {
  max-width: 560px;
  margin: 8px auto 88px;
  padding: 24px 32px;
  text-align: center;
  background: var(--support-banner-bg, var(--accent-glow));
  border: 1px dashed var(--support-banner-border, var(--accent-dim));
  border-radius: var(--r);
}
.hero-support-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 460px;
}
.btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent-lit);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--r);
  border: 1px solid var(--accent-dim);
  background: transparent;
  letter-spacing: 0.02em;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.btn-support:hover {
  color: var(--text);
  background: var(--accent-glow);
  border-color: var(--accent-lit);
}
.btn-support:active { opacity: 0.85; }

.mac-note { font-size: 11px; color: var(--muted); }
.mac-note a { color: var(--muted); text-decoration: underline; text-decoration-style: dashed; }
.mac-note a:hover { color: var(--accent-lit); }

/* ═══════════════════════════════════════════════
   Hero art (isometric illustration + silhouette glow)
══════════════════════════════════════════════ */
.hero-art {
  position: relative;
  margin: 0;
  padding: 16px 0 24px;
  line-height: 0;
  overflow: visible;
}

/* Float the whole scene (image + aura move together) */
.hero-art-float {
  position: relative;
  display: block;
  width: 100%;
  will-change: transform;
  animation: hero-scene-float 7s ease-in-out infinite;
}

.hero-art-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: url('images/union-hero.png');
  mask-image: url('images/union-hero.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Glow only where the artwork pixels are (PNG alpha mask) */
.hero-art-aura::before {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(
      ellipse 70% 58% at 50% 46%,
      rgba(129, 140, 248, 0.75) 0%,
      rgba(99, 102, 241, 0.35) 38%,
      transparent 68%
    );
  filter: blur(40px);
  animation: hero-glow-pulse 6s ease-in-out infinite alternate;
}

/* Sparse star glints clipped to artwork silhouette */
.hero-art-aura::after {
  content: '';
  position: absolute;
  inset: -6%;
  background-image:
    radial-gradient(1.5px 1.5px at 22% 28%, rgba(255, 255, 255, 0.95) 0%, transparent 100%),
    radial-gradient(1px 1px at 38% 62%, rgba(180, 160, 255, 0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 22%, rgba(129, 140, 248, 0.85) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 48%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 78%, rgba(99, 102, 241, 0.75) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 68%, rgba(180, 160, 255, 0.7) 0%, transparent 100%);
  animation: hero-stars-twinkle 7s ease-in-out infinite alternate;
}

.hero-art-float img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 32px rgba(99, 102, 241, 0.45))
    drop-shadow(0 0 64px rgba(99, 102, 241, 0.2))
    drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35));
}

@keyframes hero-scene-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  35% {
    transform: translate3d(5px, -28px, 0);
  }
  70% {
    transform: translate3d(-5px, -14px, 0);
  }
}

@keyframes hero-glow-pulse {
  from {
    opacity: 0.65;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes hero-stars-twinkle {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-float,
  .hero-art-aura::before,
  .hero-art-aura::after {
    animation: none;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .hero-art-aura::before {
    background:
      radial-gradient(
        ellipse 72% 60% at 50% 46%,
        rgba(79, 82, 232, 0.55) 0%,
        rgba(129, 140, 248, 0.22) 42%,
        transparent 70%
      );
    filter: blur(44px);
  }

  :root:not([data-theme]) .hero-art-float img {
    filter:
      drop-shadow(0 0 36px rgba(79, 82, 232, 0.4))
      drop-shadow(0 0 72px rgba(129, 140, 248, 0.18))
      drop-shadow(0 12px 36px rgba(80, 70, 55, 0.12));
  }
}

html[data-theme='light'] .hero-art-aura::before {
  background:
    radial-gradient(
      ellipse 72% 60% at 50% 46%,
      rgba(79, 82, 232, 0.55) 0%,
      rgba(129, 140, 248, 0.22) 42%,
      transparent 70%
    );
  filter: blur(44px);
}

html[data-theme='light'] .hero-art-float img {
  filter:
    drop-shadow(0 0 36px rgba(79, 82, 232, 0.4))
    drop-shadow(0 0 72px rgba(129, 140, 248, 0.18))
    drop-shadow(0 12px 36px rgba(80, 70, 55, 0.12));
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
  min-width: 0;
}

/* Wide landscape hero mockup — three panels, no sidebar */
.hero-layout .hm-body {
  min-height: 0;
  grid-template-columns: 1fr;
}
.hero-layout .hm-sidebar { display: none; }
.hero-layout .hm-grid {
  grid-template-columns: 1.15fr 1fr 0.9fr;
  grid-template-rows: auto;
}
.hero-layout .hm-panel:nth-child(4) { display: none; }
.hero-layout .hm-panel:nth-child(3) { border-right: none; }
.hero-layout .hm-panel:nth-child(1),
.hero-layout .hm-panel:nth-child(2),
.hero-layout .hm-panel:nth-child(3) { border-bottom: none; }
.hero-layout .hm-tabs { height: 26px; }
.hero-layout .hm-tab { font-size: 10px; padding: 0 10px; }
.hero-layout .hm-term {
  font-size: 10px;
  padding: 8px 12px;
  line-height: 1.5;
  min-height: 84px;
}

/* Window chrome */
.hm-chrome {
  background: var(--mock-chrome, var(--backdrop-chrome));
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--sep);
  user-select: none;
}
.wdot { width: 10px; height: 10px; border-radius: 50%; }
.wd-r { background: #ef4444; } .wd-y { background: #f59e0b; } .wd-g { background: #10b981; }
.hm-title { font-size: 12px; color: var(--faint); margin: 0 auto; padding-right: 28px; }

/* App body: sidebar + tiled grid */
.hm-body { display: grid; grid-template-columns: 180px 1fr; min-height: 340px; }

/* Sidebar */
.hm-sidebar {
  border-right: 1px solid var(--sep);
  padding: 10px 6px; display: flex; flex-direction: column; gap: 2px;
  font-size: 11px;
}
.hm-s-label {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding: 4px 8px 2px; font-weight: 600;
}
.hm-s-group {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 6px; color: var(--faint);
  font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
}
.hm-g-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hm-s-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px; color: var(--muted);
  cursor: default;
}
.hm-s-row.sel { background: var(--accent-glow); color: var(--text); }
.hm-accent { width: 2.5px; border-radius: 2px; flex-shrink: 0; align-self: stretch; }
.hm-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hm-dot-on { background: var(--success); }
.hm-dot-wait { background: #f59e0b; animation: hmpulse 1.6s ease-in-out infinite; }
.hm-dot-off  { background: var(--faint); }
@keyframes hmpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hm-gap { height: 8px; }

/* Tiled grid */
.hm-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hm-panel {
  border-right: 1px solid var(--sep);
  border-bottom: 1px solid var(--sep);
  display: flex; flex-direction: column; overflow: hidden;
}
.hm-panel:nth-child(even) { border-right: none; }
.hm-panel:nth-child(3), .hm-panel:nth-child(4) { border-bottom: none; }

.hm-tabs {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--sep);
  background: var(--hover-surface);
  height: 32px; flex-shrink: 0;
}
.hm-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 11px; color: var(--muted);
  border-right: 1px solid var(--sep);
  position: relative; cursor: default;
}
.hm-tab.active {
  color: var(--text);
  background: var(--mock-pane, var(--surface));
}
.hm-tab.active::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
}
.hm-tdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.hm-term {
  flex: 1; padding: 10px 14px;
  font-family: var(--mono); font-size: 11px; line-height: 1.7;
  overflow: hidden;
}
.t-p { color: var(--accent-lit); }
.t-c { color: var(--text); }
.t-o { color: var(--muted); }
.t-ok { color: var(--success); }
.t-w { color: #f59e0b; }
.t-e { color: var(--error); }
.t-cur {
  display: inline-block; width: 7px; height: 12px;
  background: var(--accent-lit); vertical-align: middle;
  animation: tblink 1.1s step-end infinite;
}
@keyframes tblink { 50%{opacity:0} }

/* ═══════════════════════════════════════════════
   Works with
══════════════════════════════════════════════ */
.works-with {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: nowrap;
  margin-bottom: 88px;
}
.hero-visual .works-with {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 0;
}
.hero-visual .ww-pills { justify-content: flex-start; }
.ww-label {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  letter-spacing: 0.06em; text-transform: lowercase;
  font-weight: 400; white-space: nowrap; flex-shrink: 0;
}
.ww-sep { width: 1px; height: 16px; background: var(--sep); flex-shrink: 0; }
.ww-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ww-pill {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: var(--muted); background: transparent;
  border: 1px solid var(--sep);
  padding: 3px 10px; border-radius: 2px; white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   Feature spotlights
══════════════════════════════════════════════ */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 88px;
}
.spotlight.flip { direction: rtl; }
.spotlight.flip > * { direction: ltr; }

.sp-copy { }
.sp-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: lowercase; color: var(--muted);
  font-weight: 400; margin-bottom: 10px;
}
.sp-eyebrow::before { content: '// '; color: var(--accent-dim); }
.sp-title {
  font-size: clamp(20px, 2.5vw, 27px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px;
}
.sp-desc { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.sp-tag {
  display: inline-block; font-family: var(--mono);
  font-size: 10px; font-weight: 400; letter-spacing: 0.03em;
  color: var(--accent-lit); background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 2px 8px; border-radius: 2px; text-transform: lowercase;
}

/* Mini mockup shared shell */
.sp-mockup {
  border: 1px solid var(--sep);
  border-radius: var(--r); overflow: hidden;
  background: var(--mock-surface, var(--surface));
  box-shadow: var(--mock-shadow, none);
}
.sp-chrome {
  background: var(--mock-chrome, var(--backdrop-chrome));
  padding: 8px 14px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--sep);
}
.spdot { width: 8px; height: 8px; border-radius: 50%; }
.sp-body { padding: 14px 18px; font-family: var(--mono); font-size: 11px; line-height: 1.7; }

/* Tiled mini grid */
.sp-tiled { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sp-tile {
  padding: 10px 12px; font-family: var(--mono); font-size: 10.5px; line-height: 1.65;
  border-right: 1px solid var(--sep); border-bottom: 1px solid var(--sep);
}
.sp-tile:nth-child(even) { border-right: none; }
.sp-tile:nth-child(3), .sp-tile:nth-child(4) { border-bottom: none; }
.sp-tile-header {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; font-family: 'Inter', sans-serif; font-size: 10.5px;
  font-weight: 500; color: var(--muted);
  border-bottom: 1px solid var(--sep);
  border-right: 1px solid var(--sep);
  background: var(--hover-surface);
}
.sp-tile:nth-child(even) .sp-tile-header { border-right: none; }

/* Clipboard mockup */
.sp-clip-body { display: grid; grid-template-columns: 1fr 120px; }
.sp-clip-term { padding: 12px 14px; font-family: var(--mono); font-size: 10.5px; line-height: 1.7; border-right: 1px solid var(--sep); }
.sp-clip-panel { padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.sp-clip-label { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
.sp-clip-thumb {
  border-radius: 5px; height: 52px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(139,92,246,0.10) 100%);
  border: 1px solid rgba(99,102,241,0.18);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sp-clip-thumb.dim {
  background: var(--hover-surface); border-color: var(--sep);
}
.sp-clip-thumb svg { opacity: 0.5; }
.sp-clip-active {
  box-shadow: 0 0 0 1.5px var(--accent-lit);
}
.sp-drag-hint {
  font-size: 9px; color: var(--accent-lit); text-align: center; margin-top: 2px;
  opacity: 0.7;
}

/* Document preview + focus view mockup */
.sp-preview-body {
  display: grid;
  grid-template-columns: 1fr 152px;
  min-height: 196px;
  position: relative;
}
.sp-preview-term {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  border-right: 1px solid var(--sep);
}
.sp-preview-rail {
  display: flex;
  flex-direction: column;
  background: var(--mock-panel, var(--surface2));
  min-width: 0;
}
.sp-preview-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--sep);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  background: var(--hover-surface);
}
.sp-preview-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}
.sp-preview-kbd {
  flex-shrink: 0;
  font-size: 8px;
  color: var(--accent-lit);
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.02em;
}
.sp-preview-code {
  padding: 8px 8px 10px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
}
.sp-preview-code .hl { color: #c4b5fd; }
.sp-preview-code .kw { color: #818cf8; }
.sp-preview-code .str { color: #86efac; }
.sp-preview-code .cm { color: var(--faint); }

@media (prefers-color-scheme: light) {
  .sp-preview-code .hl { color: var(--syntax-hl, #5b52c4); }
  .sp-preview-code .kw { color: var(--syntax-kw, #4f52e8); }
  .sp-preview-code .str { color: var(--syntax-str, #15803d); }
}

html[data-theme='light'] .sp-preview-code .hl {
  color: var(--syntax-hl, #5b52c4);
}

html[data-theme='light'] .sp-preview-code .kw {
  color: var(--syntax-kw, #4f52e8);
}

html[data-theme='light'] .sp-preview-code .str {
  color: var(--syntax-str, #15803d);
}
.sp-preview-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  border-top: 1px solid var(--sep);
  background: var(--hover-surface);
}
.sp-preview-chip {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--faint);
  border: 1px solid var(--sep);
  border-radius: 3px;
  padding: 2px 5px;
  letter-spacing: 0.02em;
}
.sp-preview-chip.accent { color: var(--accent-lit); border-color: var(--accent-dim); }
.t-link {
  color: var(--accent-lit);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
}
.sp-focus-layer {
  position: absolute;
  inset: 10px 14px 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent-dim);
  background: var(--focus-overlay);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 1;
  visibility: hidden;
  animation: sp-focus-pulse 5s ease-in-out infinite;
}
.sp-focus-banner {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-lit);
  padding: 6px 10px;
  border-bottom: 1px solid var(--accent-dim);
  background: var(--accent-glow);
}
.sp-focus-sheet {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.65;
  color: var(--text);
}
.sp-focus-sheet h3 {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  font-family: system-ui, sans-serif;
}
.sp-focus-sheet p {
  color: var(--muted);
  margin: 0;
}
@keyframes sp-focus-pulse {
  0%, 42% { visibility: hidden; transform: scale(0.98); }
  50%, 88% { visibility: visible; transform: scale(1); }
  96%, 100% { visibility: hidden; transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-focus-layer {
    animation: none;
    visibility: visible;
    transform: none;
  }
}

/* Scheduler mockup */
.sp-sched-body { padding: 12px 14px; }
.sp-sched-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px; border-radius: 7px; margin-bottom: 4px;
  border: 1px solid var(--sep);
  background: var(--hover-surface);
}
.sp-sched-row.active-row {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
}
.sp-sched-time { font-family: var(--mono); font-size: 10.5px; color: var(--accent-lit); width: 44px; flex-shrink: 0; }
.sp-sched-cmd { font-family: var(--mono); font-size: 10.5px; color: var(--text); }
.sp-sched-sub { font-size: 10px; color: var(--muted); font-family: 'Inter', sans-serif; }
.sp-sched-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  font-family: 'Inter', sans-serif;
}
.sp-sched-badge.run { background: rgba(34,197,94,0.12); color: #4ade80; }
.sp-sched-badge.wait { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* ═══════════════════════════════════════════════
   Secondary features strip
══════════════════════════════════════════════ */
.features-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--sep);
  border: 1px solid var(--sep); border-radius: 12px; overflow: hidden;
  margin-bottom: 88px;
}
.fs-cell {
  background: var(--surface);
  padding: 22px 20px;
  transition: background 200ms;
}
.fs-cell:hover { background: var(--surface2); }
.fs-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(99,102,241,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-lit); margin-bottom: 12px;
  transition: background 200ms;
}
.fs-cell:hover .fs-icon { background: var(--accent-glow); }
.fs-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.fs-desc  { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   Requirements
══════════════════════════════════════════════ */
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: lowercase; color: var(--muted);
  font-weight: 400; margin-bottom: 10px;
}
.section-eyebrow::before { content: '// '; color: var(--accent-dim); }
.section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 28px; line-height: 1.2;
}

.req-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 88px;
}
.req-card {
  background: var(--surface);
  border: 1px solid var(--sep); border-radius: var(--r); padding: 24px;
}
.req-os {
  font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.req-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.req-list li {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: flex-start; gap: 9px;
}
.req-list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--faint); flex-shrink: 0; margin-top: 7px;
}
.req-note {
  font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.6;
  padding-top: 14px; border-top: 1px solid var(--sep2);
}
.req-note a { color: var(--accent-lit); text-decoration: none; opacity: 0.8; }
.req-note a:hover { opacity: 1; }
.req-badge {
  font-size: 10px; font-weight: 600;
  color: var(--accent-lit); background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  padding: 1px 7px; border-radius: 4px; margin-left: 6px;
}


/* ═══════════════════════════════════════════════
   Responsive
══════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .page--wide { max-width: 1360px; }
}
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 56px;
  }
  .hero-layout .hm-grid { grid-template-columns: 1fr 1fr; }
  .hero-layout .hm-panel:nth-child(3) { display: none; }
  .hero-layout .hm-panel:nth-child(2) { border-right: none; }
  .hero { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .download-area { align-items: center; }
  .other-platforms { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual .works-with { justify-content: center; }
  .hero-visual .ww-pills { justify-content: center; }
}
@media (max-width: 720px) {
  .hm-body { grid-template-columns: 1fr; }
  .hm-sidebar { display: none; }
  .spotlight, .spotlight.flip { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
  .spotlight.flip .sp-mockup { order: -1; }
  .features-strip { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .works-with { gap: 10px; }
}
@media (max-width: 480px) {
  .features-strip { grid-template-columns: 1fr; }
  .hm-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hm-panel:nth-child(n) { border-right: none; }
  .hm-panel:nth-child(3) { border-bottom: 1px solid var(--sep); }
  .hero-sub { font-size: 16px; }
}

/* Supernova: unified warm mockup windows (chrome + panes, starburst fill) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .sp-mockup {
    border-color: var(--mock-window-border);
    background:
      radial-gradient(
        ellipse 95% 70% at 50% 0%,
        #ffffff 0%,
        var(--bone) 38%,
        var(--bone-mid) 72%,
        var(--bone-deep) 100%
      );
  }

  :root:not([data-theme]) .sp-mockup .sp-chrome {
    background: var(--mock-chrome);
  }

  :root:not([data-theme]) .sp-mockup .sp-preview-body,
  :root:not([data-theme]) .sp-mockup .sp-clip-body,
  :root:not([data-theme]) .sp-mockup .sp-tiled {
    background: transparent;
  }

  :root:not([data-theme]) .sp-mockup .sp-preview-term,
  :root:not([data-theme]) .sp-mockup .sp-preview-code,
  :root:not([data-theme]) .sp-mockup .sp-clip-term,
  :root:not([data-theme]) .sp-mockup .sp-tile,
  :root:not([data-theme]) .sp-mockup .sp-body,
  :root:not([data-theme]) .sp-mockup .sp-preview-rail {
    background: var(--mock-pane);
  }

  :root:not([data-theme]) .sp-mockup .sp-preview-foot {
    background: var(--mock-panel);
  }
}

html[data-theme='light'] .sp-mockup {
  border-color: var(--mock-window-border);
  background:
    radial-gradient(
      ellipse 95% 70% at 50% 0%,
      #ffffff 0%,
      var(--bone) 38%,
      var(--bone-mid) 72%,
      var(--bone-deep) 100%
    );
}

html[data-theme='light'] .sp-mockup .sp-chrome {
  background: var(--mock-chrome);
}

html[data-theme='light'] .sp-mockup .sp-preview-body,
html[data-theme='light'] .sp-mockup .sp-clip-body,
html[data-theme='light'] .sp-mockup .sp-tiled {
  background: transparent;
}

html[data-theme='light'] .sp-mockup .sp-preview-term,
html[data-theme='light'] .sp-mockup .sp-preview-code,
html[data-theme='light'] .sp-mockup .sp-clip-term,
html[data-theme='light'] .sp-mockup .sp-tile,
html[data-theme='light'] .sp-mockup .sp-body,
html[data-theme='light'] .sp-mockup .sp-preview-rail {
  background: var(--mock-pane);
}

html[data-theme='light'] .sp-mockup .sp-preview-foot {
  background: var(--mock-panel);
}
