/* CC Peek — interactive product demo */

/* ── Demo shell + toggle ─────────────────────────────── */
.cdemo {
  --bg-deep: oklch(0.13 0.008 250);
  --bg-mid: oklch(0.17 0.009 250);
  --bg-card: oklch(0.23 0.012 248);
  --bg-bright: oklch(0.27 0.014 248);
  --line: oklch(0.30 0.012 250 / 0.5);
  --fg: oklch(0.96 0.005 250);
  --fg-2: oklch(0.72 0.010 250);
  --fg-3: oklch(0.48 0.010 250);
  --green: oklch(0.78 0.16 150);
  --green-glow: oklch(0.78 0.18 150 / 0.45);
  --amber: oklch(0.80 0.16 75);
  --amber-glow: oklch(0.80 0.18 75 / 0.45);
  --red: oklch(0.70 0.20 25);
  --red-glow: oklch(0.70 0.22 25 / 0.55);
  --grey: oklch(0.55 0.010 250);

  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, oklch(0.16 0.008 250), oklch(0.13 0.008 250));
  box-shadow:
    inset 0 1px 0 oklch(0.40 0.014 250 / 0.3),
    inset 0 0 0 1px var(--line),
    0 24px 60px oklch(0.04 0 0 / 0.5);
  overflow: hidden;
  padding-bottom: 78px;
}

.cdemo-tabs {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: oklch(0.20 0.009 250);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 oklch(0.40 0.014 250 / 0.3),
    0 4px 14px oklch(0.04 0 0 / 0.5);
}
.cdemo-tabs button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fg-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}
.cdemo-tabs button:hover { color: var(--fg); }
.cdemo-tabs button.on {
  color: var(--fg);
  background: linear-gradient(180deg, oklch(0.34 0.014 250), oklch(0.26 0.012 250));
  box-shadow:
    inset 0 1px 0 oklch(0.50 0.014 250 / 0.5),
    inset 0 -1px 0 oklch(0.12 0.008 250 / 0.6),
    0 1px 3px oklch(0.04 0 0 / 0.5);
}

.cdemo-tabs .live-pill { display: none; }

/* ── Stage container (holds both scenes; one hidden) ── */
.cdemo-stage {
  aspect-ratio: 1100 / 580;
  position: relative;
}
.cdemo-stage .scene {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.cdemo-stage .scene.on {
  visibility: visible;
  pointer-events: auto;
}

/* ──────────────────────────────────────────────────────
 * MAC SCENE
 * ────────────────────────────────────────────────────── */
.scene-mac {
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, oklch(0.22 0.04 240 / 0.4), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, oklch(0.20 0.03 260 / 0.35), transparent 70%),
    linear-gradient(180deg, oklch(0.18 0.012 240), oklch(0.13 0.008 250));
}
.scene-mac .desktop {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  padding: 36px 38px;
}

/* ── Stacked Claude Code windows ────────────────── */
.cc-stack {
  position: relative;
}
.scene-mac .cc-stack {
  position: relative;
}
.cc-window {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: oklch(0.10 0.005 250);
  box-shadow:
    inset 0 1px 0 oklch(0.35 0.012 250 / 0.4),
    inset 0 0 0 1px oklch(0.28 0.012 250 / 0.6),
    0 20px 50px oklch(0.02 0 0 / 0.7),
    0 6px 16px oklch(0.02 0 0 / 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center bottom;
  transition:
    transform 0.45s cubic-bezier(.2,.7,.25,1),
    filter 0.45s ease-out,
    box-shadow 0.4s ease-out;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cc-window[data-depth="0"] {
  z-index: 30;
  transform: none;
  opacity: 1;
  filter: none;
}
.cc-window[data-depth="1"] {
  z-index: 20;
  transform: translate(28px, -24px) scale(0.96);
  opacity: 0.85;
  filter: brightness(0.85);
}
.cc-window[data-depth="2"] {
  z-index: 10;
  transform: translate(56px, -48px) scale(0.92);
  opacity: 0.55;
  filter: brightness(0.7);
}
.cc-window[data-depth="3"] {
  z-index: 5;
  transform: translate(84px, -72px) scale(0.88);
  opacity: 0.3;
  filter: brightness(0.6);
}

/* iPhone scene window stack — single focused window, no cascade peeks */
.scene-iphone .cc-stack { overflow: hidden; }
.scene-iphone .cc-stack .cc-window[data-depth="1"],
.scene-iphone .cc-stack .cc-window[data-depth="2"],
.scene-iphone .cc-stack .cc-window[data-depth="3"] {
  visibility: hidden;
}

.cc-window .titlebar {
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, oklch(0.16 0.008 250), oklch(0.13 0.005 250));
  border-bottom: 1px solid oklch(0.22 0.011 250);
}
.cc-window .traffic { display: flex; gap: 7px; }
.cc-window .traffic i {
  display: block;
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.4);
}
.cc-window .traffic i:nth-child(1) { background: #ff5f57; }
.cc-window .traffic i:nth-child(2) { background: #febc2e; }
.cc-window .traffic i:nth-child(3) { background: #28c840; }
.cc-window .title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-window .term-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 2px 7px;
  border-radius: 5px;
  background: oklch(0.18 0.009 250);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cc-window .body {
  flex: 1;
  padding: 16px 20px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: oklch(0.85 0.005 250);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 75%, transparent 100%);
}
.cc-window .body .row { white-space: pre; }
.cc-window .body .dim { color: var(--fg-3); }
.cc-window .body .green { color: var(--green); }
.cc-window .body .amber { color: var(--amber); }
.cc-window .body .red { color: var(--red); }
.cc-window .body .blue { color: oklch(0.78 0.14 240); }
.cc-window .body .magenta { color: oklch(0.75 0.16 320); }
.cc-window .body .blink {
  display: inline-block;
  background: var(--fg);
  width: 7px; height: 13px;
  vertical-align: -2px;
  animation: cd-blink 1.05s steps(1) infinite;
}
.cc-window .body .prompt-arrow { color: var(--green); margin-right: 6px; }

/* Permission dialog block */
.perm-box {
  border: 1px solid oklch(0.45 0.10 25 / 0.4);
  border-radius: 7px;
  padding: 10px 12px;
  background: oklch(0.18 0.04 25 / 0.25);
  margin: 8px 0;
  display: inline-block;
  min-width: 260px;
  box-shadow: inset 0 0 0 1px oklch(0.45 0.10 25 / 0.25);
}
.perm-box .perm-head {
  font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--red); text-transform: uppercase;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.perm-box .perm-cmd {
  font-family: "JetBrains Mono", monospace;
  color: var(--fg);
  background: oklch(0.10 0.005 250);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.perm-box .perm-opts { font-size: 11.5px; line-height: 1.7; color: var(--fg-2); }
.perm-box .perm-opts .sel { color: var(--fg); }
.perm-box .perm-opts .sel::before { content: "❯ "; color: var(--red); }

/* Focused-window glow / aura */
.cc-window[data-depth="0"][data-status="perm"] {
  box-shadow:
    inset 0 1px 0 oklch(0.45 0.10 25 / 0.5),
    inset 0 0 0 1px oklch(0.55 0.18 25 / 0.5),
    0 0 40px oklch(0.70 0.22 25 / 0.18),
    0 20px 50px oklch(0.02 0 0 / 0.7);
}

/* ── CC Peek dashboard panel (Mac scene right side) ── */
.scene-mac .ccpeek-panel {
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(0.20 0.011 250), oklch(0.17 0.009 250));
  box-shadow:
    inset 0 1px 0 oklch(0.45 0.014 250 / 0.35),
    inset 0 0 0 1px var(--line),
    0 14px 36px oklch(0.04 0 0 / 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.scene-mac .ccpeek-panel .ph {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.scene-mac .ccpeek-panel .ph .row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.scene-mac .ccpeek-panel .ph .title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-3);
}
.scene-mac .ccpeek-panel .ph .ver {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--fg-3); letter-spacing: 0.04em;
}
.scene-mac .ccpeek-panel .ph .row2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
}
.scene-mac .ccpeek-panel .ph .sub {
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-3);
}

.scene-mac .ccpeek-panel .list { padding: 8px; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.peek-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  width: 100%;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
  position: relative;
}
.peek-row:hover { background: oklch(0.22 0.011 250); }
.peek-row.focused { background: oklch(0.24 0.04 240 / 0.4); box-shadow: inset 0 0 0 1px oklch(0.45 0.10 240 / 0.4); }
.peek-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.peek-row .info { flex: 1; min-width: 0; }
.peek-row .name-row {
  display: flex; align-items: baseline; gap: 7px;
  margin-bottom: 2px;
  min-width: 0;
}
.peek-row .name {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px; font-weight: 600;
  color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.peek-row .term {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--fg-3);
  flex-shrink: 0;
}
.peek-row .meta-row {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
}
.peek-row .status-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.peek-row .dur {
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}
.peek-row .chev { color: var(--fg-3); flex-shrink: 0; opacity: 0; transition: opacity 0.12s; }
.peek-row:hover .chev, .peek-row.focused .chev { opacity: 1; }

.scene-mac .ccpeek-panel .ft {
  display: flex; align-items: center;
  padding: 6px;
  border-top: 1px solid var(--line);
  gap: 4px;
}
.scene-mac .ccpeek-panel .ft button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: transparent; border: none;
  color: var(--fg-2);
  font-family: inherit; font-size: 11.5px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.scene-mac .ccpeek-panel .ft button:hover { background: oklch(0.22 0.011 250); color: var(--fg); }

/* Status dot animations + colors */
.dot.active   { background: var(--green);  box-shadow: 0 0 0 1px oklch(0.30 0.04 150 / 0.5), 0 0 8px var(--green-glow); animation: cd-breathe 3.4s ease-in-out infinite; }
.dot.input    { background: var(--amber);  box-shadow: 0 0 0 1px oklch(0.30 0.04 75 / 0.5), 0 0 10px var(--amber-glow); animation: cd-breathe-fast 1.6s ease-in-out infinite; }
.dot.perm     { background: var(--red);    box-shadow: 0 0 0 1px oklch(0.30 0.06 25 / 0.6), 0 0 14px var(--red-glow); animation: cd-pulse 0.9s ease-in-out infinite; }
.dot.unknown  { background: var(--grey);   box-shadow: 0 0 0 1px oklch(0.30 0.005 250 / 0.5); }
.status-text.active { color: var(--green); }
.status-text.input { color: var(--amber); }
.status-text.perm { color: var(--red); }
.status-text.unknown { color: var(--grey); }

@keyframes cd-breathe { 0%,100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes cd-breathe-fast { 0%,100% { opacity: 0.7; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes cd-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.22);
    box-shadow: 0 0 0 2px oklch(0.45 0.10 25 / 0.4), 0 0 22px var(--red-glow), 0 0 36px oklch(0.70 0.22 25 / 0.25); }
}
@keyframes cd-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* Hover hint when a window is clickable */
.cc-window[data-depth="0"]:hover {
  filter: brightness(1.04);
}
.cc-window:not([data-depth="0"]):hover {
  filter: brightness(0.95) !important;
}
.cc-window:not([data-depth="0"])::after {
  content: "点击切换至此窗口";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  font-family: -apple-system, sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}
.cc-window:not([data-depth="0"]):hover::after { opacity: 1; }
.cdemo[data-locale="en"] .cc-window:not([data-depth="0"])::after {
  content: "Click to switch to this window";
}

/* ──────────────────────────────────────────────────────
 * iPHONE SCENE
 * ────────────────────────────────────────────────────── */
.scene-iphone {
  background:
    radial-gradient(ellipse 50% 45% at 50% 85%, oklch(0.30 0.06 240 / 0.25), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 0%, oklch(0.22 0.03 240 / 0.4), transparent 70%),
    linear-gradient(180deg, oklch(0.17 0.011 250), oklch(0.11 0.008 250));
}
.scene-iphone .desk-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 260px;
  padding: 38px 60px 0;
}
.scene-iphone .desk-top .cc-stack {
  width: 100%;
  height: 100%;
}
.scene-iphone .desk-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
}
.scene-iphone .desk-bot::before {
  /* iPhone soft spotlight on desk */
  content: "";
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 100px;
  background: radial-gradient(ellipse, oklch(0.55 0.10 240 / 0.18), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.scene-iphone .desk-bot::after {
  /* Desk surface — subtle dark band */
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(180deg, oklch(0.14 0.010 250), oklch(0.09 0.006 250));
  border-top: 1px solid oklch(0.24 0.012 250);
  box-shadow: inset 0 1px 0 oklch(0.28 0.014 250 / 0.5);
}

/* iPhone bezel + stand */
.iphone-frame {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 540px;
  height: 252px;
  border-radius: 32px;
  background: oklch(0.06 0.003 250);
  padding: 8px;
  box-shadow:
    inset 0 0 0 1.5px oklch(0.38 0.010 250),
    inset 0 0 0 4px oklch(0.04 0.005 250),
    inset 0 1px 0 oklch(0.55 0.015 250 / 0.4),
    0 30px 50px oklch(0.02 0 0 / 0.6),
    0 8px 18px oklch(0.02 0 0 / 0.45);
  z-index: 2;
}
.iphone-frame::before {
  /* Dynamic island (left side in landscape) */
  content: "";
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 90px;
  border-radius: 14px;
  background: oklch(0.03 0 0);
  z-index: 4;
}
.iphone-screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: oklch(0.13 0.008 250);
}
.iphone-stand {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  z-index: 1;
}
.iphone-stand::before {
  /* Stand neck — comes up from base, behind phone */
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  background: linear-gradient(180deg, oklch(0.36 0.005 250), oklch(0.22 0.005 250));
  border-radius: 4px 4px 2px 2px;
  box-shadow:
    inset 1px 0 0 oklch(0.45 0.005 250 / 0.5),
    inset -1px 0 0 oklch(0.10 0.005 250 / 0.5);
}
.iphone-stand::after {
  /* Stand base */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 14px;
  background: linear-gradient(180deg, oklch(0.34 0.005 250), oklch(0.20 0.005 250));
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 oklch(0.50 0.006 250 / 0.5),
    inset 0 -1px 0 oklch(0.08 0.005 250 / 0.6),
    0 1px 2px oklch(0.02 0 0 / 0.5);
}

/* iPhone screen content (mini iOS app, landscape) */
.iphone-screen .ios-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 28px 5px 50px;
  position: relative;
}
.iphone-screen .ios-mac {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: oklch(0.20 0.010 250);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 oklch(0.40 0.014 250 / 0.3);
  font-size: 10.5px; font-weight: 600;
}
.iphone-screen .ios-bars {
  display: inline-flex; align-items: flex-end; gap: 1.5px;
  height: 9px;
}
.iphone-screen .ios-bars i {
  display: block; width: 1.8px;
  background: var(--green);
  border-radius: 1px;
  box-shadow: 0 0 3px var(--green-glow);
}
.iphone-screen .ios-bars i:nth-child(1) { height: 3px; }
.iphone-screen .ios-bars i:nth-child(2) { height: 5px; }
.iphone-screen .ios-bars i:nth-child(3) { height: 7px; }
.iphone-screen .ios-bars i:nth-child(4) { height: 9px; opacity: 0.4; background: var(--fg-3); box-shadow: none; }

.iphone-screen .ios-title {
  position: absolute;
  left: 50%; top: 12px;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px; color: var(--fg-3);
  letter-spacing: 0.12em;
}
.iphone-screen .ios-gear {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: oklch(0.20 0.010 250);
  box-shadow: inset 0 0 0 1px var(--line);
}

.iphone-screen .ios-grid {
  padding: 4px 20px 12px 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: calc(100% - 56px);
}
.ios-card {
  position: relative;
  padding: 11px 12px 10px;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--bg-bright), oklch(0.20 0.011 250));
  box-shadow:
    inset 0 1px 0 oklch(0.50 0.02 250 / 0.5),
    inset 0 -1px 0 oklch(0.10 0.008 250 / 0.7),
    0 2px 5px oklch(0.04 0 0 / 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  text-align: left;
  font-family: inherit;
  color: var(--fg);
  transition: transform 0.12s, box-shadow 0.12s;
  overflow: hidden;
}
.ios-card:hover { transform: translateY(-1px); }
.ios-card:active { transform: translateY(1px); }
.ios-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 1.5px;
}
.ios-card[data-s="active"]::before { background: linear-gradient(90deg, transparent, var(--green) 50%, transparent); opacity: 0.6; }
.ios-card[data-s="input"]::before { background: linear-gradient(90deg, transparent, var(--amber) 50%, transparent); opacity: 0.7; }
.ios-card[data-s="perm"]::before { background: linear-gradient(90deg, transparent, var(--red) 50%, transparent); opacity: 0.95; animation: cd-pulse-edge 0.9s infinite; }
.ios-card[data-s="unknown"]::before { background: linear-gradient(90deg, transparent, var(--grey) 50%, transparent); opacity: 0.4; }
@keyframes cd-pulse-edge { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.ios-card.focused {
  box-shadow:
    inset 0 1px 0 oklch(0.55 0.04 240 / 0.5),
    inset 0 0 0 1.5px oklch(0.55 0.12 240 / 0.6),
    inset 0 -1px 0 oklch(0.10 0.008 250 / 0.7),
    0 0 18px oklch(0.55 0.14 240 / 0.25),
    0 2px 5px oklch(0.04 0 0 / 0.5);
}

.ios-card .top {
  display: flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px; letter-spacing: 0.06em; font-weight: 600;
}
.ios-card .name {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ios-card .meta {
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}
.ios-card .meta .lbl { color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.ios-card .meta .val { color: var(--fg-2); font-variant-numeric: tabular-nums; }

.iphone-screen .ios-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 5px 50px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; color: var(--fg-3); letter-spacing: 0.1em;
}
.iphone-screen .ios-bottom .live::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 4px var(--green-glow);
  margin-right: 5px;
  vertical-align: middle;
}

/* Responsive — scale down on small screens */
@media (max-width: 900px) {
  .cdemo-stage { aspect-ratio: 1100 / 820; }
  .scene-mac .desktop { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 14px; padding: 18px; }
  .scene-mac .ccpeek-panel { max-height: 240px; }
  .scene-iphone .desk-top { padding: 24px 32px 0; bottom: 220px; }
  .scene-iphone .desk-bot { height: 220px; }
  .iphone-frame { width: 400px; height: 186px; }
  .iphone-screen .ios-grid { gap: 7px; padding: 4px 14px 10px 38px; }
  .ios-card { padding: 9px 10px 8px; }
  .ios-card .name { font-size: 12px; }
}
