/* ==========================================================================
   Vesper — shared design system for every page
   ========================================================================== */

@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #05060f;
  --bg-raise: #0a0c1d;
  --ink: #f5f5fc;
  --text: rgba(229, 231, 255, 0.76);
  --text-dim: rgba(229, 231, 255, 0.58);
  --text-faint: rgba(229, 231, 255, 0.54);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --violet: #7c5cff;
  --violet-soft: #a48cff;
  --lilac: #c4b5fd;
  --cyan: #5eead4;
  --grad: linear-gradient(120deg, #7c5cff 0%, #5eead4 100%);
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -32px rgba(0, 0, 0, 0.85);
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

:where(ul[class], ol[class]) {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

strong,
b {
  font-weight: 500;
  color: var(--ink);
}

::selection {
  background: rgba(124, 92, 255, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--bg);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons & links -------------------------------------------------------- */

.btn {
  --h: 50px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: translate 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn .i {
  font-size: 18px;
}

.btn:hover {
  translate: 0 -2px;
}

.btn:active {
  translate: 0 0;
  transition-duration: 0.1s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 52%), linear-gradient(120deg, #6c4bff 0%, #8a6cff 48%, #3fc7b3 135%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 32px -12px rgba(124, 92, 255, 0.85);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.9s var(--ease-out);
}

.btn--primary:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 20px 44px -14px rgba(124, 92, 255, 0.95), 0 0 0 5px rgba(124, 92, 255, 0.14);
}

.btn--primary:hover::after {
  transform: translateX(110%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn--sm {
  --h: 40px;
  padding: 0 16px;
  font-size: 0.93rem;
}

.btn--sm .i {
  font-size: 16px;
}

.btn--lg {
  --h: 56px;
  padding: 0 28px;
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}

.text-link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}

.text-link .i {
  font-size: 16px;
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover span {
  background-size: 100% 1px;
}

.text-link:hover .i {
  transform: translateX(4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.badge--violet {
  color: #e6e0ff;
  background: rgba(124, 92, 255, 0.22);
  border-color: rgba(124, 92, 255, 0.45);
}

.badge--cyan {
  color: var(--cyan);
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.28);
}

.text-gradient {
  background-image: linear-gradient(100deg, #d9d0ff 0%, #9f86ff 28%, #5eead4 56%, #d9d0ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: sheen 9s linear infinite;
}

.pulse {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
}

/* Ambient layers --------------------------------------------------------- */

.aurora {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(30% 26% at 22% 34%, rgba(124, 92, 255, 0.4), transparent 70%),
    radial-gradient(26% 22% at 78% 26%, rgba(94, 234, 212, 0.2), transparent 70%),
    radial-gradient(30% 26% at 60% 80%, rgba(124, 92, 255, 0.24), transparent 70%);
  mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 56% 14%, rgba(196, 181, 253, 0.9) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 76% 46%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 90% 82%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 40%, rgba(94, 234, 212, 0.8) 0 1px, transparent 1.6px);
  background-size: 420px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.stars--b {
  background-size: 640px 640px;
  background-position: 130px 90px;
  opacity: 0.35;
  animation-duration: 11s;
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("/assets/noise.svg");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  padding-top: 14px;
  pointer-events: none;
}

.site-header > .container {
  position: relative;
}

.nav {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  padding: 0 8px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 10, 24, 0.36);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled .nav,
.site-header.is-open .nav {
  background: rgba(8, 9, 22, 0.74);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 18px -6px rgba(124, 92, 255, 0.75);
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-10deg) scale(1.06);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand-badge {
  margin-left: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(94, 234, 212, 0.08);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  border-radius: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}

.nav-toggle span:nth-child(2) {
  top: 24px;
}

.is-open .nav-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.is-open .nav-toggle span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 64px;
  left: var(--gutter);
  right: var(--gutter);
  pointer-events: auto;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 22, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.is-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s;
}

.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background-color 0.2s;
  transition-delay: calc(var(--i, 0) * 45ms);
}

.m-link .i {
  font-size: 18px;
  color: var(--text-faint);
}

.is-open .m-link {
  opacity: 1;
  transform: none;
}

.m-link:hover,
.m-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 8px;
}

.mobile-menu-note {
  margin: 12px 4px 4px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.no-js .nav-toggle {
  display: none !important;
}

@media (max-width: 1120px) {
  .brand-badge {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (min-width: 961px) {
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-actions .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-actions .btn {
    width: 42px;
    padding: 0;
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(48px, 6vw, 84px);
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
}

.hero-media-layer {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

.hero-still,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-still {
  filter: saturate(1.08) brightness(0.82);
}

.hero-video {
  opacity: 0.8;
  mix-blend-mode: screen;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 48% at 50% 30%, rgba(5, 6, 15, 0.74) 0%, rgba(5, 6, 15, 0.42) 58%, rgba(5, 6, 15, 0) 84%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.72) 0%, rgba(5, 6, 15, 0.44) 22%, rgba(5, 6, 15, 0.5) 50%, rgba(5, 6, 15, 0.58) 64%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 9, 22, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), translate 0.45s var(--ease-out);
}

.hero-pill:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(8, 9, 22, 0.72);
  translate: 0 -1px;
}

.hero-pill .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-pill .i {
  font-size: 14px;
  color: var(--text-dim);
  transition: transform 0.35s var(--ease-out);
}

.hero-pill:hover .i {
  transform: translateX(3px);
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(5, 6, 15, 0.5);
}

.hero-title .line {
  display: block;
}

.hero-lead {
  margin-top: 26px;
  max-width: 650px;
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  line-height: 1.6;
  color: rgba(234, 236, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .i {
  font-size: 16px;
  color: var(--cyan);
}

.hero-inner .theater-note {
  color: var(--text-dim);
}

[data-enter] {
  animation: enter 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

.hero-stage {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  perspective: 1800px;
  animation: rise 1.4s var(--ease-out) 0.55s both;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6%;
  bottom: -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.5), rgba(94, 234, 212, 0.12) 62%, transparent);
  filter: blur(50px);
  animation: glow 8s var(--ease) infinite alternate;
}

.motion-toggle {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  right: var(--gutter);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 22, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.motion-toggle:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
}

.motion-toggle .i {
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 64px);
  }

  .hero-pill .tag {
    white-space: nowrap;
  }

  .motion-toggle {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .motion-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .pill-more {
    display: none;
  }
}

/* App window illustration ------------------------------------------------ */

.app {
  --tilt: 0deg;
  position: relative;
  max-width: 1140px;
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 20, 42, 0.96), rgba(7, 8, 19, 0.98));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 70px 140px -50px rgba(0, 0, 0, 0.95), 0 40px 100px -60px rgba(124, 92, 255, 0.7);
  overflow: hidden;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  transform: rotateX(var(--tilt));
  transform-origin: 50% 0;
}

.js .app {
  --tilt: 14deg;
}

.app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 46px;
  padding-left: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.app-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.app-title img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--text-faint);
}

.app-search .i {
  font-size: 14px;
}

.app-search kbd {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-dim);
}

.app-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
  max-width: 100%;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.app-menu-label {
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.app-menu-item {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

.app-menu-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.app-menu-static {
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.app-menu-sep {
  width: 1px;
  height: 16px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.1);
}

.win-ctrls {
  justify-self: end;
  align-self: stretch;
  display: flex;
}

.win-ctrls span {
  display: grid;
  place-items: center;
  width: 46px;
  color: var(--text-dim);
}

.win-ctrls .i {
  font-size: 13px;
  stroke-width: 1.4;
}

.app-body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 260px;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-side-label {
  margin: 14px 10px 6px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.app-side-label:first-child {
  margin-top: 2px;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.app-nav .i {
  font-size: 16px;
}

.app-nav.is-active {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.24), rgba(124, 92, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.3);
}

.app-count,
.app-quiet {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-style: normal;
  color: var(--text-dim);
}

.app-quiet {
  background: rgba(94, 234, 212, 0.1);
  color: var(--cyan);
}

.app-side-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.app-side-card b {
  display: block;
  font-size: 12.5px;
}

.app-side-card small {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 20px;
}

.app-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 240px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-feature > img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.app-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 15, 0.9) 0%, rgba(5, 6, 15, 0.52) 52%, rgba(5, 6, 15, 0.05) 100%),
    linear-gradient(0deg, rgba(5, 6, 15, 0.55), transparent 55%);
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  background: rgba(94, 234, 212, 0.12);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.app-feature-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.app-feature p:not(.app-feature-title) {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text);
}

.app-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #0a0b18;
  white-space: nowrap;
}

.app-btn .i {
  font-size: 13px;
}

.app-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.app-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13.5px;
}

.app-row-head span {
  font-size: 12px;
  color: var(--text-faint);
}

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

.app-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}

.app-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 15, 0.86), transparent 56%);
}

.app-tile figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
}

.app-tile.is-focused {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22), 0 18px 34px -14px rgba(0, 0, 0, 0.9);
}

/* Text library cards (no artwork): cinematic Vesper treatment ---------- */

.app-row-head b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.app-early-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  background: rgba(94, 234, 212, 0.1);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.app-early-pill .pulse {
  width: 6px;
  height: 6px;
}

.app-tiles--text {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.app-tile--text {
  aspect-ratio: auto;
  min-height: 150px;
  padding: 12px 11px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  background:
    linear-gradient(160deg, rgba(124, 92, 255, 0.2), rgba(94, 234, 212, 0.06) 55%, transparent),
    rgba(255, 255, 255, 0.028);
}

.app-tile--text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.85), rgba(94, 234, 212, 0.6));
  opacity: 0.55;
}

.app-tiles--text .app-tile--text:nth-child(3n)::before {
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.8), rgba(164, 140, 255, 0.6));
}

.app-tiles--text .app-tile--text:nth-child(4n)::before {
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.8), rgba(124, 92, 255, 0.5));
}

.app-tile--text::after {
  background: linear-gradient(0deg, rgba(5, 6, 15, 0.3), transparent 62%);
}

.tile-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.tile-title {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.32;
  color: #fff;
  text-wrap: balance;
}

.tile-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  background: rgba(94, 234, 212, 0.1);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}

/* Old status names retired: Stable / Beta / Test only (see below). */

/* Original per-game tile icons: color tile + white glyph. No official art. */
.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}

.tile-icon .i {
  font-size: 19px;
}

.tile--gow { background: linear-gradient(135deg, #7dd3fc, #1e40af); }
.tile--spidey { background: linear-gradient(135deg, #ef4444 10%, #1d4ed8 90%); }
.tile--horizon { background: linear-gradient(135deg, #0d9488, #f59e0b); }
.tile--astro { background: linear-gradient(135deg, #93c5fd, #1d4ed8); }
.tile--demons { background: linear-gradient(135deg, #b45309, #292524); }
.tile--yotei { background: linear-gradient(135deg, #6366f1, #ec4899); }
.tile--returnal { background: linear-gradient(135deg, #22c55e, #052e16); }
.tile--gt { background: linear-gradient(135deg, #dc2626, #111827); }
.tile--ff { background: linear-gradient(135deg, #a855f7, #4c1d95); }
.tile--stellar { background: linear-gradient(135deg, #22d3ee, #0c4a6e); }

@media (max-width: 980px) {
  .app-tiles--text {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.app-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.rail-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.rail-title {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.rail-list {
  margin-top: 6px;
}

.rail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: var(--text-dim);
}

.rail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rail-list b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.rail-card--log code {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rail-card--log code i {
  margin-right: 6px;
  font-style: normal;
  color: #8fb7ff;
}

.rail-card--log code.is-muted,
.rail-card--log code.is-muted i {
  color: var(--text-faint);
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
  color: var(--text-dim);
}

.app-status > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pad-hints b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.pad-hints b:first-child {
  margin-left: 0;
}

@media (max-width: 1140px) {
  .app-body {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .app-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .app {
    border-radius: 14px;
    font-size: 13px;
  }

  .app-titlebar {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 46px auto;
    gap: 0 10px;
    height: auto;
  }

  .app-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    height: auto;
    margin: -4px 0 10px -6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11.5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-menu-item {
    padding: 4px 6px;
  }

  .app-menu-sep,
  .app-menu-sep ~ * {
    display: none;
  }

  .app-status > .app-status-mid {
    display: none;
  }

  .win-ctrls span {
    width: 36px;
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-side {
    display: none;
  }

  .app-main {
    gap: 14px;
    padding: 14px;
  }

  .app-feature {
    min-height: 210px;
    padding: 18px;
  }

  .app-feature-title {
    font-size: 22px;
  }

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

  .app-tile:nth-child(n + 3) {
    display: none;
  }

  .app-tiles--text .app-tile--text:nth-child(n + 3) {
    display: flex;
  }

  .app-tiles--text .app-tile--text {
    min-height: 134px;
  }
}

/* Ticker ----------------------------------------------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-list {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: rgba(244, 244, 252, 0.88);
  white-space: nowrap;
}

.ticker-list .i {
  font-size: 20px;
  color: var(--violet-soft);
}

/* Sections --------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 148px);
}

.section--tight {
  padding-block: clamp(64px, 8vw, 108px);
}

.section--line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.45), rgba(94, 234, 212, 0.45), transparent);
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(44px, 6vw, 76px);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-lead {
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  color: var(--text);
}

.section-head .section-lead {
  max-width: 640px;
  margin-inline: auto;
}

.section-head--left .section-lead {
  margin-inline: 0;
}

/* Preview ---------------------------------------------------------------- */

.preview {
  overflow: hidden;
}

.theater {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.theater-glow {
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 35% 50%, rgba(124, 92, 255, 0.5), transparent),
    radial-gradient(closest-side at 75% 60%, rgba(94, 234, 212, 0.28), transparent);
  filter: blur(60px);
  animation: glow 9s var(--ease) infinite alternate;
}

.theater-frame {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95);
}

.theater-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 64%, rgba(124, 92, 255, 0.95) 78%, rgba(94, 234, 212, 0.95) 88%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-angle 9s linear infinite;
  pointer-events: none;
}

.theater-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.theater-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theater-bar .i {
  font-size: 14px;
  color: var(--cyan);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #04050c url("/assets/gallery-couch.jpg") center / cover no-repeat;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(5, 6, 15, 0.05), rgba(5, 6, 15, 0.72)),
    #04050c url("/assets/gallery-couch.jpg") center / cover no-repeat;
  color: var(--ink);
  cursor: pointer;
}

.play-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -10px rgba(124, 92, 255, 0.85);
  transition: transform 0.5s var(--ease-out), background-color 0.3s var(--ease);
}

.play-orb::before,
.play-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(196, 181, 253, 0.5);
  animation: ripple 2.8s var(--ease-out) infinite;
}

.play-orb::after {
  animation-delay: 1.4s;
}

.play-orb .i {
  margin-left: 4px;
  font-size: 30px;
}

.video-facade:hover .play-orb {
  transform: scale(1.08);
  background: rgba(124, 92, 255, 0.55);
}

.facade-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.facade-copy b {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.facade-copy small {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.theater-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Preview stills (local photography, no third-party video) --------------- */

.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}

.still {
  margin: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.still-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.still-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.still:hover .still-frame img {
  transform: scale(1.05);
}

.still-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(8, 9, 22, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.still figcaption {
  display: grid;
  gap: 4px;
  padding-inline: 4px;
}

.still figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.still figcaption span {
  font-size: 0.92rem;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .stills-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 44px auto 0;
}

.mini {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.mini:hover {
  translate: 0 -3px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.mini > .i {
  margin-top: 2px;
  font-size: 20px;
  color: var(--lilac);
}

.mini h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.mini p {
  margin-top: 4px;
  font-size: 0.93rem;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery & device frames ------------------------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px);
  align-items: end;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.shot--monitor,
.shot--cinema {
  grid-column: span 7;
}

.shot--window,
.shot--laptop {
  grid-column: span 5;
}

.shot-caption {
  display: grid;
  gap: 6px;
  padding-inline: 4px;
}

.shot-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.shot-caption strong {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.shot-caption span:last-child {
  max-width: 48ch;
  font-size: 0.98rem;
  color: var(--text-dim);
}

.device {
  position: relative;
  transition: translate 0.7s var(--ease-out);
}

.shot:hover .device {
  translate: 0 -8px;
}

.device-screen {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: #000;
}

.device-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.shot:hover .device-screen > img {
  transform: scale(1.045);
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 30%);
}

.device--monitor .device-screen {
  aspect-ratio: 16 / 10;
  border: 10px solid #0a0b16;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 24px 70px -36px rgba(124, 92, 255, 0.55);
}

.device-stand {
  position: relative;
  display: block;
  height: 58px;
}

.device-stand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 50px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #05060c, #1a1c33 30%, #0d0e1c);
  clip-path: polygon(22% 0, 78% 0, 90% 100%, 10% 100%);
}

.device-stand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 34%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #24273f, #0b0c18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.7);
}

.device--window {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0c1a;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 24px 70px -36px rgba(94, 234, 212, 0.4);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding-left: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.window-bar img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.window-bar .win-ctrls {
  margin-left: auto;
  height: 100%;
}

.window-bar .win-ctrls span {
  width: 42px;
}

.device--window .device-screen {
  aspect-ratio: 1 / 1;
}

.device--window .device-screen > img {
  object-position: 34% 50%;
}

.device--laptop {
  padding-inline: 7%;
}

.device--laptop .device-screen {
  aspect-ratio: 16 / 10;
  border: 9px solid #0a0b16;
  border-bottom-width: 14px;
  border-radius: 16px 16px 4px 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 70px -36px rgba(124, 92, 255, 0.55);
}

.device-base {
  position: relative;
  display: block;
  height: 15px;
  margin-inline: -7%;
  border-radius: 3px 3px 16px 16px;
  background: linear-gradient(180deg, #2c2f4a 0%, #15172a 45%, #0a0b16 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 34px 50px -18px rgba(0, 0, 0, 0.95);
}

.device-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #0a0b16;
}

.device--cinema .device-screen {
  aspect-ratio: 2.39 / 1;
  border: 8px solid #0a0b16;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 24px 70px -36px rgba(124, 92, 255, 0.55);
}

.device--cinema .device-screen > img {
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  transform: scale(1.08);
}

.shot:hover .device--cinema .device-screen > img {
  transform: scale(1.12);
}

.device--cinema .device-stand {
  height: 34px;
}

.device--cinema .device-stand::before {
  width: 8%;
  height: 28px;
}

.device--cinema .device-stand::after {
  width: 26%;
  height: 7px;
}

.screen-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  padding: 3.4cqi;
  font-size: 11px;
  font-size: clamp(8px, 1.9cqi, 14px);
  line-height: 1.35;
  color: #fff;
  pointer-events: none;
}

.screen-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.6) 0%, transparent 26%, transparent 46%, rgba(5, 6, 15, 0.86) 100%);
}

.screen-ui--plain::before {
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 6, 15, 0.45));
}

.sui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.sui-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 1.15em;
}

.sui-brand img {
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.45em;
}

.sui-tabs {
  display: flex;
  gap: 0.4em;
}

.sui-tabs span {
  padding: 0.45em 0.95em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.sui-tabs .on {
  background: rgba(255, 255, 255, 0.94);
  color: #0b0c1a;
}

.sui-chip {
  display: inline-flex;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: rgba(6, 28, 30, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.86em;
  color: var(--cyan);
}

.sui-title {
  margin-top: 0.35em;
  font-family: var(--font-display);
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sui-bottom p {
  max-width: 30em;
  margin-top: 0.5em;
  color: rgba(255, 255, 255, 0.76);
}

.sui-btns {
  display: flex;
  gap: 0.5em;
  margin-top: 1em;
}

.sui-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  color: #0b0c1a;
}

.sui-btn .i {
  font-size: 1em;
}

.sui-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sui-toast {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.85em 1.15em 0.85em 0.85em;
  border-radius: 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 12, 28, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1em 2.4em rgba(0, 0, 0, 0.5);
  font-size: 1.12em;
}

.sui-toast--tr {
  top: 3.4cqi;
  right: 3.4cqi;
}

.sui-toast--bl {
  left: 3.4cqi;
  bottom: 3.4cqi;
}

.sui-ic {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.75em;
  background: rgba(94, 234, 212, 0.15);
  color: var(--cyan);
}

.sui-ic .i {
  font-size: 1.35em;
}

.sui-toast b {
  display: block;
  font-weight: 500;
  color: #fff;
}

.sui-toast small {
  display: block;
  font-size: 0.86em;
  color: rgba(255, 255, 255, 0.62);
}

.sui-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  padding: 1.4em 1.5em;
  transform: translate(-50%, -50%);
  border-radius: 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 22, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 2em 4em rgba(0, 0, 0, 0.45);
  font-size: 1.1em;
}

.sui-panel-title {
  margin-bottom: 0.5em;
  font-family: var(--font-display);
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
}

.sui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.75em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
}

.sui-switch {
  position: relative;
  flex: none;
  width: 2.6em;
  height: 1.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.6s var(--ease-out) 0.6s;
}

.sui-switch::after {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.6s var(--ease-out) 0.6s;
}

.sui-switch.on {
  background: var(--violet);
}

.sui-switch.on::after {
  transform: translateX(1.1em);
}

.sui-swatches {
  display: flex;
  gap: 0.4em;
}

.sui-swatches i {
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.sw-violet {
  background: var(--violet);
}

.sw-tide {
  background: var(--cyan);
}

.sw-lilac {
  background: var(--lilac);
}

@media (max-width: 960px) {
  .shot--monitor,
  .shot--window,
  .shot--laptop,
  .shot--cinema {
    grid-column: 1 / -1;
  }

  .device--window {
    max-width: 560px;
  }

  .shot--window .shot-caption {
    max-width: 560px;
  }
}

/* Features --------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  box-shadow: var(--shadow-card);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, -10%), rgba(124, 92, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  translate: 0 -4px;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 70px -32px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(124, 92, 255, 0.14);
}

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(94, 234, 212, 0.1));
  color: var(--ink);
}

.card-icon .i {
  font-size: 22px;
}

.card h3 {
  font-size: 1.34rem;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 1rem;
  color: var(--text-dim);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: var(--text);
}

.chip-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.logview {
  margin-top: auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 4, 12, 0.78);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.logview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.logview-bar .dots {
  display: flex;
  gap: 6px;
}

.logview-bar .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.logview-bar .badge {
  margin-left: auto;
}

.log-lines {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.log-lines li {
  display: grid;
  grid-template-columns: 66px 42px 62px minmax(0, 1fr);
  gap: 10px;
  color: rgba(229, 231, 255, 0.6);
  white-space: nowrap;
}

.log-lines time {
  color: rgba(229, 231, 255, 0.34);
}

.log-lines .lv {
  font-style: normal;
}

.lv--info {
  color: #8fb7ff;
}

.lv--ok {
  color: var(--cyan);
}

.lv--warn {
  color: #f5c46b;
}

.lv--quiet {
  color: rgba(229, 231, 255, 0.34);
}

.log-lines .src {
  color: var(--lilac);
}

.log-lines .msg {
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(240, 241, 255, 0.84);
}

.log-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

.pad-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.pad-stage::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.38), transparent);
  filter: blur(18px);
}

.pad {
  position: relative;
  width: min(100%, 340px);
  height: auto;
  overflow: visible;
}

.pad-bumper {
  fill: #191b36;
  stroke: rgba(255, 255, 255, 0.12);
}

.pad-dpad rect {
  fill: #0b0c1d;
  stroke: rgba(255, 255, 255, 0.14);
}

.pad-dpad .pad-hit {
  fill: rgba(94, 234, 212, 0);
  stroke: none;
  animation: pad-hit 4.8s var(--ease) infinite;
}

.pad-dpad .pad-hit--right {
  animation-delay: 2.4s;
}

.pad-btn {
  fill: #12142b;
  stroke: rgba(255, 255, 255, 0.2);
  transform-box: fill-box;
  transform-origin: center;
  animation: pad-press 4s var(--ease) infinite;
  animation-delay: calc(var(--k, 0) * 1s);
}

.pad-menu {
  fill: #0b0c1d;
  stroke: rgba(255, 255, 255, 0.14);
}

.pad-well {
  fill: #0a0b1a;
  stroke: rgba(255, 255, 255, 0.1);
}

.pad-cap {
  fill: #1a1d3a;
  stroke: rgba(164, 140, 255, 0.6);
}

.pad-stick--l .pad-cap {
  animation: stick-l 6s var(--ease) infinite;
}

.pad-stick--r .pad-cap {
  animation: stick-r 7s var(--ease) infinite;
}

.pad-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--text);
}

.prompt i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

.swatches {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.swatch {
  width: 50px;
  height: 50px;
  margin-right: -12px;
  border-radius: 50%;
  border: 2px solid #0b0c1c;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  transition: margin 0.55s var(--ease-out);
}

.card:hover .swatch {
  margin-right: 8px;
}

.swatch--ink {
  background: #05060f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 22px rgba(0, 0, 0, 0.45);
}

.swatch--violet {
  background: var(--violet);
}

.swatch--tide {
  background: var(--cyan);
}

.swatch--lilac {
  background: var(--lilac);
}

.swatch-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}

.folders {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.folder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}

.folder .i {
  font-size: 16px;
  color: var(--lilac);
}

.folder .ok {
  margin-left: auto;
  color: var(--cyan);
}

.folder--add {
  border-style: dashed;
  font-family: var(--font-body);
  color: var(--text-dim);
}

.os-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--ink);
}

.os-badge .i {
  font-size: 15px;
  color: var(--cyan);
}

.progress {
  margin-top: auto;
}

.progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.8s var(--ease-out) 0.4s;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.6s var(--ease) infinite;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.progress-meta span:first-child {
  color: var(--cyan);
}

@media (max-width: 1080px) {
  .span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .span-7,
  .span-5,
  .span-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .span-3,
  .span-6 {
    grid-column: 1 / -1;
  }

  .log-lines li {
    grid-template-columns: 42px 58px minmax(0, 1fr);
    white-space: normal;
  }

  .log-lines time {
    display: none;
  }

  .log-lines .msg {
    overflow: visible;
  }
}

/* How it works ----------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 31px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.85), rgba(94, 234, 212, 0.85));
  transform-origin: left center;
  transition: transform 1.8s var(--ease-out) 0.3s;
}

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

.timeline--4::before {
  left: calc(100% / 8);
  right: calc(100% / 8);
}

.tl-step {
  position: relative;
  text-align: center;
}

.tl-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, #15183a, #090a1b);
  box-shadow: 0 0 0 10px var(--bg), 0 16px 40px -12px rgba(124, 92, 255, 0.8);
  color: var(--ink);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.tl-marker .i {
  font-size: 24px;
}

.tl-step:hover .tl-marker {
  translate: 0 -4px;
  box-shadow: 0 0 0 10px var(--bg), 0 24px 50px -12px rgba(124, 92, 255, 1);
}

.tl-num {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
}

.tl-step h3 {
  margin-top: 10px;
  font-size: 1.42rem;
}

.tl-step p {
  max-width: 32ch;
  margin: 10px auto 0;
  color: var(--text-dim);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 92px);
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.stat {
  padding: clamp(22px, 3vw, 32px);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat-value small {
  font-size: 0.4em;
  letter-spacing: 0;
  color: var(--lilac);
}

.stat p {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 31px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.85), rgba(94, 234, 212, 0.85));
    transform-origin: center top;
  }

  .tl-step {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 22px;
    text-align: left;
  }

  .tl-marker {
    grid-row: span 3;
    margin: 0;
  }

  .tl-step p {
    margin-left: 0;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Requirements ----------------------------------------------------------- */

.reqs {
  overflow: hidden;
  isolation: isolate;
}

.reqs-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.reqs-bg-layer {
  position: absolute;
  inset: -15% 0;
}

.reqs-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0.5;
}

.reqs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5, 6, 15, 0.55) 26%, rgba(5, 6, 15, 0.5) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 6, 15, 0.85) 0%, rgba(5, 6, 15, 0.2) 60%, rgba(5, 6, 15, 0.55) 100%);
}

.reqs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.notes {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 22, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.94rem;
  color: var(--text);
}

.note .i {
  margin-top: 3px;
  font-size: 18px;
  color: var(--cyan);
}

.reqs-intro .text-link {
  margin-top: 28px;
}

.reqs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 22, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.spec-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -10%), rgba(124, 92, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.spec-card:hover::before {
  opacity: 1;
}

.spec-card:hover {
  translate: 0 -4px;
  border-color: rgba(255, 255, 255, 0.22);
}

.spec-card--rec {
  border-color: rgba(124, 92, 255, 0.42);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.16), rgba(8, 9, 22, 0.62) 42%);
}

.spec-head {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.spec-head h3 {
  font-size: 1.32rem;
}

.spec-list {
  display: grid;
  margin: 0;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.spec-list .i {
  grid-row: span 2;
  margin-top: 3px;
  font-size: 18px;
  color: var(--lilac);
}

.spec-list dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.spec-list dd {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .reqs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .reqs-cards {
    grid-template-columns: 1fr;
  }
}

/* FAQ -------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq-aside .section-lead {
  max-width: 40ch;
}

.faq-aside-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item[open]:not(.is-closing) {
  border-color: rgba(124, 92, 255, 0.38);
  background: rgba(124, 92, 255, 0.07);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 18px;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

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

.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.5s var(--ease-out), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open]:not(.is-closing) .faq-icon {
  transform: rotate(180deg);
  border-color: var(--violet);
  background: var(--violet);
}

.faq-item[open]:not(.is-closing) .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-body {
  overflow: hidden;
}

.faq-body-inner {
  max-width: 66ch;
  padding: 0 22px 22px;
  color: var(--text);
}

.faq-body-inner p + p {
  margin-top: 12px;
}

.faq-body-inner a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(124, 92, 255, 0.65);
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-aside {
    position: static;
  }
}

/* Final CTA -------------------------------------------------------------- */

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 80px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: 0 60px 120px -50px rgba(124, 92, 255, 0.55);
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.cta-bg-layer {
  position: absolute;
  inset: -18% 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0.6;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(5, 6, 15, 0.15), rgba(5, 6, 15, 0.88) 82%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.3), rgba(5, 6, 15, 0.82));
}

.cta-panel .aurora {
  z-index: -1;
}

.cta-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px -10px rgba(124, 92, 255, 0.85);
  animation: float 6s var(--ease) infinite alternate;
}

.cta-title {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cta-lead {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.12rem;
  color: rgba(234, 236, 255, 0.82);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.cta-fine {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 50% at 50% 0%, rgba(124, 92, 255, 0.09), transparent 70%);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 48px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 16px;
  color: var(--text-dim);
}

.footer-brand .btn {
  margin-top: 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-cols h2 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-cols ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols a {
  font-size: 0.97rem;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.footer-cols a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 36px;
  align-items: start;
  padding-block: 24px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-faint);
}

.footer-disclaimer {
  max-width: 72ch;
}

.footer-wordmark {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 21vw, 18.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform: translateY(14%);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 860px) {
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sub-page hero ---------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 100px));
  padding-bottom: clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-hero-layer {
  position: absolute;
  inset: -14% 0;
}

.page-hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 15, 0.7) 0%, rgba(5, 6, 15, 0.5) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 6, 15, 0.75), rgba(5, 6, 15, 0.1) 70%);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-faint);
}

.crumbs a {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .i {
  font-size: 12px;
}

.page-title {
  margin-top: 18px;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-lead {
  max-width: 640px;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 22, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: var(--text);
}

.meta-chip .i {
  font-size: 15px;
  color: var(--cyan);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 960px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Long-form layout (legal, FAQ) ------------------------------------------ */

.doc-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.toc-title {
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  position: relative;
  display: block;
  padding: 7px 10px 7px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.toc a::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease-out);
}

.toc a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.toc a.is-active {
  color: var(--ink);
}

.toc a.is-active::before {
  transform: scaleY(1);
}

.toc-foot {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.toc-foot .btn {
  width: 100%;
}

.prose {
  max-width: 780px;
}

.prose > section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.prose h2 .num {
  margin-right: 12px;
  font-size: 0.72em;
  color: var(--text-faint);
}

.prose p,
.prose li {
  color: var(--text);
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(124, 92, 255, 0.65);
  text-underline-offset: 3px;
}

.summary-card {
  margin-bottom: 52px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(124, 92, 255, 0.02));
}

.summary-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.summary-card h2 .i {
  font-size: 20px;
  color: var(--cyan);
}

.faq-group {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.faq-group-head .card-icon {
  width: 42px;
  height: 42px;
}

.faq-group-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.help-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.help-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.help-card .cta-actions {
  margin-top: 0;
}

@media (max-width: 960px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .help-card {
    grid-template-columns: 1fr;
  }
}

/* Download page ---------------------------------------------------------- */

.dl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: min(100svh, 940px);
  padding: calc(var(--header-h) + 48px) 0 80px;
  text-align: center;
}

.dl-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.dl-media-layer {
  position: absolute;
  inset: -12% 0;
}

.dl-media-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.dl-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 55% at 50% 45%, rgba(5, 6, 15, 0.3), rgba(5, 6, 15, 0.86) 78%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.5), transparent 30%, transparent 70%, var(--bg));
}

.dl-card {
  position: relative;
  width: min(100%, 740px);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 9, 22, 0.56);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.dl-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 26px;
}

.dl-orb::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.42), transparent);
  animation: glow 3s var(--ease) infinite alternate;
}

.dl-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-orb img {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.dl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(124, 92, 255, 0.95) 76%, rgba(94, 234, 212, 0.95) 93%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 1.6s linear infinite;
}

.dl-title {
  margin-top: 14px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dl-lead {
  max-width: 520px;
  margin: 18px auto 0;
  font-size: 1.1rem;
  color: var(--text);
}

.dl-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: var(--text);
}

.dl-status.is-done .pulse {
  background: var(--violet-soft);
}

.dl-status.is-done .pulse::after {
  border-color: var(--violet-soft);
}

.dl-progress {
  position: relative;
  max-width: 360px;
  height: 3px;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.6s var(--ease);
}

.dl-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--grad);
  animation: indeterminate 1.8s var(--ease) infinite;
}

.dl-status.is-done + .dl-progress {
  opacity: 0;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.dl-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dl-meta .i {
  font-size: 15px;
  color: var(--cyan);
}

.dl-fine {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

@media (max-width: 1080px) {
  .next-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.07);
}

.dl-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.dl-help-grid .spec-card .text-link {
  margin-top: 20px;
}

.dl-help-grid h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

@media (max-width: 860px) {
  .next-grid,
  .dl-help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dl-card {
    padding-inline: 22px;
  }

  .dl-card .eyebrow::before {
    display: none;
  }

  .dl-actions .btn {
    width: 100%;
    height: auto;
    min-height: var(--h);
    padding: 10px 18px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
}

/* System page ------------------------------------------------------------ */

.spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.spec-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.spec-table thead th.rec {
  color: #e6e0ff;
  background: rgba(124, 92, 255, 0.16);
}

.spec-table tbody th {
  width: 24%;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.spec-table tbody th span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spec-table tbody th .i {
  font-size: 17px;
  color: var(--lilac);
}

.spec-table td {
  color: var(--ink);
}

.spec-table td.rec {
  background: rgba(124, 92, 255, 0.05);
}

.spec-table tbody tr {
  transition: background-color 0.25s var(--ease);
}

.spec-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-faint);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.tick-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.tick-list li {
  display: flex;
  gap: 12px;
  color: var(--text);
}

.tick-list .i {
  margin-top: 4px;
  font-size: 18px;
  color: var(--cyan);
}

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

@media (max-width: 1080px) {
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .split,
  .limits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion: reveal & stagger ----------------------------------------------- */

.reveal,
.stagger > * {
  --rd: calc(var(--d, 0) * 90ms);
  transition:
    opacity 1s var(--ease-out) var(--rd),
    transform 1s var(--ease-out) var(--rd),
    translate 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    background-color 0.45s var(--ease-out);
}

.stagger > :nth-child(2) { --d: 1; }
.stagger > :nth-child(3) { --d: 2; }
.stagger > :nth-child(4) { --d: 3; }
.stagger > :nth-child(5) { --d: 4; }
.stagger > :nth-child(6) { --d: 5; }
.stagger > :nth-child(7) { --d: 6; }
.stagger > :nth-child(8) { --d: 7; }

.reveal-ready .reveal:not(.is-visible),
.reveal-ready .stagger:not(.is-visible) > * {
  transform: translate3d(0, 14px, 0);
}

.reveal-init .reveal,
.reveal-init .stagger > *,
.reveal-init .timeline::before,
.reveal-init .log-lines li,
.reveal-init .sui-toast,
.reveal-init .sui-switch,
.reveal-init .sui-switch::after,
.reveal-init .progress-bar {
  transition: none !important;
}

.reveal-ready .timeline:not(.is-visible)::before {
  transform: scaleX(0);
}

.reveal-ready .card--logs:not(.is-visible) .log-lines li {
  transform: translateX(-8px);
}

.card--logs .log-lines li {
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 240ms + 350ms);
}

.reveal-ready .shot:not(.is-visible) .sui-toast {
  transform: translateY(0.5em);
}

.sui-toast {
  transition: opacity 0.8s var(--ease-out) 0.6s, transform 0.8s var(--ease-out) 0.6s;
}

.reveal-ready .card:not(.is-visible) .progress-bar {
  width: 0;
}

@media (max-width: 860px) {
  .reveal-ready .timeline:not(.is-visible)::before {
    transform: scaleY(0);
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

.motion-paused [data-enter],
.motion-paused .hero-stage {
  animation: none;
}

.motion-paused .app {
  transform: none;
}

.motion-paused .reveal:not(.is-visible),
.motion-paused .stagger:not(.is-visible) > * {
  transform: none;
}

/* Keyframes -------------------------------------------------------------- */

@keyframes enter {
  from {
    transform: translateY(16px);
  }
  to {
    transform: none;
  }
}

@keyframes rise {
  from {
    transform: translateY(40px);
  }
  to {
    transform: none;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(3%, 3%, 0) rotate(6deg) scale(1.08);
  }
  100% {
    transform: translate3d(5%, -3%, 0) rotate(-5deg) scale(1.03);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.22;
  }
  to {
    opacity: 0.62;
  }
}

@keyframes glow {
  from {
    opacity: 0.62;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes sheen {
  to {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

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

@keyframes spin-angle {
  to {
    --angle: 360deg;
  }
}

@keyframes float {
  from {
    transform: translateY(-5px);
  }
  to {
    transform: translateY(6px);
  }
}

@keyframes ripple {
  from {
    transform: scale(0.85);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes indeterminate {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

@keyframes pad-press {
  0%,
  20%,
  100% {
    fill: #12142b;
    transform: scale(1);
  }
  7% {
    fill: #5eead4;
    transform: scale(0.86);
  }
}

@keyframes pad-hit {
  0%,
  16%,
  100% {
    fill: rgba(94, 234, 212, 0);
  }
  6% {
    fill: rgba(94, 234, 212, 0.85);
  }
}

@keyframes stick-l {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(4px, -3px);
  }
  50% {
    transform: translate(0, 4px);
  }
  75% {
    transform: translate(-4px, -1px);
  }
}

@keyframes stick-r {
  0%,
  100% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(-3px, 3px);
  }
  60% {
    transform: translate(4px, 1px);
  }
}

/* Console launcher library: square full-bleed covers + scrollable catalog ---- */

.hero-still {
  animation: kenburns 24s ease-in-out infinite alternate;
  transform-origin: 50% 45%;
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(2px);
  will-change: transform, opacity;
}

.orb--a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 8%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.5), transparent 70%);
  animation: orb-a 18s ease-in-out infinite alternate;
}

.orb--b {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 22%;
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.38), transparent 70%);
  animation: orb-b 22s ease-in-out infinite alternate;
}

.orb--c {
  width: 520px;
  height: 520px;
  left: 38%;
  bottom: -260px;
  background: radial-gradient(closest-side, rgba(196, 181, 253, 0.28), transparent 70%);
  animation: orb-c 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.12) translate3d(-1.5%, -2%, 0); }
  100% { transform: scale(1.22) translate3d(1.5%, 1%, 0); }
}

@keyframes orb-a {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate3d(90px, 50px, 0) scale(1.15); opacity: 1; }
  100% { transform: translate3d(40px, -60px, 0) scale(0.92); opacity: 0.65; }
}

@keyframes orb-b {
  0% { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.7; }
  50% { transform: translate3d(-80px, 60px, 0) scale(0.9); opacity: 1; }
  100% { transform: translate3d(-30px, -50px, 0) scale(1.18); opacity: 0.6; }
}

@keyframes orb-c {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  100% { transform: translate3d(-70px, -40px, 0) scale(1.12); opacity: 0.9; }
}

/* Hero strip: horizontal scrollable console shelf */

.app-row-head {
  gap: 12px;
}

.app-row-hint {
  margin-left: auto;
  white-space: nowrap;
}

.app-arrows {
  display: inline-flex;
  gap: 6px;
}

.app-arrows button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.app-arrows button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

/* (Retired) full-bleed cover strip removed with the 128-cover pack. */

/* Statuses: Stable / Beta / Test only. */

.tile-tag--stable {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 40, 28, 0.82);
  color: #6ee7b7;
}

.tile-tag--beta {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(8, 40, 38, 0.82);
  color: var(--cyan);
}

.tile-tag--test {
  border-color: rgba(245, 196, 107, 0.4);
  background: rgba(46, 32, 10, 0.85);
  color: #f5c46b;
}

/* (Retired) full catalog grid removed — the landing shows one portrait-cover strip. */

/* Portrait cover strip (full-bleed cards, one horizontal row, no snap) ------- */

.app-tiles--strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 14px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.app-tiles--strip::-webkit-scrollbar {
  height: 8px;
}

.app-tiles--strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.app-tiles--strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #7c5cff, #5eead4);
  border-radius: 999px;
}

.app-tiles--strip.is-dragging {
  cursor: grabbing;
}

.app-tiles--strip .app-tile--cover {
  flex: 0 0 148px;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c1c;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s var(--ease);
}

.app-tiles--strip .app-tile--cover:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.app-tiles--strip .app-tile--cover.is-focused {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22), 0 18px 34px -14px rgba(0, 0, 0, 0.9);
}

.tile-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.app-tile--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.38), transparent 32%, transparent 52%, rgba(5, 6, 15, 0.92));
  pointer-events: none;
}

.app-tile--cover .tile-num {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.app-tile--cover .tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 10px 11px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.app-tile--cover .tile-title {
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-tag--more {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.2);
  color: #e6e0ff;
}

.tile-more {
  border-style: dashed;
  border-color: rgba(124, 92, 255, 0.5);
  background:
    linear-gradient(160deg, rgba(124, 92, 255, 0.22), rgba(94, 234, 212, 0.08) 55%, transparent),
    rgba(255, 255, 255, 0.028);
  text-decoration: none;
}

.tile-more:hover {
  border-color: rgba(124, 92, 255, 0.9);
}

.tile-more-in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
}

.tile-more-in .i {
  font-size: 26px;
  color: var(--lilac);
}

.tile-more .tile-title {
  text-align: center;
}

.tile-more-sub {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-dim);
}

@media (max-width: 760px) {
  .app-tiles--strip .app-tile--cover {
    flex-basis: 138px;
  }

  .app-tiles--strip .app-tile--cover:nth-child(n+3) {
    display: block;
  }

  .app-row-hint {
    display: none;
  }
}

/* Reduced motion --------------------------------------------------------- */

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

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

  .hero-video,
  .dl-progress {
    display: none;
  }

  .hero-still,
  .orb {
    animation: none !important;
    transform: none !important;
  }

  .orb {
    opacity: 0.5;
  }

  .js .app {
    --tilt: 0deg;
  }

  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker-track {
    width: auto;
    justify-content: center;
  }

  .ticker-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
    padding-right: 0;
  }

  .ticker-list[aria-hidden="true"] {
    display: none;
  }
}
