/* dems landing v2 — visual journey DS. No glass / neon outline buttons. */
@font-face {
  font-family: "Benzin";
  src: url("/static/fonts/Benzin-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Benzin";
  src: url("/static/fonts/Benzin-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --dl-bg: #07080d;
  --dl-fg: #f3f5f8;
  --dl-muted: rgba(243, 245, 248, 0.62);
  --dl-light: #73b8ff;
  --dl-rank: #6fa8ff;
  --dl-violet: #b26cf0;
  --dl-acid: #04fc00;
  --dl-btn-bg: #ffffff;
  --dl-btn-fg: #0a0a0a;
  --dl-btn-ghost-bd: rgba(243, 245, 248, 0.28);
  --dl-radius-pill: 100px;
  --dl-font-display: "Benzin", system-ui, sans-serif;
  --dl-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  --dl-chrome-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body.dems-landing {
  margin: 0;
  background: var(--dl-bg);
  color: var(--dl-fg);
  font-family: var(--dl-font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.dl-display {
  font-family: var(--dl-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--dl-radius-pill);
  border: none;
  font-family: var(--dl-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.dl-btn:active {
  transform: scale(0.98);
}
.dl-btn--white {
  background: var(--dl-btn-bg);
  color: var(--dl-btn-fg);
}
.dl-btn--ghost {
  background: transparent;
  color: var(--dl-fg);
  border: 1px solid var(--dl-btn-ghost-bd);
}
.dl-btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.dl-btn:focus-visible {
  outline: 2px solid var(--dl-light);
  outline-offset: 3px;
}

/* —— Chrome —— */
.dl-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--dl-chrome-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.dl-chrome.is-scrolled {
  background: rgba(7, 8, 13, 0.82);
  border-bottom-color: rgba(243, 245, 248, 0.06);
  backdrop-filter: blur(10px);
}
.dl-chrome__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dl-chrome__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.dl-chrome__logo img {
  width: 28px;
  height: 28px;
}
.dl-chrome__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dl-chrome__link {
  font-size: 0.88rem;
  color: var(--dl-muted);
}
.dl-chrome__link:hover {
  color: var(--dl-fg);
}
@media (max-width: 720px) {
  .dl-chrome__link {
    display: none;
  }
}

/* —— VLMM stage —— */
.dl-vlmm-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}
.dl-vlmm-layer canvas,
.dl-vlmm-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dl-vlmm-orb {
  pointer-events: none;
}

/* —— Page content above VLMM —— */
.dl-page {
  position: relative;
  z-index: 5;
}

.dl-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--dl-chrome-h) + 2rem) 1.25rem 4rem;
  width: min(720px, 100%);
}
.dl-hero__brand {
  font-family: var(--dl-font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  margin: 0 0 0.75rem;
  line-height: 0.95;
}
.dl-hero__headline {
  font-family: var(--dl-font-display);
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}
.dl-hero__sub {
  margin: 0 0 1.5rem;
  color: var(--dl-muted);
  max-width: 36ch;
  font-size: 1rem;
}
.dl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Pin story —— */
.dl-story {
  position: relative;
  height: 520vh;
}
@media (max-width: 768px) {
  .dl-story {
    height: 380vh;
  }
}
.dl-story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.dl-story__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--dl-chrome-h) 1.25rem 2rem;
}
.dl-chapter {
  position: absolute;
  left: 8%;
  top: 28%;
  max-width: min(22rem, 86vw);
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  will-change: opacity, clip-path, transform;
}
.dl-chapter.is-active {
  pointer-events: auto;
}
.dl-chapter__n {
  font-family: var(--dl-font-display);
  color: var(--dl-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.dl-chapter__title {
  font-family: var(--dl-font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.dl-chapter__copy {
  margin: 0;
  color: var(--dl-muted);
  font-size: 1.05rem;
  max-width: 24ch;
}
.dl-chapter--right {
  left: auto;
  right: 8%;
  text-align: right;
}
.dl-chapter--right .dl-chapter__copy {
  margin-left: auto;
}

/* Product demo inside pin */
.dl-product {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  will-change: opacity, transform;
}
.dl-product.is-live {
  pointer-events: auto;
}
.dl-phone {
  width: min(320px, 86vw);
  aspect-ratio: 9 / 17.5;
  border-radius: 28px;
  border: 1px solid rgba(243, 245, 248, 0.12);
  background: #0c0b12;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.dl-phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.4rem;
  font-size: 0.75rem;
  color: var(--dl-muted);
}
.dl-phone__score {
  color: var(--dl-light);
  font-weight: 600;
}
.dl-demo-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  gap: 0.65rem;
}
.dl-demo-card__cover {
  flex: 1;
  border-radius: 16px;
  background: linear-gradient(160deg, #1a1528, #0c0b12 60%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.dl-demo-card__cover img.bak {
  width: 42%;
  opacity: 0.9;
}
.dl-demo-card__meta h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--dl-font-display);
}
.dl-demo-card__meta p {
  margin: 0.15rem 0 0;
  color: var(--dl-muted);
  font-size: 0.85rem;
}
.dl-demo-wave {
  width: 100%;
  height: 28px;
  display: block;
}
.dl-demo-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dl-demo-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--dl-btn-bg);
  color: var(--dl-btn-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dl-demo-play img {
  width: 18px;
  height: 18px;
}
.dl-demo-feedback {
  flex: 1;
  font-size: 0.8rem;
  color: var(--dl-muted);
  border: 1px solid rgba(243, 245, 248, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: var(--dl-fg);
  width: 100%;
}
.dl-demo-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
}
.dl-demo-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 245, 248, 0.25);
  padding: 0;
  cursor: pointer;
}
.dl-demo-dots button.is-active {
  background: var(--dl-light);
}

/* After story sections */
.dl-section {
  position: relative;
  z-index: 5;
  padding: 5rem 1.25rem;
  width: min(920px, 100%);
  margin: 0 auto;
}
.dl-section__title {
  font-family: var(--dl-font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.5rem;
}
.dl-section__sub {
  color: var(--dl-muted);
  margin: 0 0 2rem;
  max-width: 40ch;
}

.dl-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.dl-proof__item strong {
  display: block;
  font-family: var(--dl-font-display);
  font-size: 1.1rem;
  color: var(--dl-light);
}
.dl-proof__item span {
  color: var(--dl-muted);
  font-size: 0.9rem;
}

.dl-faq details {
  border-top: 1px solid rgba(243, 245, 248, 0.08);
  padding: 1rem 0;
}
.dl-faq details:last-child {
  border-bottom: 1px solid rgba(243, 245, 248, 0.08);
}
.dl-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.dl-faq summary::-webkit-details-marker {
  display: none;
}
.dl-faq p {
  color: var(--dl-muted);
  margin: 0.65rem 0 0;
  max-width: 52ch;
}

/* Final product sheet */
.dl-sheet {
  position: relative;
  z-index: 5;
  padding: 4rem 1.25rem 5rem;
  width: min(960px, 100%);
  margin: 0 auto;
}
.dl-sheet__card {
  border: 1px solid rgba(243, 245, 248, 0.1);
  border-radius: 28px;
  padding: 1.75rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(18, 16, 26, 0.9), rgba(7, 8, 13, 0.95));
}
.dl-sheet__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.dl-sheet__icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.dl-sheet__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-sheet__name {
  font-family: var(--dl-font-display);
  font-size: 1.75rem;
  margin: 0;
}
.dl-sheet__dev {
  color: var(--dl-light);
  margin: 0.2rem 0 0.5rem;
  font-size: 0.95rem;
}
.dl-sheet__desc {
  margin: 0;
  color: var(--dl-muted);
  max-width: 36ch;
}
.dl-gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.dl-gallery img {
  height: 280px;
  width: auto;
  border-radius: 16px;
  scroll-snap-align: start;
  border: 1px solid rgba(243, 245, 248, 0.08);
  background: #0c0b12;
}
.dl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.dl-facts span {
  font-size: 0.8rem;
  color: var(--dl-muted);
  border: 1px solid rgba(243, 245, 248, 0.12);
  border-radius: var(--dl-radius-pill);
  padding: 0.35rem 0.75rem;
}
.dl-sheet__qr {
  margin-top: 1.25rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--dl-muted);
  font-size: 0.85rem;
}
@media (min-width: 900px) {
  .dl-sheet__qr {
    display: flex;
  }
}
.dl-sheet__qr canvas,
.dl-sheet__qr img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
}

.dl-footer {
  position: relative;
  z-index: 5;
  padding: 2rem 1.25rem 3rem;
  color: var(--dl-muted);
  font-size: 0.85rem;
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid rgba(243, 245, 248, 0.06);
}

/* Install page */
.dl-install {
  padding: calc(var(--dl-chrome-h) + 2rem) 1.25rem 4rem;
  width: min(640px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.dl-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}
.dl-tab {
  border-radius: var(--dl-radius-pill);
  border: 1px solid var(--dl-btn-ghost-bd);
  background: transparent;
  color: var(--dl-fg);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
}
.dl-tab.is-active {
  background: var(--dl-btn-bg);
  color: var(--dl-btn-fg);
  border-color: transparent;
}
.dl-step {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.dl-step__n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(115, 184, 255, 0.15);
  color: var(--dl-light);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.dl-step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.dl-step p {
  margin: 0;
  color: var(--dl-muted);
  font-size: 0.92rem;
}

/* Reduced motion: linear layout helpers */
html.dl-reduced .dl-story {
  height: auto;
}
html.dl-reduced .dl-story__pin {
  position: relative;
  height: auto;
  min-height: auto;
}
html.dl-reduced .dl-chapter,
html.dl-reduced .dl-product {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  opacity: 1;
  clip-path: none;
  transform: none;
  pointer-events: auto;
  margin: 3rem auto;
  max-width: min(36rem, 92vw);
}
