:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-2: #f4efe8;
  --text: #1c1917;
  --muted: #6b6560;
  --line: #ebe4da;
  --brand: #f26b1d;
  --brand-2: #f5a524;
  --mint: #2bb59a;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px -8px rgba(28, 25, 23, .12);
  --shadow-lg: 0 2px 4px rgba(28, 25, 23, .05), 0 24px 48px -12px rgba(28, 25, 23, .22);
  --radius: 20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12100e;
  --surface: #1c1916;
  --surface-2: #26221e;
  --text: #f5f1ec;
  --muted: #a8a099;
  --line: #2f2a25;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Background */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: #ffc9a3; top: -180px; left: -120px; }
.bg-blobs span:nth-child(2) { width: 460px; height: 460px; background: #b8eadb; top: -120px; right: -140px; }
.bg-blobs span:nth-child(3) { width: 380px; height: 380px; background: #ffe2a8; top: 360px; left: 45%; opacity: .3; }
:root[data-theme="dark"] .bg-blobs span { opacity: .12; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-color: var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand b { color: var(--brand); font-weight: 800; margin-left: 2px; }
.brand.small { font-size: 15px; }
.topnav { display: flex; gap: 6px; align-items: center; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; margin-left: 4px; transition: .2s; }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .moon { display: block; } .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.topnav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: .2s; }
.topnav a:hover { color: var(--text); background: var(--surface); }

/* Hero */
.hero { text-align: center; padding-top: 64px; padding-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(43,181,154,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(43,181,154,0); } 100% { box-shadow: 0 0 0 0 rgba(43,181,154,0); } }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 45%, var(--mint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; margin: 0 auto 32px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }

.search { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 0 10px 0 18px; height: 58px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--muted); transition: .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); height: 100%; }
.search input::placeholder { color: var(--muted); opacity: .8; }
.search kbd { font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
@media (max-width: 600px) { .search kbd { display: none; } }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0 32px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: .18s; display: inline-flex; gap: 8px; align-items: center; }
.chip small { font-size: 12px; color: var(--muted); font-weight: 700; }
.chip:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-selected="true"] small { color: inherit; opacity: .7; }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; padding-bottom: 72px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card { --c: var(--brand); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
  animation: rise .5s both; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.shot { position: relative; display: block; width: 100%; padding: 16px 16px 0; border: 0; cursor: pointer; text-align: left;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, var(--surface)) 0%, color-mix(in srgb, var(--c) 6%, var(--surface)) 100%); }
.mini-frame { border-radius: 12px 12px 0 0; overflow: hidden; background: var(--surface); box-shadow: 0 -2px 18px -6px rgba(0,0,0,.18); }
.mini-bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: var(--surface-2); }
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.mini-bar span { margin-left: 8px; font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-frame .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.mini-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .mini-frame img { transform: scale(1.04); }
.shot-count { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }

.body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.head { display: flex; align-items: center; gap: 12px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 17px;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 6px 14px -6px var(--c); }
.head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.head .cat { margin-top: 2px; }
.cat { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); }
.tagline { margin: 0; color: var(--muted); font-size: 14.5px; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.feats li { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.actions a, .actions button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; height: 42px; border-radius: 12px;
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; transition: .18s; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-solid { background: var(--c); border: 1px solid var(--c); color: #fff; }
.btn-solid:hover { filter: brightness(1.08); box-shadow: 0 8px 18px -8px var(--c); }

.empty { text-align: center; color: var(--muted); padding: 40px 0 100px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer code { font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* Modal */
.modal { --c: var(--brand); width: min(1180px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal::backdrop { background: rgba(20, 16, 12, .55); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-in { display: grid; grid-template-columns: minmax(0, 1fr) 370px; max-height: calc(100dvh - 32px); overflow: auto; }
.close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.viewer { padding: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--surface)), color-mix(in srgb, var(--c) 4%, var(--surface))); min-width: 0; }
.frame { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin: 0 auto; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 14px; background: var(--surface); border-radius: 8px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.stage img.loading { opacity: .3; }
.badge-live { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #111; color: #4ade80; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #111; font-size: 26px; line-height: 1; box-shadow: var(--shadow); opacity: 0; transition: .2s; }
.stage:hover .nav, .nav:focus-visible { opacity: 1; }
@media (hover: none) { .nav { opacity: .9; } }
.prev { left: 12px; } .next { right: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 104px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface-2); opacity: .65; transition: .18s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.thumbs button[aria-current="true"] { border-color: var(--c); opacity: 1; }
.thumbs button:hover { opacity: 1; }

.info { padding: 34px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.info h2 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; }
.info .cat { color: var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.info .tag { margin: 0; font-weight: 600; color: var(--muted); }
.info .desc { margin: 10px 0 4px; font-size: 15px; }
.feat { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 8px; }
.feat li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.feat li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, transparent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.demo { margin: 0 0 16px; padding: 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--c) 45%, var(--line));
  background: color-mix(in srgb, var(--c) 6%, var(--surface)); display: grid; gap: 8px; }
.demo-title { margin: 0 0 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.demo-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; }
.demo-row span { color: var(--muted); font-weight: 600; }
.demo-row code { font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  overflow-wrap: anywhere; }
.demo-row button { font-family: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.demo-row button:hover { border-color: var(--c); color: var(--c); }
.demo-note { margin: 0; font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 50px; border-radius: 14px; text-decoration: none;
  background: var(--c); color: #fff; font-weight: 700; margin-top: auto; transition: .18s; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 10px 22px -10px var(--c); }
.hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .modal-in { grid-template-columns: 1fr; }
  .viewer { padding: 14px; padding-top: 62px; }
  .info { padding: 20px; }
  .thumbs button { width: 84px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .topnav a:first-child { display: none; }
  .modal { width: 100%; max-height: 100dvh; border-radius: 0; margin: 0; height: 100dvh; max-width: 100%; }
  .modal-in { max-height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
