:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #151618;
  --surface-2: #1b1c1f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #a5a5ad;
  --primary: #8f8cff;
  --primary-strong: #6366f1;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
}
.nav-inner {
  width: min(calc(100% - 40px), var(--max));
  height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 720; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #cacacf; font-size: 14px; }
.nav-links a:hover, .footer a:hover { color: var(--text); }

.button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: #b1afff; color: #1719a7; }
.button-primary:hover { background: #c0beff; }
.button-secondary { background: rgba(255,255,255,.055); border-color: var(--line); color: var(--text); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button svg { width: 18px; height: 18px; }
.button.disabled { opacity: .46; pointer-events: none; }

.container { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.eyebrow { color: var(--primary); font-size: 14px; font-weight: 680; }
.hero { padding: 104px 0 64px; text-align: center; }
.hero h1 {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(48px, 7.3vw, 92px);
  line-height: .98;
  font-weight: 760;
}
.hero p { max-width: 660px; margin: 28px auto 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.product-stage { position: relative; margin: 44px auto 0; max-width: 1120px; }
.product-stage::before {
  content: "";
  position: absolute;
  inset: 12% 14% -4%;
  background: rgba(99, 102, 241, .16);
  filter: blur(70px);
  pointer-events: none;
}
.window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #0b0c0e;
  box-shadow: 0 32px 90px rgba(0,0,0,.5);
}
.window-bar { height: 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 7px; }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: #52535a; }
.window img, .window-media { width: 100%; object-fit: cover; object-position: top; }
.window-media { display: block; aspect-ratio: 720 / 332; background: #090a0c; }

.section { padding: 104px 0; }
.section-header { max-width: 680px; margin-bottom: 48px; }
.section-header h2 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; }
.section-header p { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { min-height: 220px; padding: 34px 28px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature-icon { width: 36px; height: 36px; color: var(--primary); }
.feature h3 { margin: 42px 0 9px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step { padding: 38px; background: var(--bg); min-height: 230px; }
.step-number { color: var(--primary); font-variant-numeric: tabular-nums; }
.step h3 { margin: 54px 0 10px; font-size: 23px; }
.step p { color: var(--muted); line-height: 1.6; }

.download-hero { padding: 84px 0 40px; text-align: center; }
.download-hero h1 { max-width: 850px; margin: 10px auto 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; }
.download-hero p { max-width: 650px; margin: 22px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.download-grid { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.product-carousel {
  position: relative;
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  overflow: hidden;
}
.carousel-viewport { overflow: hidden; border-radius: 7px; background: #0b0c0e; }
.carousel-track { display: flex; transition: transform .52s cubic-bezier(.22, .78, .2, 1); touch-action: pan-y pinch-zoom; }
.carousel-slide { position: relative; min-width: 100%; margin: 0; aspect-ratio: 1176 / 1460; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; background: #0b0c0e; user-select: none; -webkit-user-drag: none; }
.carousel-slide figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.carousel-button {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(18, 19, 22, .76);
  backdrop-filter: blur(14px) saturate(130%);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.carousel-button:hover { background: rgba(31, 32, 37, .9); transform: scale(1.04); }
.carousel-button svg { width: 21px; height: 21px; }
.carousel-previous { left: 25px; }
.carousel-next { right: 25px; }
.carousel-footer { min-height: 48px; padding: 12px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.carousel-caption { margin: 0; color: #d8d8dd; font-size: 13px; font-weight: 620; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #55565e; cursor: pointer; transition: width .22s ease, border-radius .22s ease, background .22s ease; }
.carousel-dot.is-active { width: 20px; border-radius: 5px; background: var(--primary); }
.download-panel { padding: 20px 0 20px 50px; }
.download-panel h2 { font-size: 36px; margin: 0 0 12px; }
.download-panel > p { color: var(--muted); line-height: 1.6; }
.store-list { display: grid; gap: 12px; margin-top: 30px; }
.store-button { width: 100%; min-height: 86px; padding: 12px 16px; justify-content: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.platform-icon {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #eeedf5;
  background: rgba(255, 255, 255, .055);
}
.platform-icon > i:first-child { font-size: 25px; }
.platform-icon-android { color: #a8e6b2; background: rgba(61, 220, 132, .08); }
.platform-icon-android > i:first-child { font-size: 28px; }
.platform-brand-mark {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #151618;
  background: #f2f2f5;
  font-size: 10px;
  box-shadow: 0 0 0 2px var(--surface);
}
.platform-brand-mark i { display: block; font-size: 10px; line-height: 1; transform: translateY(-.2px); }
.store-copy { display: grid; text-align: left; line-height: 1.15; }
.store-copy small { color: var(--muted); font-size: 11px; font-weight: 500; }
.store-copy strong { font-size: 16px; }
.store-requirement { margin-top: 5px; color: #7f8088; font-size: 11px; font-weight: 500; }
.installation-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.open-status { min-height: 22px; margin-top: 18px; color: var(--muted); font-size: 13px; }

.review-dialog {
  width: min(calc(100% - 32px), 420px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(24, 25, 28, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
  text-align: center;
  backdrop-filter: blur(22px) saturate(135%);
}
.review-dialog::backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(5px); }
.review-dialog-icon { width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--primary); background: rgba(143, 140, 255, .12); }
.review-dialog-icon svg { width: 23px; height: 23px; }
.review-dialog h2 { margin: 0; font-size: 25px; }
.review-dialog p { margin: 12px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.review-dialog-action { width: 100%; }

.share-shell { width: min(calc(100% - 32px), 820px); margin: 58px auto 90px; }
.share-hero-image { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--surface) url('/static/assets/product/thumbnail-placeholder.png') center/cover no-repeat; }
.share-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,.74); font-size: 13px; }
.share-title { margin: 30px 0 8px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.generated { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.generated svg { width: 17px; color: var(--primary); }
.preview { margin-top: 50px; padding: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.preview h2 { margin: 0 0 18px; color: #b2b0ff; font-size: 24px; display: flex; gap: 10px; align-items: center; }
.preview h2 svg { width: 23px; }
.preview p { color: #d1d1d5; font-size: 17px; line-height: 1.78; }
.moments { margin-top: 48px; }
.moments-intro { color: var(--muted); }
.moment { position: relative; padding: 0 0 30px 40px; }
.moment::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: #373842; }
.moment:last-child::before { display: none; }
.moment-dot { position: absolute; left: 3px; top: 7px; width: 13px; height: 13px; border: 3px solid var(--primary); background: var(--surface); border-radius: 50%; }
.moment time { color: var(--primary); font-weight: 650; }
.moment h3 { margin: 7px 0 4px; font-size: 17px; }
.moment p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.blur-gate { position: relative; margin-top: -10px; padding: 100px 24px 40px; text-align: center; overflow: hidden; }
.blur-gate::before { content: ""; position: absolute; inset: 0 0 42%; background: linear-gradient(to bottom, rgba(9,10,12,0), var(--bg)); backdrop-filter: blur(5px); }
.blur-gate > * { position: relative; }
.blur-gate h2 { margin: 0; font-size: 30px; }
.blur-gate p { max-width: 470px; margin: 12px auto 24px; color: var(--muted); line-height: 1.55; }

.legal { width: min(calc(100% - 40px), 760px); margin: 80px auto; }
.legal h1 { font-size: 48px; }
.legal h2 { margin-top: 42px; }
.legal p, .legal li { color: #c3c3c8; line-height: 1.7; }
.state { padding: 80px 20px; text-align: center; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 13px; }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; gap: 22px; }

@media (max-width: 800px) {
  .nav-inner, .container { width: min(calc(100% - 32px), var(--max)); }
  .nav-links > a:not(.button) { display: none; }
  .hero { padding: 76px 0 46px; }
  .hero h1 { font-size: clamp(46px, 15vw, 66px); }
  .hero p { font-size: 17px; }
  .section { padding: 78px 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-panel { order: -1; padding: 0 0 24px; }
  .product-carousel { width: min(100%, 560px); margin: 0 auto; }
  .share-shell { margin-top: 28px; }
  .preview { padding: 26px 22px; }
}

@media (max-width: 520px) {
  .nav-inner { height: 64px; }
  .brand span { display: none; }
  .hero-actions .button { width: 100%; }
  .window { border-radius: 9px; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .feature h3 { margin-top: 28px; }
  .download-hero { padding-top: 60px; }
  .download-hero h1 { font-size: 44px; }
  .product-carousel { padding: 10px 10px 9px; }
  .carousel-button { width: 38px; height: 38px; top: calc(50% - 24px); }
  .carousel-previous { left: 18px; }
  .carousel-next { right: 18px; }
  .carousel-footer { min-height: 44px; padding-top: 9px; }
  .carousel-caption { max-width: 68%; font-size: 12px; }
  .review-dialog { padding: 26px 22px 22px; }
  .share-title { font-size: 32px; }
  .preview p { font-size: 16px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
