/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── TOKENS ── */
:root {
  --bg: #070909;
  --bg-2: #0C0F0F;
  --bg-3: #111414;
  --card: #0F1212;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(255, 255, 255, 0.14);
  --text: #EAE6DF;
  --text-m: #8A867F;
  --text-d: #A29E96;
  --accent: #C4891A;
  --accent-l: #E5A83A;
  --accent-dim: rgba(196, 137, 26, 0.12);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --font-d: 'Cormorant Garamond', serif;
  --font-b: 'DM Sans', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --tr: 0.4s;
  --gutter: clamp(1rem, 5vw, 5rem);
  --app: var(--accent);
  --app-ink: #fff;
}

[data-theme="light"] {
  --bg: #FAFAF6;
  --bg-2: #F2EFE6;
  --bg-3: #E8E4DA;
  --card: #FFFFFF;
  --border: rgba(50, 40, 20, 0.09);
  --border-h: rgba(50, 40, 20, 0.18);
  --text: #1E1C17;
  --text-m: #68655E;
  --text-d: #4F4C46;
  --accent: #A86D0A;
  --accent-l: #C4841A;
  --accent-dim: rgba(168, 109, 10, 0.1);
  --shadow: 0 30px 60px -34px rgba(60, 45, 15, 0.35);
}

/* per-app accent */
.app--notchwin  { --app: #E5A83A; }
.app--vibrate   { --app: #2E9BE6; }
.app--cadentiq  { --app: #3FB862; }
.app--batteryiq { --app: #22C55E; }
.app--duespread { --app: #6C5CE7; }
.app--photofill { --app: #C2399F; }
.app--cricket   { --app: #D81B45; }
.app--expense   { --app: #1E5AD8; }
.app--ai        { --app: #E07A2E; }
.app--github    { --app: #8957E5; }
.app--nb        { --app: #0175C2; }

/* ── BASE ── */
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
  transition: background var(--tr), color var(--tr);
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; }
em { font-style: italic; color: var(--accent-l); }
[hidden] { display: none !important; }

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

.eyebrow {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-h {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), border-color var(--tr);
}

.nav-logo {
  font-family: var(--font-d);
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-logo span {
  color: var(--text-m);
  font-size: 1rem;
  margin-left: 0.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-m);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-l); }

.theme-btn {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-h);
  position: relative;
  flex-shrink: 0;
}

.theme-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(.5, 1.6, .4, 1);
}

[data-theme="light"] .theme-btn::after { transform: translateX(20px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 8rem var(--gutter) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: 1fr auto;
  gap: 2rem 4rem;
  align-items: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, var(--accent-dim), transparent 70%),
    var(--bg);
}

.hero-h {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}

.lede {
  max-width: 34rem;
  color: var(--text-d);
  font-size: 1.05rem;
}

/* physics tray */
.tray {
  position: relative;
  height: min(62vh, 520px);
  border-radius: 28px;
  border: 1px dashed var(--border-h);
  background:
    radial-gradient(circle at 1px 1px, var(--border-h) 1px, transparent 0) 0 0 / 22px 22px,
    color-mix(in srgb, var(--bg-2) 60%, transparent);
  overflow: hidden;
  touch-action: pan-y;
}

.tray-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  translate: -50% 0;
  font-family: var(--font-m);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-m);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.6s;
}

.tray.is-touched .tray-hint { opacity: 0; }

.chip-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-h);
  background: var(--card);
  will-change: transform;
}

.chip-icon img { width: 100%; height: 100%; pointer-events: none; }
.chip-icon.is-grabbed { cursor: grabbing; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--accent-l); }

.chip-icon--glyph {
  display: grid;
  place-items: center;
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.chip-icon--ai { background: linear-gradient(135deg, #F08A3C, #B9481A); }
.chip-icon--gh { background: linear-gradient(135deg, #8957E5, #3D1F8C); }
.chip-icon--nb { background: linear-gradient(135deg, #13B9FD, #0158A0); }

.tray.is-static {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.tray.is-static .chip-icon { position: static; cursor: pointer; }

.hero-stats {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

.hero-stats li { display: flex; flex-direction: column; gap: 0.2rem; }

.hero-stats b {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent-l);
}

.hero-stats span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-m);
}

/* ── FILTER BAR ── */
.filterbar {
  position: sticky;
  top: 62px;
  z-index: 50;
  padding: 0.8rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filter {
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-h);
  font-size: 0.8rem;
  color: var(--text-d);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.filter span { color: var(--text-m); font-family: var(--font-m); font-size: 0.7rem; margin-left: 0.2rem; }
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter:active { transform: scale(0.95); }
.filter.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter.is-on span { color: inherit; opacity: 0.6; }

.surprise {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.25s, transform 0.2s;
}

.surprise:hover { background: var(--accent-l); }
.surprise:active { transform: scale(0.95); }
.surprise .dice { font-size: 1.15rem; line-height: 1; display: inline-block; }
.surprise.is-rolling .dice { animation: roll 0.6s cubic-bezier(.3, 1.5, .5, 1); }
.surprise--sm { padding: 0.4rem 0.95rem; }

@keyframes roll {
  to { transform: rotate(720deg) scale(1.2); }
}

/* ── APPS ── */
main {
  padding: 2rem var(--gutter) 4rem;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem 4.5rem;
  align-items: center;
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 120px;
  transition: opacity 0.4s, transform 0.4s;
}

.app:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.app:nth-of-type(even) .app-info { order: 2; }

.app.is-leaving { opacity: 0; transform: translateY(20px) scale(0.98); }
.app.is-flash .app-stage { animation: flash 1.2s ease-out; }

@keyframes flash {
  0% { box-shadow: 0 0 0 0 var(--app); }
  30% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--app) 30%, transparent); }
  100% { box-shadow: 0 0 0 30px transparent; }
}

.app-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--app) 70%, transparent), 0 0 0 1px var(--border);
  transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1);
}

.app:hover .app-icon { transform: rotate(-8deg) scale(1.05); }

.app-icon--glyph {
  display: grid;
  place-items: center;
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--app) 80%, #fff), color-mix(in srgb, var(--app) 70%, #000));
}

.app-meta {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-m);
  margin-bottom: 0.2rem;
}

.badge-new {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  background: var(--app);
  color: #fff;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-name {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.05;
}

.app-tagline {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.app-tagline em { color: var(--app); }

.app-desc {
  color: var(--text-d);
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
}

.app-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.app-stats li {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}

.app-stats li:hover { border-color: var(--app); transform: translateY(-3px); }

.app-stats b {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.1;
}

.app-stats span { font-size: 0.72rem; color: var(--text-m); line-height: 1.3; }

.app-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--app) 80%, transparent);
  background: var(--app);
  color: #fff;
}

.store-btn::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
  --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 7h7l-5.5 4.5 2 7.5L12 16.5 5.5 21l2-7.5L2 9h7z'/%3E%3C/svg%3E");
}

.store-btn--play::before { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 3.07v17.86c0 .78.9 1.24 1.51.78l13.01-8.93a.95.95 0 000-1.56L7.01 2.29C6.4 1.83 5.5 2.29 5.5 3.07z'/%3E%3C/svg%3E"); }
.store-btn--ms::before { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 2h9.5v9.5H2zM12.5 2H22v9.5h-9.5zM2 12.5h9.5V22H2zM12.5 12.5H22V22h-9.5z'/%3E%3C/svg%3E"); }
.store-btn--web::before { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 010 20M12 2a15 15 0 000 20'/%3E%3C/svg%3E"); }
.store-btn--pub::before { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l9.5 5.5v11L12 24l-9.5-5.5v-11z'/%3E%3C/svg%3E"); }

.text-link {
  font-size: 0.86rem;
  color: var(--text-d);
  text-decoration: none;
  border-bottom: 1px solid var(--border-h);
  transition: color 0.25s, border-color 0.25s;
}

.text-link:hover { color: var(--app); border-color: var(--app); }

.empty-note {
  padding: 6rem 0;
  text-align: center;
  font-family: var(--font-d);
  font-size: 1.6rem;
  color: var(--text-m);
}

/* ── STAGE ── */
.app-stage {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--app) 16%, transparent), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border);
  padding: 1rem;
  min-width: 0;
  box-shadow: var(--shadow);
}

.stage-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.stage-tabs button {
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-m);
  transition: background 0.25s, color 0.25s;
}

.stage-tabs button:hover { color: var(--text); }
.stage-tabs button[aria-selected="true"] { background: var(--app); color: #fff; }

.stage-view {
  min-height: 460px;
  display: grid;
  place-items: center;
  animation: view-in 0.45s cubic-bezier(.2, .9, .3, 1);
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}

/* reel */
.reel {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem calc(50% - 120px);
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel.is-dragging img { pointer-events: none; }

.shot {
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-3);
  transform: scale(calc(1 - var(--d, 0) * 0.12));
  opacity: calc(1 - var(--d, 0) * 0.45);
  transition: transform 0.15s linear, opacity 0.15s linear;
}

.shot img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

.shot--tall  { height: 430px; aspect-ratio: 9 / 16; }
.shot--wide  { width: min(560px, 78vw); aspect-ratio: 16 / 9; }
.shot--wide img { object-fit: contain; background: #0b0d0f; }

.shot--phone {
  height: 440px;
  aspect-ratio: 481 / 1080;
  border-radius: 30px;
  padding: 7px;
  background: #121416;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}

.shot--phone img { border-radius: 24px; }

.shot--slot {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-h);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--app) 7%, transparent) 14px 28px),
    var(--bg);
}

.slot-art {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 2.4rem;
  color: color-mix(in srgb, var(--app) 60%, var(--text-m));
  opacity: 0.6;
}

.reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.reel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--border-h);
  transition: width 0.3s, background 0.3s;
}

.reel-dots button.is-on { width: 22px; background: var(--app); }

/* video */
.video-frame {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-frame video,
.video-frame img,
.video-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-frame--wide video { object-fit: contain; }

.play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--app);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--app) 25%, transparent);
  transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1);
}

.play-btn::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 54%;
  translate: -50% -50%;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.video-frame--yt:hover .play-btn { transform: scale(1.12); }

.slot-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  backdrop-filter: blur(6px);
}

/* ── DEMOS: shared ── */
.demo {
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
  user-select: none;
  -webkit-user-select: none;
}

.d-hint {
  font-size: 0.78rem;
  color: var(--text-m);
  text-align: center;
  max-width: 30rem;
}

.d-hint b { color: var(--text); font-weight: 500; }

.d-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  background: var(--app);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  transition: transform 0.15s, filter 0.2s, opacity 0.2s;
}

.d-btn:hover { filter: brightness(1.1); }
.d-btn:active { transform: scale(0.95); }
.d-btn:disabled { opacity: 0.45; cursor: default; }

.d-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}

.d-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

.d-phone {
  width: 250px;
  border-radius: 36px;
  padding: 10px;
  background: #0d0f11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  color: #f2f2f2;
}

.d-screen {
  border-radius: 28px;
  background: #16191c;
  padding: 1rem 0.9rem;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.d-screen--light { background: #f6f6f8; color: #18181b; }

.d-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
  opacity: 0.85;
}

/* ── DEMO: vibrate ── */
.vb {
  --mode: #9AA4AD;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.4rem;
}

.vb[data-mode="vibrate"] { --mode: #2BD9A0; }
.vb[data-mode="dnd"] { --mode: #FF5A5A; }
.vb .d-status { align-self: stretch; margin-bottom: 0.2rem; }

.vb-shield { position: absolute; top: 2.1rem; right: 0.9rem; width: 15px; height: 15px; color: #2BD9A0; }
.vb-shield svg { width: 100%; height: 100%; }

.vb-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin-top: 0.4rem;
  display: grid;
  place-items: center;
  color: var(--mode);
  border: 2px solid var(--mode);
  background: color-mix(in srgb, var(--mode) 10%, #16191c);
  box-shadow: 0 0 28px -8px var(--mode);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.15s;
}

.vb-ring:active { transform: scale(0.94); }
.vb-ring svg { width: 34px; height: 34px; }

.vb-pill {
  margin-top: 0.3rem;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--mode);
  color: var(--mode);
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}

.vb-tap { font-size: 0.62rem; opacity: 0.55; margin-bottom: 0.35rem; }

.vb-card {
  align-self: stretch;
  background: #1f2327;
  border: 1px solid #2c3136;
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
}

.vb.is-sleep .vb-card:first-of-type { border-color: #2BD9A0; }
.vb-row { display: flex; align-items: center; gap: 0.45rem; }
.vb-row b { font-weight: 500; flex: 1; }
.vb-ico { width: 22px; height: 22px; border-radius: 7px; background: #2c3136; display: grid; place-items: center; font-size: 0.7rem; }
.vb-sub { font-size: 0.6rem; opacity: 0.6; line-height: 1.35; margin-top: 0.2rem; }
.vb.is-sleep .vb-sleep { color: #2BD9A0; opacity: 1; }

.vb-switch {
  width: 30px;
  height: 17px;
  border-radius: 99px;
  background: #4a5056;
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s;
}

.vb-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(.3, 1.5, .5, 1);
}

.vb-switch[aria-checked="true"] { background: #2BD9A0; }
.vb-switch[aria-checked="true"]::after { transform: translateX(13px); }

.vb-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; margin-top: 0.45rem; }

.vb-chips button {
  padding: 0.3rem 0;
  border-radius: 999px;
  border: 1px solid #3a4046;
  font-size: 0.62rem;
  color: #e6e6e6;
  transition: border-color 0.2s, background 0.2s;
}

.vb-chips button:hover { border-color: #2BD9A0; background: rgba(43, 217, 160, 0.08); }

.vb-left { color: #2BD9A0; font-size: 0.95rem; font-variant-numeric: tabular-nums; margin-top: 0.35rem; }
.vb-bar { display: block; height: 3px; border-radius: 2px; background: #2c3136; margin: 0.35rem 0; overflow: hidden; }
.vb-bar i { display: block; height: 100%; width: var(--w, 100%); background: #2BD9A0; transition: width 1s linear; }
.vb-run .vb-row { justify-content: space-between; }
.vb-run .vb-sub { margin: 0; }
.vb-cancel { color: #FF7A6E; font-size: 0.66rem; }

.vb-nav {
  align-self: stretch;
  display: flex;
  justify-content: space-around;
  font-size: 0.56rem;
  opacity: 0.5;
  margin-top: 0.3rem;
  padding-top: 0.45rem;
  border-top: 1px solid #2c3136;
}

.vb-nav .is-on { opacity: 1; color: #fff; }

.d-phone.is-buzz { animation: buzz 0.5s linear; }

@keyframes buzz {
  0%, 100% { transform: translate(0) rotate(0); }
  10%, 50%, 90% { transform: translate(-3px, 1px) rotate(-1.2deg); }
  30%, 70% { transform: translate(3px, -1px) rotate(1.2deg); }
}

/* ── DEMO: duespread ── */
.ds {
  width: min(100%, 520px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1rem;
}

.ds-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.ds-top b { font-family: var(--font-d); font-weight: 500; font-size: 1.5rem; }
.ds-top span { font-size: 0.72rem; color: var(--text-m); }

.ds-bars {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 6px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.ds-avg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--avg, 50%);
  border-top: 1px dashed var(--text-m);
  pointer-events: none;
  transition: bottom 0.6s;
}

.ds-avg::after {
  content: 'avg';
  position: absolute;
  right: 0;
  top: -1.1rem;
  font-family: var(--font-m);
  font-size: 0.6rem;
  color: var(--text-m);
}

.ds-bar {
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: #2E8B3E;
  transition: height 0.7s cubic-bezier(.3, 1.3, .5, 1), background 0.4s;
  position: relative;
}

.ds-bar.is-warm { background: #EF7B1A; cursor: pointer; }
.ds-bar.is-hot { background: #C62828; cursor: pointer; }
.ds-bar.is-hot:hover,
.ds-bar.is-warm:hover { filter: brightness(1.15); }

.ds-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin: 0.35rem 0 0.9rem;
  text-align: center;
  font-family: var(--font-m);
  font-size: 0.6rem;
  color: var(--text-m);
}

.ds-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ds-msg { font-size: 0.78rem; color: var(--text-d); }

/* ── DEMO: photofill ── */
.pf-list { display: flex; flex-direction: column; gap: 0.15rem; }

.pf-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.38rem 0.3rem;
  border-radius: 12px;
  font-size: 0.82rem;
  transition: background 0.2s;
}

.pf-row:hover { background: rgba(255, 255, 255, 0.05); }

.pf-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: #3a3f45;
  position: relative;
  overflow: hidden;
}

.pf-av::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  top: 7px;
  border-radius: 50%;
  background: #6b7279;
  box-shadow: 0 14px 0 6px #6b7279;
  transition: opacity 0.2s;
}

.pf-av.is-filled::before { opacity: 0; }
.pf-av.is-filled { cursor: pointer; animation: pop 0.45s cubic-bezier(.3, 1.8, .5, 1); }

.pf-av.p0 { background: linear-gradient(135deg, #ff8a65, #c2185b); }
.pf-av.p1 { background: linear-gradient(135deg, #4fc3f7, #3949ab); }
.pf-av.p2 { background: linear-gradient(135deg, #aed581, #00897b); }
.pf-av.p3 { background: linear-gradient(135deg, #ffd54f, #ef6c00); }
.pf-av.p4 { background: linear-gradient(135deg, #ce93d8, #6a1b9a); }
.pf-av.p5 { background: linear-gradient(135deg, #80deea, #00838f); }
.pf-av.p6 { background: linear-gradient(135deg, #f48fb1, #ad1457); }

@keyframes pop {
  0% { transform: scale(0.4); }
  100% { transform: scale(1); }
}

.pf-count { font-size: 0.72rem; opacity: 0.7; margin: 0.7rem 0 0.2rem; text-align: center; }

/* ── DEMO: cricket ── */
.ck {
  width: min(100%, 360px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.ck-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; }
.ck-team { font-size: 0.72rem; color: var(--text-m); }
.ck-team b { display: block; color: var(--text); font-size: 1.05rem; font-weight: 500; }
.ck-score { text-align: right; font-family: var(--font-d); font-size: 2.6rem; line-height: 1; font-weight: 500; }
.ck-score small { display: block; font-family: var(--font-b); font-size: 0.7rem; color: var(--text-m); margin-top: 0.2rem; }

.ck-need {
  font-size: 0.75rem;
  text-align: center;
  padding: 0.45rem;
  border-radius: 10px;
  background: var(--bg-2);
  margin-bottom: 0.7rem;
}

.ck-over { display: flex; gap: 0.3rem; min-height: 28px; margin-bottom: 0.9rem; flex-wrap: wrap; align-items: center; }
.ck-over::before { content: 'This over'; font-size: 0.68rem; color: var(--text-m); margin-right: 0.3rem; }

.ck-ball {
  min-width: 26px;
  height: 26px;
  padding: 0 0.3rem;
  border-radius: 13px;
  border: 1px solid var(--border-h);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  animation: pop 0.3s cubic-bezier(.3, 1.8, .5, 1);
}

.ck-ball--4 { background: #1565C0; color: #fff; border-color: transparent; }
.ck-ball--6 { background: #111; color: #fff; border-color: transparent; }
[data-theme="dark"] .ck-ball--6 { background: #f2f2f2; color: #111; }
.ck-ball--W { background: #D81B45; color: #fff; border-color: transparent; }
.ck-ball--x { font-size: 0.6rem; color: var(--text-m); }

.ck-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }

.ck-pad button {
  padding: 0.7rem 0;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.12s, background 0.2s;
}

.ck-pad button:active { transform: scale(0.92); }
.ck-pad button:hover { background: var(--bg-3); }
.ck-pad .ck-six { background: var(--text); color: var(--bg); }
.ck-pad .ck-six:hover { background: var(--text); }
.ck-pad .ck-out { background: #D81B45; color: #fff; border-color: transparent; }
.ck-pad .ck-out:hover { background: #b9153a; }
.ck-pad .ck-small { font-size: 0.72rem; }

.ck-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 600;
  font-size: 4.5rem;
  color: var(--app);
  opacity: 0;
}

.ck-burst.is-go { animation: burst 0.9s cubic-bezier(.2, .8, .3, 1); }

@keyframes burst {
  0% { opacity: 0; transform: scale(0.3) rotate(-12deg); }
  30% { opacity: 1; transform: scale(1.15) rotate(-4deg); }
  100% { opacity: 0; transform: scale(1.6) rotate(0); }
}

/* ── DEMO: expense ── */
.ex {
  width: min(100%, 380px);
  background: #F6F7FB;
  color: #16181d;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ex-tabs { display: flex; gap: 1rem; border-bottom: 1px solid #e3e5ea; margin-bottom: 0.8rem; font-size: 0.82rem; }
.ex-tabs button { padding: 0.3rem 0; color: #70737a; border-bottom: 2px solid transparent; }
.ex-tabs button.is-on { color: #1E5AD8; border-color: #1E5AD8; font-weight: 500; }

.ex-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.8rem; }
.ex-card { background: #fff; border-radius: 14px; padding: 0.6rem 0.7rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.ex-card span { font-size: 0.66rem; color: #70737a; }
.ex-card b { display: block; font-size: 1.05rem; font-weight: 600; color: #1E5AD8; font-variant-numeric: tabular-nums; }
.ex-card--g b { color: #138a4a; }

.ex-cat { display: grid; grid-template-columns: 1fr auto; font-size: 0.72rem; margin-bottom: 0.35rem; }
.ex-cat i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #e7e9ee; margin-top: 0.15rem; overflow: hidden; }
.ex-cat i::after { content: ''; display: block; height: 100%; width: var(--w, 0%); background: var(--c, #1E5AD8); border-radius: 3px; transition: width 0.6s cubic-bezier(.3, 1.2, .5, 1); }

.ex-cat.c0 i { --c: #E91E63; }
.ex-cat.c1 i { --c: #22A55A; }
.ex-cat.c2 i { --c: #7C4DFF; }
.ex-cat.c3 i { --c: #FF9800; }

.ex-recent { list-style: none; margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; max-height: 104px; overflow: hidden; }
.ex-recent li { display: flex; justify-content: space-between; font-size: 0.74rem; background: #fff; padding: 0.4rem 0.6rem; border-radius: 10px; animation: slide-in 0.4s cubic-bezier(.2, .9, .3, 1); }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-16px); }
}

.ex-add { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }

.ex-add button {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed var(--border-h);
  font-size: 0.74rem;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}

.ex-add button:hover { border-color: var(--app); background: color-mix(in srgb, var(--app) 10%, transparent); }
.ex-add button:active { transform: scale(0.94); }

/* ── DEMO: batteryiq ── */
.bq {
  width: min(100%, 580px);
  background: #14181d;
  color: #e9edf1;
  border-radius: 16px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.bq-top { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.bq-card {
  background: #1c2127;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.7rem;
  min-width: 0;
}

.bq-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.45rem;
}

.bq-label em { font-style: normal; letter-spacing: 0.04em; text-transform: none; color: #22C55E; opacity: 1; }
.bq-hrow { display: flex; align-items: center; gap: 0.7rem; }

.bq-ring {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#22C55E 83%, #2a323b 0);
  display: grid;
  place-items: center;
  position: relative;
}

.bq-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #1c2127; }
.bq-ring div { position: relative; text-align: center; line-height: 1.1; }
.bq-ring b { display: block; font-size: 1.05rem; font-weight: 600; }
.bq-ring span { font-size: 0.48rem; letter-spacing: 0.1em; text-transform: uppercase; color: #22C55E; }

.bq dl { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 0; }
.bq dl div { display: flex; justify-content: space-between; gap: 0.4rem; }
.bq dt { opacity: 0.6; font-size: 0.62rem; white-space: nowrap; }
.bq dd { font-variant-numeric: tabular-nums; font-size: 0.66rem; white-space: nowrap; }

.bq-cell {
  width: 30px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid #4a535d;
  padding: 2px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.bq-cell::before { content: ''; position: absolute; top: -5px; left: 50%; translate: -50% 0; width: 10px; height: 3px; border-radius: 2px 2px 0 0; background: #4a535d; }
.bq-fill { display: block; width: 100%; height: var(--lvl, 94%); border-radius: 3px; background: linear-gradient(#4ade80, #16a34a); transition: height 0.25s linear; }
.bq-fill.is-low { background: linear-gradient(#f87171, #dc2626); }

.bq-lvl { font-size: 1.8rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.bq-lvl small { font-size: 0.8rem; opacity: 0.6; }
.bq-left { font-size: 0.72rem; margin: 0.15rem 0 0.35rem; }
.bq-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; font-size: 0.6rem; opacity: 0.8; }
.bq-meta b { font-weight: 600; font-variant-numeric: tabular-nums; }

.bq-session { background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), transparent 70%), #1c2127; border-color: rgba(34, 197, 94, 0.2); }
.bq-srow { display: flex; justify-content: space-between; gap: 0.8rem; }
.bq-big { font-size: 1.6rem; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bq-sub { font-size: 0.62rem; opacity: 0.65; margin-top: 0.2rem; max-width: 15rem; }
.bq-stats { max-width: 13rem; }
.bq-stats dd { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; }
.bq-stats small { font-weight: 400; font-size: 0.52rem; opacity: 0.75; }
.bq-stats small.is-good { color: #4ade80; opacity: 1; }
.bq-stats small.is-bad { color: #f87171; opacity: 1; }

.bq-chart { width: 100%; height: 56px; margin-top: 0.5rem; }
.bq-chart polyline { fill: none; stroke: #22C55E; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bq-area { fill: rgba(34, 197, 94, 0.14); }

.bq-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.bq-chips span { font-size: 0.58rem; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); opacity: 0.8; }

.bq-ctl { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bq-ctl .d-btn { background: #22C55E; color: #06210f; }
.bq-ctl .d-btn--ghost { background: transparent; color: #e9edf1; border-color: rgba(255, 255, 255, 0.18); }

.bq-avg { font-size: 0.66rem; opacity: 0.8; }
.bq-avg b { color: #fff; font-weight: 600; }
.bq-sessions { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.4rem; }
.bq-sessions:empty { display: none; }
.bq-sessions li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.55rem; background: #232930; border-radius: 8px; font-size: 0.66rem; animation: slide-in 0.4s; font-variant-numeric: tabular-nums; }
.bq-sessions small { opacity: 0.6; }

/* ── DEMO: notchwin ── */
.nw {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #2f6ea8 0%, #5b97c9 45%, #a8cbe6 70%, #dfe9f1 100%);
  box-shadow: 0 0 0 8px #1a1c20, 0 0 0 9px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color: #f1f1f1;
  font-size: 0.7rem;
}

.nw::before,
.nw::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  pointer-events: none;
}

.nw::before {
  height: 46%;
  background: linear-gradient(180deg, #e9eef3 0%, #8a96a3 30%, #4b5560 100%);
  clip-path: polygon(0 62%, 9% 40%, 17% 55%, 27% 18%, 36% 46%, 44% 30%, 53% 58%, 62% 12%, 71% 44%, 80% 26%, 90% 52%, 100% 34%, 100% 100%, 0 100%);
}

.nw::after {
  height: 30%;
  background: linear-gradient(180deg, #5d6874, #2d343c);
  clip-path: polygon(0 55%, 12% 30%, 24% 60%, 38% 22%, 50% 50%, 66% 28%, 78% 58%, 90% 36%, 100% 52%, 100% 100%, 0 100%);
}

.nw-notch {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 168px;
  height: 30px;
  background: #000;
  border-radius: 0 0 16px 16px;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: width 0.5s cubic-bezier(.3, 1.2, .45, 1), height 0.5s cubic-bezier(.3, 1.2, .45, 1), border-radius 0.5s;
}

.nw-notch::before,
.nw-notch::after {
  content: '';
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
}

.nw-notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px); }
.nw-notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px); }

.nw-notch.is-glance { width: min(380px, 86%); height: 122px; border-radius: 0 0 26px 26px; }
.nw-notch.is-deck { width: 94%; height: 70%; border-radius: 0 0 22px 22px; cursor: default; }

.nw-face {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0s 0.2s;
}

.nw-notch:not(.is-glance):not(.is-deck) .nw-face--pill,
.nw-notch.is-glance .nw-face--glance,
.nw-notch.is-deck .nw-face--deck {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s 0.2s, visibility 0s;
}

/* pill */
.nw-face--pill { display: flex; align-items: center; justify-content: space-between; padding: 0 0.7rem; }
.nw-batt { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(#4ade80 87%, #1f3a29 0); -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px); }
.nw-sec { font-weight: 500; font-variant-numeric: tabular-nums; font-size: 0.72rem; }
.nw-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px #14301f; }

/* glance */
.nw-face--glance { padding: 0.55rem 0.9rem 0.4rem; display: flex; flex-direction: column; }
.nw-g-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.62rem; opacity: 0.9; }
.nw-ic { width: 20px; height: 20px; border-radius: 6px; background: #1c1c1e; display: grid; place-items: center; font-size: 0.6rem; }
.nw-g-page { flex: 1; display: flex; align-items: center; gap: 0.75rem; }
.nw-w-ring { width: 54px; height: 54px; position: relative; flex-shrink: 0; display: grid; place-items: center; }
.nw-w-ring svg { position: absolute; inset: 0; }
.nw-w-ring circle { fill: none; stroke: #16263a; stroke-width: 9; }
.nw-w-ring .nw-w-arc { stroke: #4aa3f0; stroke-linecap: round; transition: stroke-dashoffset 0.5s; }
.nw-w-txt { flex: 1; min-width: 0; line-height: 1.25; }
.nw-w-txt b { color: #6db8f5; font-weight: 500; font-size: 0.68rem; }
.nw-w-txt p { font-size: 0.66rem; opacity: 0.85; }
.nw-w-txt strong { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nw-w-txt small { font-size: 0.56rem; opacity: 0.6; }
.nw-focus-c { color: #ff6b6b !important; }
.nw-music-c { color: #E5A83A !important; }

.nw-pillbtn {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #0f3a63;
  color: #8cc8ff;
  font-size: 0.66rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nw-pillbtn--red { background: #4a1414; color: #ff8a8a; }
.nw-dots { display: flex; justify-content: center; gap: 4px; }
.nw-dots button { width: 5px; height: 5px; border-radius: 3px; background: #555; transition: width 0.25s, background 0.25s; }
.nw-dots button.is-on { width: 14px; background: #fff; }

.nw-art { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, #1b6f80, #0b2f3a 60%, #E5A83A); }

/* deck */
.nw-face--deck { padding: 0.55rem; display: flex; flex-direction: column; gap: 0.5rem; }
.nw-d-top { display: flex; align-items: center; gap: 0.6rem; }

.nw-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.1rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: #161616;
  overflow-x: auto;
  scrollbar-width: none;
}

.nw-tabs::-webkit-scrollbar { display: none; }
.nw-tabs button { flex-shrink: 0; padding: 0.2rem 0.5rem; border-radius: 7px; font-size: 0.6rem; color: #cfcfcf; }
.nw-tabs button.is-on { background: #2c2c2e; color: #fff; }
.nw-sys { display: flex; gap: 0.6rem; font-size: 0.56rem; opacity: 0.85; }
.nw-sys span { display: flex; flex-direction: column; gap: 2px; min-width: 64px; }
.nw-sys b { font-weight: 500; }
.nw-sys i { display: block; height: 3px; border-radius: 2px; background: #2a2a2a; overflow: hidden; }
.nw-sys i i { height: 100%; width: var(--w, 20%); background: #22c55e; transition: width 0.6s; }

.nw-d-body { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.nw-d-body--dev { grid-template-columns: 2fr 1fr; }
.nw-d-body--more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.72rem; opacity: 0.9; }

.nw-card {
  background: #131313;
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.nw-card h4 { font-weight: 500; font-size: 0.66rem; }
.nw-card--light { background: #ece9e3; color: #1a1a1a; }
.nw-hi { align-self: flex-start; font-size: 0.6rem; }
.nw-analog { width: 70%; max-width: 92px; flex-shrink: 1; min-height: 0; }
.nw-dial { fill: #dcd8d1; }
.nw-ticks circle { fill: #2a2a2a; }
.nw-hh, .nw-mh { stroke-linecap: round; }
.nw-hh { stroke: #e04a3a; stroke-width: 4; }
.nw-mh { stroke: #1a1a1a; stroke-width: 2.5; }
.nw-pin { fill: #1a1a1a; }
.nw-wd { font-weight: 600; font-size: 0.64rem; margin-top: auto; }
.nw-dt { font-size: 0.56rem; opacity: 0.6; }

.nw-f-ring { position: relative; width: 70%; max-width: 86px; aspect-ratio: 1; display: grid; place-items: center; }
.nw-f-ring svg { position: absolute; inset: 0; }
.nw-f-ring circle { fill: none; stroke: #2a1515; stroke-width: 7; }
.nw-f-ring .nw-f-arc { stroke: #ff4d4d; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.nw-f-ring div { position: relative; text-align: center; line-height: 1.1; }
.nw-f-ring b { display: block; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nw-f-ring span { font-size: 0.5rem; opacity: 0.7; }
.nw-f-modes { display: flex; gap: 2px; }
.nw-f-modes button { padding: 0.12rem 0.35rem; border-radius: 99px; background: #1f1f1f; font-size: 0.52rem; color: #bbb; }
.nw-f-modes button.is-on { background: #5a1a1a; color: #fff; }
.nw-f-ctl, .nw-m-ctl { display: flex; align-items: center; gap: 0.35rem; margin-top: auto; }
.nw-f-ctl button, .nw-m-ctl button { width: 22px; height: 22px; border-radius: 50%; background: #1f1f1f; font-size: 0.55rem; display: grid; place-items: center; }
.nw-f-ctl .nw-f-play { width: 28px; height: 28px; background: #ff4d4d; color: #fff; }

.nw-music { background: linear-gradient(180deg, #0f4c5a, #082a33); }
.nw-art--lg { width: 52%; height: auto; aspect-ratio: 1; border-radius: 50%; animation: spin 8s linear infinite; }
.nw.is-paused .nw-art--lg { animation-play-state: paused; }
.nw-trk { align-self: flex-start; line-height: 1.2; }
.nw-trk b { display: block; font-size: 0.66rem; font-weight: 600; }
.nw-trk span { font-size: 0.56rem; opacity: 0.7; }
.nw-m-ctl { margin-top: 0; }
.nw-m-ctl button { background: transparent; }
.nw-wave { align-self: stretch; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.nw-wave-fill { display: block; height: 100%; width: 0; background: #5fe0ff; animation: prog 40s linear infinite; }
.nw.is-paused .nw-wave-fill { animation-play-state: paused; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes prog {
  to { width: 100%; }
}

.nw-todo { align-items: stretch; }
.nw-todo h4 { text-align: center; }
.nw-tasks { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; min-height: 0; overflow: hidden; }
.nw-tasks button { width: 100%; display: flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.35rem; border-radius: 7px; background: #1f1f1f; font-size: 0.58rem; text-align: left; }
.nw-tasks i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #777; flex-shrink: 0; }
.nw-tasks .is-done i { background: #4ade80; border-color: #4ade80; }
.nw-tasks .is-done span { text-decoration: line-through; opacity: 0.5; }
.nw-tasks span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-add { margin-top: auto; padding: 0.25rem 0.4rem; border-radius: 7px; border: 1px solid #3d6fd1; background: #0b0b0b; color: #fff; font: inherit; font-size: 0.58rem; min-width: 0; }
.nw-todo-n { font-size: 0.52rem; opacity: 0.6; text-align: center; }

.nw-repos { align-items: stretch; gap: 0.15rem; }
.nw-svc { display: flex; gap: 0.2rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.nw-svc span { padding: 0.08rem 0.4rem; border-radius: 99px; background: #1f1f1f; font-size: 0.52rem; }
.nw-svc .is-on { background: #eee; color: #111; }
.nw-repo { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; align-items: center; font-size: 0.6rem; padding: 0.12rem 0; }
.nw-pr { color: #7aa7ff; }
.nw-ci { display: flex; align-items: center; gap: 0.3rem; }
.nw-ci i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.nw-ci--fail i { background: #ff5a5a; }
.nw-ci--run i { background: #f5a524; animation: blink 1s infinite; }

@keyframes blink {
  50% { opacity: 0.3; }
}

.nw-contrib { align-items: flex-start; font-size: 0.56rem; opacity: 0.95; }
.nw-contrib b { font-size: 1.4rem; line-height: 1; }
.nw-heat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; width: 100%; margin-top: auto; }
.nw-heat i { aspect-ratio: 1; border-radius: 2px; background: #1d3a26; }
.nw-heat .h1 { background: #166534; }
.nw-heat .h2 { background: #22a04b; }
.nw-heat .h3 { background: #4ade80; }

/* ── DEMO: cadentiq ── */
.cq {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.1rem;
}

.cq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.9rem; }
.cq-head b { font-weight: 500; font-size: 0.98rem; display: block; }
.cq-head span { font-size: 0.72rem; color: var(--text-m); }
.cq-streak { text-align: right; font-family: var(--font-d); font-size: 2.2rem; line-height: 1; color: var(--app); }
.cq-head .cq-n { font-size: inherit; color: inherit; }
.cq-streak small { display: block; font-family: var(--font-b); font-size: 0.66rem; color: var(--text-m); }

.cq-days, .cq-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cq-days { font-family: var(--font-m); font-size: 0.58rem; color: var(--text-m); text-align: center; margin-bottom: 4px; }

.cq-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.12s;
}

.cq-cell:active { transform: scale(0.88); }
.cq-cell.is-done { background: var(--app); border-color: transparent; color: #fff; }
.cq-cell.is-min { background: color-mix(in srgb, var(--app) 35%, var(--bg-2)); border-color: var(--app); }
.cq-cell.is-frozen { background: #CFE8FF; border-color: #7BB8F0; color: #1d5fa6; }
.cq-cell.is-today { outline: 2px solid var(--text); outline-offset: 1px; }
.cq-cell.is-future { opacity: 0.35; pointer-events: none; }

.cq-legend { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.66rem; color: var(--text-m); margin-top: 0.8rem; }
.cq-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 0.3rem; vertical-align: -1px; }
.cq-legend .l-done { background: var(--app); }
.cq-legend .l-min { background: color-mix(in srgb, var(--app) 35%, var(--bg-2)); border: 1px solid var(--app); }
.cq-legend .l-frz { background: #CFE8FF; border: 1px solid #7BB8F0; }

.cq-msg { min-height: 1.3em; font-size: 0.78rem; color: var(--text-d); margin-top: 0.6rem; }

/* ── DEMO: github ── */
.gh {
  width: min(100%, 560px);
  background: #0a0a0a;
  color: #ededed;
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 0 0 1px #262626;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gh select,
.gh input[type="text"],
.gh input[type="search"] {
  font: inherit;
  font-size: 0.72rem;
  color: #ededed;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.38rem 0.55rem;
  min-width: 0;
}

.gh select { cursor: pointer; }
.gh input:focus, .gh select:focus { outline: none; border-color: #6b6b6b; }
.gh input[type="checkbox"] { accent-color: #e5e5e5; width: 14px; height: 14px; margin: 0; }

.gh-bar { display: flex; gap: 0.5rem; }
.gh-org { display: flex; align-items: center; gap: 0.3rem; }
.gh-org span { opacity: 0.6; }
.gh-search { flex: 1; }

.gh-table { border: 1px solid #262626; border-radius: 10px; overflow: hidden; }
.gh-rows { max-height: 216px; overflow-y: auto; scrollbar-width: thin; }

.gh-tr {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-top: 1px solid #1f1f1f;
  cursor: pointer;
  transition: background 0.15s;
}

.gh-rows .gh-tr:hover { background: #121212; }
.gh-tr.is-sel { background: #161616; }
.gh-th { border-top: 0; background: #111; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8f8f8f; cursor: default; }

.gh-name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.gh-name b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-name em { font-style: normal; font-size: 0.56rem; padding: 0.02rem 0.35rem; border-radius: 99px; border: 1px solid #333; color: #9a9a9a; }

.gh-cols { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.gh-cols small { color: #666; font-size: 0.64rem; }

.gh-av {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  background: #262626;
  border: 1px solid #3a3a3a;
}

.gh-av s { position: absolute; right: -5px; bottom: -4px; text-decoration: none; font-size: 0.5rem; }
.gh-av.is-pulse { background: #e5e5e5; color: #0a0a0a; animation: pop 0.45s cubic-bezier(.3, 1.8, .5, 1); }

.gh-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.gh-n { color: #9a9a9a; margin-right: auto; }
.gh-user-in { width: 90px; }

.gh-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: #e5e5e5;
  color: #0a0a0a;
  font-weight: 500;
  font-size: 0.72rem;
  transition: background 0.2s, transform 0.12s;
}

.gh-btn:hover { background: #fff; }
.gh-btn:active { transform: scale(0.95); }
.gh-btn--ghost { background: transparent; color: #ededed; border: 1px solid #333; }
.gh-btn--ghost:hover { background: #1a1a1a; }
.gh-log { font-size: 0.68rem; color: #a3a3a3; min-height: 1.2em; }
.gh-empty { padding: 1rem; text-align: center; color: #666; }

/* ── DEMO: ai team ── */
.ai {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ai-org { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }

.ai-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  color: var(--text-m);
  transition: color 0.3s;
}

.ai-agent i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border-h);
  transition: transform 0.3s cubic-bezier(.3, 1.8, .5, 1), box-shadow 0.3s, border-color 0.3s;
}

.ai-agent.is-talking { color: var(--text); }
.ai-agent.is-talking i { transform: scale(1.15); border-color: var(--app); box-shadow: 0 0 0 6px color-mix(in srgb, var(--app) 22%, transparent); }
.ai-agent.is-done i { border-color: var(--app); }

.ai-log {
  height: 214px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  scrollbar-width: thin;
}

.ai-log p { animation: slide-in 0.3s; }
.ai-log b { color: var(--app); font-weight: 600; font-family: var(--font-m); font-size: 0.7rem; margin-right: 0.35rem; }
.ai-log .ai-idle { color: var(--text-m); margin: auto; text-align: center; animation: none; }
.ai-caret::after { content: '▍'; color: var(--app); animation: blink 0.8s infinite; }

.ai-tasks { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }

.ai-tasks button {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-h);
  font-size: 0.76rem;
  transition: border-color 0.2s, background 0.2s;
}

.ai-tasks button:hover { border-color: var(--app); background: color-mix(in srgb, var(--app) 10%, transparent); }
.ai-tasks button:disabled { opacity: 0.4; cursor: default; }

/* ── DEMO: nb_utils ── */
.nb {
  width: min(100%, 580px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.9rem;
}

.nb-code {
  background: #0f1720;
  color: #d6deeb;
  border-radius: 16px;
  padding: 0.9rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  line-height: 1.75;
  overflow-x: auto;
}

.nb-code .k { color: #c792ea; }
.nb-code .s { color: #ecc48d; }
.nb-code .f { color: #82aaff; }
.nb-code .c { color: #637777; }

.nb-line { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; border-radius: 6px; padding: 0 0.3rem; margin: 0 -0.3rem; transition: background 0.2s; }
.nb-line:hover { background: rgba(255, 255, 255, 0.05); }
.nb-line input { accent-color: #13B9FD; margin: 0; }
.nb-line.is-off code { opacity: 0.35; text-decoration: line-through; }

.nb-device {
  border-radius: 24px;
  padding: 8px;
  background: #121416;
  min-height: 300px;
  display: flex;
}

.nb-screen {
  flex: 1;
  border-radius: 18px;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nb-widget {
  background: #0175C2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  transition: padding 0.4s cubic-bezier(.3, 1.4, .5, 1), border-radius 0.4s, opacity 0.3s, transform 0.3s;
}

.nb-widget.has-pad { padding: 1rem 1.2rem; }
.nb-widget.has-round { border-radius: 16px; }
.nb-widget.is-hidden { opacity: 0; transform: scale(0.8); }
.nb-widget.has-tap { cursor: pointer; }
.nb-widget.has-tap:active { transform: scale(0.95); }
.nb-gap { height: 0; transition: height 0.4s; }
.nb-gap.is-on { height: 16px; }
.nb-sub { font-size: 0.7rem; color: #666; }

.nb-toast {
  position: absolute;
  bottom: 14px;
  left: 50%;
  translate: -50% 0;
  background: #333;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateY(8px);
  white-space: nowrap;
}

.nb-toast.is-on { opacity: 1; transform: translateY(0); }

/* ── REVIEWS ── */
.reviews {
  padding: 6rem var(--gutter);
  background: var(--bg-2);
  scroll-margin-top: 60px;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.score-n { font-family: var(--font-d); font-size: 4rem; line-height: 0.9; font-weight: 400; }
.score-sub { font-size: 0.8rem; color: var(--text-d); }
.score-note { font-size: 0.7rem; color: var(--text-m); }

.stars { color: #F2A60C; letter-spacing: 0.08em; font-size: 0.85rem; }
.stars--lg { font-size: 1.25rem; }
.star-off { color: var(--border-h); }

.scores { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.score-fine {
  font-size: 0.72rem;
  color: var(--text-m);
  margin: -2rem 0 2rem;
}

.star-part {
  background: linear-gradient(90deg, #F2A60C var(--fill, 10%), var(--border-h) var(--fill, 10%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* spotlight */
.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 2.4rem 1rem 2.6rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spot { text-align: center; min-height: 9rem; display: flex; flex-direction: column; justify-content: center; }

.spot-q {
  font-family: var(--font-d);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.25;
  max-width: 52rem;
  margin: 0 auto 0.9rem;
  transition: opacity 0.35s, transform 0.35s;
}

.spot-q::before { content: '“'; color: var(--accent); }
.spot-q::after { content: '”'; color: var(--accent); }
.spot-by { font-size: 0.78rem; color: var(--text-m); letter-spacing: 0.06em; transition: opacity 0.35s; }
.spot.is-out .spot-q { opacity: 0; transform: translateY(8px); }
.spot.is-out .spot-by { opacity: 0; }

.spot-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-h);
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.spot-nav:hover { background: var(--text); color: var(--bg); }

.spot-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.spot-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.spot-bar span.is-run { animation: spot 7s linear forwards; }
.spotlight:hover .spot-bar span { animation-play-state: paused; }

@keyframes spot {
  to { width: 100%; }
}

.review-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }

/* wall */
.wall {
  columns: 4 260px;
  column-gap: 1.1rem;
}

.review {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.35s cubic-bezier(.3, 1.6, .5, 1), transform 0.35s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review:nth-child(4n + 1) { --tilt: -0.8deg; }
.review:nth-child(4n + 2) { --tilt: 0.6deg; }
.review:nth-child(4n + 3) { --tilt: -0.3deg; }
.review:nth-child(4n) { --tilt: 0.9deg; }

.review:hover {
  rotate: 0deg;
  transform: translateY(-4px) scale(1.015);
  border-color: var(--accent);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.35);
}

.review.is-hidden { display: none; }
.review.is-enter { animation: card-in 0.5s cubic-bezier(.2, .9, .3, 1) both; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}

.review-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

.review-src {
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-m);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.review-src::before {
  content: '';
  width: 9px;
  height: 9px;
  background: #01875f;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.review-src--ms::before {
  background: conic-gradient(#7FBA00 0 25%, #FFB900 0 50%, #00A4EF 0 75%, #F25022 0);
  clip-path: none;
}

.star-part--10 { --fill: 10%; }
.star-part--90 { --fill: 90%; }

.review-title {
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.3;
  margin-bottom: -0.4rem;
}

.review-title:last-of-type { margin-bottom: 0; }

.review-text { font-size: 0.92rem; color: var(--text); line-height: 1.6; }

.review-by { display: flex; align-items: center; gap: 0.65rem; }
.review-by b { display: block; font-weight: 500; font-size: 0.84rem; line-height: 1.3; }
.review-by div span { font-size: 0.7rem; color: var(--text-m); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.avatar--0 { background: linear-gradient(135deg, #ff8a65, #c2185b); }
.avatar--1 { background: linear-gradient(135deg, #4fc3f7, #3949ab); }
.avatar--2 { background: linear-gradient(135deg, #aed581, #00897b); }
.avatar--3 { background: linear-gradient(135deg, #ffd54f, #ef6c00); }
.avatar--4 { background: linear-gradient(135deg, #ce93d8, #6a1b9a); }
.avatar--5 { background: linear-gradient(135deg, #80deea, #00838f); }

/* ── ALSO + OUTRO ── */
.also { padding: 5rem var(--gutter) 2rem; }

.also-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

.also-card {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.also-card h3 { font-family: var(--font-d); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.4rem; }
.also-card p { font-size: 0.9rem; color: var(--text-d); }

.outro {
  padding: 6rem var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.outro-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 1.6rem; }
.kbd-hint { font-size: 0.76rem; color: var(--text-m); }

kbd {
  font-family: var(--font-m);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--border-h);
  border-bottom-width: 2px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem var(--gutter);
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-m);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.is-on { opacity: 1; transform: translateY(0); }

body.is-quake { animation: buzz 0.6s linear 2; }

/* reveal (JS adds .is-in) */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2, .8, .3, 1), transform 0.9s cubic-bezier(.2, .8, .3, 1); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .tray { height: 340px; }
  .app { grid-template-columns: 1fr; padding: 4rem 0; }
  .app:nth-of-type(even) { grid-template-columns: 1fr; }
  .app:nth-of-type(even) .app-info { order: 0; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  nav { padding: 0.9rem var(--gutter); }
  .nav-logo span { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .filterbar { top: 56px; }
  .surprise { padding: 0.45rem 0.8rem; }
  .surprise-txt { display: none; }
  .app-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-stats b { font-size: 1.15rem; }
  .app-stage { padding: 0.6rem; border-radius: 22px; }
  .stage-view { min-height: 400px; }
  .shot--phone { height: 380px; }
  .shot--tall { height: 380px; }
  .reel { padding-inline: calc(50% - 100px); }
  .nb { grid-template-columns: 1fr; }
  .bq-top { grid-template-columns: 1fr; }
  .bq-srow { flex-direction: column; }
  .bq-stats { max-width: none; }
  .nw { aspect-ratio: 5 / 8; }
  .gh-name em { display: none; }
  .nw-notch.is-deck { height: 90%; }
  .nw-sys { display: none; }
  .nw-d-body { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; }
  .nw-d-body--dev { grid-template-columns: 1fr; }
  .gh-user-in { flex: 1; }
  .ai-agent i { width: 38px; height: 38px; font-size: 1rem; }
  .spotlight { grid-template-columns: 1fr; padding-inline: 0; }
  .spot-nav { display: none; }
  .review-tools { flex-direction: column; align-items: stretch; }
  .review-tools .filters { width: 100%; }
  .review-tools .surprise { align-self: flex-start; }
  .also-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

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