@font-face {
  font-family: "SB Sans Display";
  src: url("./deslop/fonts/SBSansDisplay-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Container geometry from gigatype.app; color and type sizes from Deslop. */
  --container: 980px;
  --wide-container: 947px;
  --page-gutter: 24px;
  --font-display: "SB Sans Display", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  -webkit-user-select: none;
  user-select: none;
  display: flow-root;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
  isolation: isolate;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: var(--ui-body-font-size);
  line-height: calc(var(--ui-body-line-height) * 1.1);
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: var(--ui-body-letter-spacing);
  -webkit-font-smoothing: antialiased;
}

.landing-scene {
  min-height: 100svh;
}

.landing-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  background:
    linear-gradient(to bottom, transparent, rgb(0 0 0 / 30%)),
    #000 url("./images/vizhu-bg-desktop.webp") center / cover no-repeat;
}

@media (max-width: 900px) {
  .landing-background {
    background-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 30%)), url("./images/vizhu-bg-mobile.webp");
  }
}

[data-glass-mode="static"] .lg-surface {
  visibility: visible;
  background: rgb(255 255 255 / 8%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 25%), inset 0 -1px 1px rgb(255 255 255 / 12%);
}

[data-glass-mode="static"] .hero-icon {
  border-radius: 20px;
  overflow: hidden;
}

[data-glass-mode="static"] .hero-cta {
  border-radius: 999px;
  cursor: pointer;
}

[data-glass-mode="static"] :is(.hero-icon, .hero-cta):active {
  background: rgb(255 255 255 / 14%);
}

@media (prefers-reduced-motion: no-preference) {
  [data-glass-mode="static"] :is(.hero-icon, .hero-cta) {
    transition: transform 120ms ease-out;
  }
  [data-glass-mode="static"] :is(.hero-icon, .hero-cta):active {
    transform: scale(0.96);
  }
}

@media (width > 2000px) {
  .landing-scene {
    width: min(2000px, calc(100% - 80px));
    min-height: calc(100svh - 80px);
    margin: 40px auto;
  }
  .landing-scene .hero { min-height: calc(100svh - 80px); }
}

.container, .container-wide {
  width: min(var(--container), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}
.container-wide { width: min(var(--wide-container), calc(100% - var(--page-gutter) * 2)); }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

h1, .title-67 {
  font-size: var(--ui-title-67-font-size);
  line-height: calc(var(--ui-title-67-line-height) * 1.1);
  letter-spacing: var(--ui-title-67-letter-spacing);
}

h2, .title-52 {
  font-size: var(--ui-title-52-font-size);
  line-height: calc(var(--ui-title-52-line-height) * 1.1);
  letter-spacing: var(--ui-title-52-letter-spacing);
}

h3, .title-40 {
  font-size: var(--ui-title-40-font-size);
  line-height: calc(var(--ui-title-40-line-height) * 1.1);
  letter-spacing: var(--ui-title-40-letter-spacing);
}

h4, .title-32 {
  font-size: var(--ui-title-32-font-size);
  line-height: calc(var(--ui-title-32-line-height) * 1.1);
  letter-spacing: var(--ui-title-32-letter-spacing);
}

h5, .title-24 {
  font-size: var(--ui-title-24-font-size);
  line-height: calc(var(--ui-title-24-line-height) * 1.1);
  letter-spacing: var(--ui-title-24-letter-spacing);
}

h6, .title-20 {
  font-size: var(--ui-title-20-font-size);
  line-height: calc(var(--ui-title-20-line-height) * 1.1);
  letter-spacing: var(--ui-title-20-letter-spacing);
}

.text-body {
  font-size: var(--ui-body-font-size);
  line-height: calc(var(--ui-body-line-height) * 1.1);
  letter-spacing: var(--ui-body-letter-spacing);
}

.text-subtitle {
  font-size: var(--ui-subtitle-font-size);
  line-height: calc(var(--ui-subtitle-line-height) * 1.1);
  letter-spacing: var(--ui-subtitle-letter-spacing);
}

.text-caption {
  font-size: var(--ui-caption-font-size);
  line-height: calc(var(--ui-caption-line-height) * 1.1);
  letter-spacing: var(--ui-caption-letter-spacing);
}

.text-caption { text-transform: var(--ui-caption-text-transform); }
.text-secondary { color: var(--primary-50); }
.text-muted { color: var(--primary-30); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-block: 64px max(64px, 10svh);
  text-align: center;
}

.hero-icon-wrap {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.hero-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-icon-symbol {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-icon-symbol:not(.hero-icon-symbol--glow) {
  mix-blend-mode: overlay;
}

.hero-icon-symbol--glow {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  filter: blur(10px);
  opacity: 1;
}

.hero h1 {
  max-width: 760px;
  text-wrap: balance;
}

.hero-description {
  max-width: 580px;
  line-height: 1.4;
  margin-top: 12px;
  text-wrap: balance;
}
@media (min-width: 601px) {
  .hero h1 {
    font-size: var(--ui-title-32-font-size);
    line-height: calc(var(--ui-title-32-line-height) * 1.1);
    letter-spacing: var(--ui-title-32-letter-spacing);
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: calc(var(--ui-title-24-font-size) + 2px);
    line-height: calc((var(--ui-title-24-line-height) + 4px) * 1.1 * 0.9);
  }
}

/* Geometry and glass interaction come from Liquid Glass. */
.hero-description, .hero-cta {
  font-family: var(--ui-font-interface);
  font-weight: var(--ui-body-font-weight);
}

.hero-cta {
  gap: 8px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 50px;
  padding-block: 12px;
  padding-inline: 24px;
  font-size: var(--ui-body-font-size);
  line-height: calc(var(--ui-body-line-height) * 1.1);
  --lg-foreground: var(--primary);
  margin-top: 32px;
  text-decoration: none;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .hero-cta { margin-top: 0; padding-left: 22px; }

.hero-cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("./images/android.svg") center / contain no-repeat;
  mask: url("./images/android.svg") center / contain no-repeat;
}

.hero-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (any-pointer: coarse) {
  .hero {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta, .hero-cta * { transition: none; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 16px; }
  .container, .container-wide {
    width: min(500px, calc(100% - var(--page-gutter) * 2));
  }
}

/* The photograph stays in the glass scene; the shade sits above it and below the copy. */
.page-shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: #000; opacity: var(--scroll-shade, 0); }
.product-details { position: relative; z-index: 2; max-width: 648px; margin: 0 auto; padding: 80px 24px 40px; font-family: var(--ui-font-interface); font-weight: var(--ui-body-font-weight); font-size: var(--ui-body-font-size); line-height: calc(var(--ui-body-line-height) * 1.1); background: rgb(0 0 0 / 85%); }
.scroll-effects .product-details { background: transparent; }
.product-details h2 { font-family: var(--font-display); font-size: var(--ui-body-font-size); line-height: calc(var(--ui-body-line-height) * 1.1); font-weight: 600; margin: 48px 0 20px; }
.product-details h2:first-child { margin-top: 0; }
.product-details p { margin-bottom: 20px; }
.product-details a { color: inherit; text-underline-offset: 4px; }
.product-details nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 64px; font-size: 16px; }
@media (max-width: 600px) { .product-details { padding: 64px 24px 40px; } }

/* Fade the complete glass scene: the SDK renders plates outside the hero subtree. */
.page-background { z-index: -1; }
.scroll-effects #landing { min-height: 100svh; }
.scroll-effects .landing-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  margin: 0;
  opacity: var(--hero-opacity, 1);
  filter: blur(var(--hero-blur, 0px));
}
.scroll-effects .hero {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(var(--hero-scale, 1));
  height: 100svh;
  min-height: 100svh;
}
.scroll-effects[data-hero-hidden="true"] .landing-scene { visibility: hidden; pointer-events: none; }
.scroll-effects .page-background {
  filter: blur(var(--background-blur, 0px));
  opacity: calc(1 - var(--scroll-shade, 0));
}
@media (max-width: 600px) {
  .scroll-effects :is(#landing, .landing-scene, .hero) {
    min-height: var(--mobile-hero-height, 100svh);
  }
  .scroll-effects :is(.landing-scene, .page-background) { filter: none; }
  .scroll-effects .landing-scene {
    position: relative;
    inset: auto;
    height: auto;
    opacity: 1;
  }
  .scroll-effects :is(.page-background, .page-shade) { display: none; }
  .scroll-effects .landing-background {
    position: absolute;
    height: 100%;
    opacity: 1;
    transform: none;
  }
  .scroll-effects .hero {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    transform: none;
    opacity: 1;
    padding-bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-effects :is(.landing-scene, .page-background) { filter: none; }
}

/* Clip at the complete page boundary, not at the content's entrance edge. */
.page-scroll { overflow: clip; }
.parallax-enabled .details-track { height: var(--details-track-height); }
.parallax-enabled .product-details { transform: translateY(var(--content-lift, 0px)); }
@media (max-width: 600px) {
  .parallax-enabled .details-track { height: auto; }
  .parallax-enabled .product-details { transform: none; }
}

.hero-cta-icon--ios {
  -webkit-mask-image: url("./images/apple.svg");
  mask-image: url("./images/apple.svg");
}
