:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --ink: #0d1020;
  --ink-2: #33394d;
  --muted: #646b80;
  --line: #e3e6ee;
  --line-2: #d3d8e3;
  --brand: #ff5a36;
  --brand-2: #ff8a3d;
  --brand-ink: #d63d1b;
  --night: #0d1020;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 16, 32, 0.05), 0 2px 8px rgba(13, 16, 32, 0.04);
  --shadow: 0 1px 2px rgba(13, 16, 32, 0.04), 0 12px 32px -10px rgba(13, 16, 32, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(13, 16, 32, 0.35);
  --header-h: 68px;
  --display: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Microsoft YaHei", "Microsoft JhengHei", "Malgun Gothic", "Segoe UI", sans-serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Microsoft YaHei", "Microsoft JhengHei", "Malgun Gothic", "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  flex: none;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

main:focus {
  outline: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(244, 245, 249, 0.78);
  border-bottom: 1px solid rgba(13, 16, 32, 0.06);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-header .brand {
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, #e2336b);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(255, 90, 54, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(13, 16, 32, 0.05);
}

.nav a[aria-current="page"],
.nav a.is-active {
  background: var(--ink);
  color: #fff;
}

.nav svg {
  width: 16px;
  height: 16px;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.lang-btn .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.lang.is-open .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(13, 16, 32, 0.45);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang-menu a:hover {
  background: var(--bg);
}

.lang-menu a[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(13, 16, 32, 0.8);
}

.btn-primary:hover {
  background: #1d2240;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.store:hover {
  transform: translateY(-1px);
  background: #1d2240;
}

.store svg {
  width: 24px;
  height: 24px;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store small {
  font-size: 0.72rem;
  opacity: 0.72;
}

.store strong {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store.on-dark {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.store.on-dark:hover {
  background: rgba(255, 255, 255, 0.22);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.18);
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 16, 32, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.28), rgba(255, 90, 54, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero .lead {
  max-width: 34rem;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat strong {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.orbit {
  position: absolute;
  width: min(460px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(13, 16, 32, 0.14);
}

.orbit::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(13, 16, 32, 0.07);
}

.tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(420px, 100%);
}

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 28%;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 20px 40px -20px color-mix(in srgb, var(--tone, #0d1020) 70%, transparent);
  animation: float 7s ease-in-out infinite;
}

.tile:nth-child(1) { transform: rotate(-8deg); animation-delay: -1s; }
.tile:nth-child(2) { transform: translateY(-26px) rotate(4deg); animation-delay: -3s; }
.tile:nth-child(3) { transform: rotate(10deg); animation-delay: -5s; }
.tile:nth-child(4) { transform: translateY(8px) rotate(6deg); animation-delay: -2s; }
.tile:nth-child(5) { transform: translateY(-14px) rotate(-5deg); animation-delay: -4s; }
.tile:nth-child(6) { transform: translateY(16px) rotate(-9deg); animation-delay: -6s; }

.tile-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.tile-ghost {
  background: linear-gradient(145deg, #fff, #eef0f6);
  color: #b3b9c8;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.tile-ghost svg {
  width: 40%;
  height: 40%;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* App icon */

.app-icon {
  object-fit: cover;
  background: #fff;
}

.icon-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 65%, #fff), var(--tone) 60%, color-mix(in srgb, var(--tone) 70%, #000));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}

/* Featured */

.featured {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  border-radius: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 45%, #0d1020), var(--tone));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.featured-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured:hover .featured-cover {
  transform: scale(1.03);
}

.featured-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 22, 0.86) 0%, rgba(8, 10, 22, 0.55) 45%, rgba(8, 10, 22, 0) 80%);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 420px;
  max-width: 620px;
  padding: 44px;
}

.featured-label {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.featured-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.featured-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 2.4rem;
}

.featured h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.featured-title p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Catalog */

.catalog {
  padding: 88px 0 24px;
}

.catalog-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
}

.catalog-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.06rem;
}

.tabs {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top) + 12px);
  z-index: 30;
  display: inline-flex;
  gap: 4px;
  margin: 26px 0 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.tab svg {
  width: 18px;
  height: 18px;
}

.tab em {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  text-align: center;
}

.tab:hover {
  background: var(--bg);
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
}

.tab.is-active em {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.catalog-section {
  padding-top: 44px;
}

@media (min-width: 1021px) {
  .catalog-section {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
  }

  .catalog-section .section-head {
    position: sticky;
    top: calc(var(--header-h) + 92px);
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
  }

  .catalog-section .section-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .catalog-section .section-head h2 {
    font-size: 1.9rem;
  }
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.section-icon svg {
  width: 24px;
  height: 24px;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-head p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -24px color-mix(in srgb, var(--tone) 55%, rgba(13, 16, 32, 0.4));
}

.card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card-art {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 55%, #0d1020), var(--tone));
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-art img {
  transform: scale(1.05);
}

.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px;
}

.card-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin-top: -40px;
  border-radius: 20px;
  box-shadow: 0 0 0 4px #fff, 0 12px 20px -10px rgba(13, 16, 32, 0.5);
  font-size: 1.8rem;
}

.card-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 2px;
}

.card-name {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.card-tagline {
  display: -webkit-box;
  margin: 14px 20px 0;
  overflow: hidden;
  color: var(--ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.card-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.card:hover .card-action svg {
  transform: translateX(3px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge svg {
  width: 14px;
  height: 14px;
}

.badge-beta {
  background: #fff1e6;
  color: #b3410f;
}

.empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
}

.empty svg {
  width: 26px;
  height: 26px;
}

/* Testing band */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  margin: 72px 0 96px;
  padding: 52px;
  border-radius: 32px;
  background: var(--night);
  color: #fff;
}

.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.55), rgba(226, 51, 107, 0.2) 45%, transparent 70%);
}

.band::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

.band-copy > p {
  max-width: 34rem;
  margin: 14px 0 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
}

.band-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band-icons a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.band-icons a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.band-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 1.3rem;
}

/* Product page */

.product-hero {
  position: relative;
  isolation: isolate;
  padding-bottom: 36px;
}

.product-cover {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 340px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 45%, #0d1020), var(--tone));
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 22, 0.1) 0%, rgba(8, 10, 22, 0.25) 55%, var(--bg) 100%);
}

.product-head {
  padding-top: 28px;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.crumb svg {
  width: 18px;
  height: 18px;
}

.product-title {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-top: 130px;
}

.product-icon {
  width: 148px;
  height: 148px;
  border-radius: 36px;
  box-shadow: 0 0 0 6px var(--bg), 0 24px 40px -18px rgba(13, 16, 32, 0.55);
  font-size: 3.6rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badges .badge {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.badges .badge-beta {
  background: #fff1e6;
  box-shadow: none;
}

.product-title h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.product-title .lead {
  margin-top: 6px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.pending {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}

.product-main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.panel-plain {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.block-title {
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 700;
}

.shots {
  display: flex;
  gap: 16px;
  margin: 0 -30px -8px;
  padding: 4px 30px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 30px;
  scrollbar-width: thin;
}

.shot {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  width: auto;
  height: clamp(320px, 48vw, 480px);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.prose p + p {
  margin-top: 14px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.product-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.side-card h2 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.side-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.info {
  display: grid;
  margin: 0;
}

.info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.info div:first-child {
  border-top: 0;
  padding-top: 0;
}

.info dt {
  color: var(--muted);
}

.info dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.link-row:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
}

.link-row svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.link-row span {
  flex: 1;
}

.more {
  padding: 24px 0 96px;
}

/* Inner pages */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.22), transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-hero .lead {
  max-width: 40rem;
  margin-top: 16px;
}

.page-hero .meta {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 600;
}

.page-hero-dark {
  margin: 20px auto 0;
  width: min(1180px, calc(100% - 40px));
  border-radius: 32px;
  background: var(--night);
  color: #fff;
}

.page-hero-dark .page-hero-inner {
  padding-inline: 52px;
  width: 100%;
  max-width: none;
}

.page-hero-dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero-dark::after {
  background: radial-gradient(circle, rgba(255, 90, 54, 0.5), rgba(226, 51, 107, 0.15) 45%, transparent 70%);
}

.fineprint {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
}

.page-body {
  display: grid;
  gap: 56px;
  padding: 48px 0 96px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.legal-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 44px 48px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.legal-card > p:first-child {
  color: var(--ink);
  font-size: 1.1rem;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--brand-ink);
  font-weight: 600;
}

.legal-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.9em;
}

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found .page-hero-inner {
  margin-inline: auto;
}

.not-found .hero-actions {
  justify-content: center;
}

.big-code {
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 50%, #e2336b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */

.site-footer {
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--night);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-col h2 {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover,
.footer-col a[aria-current="page"] {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 0;
    padding: 20px 0 10px;
  }

  .tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 640px;
    gap: 14px;
  }

  .orbit {
    display: none;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band {
    grid-template-columns: 1fr;
  }

  .band-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 116px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 1 0 auto;
    justify-content: center;
  }

  .tabs {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap,
  .page-hero-dark {
    width: min(1180px, calc(100% - 28px));
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero .lead {
    font-size: 1.02rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 320px;
    margin-inline: auto;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat {
    flex-direction: column;
    gap: 2px;
    padding: 12px 6px;
    text-align: center;
    font-size: 0.85rem;
  }

  .stat-icon {
    display: none;
  }

  .featured,
  .band,
  .page-hero-dark {
    border-radius: 24px;
  }

  .featured {
    min-height: 0;
    background: #0d1020;
  }

  .featured-cover {
    position: relative;
    z-index: 0;
    height: auto;
    aspect-ratio: 1200 / 630;
  }

  .featured-shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 16, 32, 0) 25%, #0d1020 50%);
  }

  .featured-body {
    position: relative;
    z-index: 2;
    min-height: 0;
    margin-top: -48px;
    padding: 0 22px 24px;
    gap: 18px;
  }

  .featured-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .featured-actions > * {
    flex: 1 1 auto;
  }

  .catalog {
    padding-top: 56px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .band {
    margin: 48px 0 64px;
    padding: 30px 22px;
  }

  .band .btn {
    width: 100%;
  }

  .product-cover {
    height: 240px;
  }

  .product-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 90px;
  }

  .product-icon {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .product-actions > * {
    flex: 1 1 auto;
  }

  .product-aside {
    grid-template-columns: 1fr;
  }

  .panel-plain {
    padding: 22px;
  }

  .shots {
    margin: 0 -22px -8px;
    padding: 4px 22px 16px;
    scroll-padding-inline: 22px;
  }

  .shot img {
    height: 360px;
  }

  .page-hero {
    padding: 44px 0 36px;
  }

  .page-hero-dark .page-hero-inner {
    padding-inline: 22px;
  }

  .legal-card {
    padding: 26px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
