/* Design pass informed by unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root {
  --bg: #0b0d0f;
  --surface: #111419;
  --surface-raised: #171b20;
  --surface-soft: #1c2127;
  --text: #f1f3f5;
  --text-secondary: #b2bac3;
  --muted: #7f8994;
  --border: rgba(241, 243, 245, 0.08);
  --border-strong: rgba(241, 243, 245, 0.14);
  --accent: #8aa4bd;
  --cue-blue: #007aff;
  --tune-purple: #987cd6;
  --stream-orange: #fd951c;
  --aircheck-yellow: #f9bc2e;
  --layric-mint: #13de94;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id],
header[id] {
  scroll-margin-top: 96px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* Home stage */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.82) contrast(1.04);
}

.bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 12, 0.66) 0%,
    rgba(8, 10, 12, 0.3) 48%,
    rgba(8, 10, 12, 0.92) 100%
  );
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.44;
}

.eq {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  opacity: 0.34;
}

.eq i {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: rgba(236, 240, 244, 0.52);
  transform-origin: bottom;
  animation: eq-bounce 1.8s ease-in-out infinite;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 48%, rgba(4, 6, 8, 0.68) 100%);
}

.logo-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 88px 28px 64px;
}

.float-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-radius: 28px;
  text-decoration: none;
}

.float-logo img {
  display: block;
  width: clamp(96px, 10.5vw, 136px);
  height: clamp(96px, 10.5vw, 136px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28%;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  transition:
    transform 160ms var(--ease),
    border-color 160ms var(--ease),
    filter 160ms var(--ease);
}

.float-logo:hover img,
.float-logo:focus-visible img {
  transform: translateY(-4px) scale(1.015);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border-strong));
  filter: brightness(1.06);
}

.logo-label {
  color: rgba(241, 243, 245, 0.72);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.float-logo:hover .logo-label,
.float-logo:focus-visible .logo-label {
  color: var(--text);
}

.home-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 11, 0.68));
  opacity: 0.78;
}

.home-footer .icp {
  margin: 0;
}

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.18);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 15, 0.92);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1160px;
  min-height: 62px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Product hero */
.hero {
  width: 100%;
  max-width: 1240px;
  min-height: calc(100vh - 62px);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 570px;
  text-align: left;
}

.product-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-id img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}

.hero h1 {
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero .tag {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero .sub {
  max-width: 36rem;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.72;
}

.hero .sub + .sub,
.hero .hero-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
}

.hero-badges span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.hero-badge-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.hero-badge-link:hover span {
  color: var(--text);
}

.layric-hero h1 {
  max-width: 620px;
  font-size: clamp(42px, 4.5vw, 64px);
}

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

.hero-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #0c0f12;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.preview-bar {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.preview-bar > span:first-child {
  color: var(--text-secondary);
}

.signal-meter {
  height: 14px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.signal-meter i {
  width: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.signal-meter i:nth-child(1) { height: 5px; opacity: 0.5; }
.signal-meter i:nth-child(2) { height: 9px; opacity: 0.68; }
.signal-meter i:nth-child(3) { height: 13px; opacity: 0.84; }
.signal-meter i:nth-child(4) { height: 8px; opacity: 0.62; }
.signal-meter i:nth-child(5) { height: 4px; opacity: 0.42; }

.hero-product > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.hero-product.layric-console > img {
  aspect-ratio: 900 / 620;
  object-fit: contain;
  background: #071321;
}

/* CSS product preview for the browser extension */
.extension-ui {
  padding: 20px;
  background: #0b0e11;
}

.extension-browser {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
}

.browser-bar {
  min-height: 34px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-address {
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-secondary);
}

.sound-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sound-pad {
  min-height: 56px;
  padding: 8px 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 11px;
}

.sound-pad.active {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
  color: var(--text);
}

/* Shared page content */
.products {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.product-card,
.contact-card,
.fx-principle,
.fx-chain,
.fx-three div {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.product-card {
  padding: 28px;
  text-align: left;
}

.product-card h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.product-card ul,
.product-card ol {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.product-card li {
  margin-bottom: 8px;
  padding-left: 2px;
}

.product-card li::marker {
  color: var(--accent);
}

.product-card code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}

.layric-spec-list {
  margin-top: 14px;
}

.layric-spec-list div {
  min-height: 43px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
}

.layric-spec-list div:first-child {
  border-top: 0;
}

.layric-spec-list dt {
  color: var(--muted);
  font-size: 13px;
}

.layric-spec-list dd {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.companion-strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.companion-strip-copy {
  min-width: 0;
  max-width: 760px;
}

.companion-strip h2 {
  font-size: 17px;
  font-weight: 600;
}

.companion-strip p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.detail-sec,
.detail-sec-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.sec-title {
  margin-bottom: 30px;
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.sec-title::after {
  width: 28px;
  height: 2px;
  margin-top: 12px;
  display: block;
  background: var(--accent);
  content: "";
}

.shot {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #080a0c;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.btn {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    color 150ms var(--ease);
}

.btn:active {
  transform: scale(0.985);
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
}

.btn.primary:hover {
  background: #ffffff;
}

.btn.ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn.ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong));
  background: var(--surface-raised);
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

#faq .product-card h2:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

#faq .product-card h2 + p {
  margin-top: 10px;
}

#download .btn.primary {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  color: var(--text);
}

#download .btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-raised));
}

/* LAYRIC */
.layric-page .sec-title::after {
  background: var(--layric-mint);
}

.layric-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.layric-steps article {
  min-height: 190px;
  padding: 24px 28px;
  border-left: 1px solid var(--border);
}

.layric-steps article:first-child {
  border-left: 0;
  padding-left: 0;
}

.layric-steps article:last-child {
  padding-right: 0;
}

.layric-step-no {
  color: var(--layric-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.layric-steps h3 {
  margin-top: 36px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.layric-steps p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.layric-scene {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.layric-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.layric-scene figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(7, 19, 33, 0.88);
  color: var(--text-secondary);
  font-size: 12px;
}

.layric-section-head {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.layric-section-head .sec-title {
  margin-bottom: 16px;
}

.layric-section-head p {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.layric-count {
  flex: none;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.theme-rail {
  margin-right: -24px;
  padding: 0 24px 14px 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--border-strong) transparent;
}

.theme-card {
  min-width: 360px;
  max-width: 360px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #071321;
}

.theme-canvas {
  height: 144px;
  padding: 20px;
  display: grid;
  place-items: center;
  background: #071321;
}

.theme-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-card figcaption {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
}

.theme-card figcaption strong {
  color: var(--text);
  font-weight: 500;
}

.theme-card figcaption span {
  color: var(--muted);
}

.layric-orientation {
  margin-top: 42px;
  padding-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.layric-orientation-copy h3 {
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
}

.layric-orientation-copy p {
  max-width: 430px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.portrait-themes {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 14px;
}

.portrait-themes figure {
  width: max-content;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #071321;
}

.portrait-themes figure:nth-child(2) {
  transform: translateY(20px);
}

.portrait-themes img {
  display: block;
  width: auto;
  height: 320px;
  max-width: none;
  object-fit: contain;
}

.portrait-themes figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.layric-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.layric-related-guides {
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.layric-related-guides h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.layric-related-guides p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.layric-related-guides ul {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  list-style: none;
}

.layric-related-guides a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.layric-related-guides a::after {
  color: var(--layric-mint);
  content: "→";
}

.layric-related-guides a:hover {
  color: var(--text);
}

.layric-tutorial-card {
  margin-bottom: 20px;
}

.layric-tutorial-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #080a0c;
}

.layric-tutorial-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.layric-tutorial-meta a {
  color: var(--layric-mint);
  text-underline-offset: 3px;
}

.layric-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.layric-download-video {
  width: 100%;
  margin-top: 18px;
  padding: 10px 10px 12px;
  border: 1px solid color-mix(in srgb, var(--layric-mint) 34%, var(--border));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--layric-mint) 7%, transparent), transparent 62%),
    var(--surface);
}

.layric-download-video figcaption {
  padding: 2px 4px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.layric-download-video figcaption > div {
  display: grid;
  gap: 3px;
}

.layric-download-video figcaption span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.layric-download-video figcaption span:first-child {
  color: var(--layric-mint);
  font-weight: 500;
}

.layric-download-video figcaption strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.layric-download-video figcaption a {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.layric-download-video figcaption a:hover {
  color: var(--layric-mint);
  border-color: var(--layric-mint);
}

.layric-download-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #080a0c;
}

.layric-download-help {
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--layric-mint) 28%, var(--border));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--layric-mint) 7%, transparent), transparent 62%),
    var(--surface);
  scroll-margin-top: 88px;
}

.layric-download-help-head {
  display: flex;
  align-items: baseline;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.layric-download-help-head strong {
  color: var(--text);
  font-size: 15px;
}

.layric-download-help-head span {
  color: var(--muted);
  font-size: 12px;
}

.layric-download-help ol {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: download-step;
}

.layric-download-help li {
  position: relative;
  min-height: 42px;
  padding-left: 34px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  counter-increment: download-step;
}

.layric-download-help li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--layric-mint) 38%, var(--border));
  border-radius: 50%;
  color: var(--layric-mint);
  font-size: 11px;
  content: counter(download-step);
}

.layric-download-help p {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.layric-download-help code {
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

@media (max-width: 720px) {
  .layric-download-video figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .layric-download-help {
    padding: 18px;
  }

  .layric-download-help ol {
    grid-template-columns: 1fr;
  }
}

.layric-faqs {
  border-top: 1px solid var(--border-strong);
}

.layric-faq {
  border-bottom: 1px solid var(--border-strong);
}

.layric-faq summary {
  min-height: 62px;
  padding: 18px 34px 18px 0;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.layric-faq summary::-webkit-details-marker {
  display: none;
}

.layric-faq summary::after {
  position: absolute;
  right: 4px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  content: "+";
}

.layric-faq[open] summary::after {
  content: "−";
}

.layric-faq p {
  max-width: 820px;
  padding: 0 34px 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.layric-faq code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.layric-download-card {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
}

.layric-version {
  color: var(--layric-mint);
  font-size: 12px;
  font-weight: 500;
}

.layric-download-card h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
}

.layric-download-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.layric-checksum {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.layric-checksum span {
  flex: none;
  color: var(--muted);
  font-size: 11px;
}

.layric-checksum code {
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Contact and footer */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  padding: 28px;
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
}

.contact-mail {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
}

.mail-link {
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.mail-link:hover {
  text-decoration-color: var(--accent);
}

.contact-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.qr {
  display: block;
  width: 100%;
  max-width: 188px;
  height: auto;
  margin: 0 auto 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.footer {
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer .icp {
  margin-top: 6px;
}

.footer .icp a {
  color: inherit;
  text-decoration: none;
}

.footer .icp a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* AIRCHECK effect guide */
.fx-principle {
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 24px;
}

.fx-principle .big {
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.fx-steps {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fx-steps span {
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
}

.fx-cat {
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.fx-cat-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fx-cat-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.fx-cat-head h3 {
  font-size: 17px;
  font-weight: 600;
}

.fx-cat-count {
  color: var(--muted);
  font-size: 12px;
}

.fx-cat-count::before {
  margin-right: 10px;
  content: "·";
}

.fx-cat-desc {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.fx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

details.fx {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  transition: border-color 150ms var(--ease);
}

details.fx:hover {
  border-color: var(--border-strong);
}

details.fx[open] {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
}

details.fx summary {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 4px 8px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}

details.fx summary::-webkit-details-marker {
  display: none;
}

.fx-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.fx-cn {
  color: var(--accent);
  font-size: 12px;
}

.fx-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 0;
}

.fx-arrow::before {
  font-size: 16px;
  content: "+";
}

details.fx[open] .fx-arrow {
  transform: rotate(45deg);
}

.fx-what {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.fx-body {
  padding: 2px 16px 16px;
  border-top: 1px solid var(--border);
}

.fx-line {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.fx-line b {
  min-width: 66px;
  flex: none;
  color: var(--text-secondary);
  font-weight: 500;
}

.fx-line span,
.fx-sub div {
  color: var(--muted);
}

.fx-sub {
  margin: 10px 0 0 76px;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
}

.fx-sub div {
  margin: 5px 0;
  font-size: 12px;
}

.fx-sub em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.fx-chain {
  max-width: 920px;
  margin: 0 auto 10px;
  padding: 18px 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 2;
}

.fx-chain b {
  color: var(--text-secondary);
  font-weight: 500;
}

.fx-three {
  max-width: 920px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fx-three div {
  padding: 16px 18px;
}

.fx-three b {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.fx-three span {
  color: var(--muted);
  font-size: 12px;
}

/* 404 */
.err-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.err-code {
  color: var(--text);
  font-size: clamp(96px, 20vw, 196px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.err-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 500;
}

.err-sub {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .logo-stage {
    display: grid;
    grid-template-columns: repeat(6, max-content);
    align-content: center;
    justify-content: center;
    gap: 30px 28px;
  }

  .float-logo {
    grid-column: span 2;
  }

  .float-logo:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .float-logo:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .float-logo img {
    width: 92px;
    height: 92px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-product {
    width: 100%;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .fx-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fx-three {
    grid-template-columns: 1fr;
  }

  .layric-steps {
    grid-template-columns: 1fr;
  }

  .layric-steps article {
    min-height: 0;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .layric-steps article:first-child {
    border-top: 0;
  }

  .layric-steps h3 {
    margin-top: 10px;
  }

  .layric-orientation {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portrait-themes {
    justify-content: center;
  }

  .layric-guide-grid {
    grid-template-columns: 1fr;
  }

  .layric-related-guides {
    padding: 22px;
  }

  .layric-related-guides ul {
    grid-template-columns: 1fr;
  }

  .layric-tutorial-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .layric-download-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 12px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .nav-links a {
    flex: none;
    font-size: 13px;
  }

  .nav-links a[href="../index.html"] {
    display: none;
  }

  .hero {
    padding: 48px 20px 56px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .hero .sub {
    font-size: 16px;
  }

  .hero-badges {
    gap: 8px 14px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .preview-bar {
    height: 34px;
  }

  .products,
  .detail-sec,
  .detail-sec-narrow {
    padding-right: 20px;
    padding-left: 20px;
  }

  .detail-sec,
  .detail-sec-narrow {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .product-card,
  .contact-card {
    padding: 22px;
  }

  .companion-strip {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-grid,
  .fx-grid {
    grid-template-columns: 1fr;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-actions .btn {
    width: 100%;
  }

  .layric-section-head {
    gap: 16px;
  }

  .layric-count {
    display: none;
  }

  .layric-scene img {
    aspect-ratio: 16 / 7;
  }

  .layric-scene figcaption {
    right: 10px;
    bottom: 10px;
    font-size: 11px;
  }

  .theme-rail {
    margin-right: -20px;
    padding-right: 20px;
  }

  .theme-card {
    min-width: 300px;
    max-width: 300px;
  }

  .theme-canvas {
    height: 124px;
    padding: 16px;
  }

  .layric-download-card {
    padding: 22px;
  }

  .layric-checksum {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .fx-cat {
    padding: 20px 16px;
  }

  .fx-cat-desc {
    display: none;
  }

  .fx-line b {
    min-width: 60px;
  }

  .fx-sub {
    margin-left: 70px;
  }
}

@media (max-width: 640px) {
  .logo-stage {
    padding: 76px 28px 60px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-content: center;
    justify-content: center;
    gap: 34px 36px;
  }

  .float-logo {
    gap: 10px;
    grid-column: auto;
  }

  .float-logo:nth-child(4),
  .float-logo:nth-child(5) {
    grid-column: auto;
  }

  .float-logo:last-child {
    grid-column: 1 / -1;
  }

  .float-logo img {
    width: 92px;
    height: 92px;
  }

  .logo-label {
    font-size: 12px;
  }

  .eq {
    height: 90px;
    gap: 4px;
  }

  .layric-orientation {
    margin-top: 32px;
  }

  .portrait-themes {
    gap: 8px;
  }

  .portrait-themes img {
    height: 260px;
  }

  .portrait-themes figure:nth-child(2) {
    transform: translateY(12px);
  }

  .layric-faq summary {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
