:root {
  color-scheme: dark;
  --background: #08090a;
  --surface: #0d0e10;
  --surface-raised: #121315;
  --surface-soft: #17181b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f5f5f5;
  --muted: #95989d;
  --muted-low: #686c71;
  --shell: min(1180px, calc(100vw - 48px));
  --tracking-body: 0.025em;
  --tracking-heading: 0.008em;
  --tracking-label: 0.11em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.085), transparent 30%),
    var(--background);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

::selection {
  color: #08090a;
  background: #fff;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 64px;
  background: rgba(8, 9, 10, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f1f1f1;
  font-size: 13px;
  letter-spacing: 0.11em;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 4px;
  height: 16px;
  background: #fff;
  border-radius: 4px;
  transform: skew(-15deg);
}

.brand-mark::before {
  left: 7px;
}

.brand-mark::after {
  left: 15px;
  opacity: 0.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 9px 15px;
  color: #08090a !important;
  background: #fff;
  border-radius: 9px;
  letter-spacing: 0.06em;
}

main {
  overflow: hidden;
}

.hero {
  min-height: 850px;
  padding: 184px 0 118px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-content {
  max-width: 1080px;
}

.eyebrow,
.section-kicker {
  color: #b8bbc0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 1030px;
  margin: 28px auto 26px;
  font-size: clamp(52px, 7.5vw, 98px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: var(--tracking-heading);
}

h1 span {
  display: block;
  color: #777b80;
}

.hero-description {
  max-width: 880px;
  margin: 0 auto;
  color: #aeb1b5;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.purchase-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 49px;
  padding: 0 22px;
  color: #ededed;
  background: #141517;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.purchase-button.is-primary {
  color: #08090a;
  background: #fff;
  border-color: #fff;
}

.purchase-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.support-note {
  margin: 17px 0 0;
  color: var(--muted-low);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.07em;
}

.support-logos {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hardware-logo {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9cbce;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.11em;
  opacity: 0.76;
}

.hardware-logo img {
  width: 23px;
  height: 23px;
  display: block;
  filter: invert(1);
}

.hardware-logo-apple {
  gap: 7px;
}

.hardware-logo-apple img {
  width: 20px;
  height: 20px;
}

.m-chip-mark {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  color: #dedfe1;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0;
}

.hero-line {
  width: min(880px, 82vw);
  height: 1px;
  margin: 100px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  box-shadow: 0 0 80px 20px rgba(255, 255, 255, 0.075);
}

.catalog-section,
.tutorial-section {
  padding: 118px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: 64px;
}

.catalog-section:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.008);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 45px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 15px 0 15px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: var(--tracking-heading);
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: var(--tracking-body);
}

.catalog-window {
  padding: 12px;
  background: #090a0b;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.34);
}

.catalog-topbar {
  height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #92959a;
  background: #101112;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.07em;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 5px;
  height: 5px;
  background: #595c60;
  border-radius: 50%;
}

.category-strip {
  min-height: 61px;
  padding: 12px 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #33363a transparent;
}

.category-button {
  min-height: 36px;
  padding: 0 13px;
  flex: 0 0 auto;
  color: #92959a;
  background: #131416;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.045em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.category-button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.category-button.active {
  color: #08090a;
  background: #fff;
  border-color: #fff;
}

.catalog-status {
  min-height: 22px;
  padding: 0 2px 9px;
  color: var(--muted-low);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.catalog-status.error {
  color: #dc7777;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preview-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: #121315;
  border-radius: 10px;
}

.preview-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.055) 45%, transparent 65%),
    #151618;
  background-size: 250% 100%;
}

.preview-card:not(.image-ready) .preview-media {
  animation: shimmer 1.25s linear infinite;
}

.preview-media img,
.preview-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-media img {
  opacity: 0;
  transition: opacity 220ms ease;
}

.preview-card.image-ready img {
  opacity: 1;
}

.preview-media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms ease;
}

.preview-card.video-ready video {
  opacity: 1;
}

.preview-card.video-ready img {
  opacity: 0;
}

.preview-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.preview-card.image-ready:not(.loading-video) .preview-loader {
  display: none;
}

.preview-name {
  min-height: 43px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  color: #d8d9db;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.empty-state {
  min-height: 260px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: #777b80;
  background: #111214;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

@keyframes shimmer {
  to {
    background-position: -250% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tutorial-section {
  padding-bottom: 138px;
}

.tutorial-slot {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.025), transparent 27%),
    #0b0c0e;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.closing {
  padding: 155px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.closing h2 {
  max-width: 860px;
  margin: 17px auto 0;
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: var(--tracking-heading);
}

.closing .purchase-actions {
  margin-top: 37px;
}

footer {
  padding: 28px 0 38px;
  color: #707479;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 154px;
  }

  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 24px);
  }

  .site-header {
    height: 58px;
  }

  .brand {
    font-size: 11px;
  }

  .nav-cta {
    padding: 8px 11px;
  }

  .hero {
    min-height: 700px;
    padding: 132px 0 82px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-description {
    font-size: 14px;
  }

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

  .purchase-button {
    width: 100%;
  }

  .catalog-section,
  .tutorial-section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .catalog-window {
    padding: 9px;
    border-radius: 15px;
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .preview-name {
    min-height: 40px;
    padding-inline: 9px;
  }

  .tutorial-slot {
    border-radius: 18px;
  }

  .closing {
    padding: 110px 0;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

/* WordPress admin bar spacing. */
body.admin-bar .site-header {
  top: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
