@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090b0a;
  --panel: #101311;
  --panel-2: #151916;
  --text: #f4f3ef;
  --muted: #a7aaa5;
  --line: rgba(255,255,255,.12);
  --gold: #d7ad69;
  --gold-2: #e9c98f;
  --shadow: 0 28px 70px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.demo-skip {
  position: fixed;
  z-index: 1000;
  left: 12px;
  top: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111;
}
.demo-skip:focus { transform: none; }

.demo-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9,11,10,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.demo-toolbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 24px;
}
.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 720;
  white-space: nowrap;
}
.demo-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.demo-brand strong { color: var(--muted); font-weight: 540; }
.demo-project-name {
  min-width: 0;
  text-align: center;
  line-height: 1.2;
}
.demo-project-name span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.demo-project-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}
.demo-actions,
.demo-bottom-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.demo-btn:hover { transform: translateY(-1px); }
.demo-btn:focus-visible { outline: 3px solid rgba(215,173,105,.35); outline-offset: 3px; }
.demo-btn-primary { background: var(--gold-2); border-color: var(--gold-2); color: #18130c; }
.demo-btn-ghost { background: rgba(255,255,255,.02); }

.demo-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}
.demo-context {
  width: min(935px,100%);
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: .78rem;
}
.demo-context p { margin: 0; }
.demo-context strong { color: var(--gold-2); font-weight: 650; }
.demo-shot {
  width: min(935px,100%);
  margin: 0 auto;
}
.demo-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.demo-shot figcaption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}
.demo-bottom-cta {
  width: min(935px,100%);
  margin: 44px auto 0;
  padding: clamp(22px,4vw,36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(215,173,105,.28);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(215,173,105,.08), rgba(255,255,255,.018));
}
.demo-eyebrow {
  margin: 0 0 8px;
  color: var(--gold-2) !important;
  font-size: .72rem !important;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.demo-bottom-cta h1 { margin: 0; font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -.035em; }
.demo-bottom-cta p { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.demo-error { min-height: 65vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }

@media (max-width: 760px) {
  .demo-toolbar-inner {
    width: min(100% - 24px, 1180px);
    min-height: 60px;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
  }
  .demo-project-name { display: none; }
  .demo-actions .demo-btn-ghost { display: none; }
  .demo-btn { min-height: 44px; padding-inline: 12px; }
  .demo-brand span { font-size: .82rem; }
  .demo-brand img { width: 29px; height: 29px; }
  .demo-main { width: 100%; padding-top: 12px; padding-bottom: 54px; }
  .demo-context { width: calc(100% - 24px); margin-bottom: 10px; }
  .demo-shot { width: 100%; }
  .demo-shot img { border-inline: 0; border-radius: 0; box-shadow: none; }
  .demo-shot figcaption { margin-inline: 12px; }
  .demo-bottom-cta {
    width: calc(100% - 24px);
    margin-top: 28px;
    flex-direction: column;
    align-items: stretch;
  }
  .demo-bottom-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 420px) {
  .demo-actions .demo-btn-primary { font-size: .72rem; padding-inline: 10px; }
  .demo-brand strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
