.features-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 80px;
}
.features-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
}
.features-top h1 { margin-bottom: 8px; }
.features-top .lead { margin: 0; max-width: 560px; }
.features-download {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.features-download .fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.features-block { margin-bottom: 28px; }
.features-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.features-block h2 svg { width: 22px; height: 22px; }
.features-block .section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 560px;
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 22px 0 42px;
}
.feature-row.reverse { grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); }
.feature-row.reverse .feature-copy { order: -1; }
.feature-kicker {
  margin: 0 0 8px;
  color: var(--accent, #c4b5fd);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.feature-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.feature-copy p {
  margin: 0;
  color: #d4d4dc;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 460px;
}
.pro-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 193, 108, 0.16);
  color: #f5c16c;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 0.35em;
}
.feature-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-more article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  border-top: 2px solid color-mix(in srgb, var(--accent, #c4b5fd) 70%, transparent);
  background: rgba(255, 255, 255, 0.03);
}
.feature-more h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.feature-more p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.features-cta {
  margin-top: 48px;
  padding: 36px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  text-align: center;
}
.features-cta h2 { justify-content: center; }
.features-cta p { color: var(--muted); margin: 0 0 18px; }
.features-cta .row { justify-content: center; }

@media (max-width: 860px) {
  .features-page { padding: 8px 16px 56px; }
  .features-top { flex-direction: column; align-items: stretch; margin-bottom: 36px; }
  .features-download { align-items: flex-start; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; gap: 16px; padding-bottom: 32px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-more { grid-template-columns: 1fr; }
}

/* ---------- Feature media ---------- */
.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 75% 65% at 50% 110%, color-mix(in srgb, var(--accent, #c4b5fd) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    #0c0c0f;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent, #c4b5fd) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
}
.feature-media > video,
.feature-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-media.is-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Stage: screenshots float on a soft glow */
.feature-media.is-stage {
  display: grid;
  place-items: center;
  padding: 6%;
}
.feature-media.is-stage > .shot {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.mac-window {
  width: 100%;
  border-radius: 14px;
  background: #1e2123;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.mac-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px 4px;
}
.mac-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.mac-bar i:nth-child(2) { background: #febc2e; }
.mac-bar i:nth-child(3) { background: #28c840; }
.mac-window img {
  display: block;
  width: 100%;
  height: auto;
  padding: 2px 6px 10px;
}

/* Art: illustrations sized in em so they scale with the box */
.feature-media.is-art { display: grid; }
.art {
  font-size: 2.5cqw;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}

/* CPU */
.cpu-art { gap: 2.6em; padding: 0 2.5em; }
.cpu-ring {
  position: relative;
  width: 14em;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.cpu-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 7; }
.ring-val {
  fill: none;
  stroke: #6ee7b7;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 2 98;
  filter: drop-shadow(0 0 6px rgba(110, 231, 183, 0.9));
}
.cpu-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cpu-label {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6ee7b7;
}
.cpu-num {
  font-size: 4.4em;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0.04em 0 0.06em;
}
.cpu-num small { font-size: 0.42em; font-weight: 500; color: #a1a1aa; letter-spacing: 0; }
.cpu-sub { font-size: 0.72em; color: #8e8e96; }
.cpu-card {
  width: 15em;
  padding: 1.1em 1.2em 1em;
  border-radius: 1.1em;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.cpu-card-head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85em;
  font-weight: 600;
}
.cpu-card-head .dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0.6em #6ee7b7;
}
.cpu-card-head b { margin-left: auto; color: #6ee7b7; font-weight: 650; }
.spark { display: block; width: 100%; height: 4.2em; margin: 0.8em 0 0.4em; overflow: visible; }
.spark-cap { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.spark-line { fill: none; stroke: #6ee7b7; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-fill { fill: rgba(110, 231, 183, 0.12); }
.cpu-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.66em;
  color: #8e8e96;
}
.cpu-chips { display: flex; gap: 0.4em; margin-top: 0.9em; }
.cpu-chips span {
  font-size: 0.62em;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.35em 0.75em;
  border-radius: 99em;
  background: rgba(255, 255, 255, 0.07);
  color: #d4d4dc;
}

/* Battery settings (macOS style) */
.set-art { padding: 1.4em; }
.set-win {
  width: 27em;
  padding: 0.9em 1em 1em;
  border-radius: 1.1em;
  background: rgba(30, 30, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1.6em 3.5em -1em rgba(0, 0, 0, 0.75);
  font-size: 0.8em;
}
.set-title {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.12em;
  font-weight: 650;
  margin: 0 0 0.7em 0.2em;
}
.set-nav { color: #6b6b73; font-weight: 400; letter-spacing: 0.15em; }
.set-group {
  border-radius: 0.75em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.55em;
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.62em 0.9em;
  color: #e8e8ed;
}
.set-row + .set-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tgl {
  position: relative;
  width: 2.3em;
  height: 1.35em;
  border-radius: 99em;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}
.tgl::after {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0.12em;
  width: 1.11em;
  height: 1.11em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.25em rgba(0, 0, 0, 0.35);
}
.tgl.on { background: #0a84ff; }
.tgl.on::after { left: auto; right: 0.12em; }
.slider-row { display: block; }
.set-line { display: flex; justify-content: space-between; }
.set-line b { font-weight: 600; color: #f5c16c; }
.sld {
  position: relative;
  height: 0.3em;
  margin: 0.85em 0.3em 0.45em;
  border-radius: 99em;
  background: linear-gradient(90deg, #0a84ff var(--v), rgba(255, 255, 255, 0.14) var(--v));
}
.sld i {
  position: absolute;
  top: 50%;
  left: var(--v);
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0.1em 0.35em rgba(0, 0, 0, 0.45);
}

/* Multi-monitor */
.mm-art { align-items: flex-end; gap: 1.6em; padding: 0 2em 3.4em; }
.mm-monitor { display: flex; flex-direction: column; align-items: center; width: 22em; }
.mm-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.6em;
  border: 0.45em solid #18181b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1.5em 3em -1em rgba(0, 0, 0, 0.8);
  background: #0d1027 url("/assets/features/lockscreen.webp?v=1") center / cover no-repeat;
  overflow: hidden;
}
.mm-screen.alt { border-width: 0.32em; border-radius: 0.5em 0.5em 0.15em 0.15em; }
.mm-tag {
  position: absolute;
  left: 0.7em;
  bottom: 0.6em;
  font-size: 0.6em;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 99em;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
}
.mm-neck { width: 3.2em; height: 2.6em; background: linear-gradient(90deg, #2a2a2f, #3a3a40, #2a2a2f); }
.mm-foot { width: 8em; height: 0.5em; border-radius: 0.3em 0.3em 0.15em 0.15em; background: #34343a; }
.mm-laptop { display: flex; flex-direction: column; align-items: center; width: 12em; }
.mm-lid { width: 100%; }
.mm-lid .mm-screen { aspect-ratio: 16 / 10.4; }
.mm-base {
  width: 116%;
  height: 0.55em;
  border-radius: 0 0 0.6em 0.6em;
  background: linear-gradient(180deg, #4a4a52, #2a2a30);
}
@container (max-width: 520px) {
  .art { font-size: 2.8cqw; }
  .cpu-art { gap: 1.6em; padding: 0 1.6em; }
  .cpu-ring { width: 12em; }
  .cpu-card { width: 13.5em; }
  .mm-art { gap: 1em; padding: 0 1.5em 3em; }
  .mm-monitor { width: 18em; }
  .mm-laptop { width: 10em; }
}
@media (max-width: 860px) {
  .feature-media.is-art { aspect-ratio: 4 / 3; }
  .feature-media.is-stage { padding: 5%; }
  .mac-bar { padding: 9px 11px 3px; gap: 6px; }
  .mac-bar i { width: 9px; height: 9px; }
}
