:root {
  color-scheme: dark;
  --bg: #07080c;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #9aa7b8;
  --soft: #64748b;
  --accent: #22d3ee;
  --accent-2: #f59e0b;
  --success: #34d399;
  --shadow: rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 78% 16%, rgba(245, 158, 11, 0.1), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 22%, transparent 75%);
  pointer-events: none;
}

.bg-light {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.bg-light-primary {
  width: 42vw;
  height: 42vw;
  min-width: 360px;
  min-height: 360px;
  top: -14rem;
  left: 12vw;
  background: rgba(34, 211, 238, 0.18);
}

.bg-light-secondary {
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  right: -10rem;
  bottom: 10vh;
  background: rgba(245, 158, 11, 0.14);
}

.desktop-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100vw - 48px), 980px);
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.78);
  box-shadow: 0 18px 50px var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 720;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

.desktop-header nav {
  min-width: 0;
  flex: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.nav-button:hover,
.nav-button.is-active {
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

main {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 56px 0 0;
}

.desktop-hero {
  display: grid;
  justify-items: center;
  padding: 40px 0 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.desktop-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.desktop-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-detail {
  min-height: 620px;
}

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 38px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.product-copy {
  min-width: 0;
}

.product-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 8px;
  color: #071014;
  font-weight: 840;
  background: transparent;
}

.product-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.product-copy > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  color: #dce5ef;
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--product-color, var(--accent));
}

.download-area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.download-link:hover {
  border-color: var(--product-color, var(--accent));
  background: color-mix(in srgb, var(--product-color, var(--accent)) 24%, transparent);
  transform: translateY(-2px);
}

.download-link.primary {
  color: #081015;
  border-color: transparent;
  background: var(--product-color, var(--accent));
}

.download-link.is-disabled {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.download-link.is-disabled:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  transform: none;
}

.download-link.primary.is-disabled {
  color: #081015;
  background: color-mix(in srgb, var(--product-color, var(--accent)) 66%, transparent);
}

.screenshots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  min-height: 0;
}

.screenshot-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--screenshot-ratio, 9 / 19.5);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transform: none;
}

.screenshot-card:nth-child(2) {
  width: 100%;
  transform: none;
}

.screenshot-card::before {
  content: none;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mobile-home,
.mobile-back-button {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  width: min(1180px, calc(100vw - 48px));
  margin: 56px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .desktop-header,
  .desktop-hero {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .mobile-home {
    display: block;
    min-height: 100vh;
    padding: 54px 20px 32px;
  }

  .mobile-home.is-hidden {
    display: none;
  }

  .mobile-intro h1 {
    max-width: 360px;
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .mobile-intro p:last-child {
    max-width: 360px;
    margin: 16px 0 0;
    color: var(--muted);
  }

  .mobile-product-list {
    display: grid;
    gap: 12px;
    margin-top: 34px;
  }

  .mobile-product-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    text-align: left;
    font: inherit;
    cursor: pointer;
  }

  .mobile-product-card:active {
    transform: scale(0.99);
  }

  .mobile-card-title {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 780;
  }

  .mobile-card-desc {
    display: block;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .mobile-card-arrow {
    color: var(--soft);
    font-size: 22px;
  }

  .mobile-back-button {
    position: sticky;
    top: 12px;
    z-index: 10;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: 12px 0 0 14px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: rgba(8, 10, 16, 0.82);
    font: inherit;
    font-size: 14px;
    font-weight: 720;
    backdrop-filter: blur(16px);
  }

  .mobile-back-button.is-visible {
    display: inline-flex;
  }

  .product-detail {
    display: none;
    min-height: auto;
    padding: 20px 0 0;
  }

  .product-detail.is-visible {
    display: block;
  }

  .product-panel {
    display: block;
    padding: 24px 20px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-copy h2 {
    font-size: 36px;
  }

  .product-copy > p {
    font-size: 16px;
  }

  .download-area {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-link {
    width: 100%;
  }

  .screenshots {
    display: flex;
    gap: 14px;
    min-height: auto;
    width: calc(100% + 40px);
    margin: 34px -20px 0;
    padding: 10px 20px 42px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screenshots::-webkit-scrollbar {
    display: none;
  }

  .screenshot-card,
  .screenshot-card:nth-child(2) {
    flex: 0 0 252px;
    scroll-snap-align: center;
    transform: none;
  }

  .site-footer {
    width: calc(100vw - 40px);
    margin-top: 0;
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
  }
}
