:root {
  color-scheme: dark;
  --ink: #ece8e1;
  --ink-soft: #c8c2b8;
  --muted: #a3aab8;
  --paper: #101218;
  --paper-2: #1a1e28;
  --white: #1a1e28;
  --raised: #242a38;
  --line: #343b4d;
  --blue: #2f4dff;
  --blue-deep: #a9bcff;
  --blue-soft: #1c2442;
  --good: #5ee0b5;
  --bad: #ff9b78;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --header: 76px;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header) + 0.75rem); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -80px, rgba(47, 77, 255, 0.18), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
a:hover { color: #d5deff; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #ece8e1;
  color: #12141a;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.7rem 1.25rem;
  background: rgba(16, 18, 24, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 148px; height: auto; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
}
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(169, 188, 255, 0.12); color: white; }
.site-nav a[aria-current="page"] { background: #ece8e1; color: #12141a; }
.site-nav a.nav-forum { color: var(--blue-deep); }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.hero > *, .split > *, .product-hero > *, .vcard > *, .forum-band > * { min-width: 0; }
p, .lede, .prose, td, li { overflow-wrap: break-word; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.8rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }

.welcome {
  padding: 2.2rem 0 1.5rem;
  text-align: center;
}
.welcome-line {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.welcome-logo {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.welcome-logo .base {
  fill: none;
  stroke: #c5cad3;
  stroke-width: 0.32;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
}
.welcome-logo .trace {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.15;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  stroke-linecap: round;
}
.welcome-logo #spark { pointer-events: none; }
.welcome-logo #spark .halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: arc-halo 0.16s ease-in-out infinite;
}
.welcome-logo #spark .burst path {
  fill: none;
  stroke: #f4fbff;
  stroke-width: 0.36;
  stroke-linecap: round;
}
.welcome-logo #spark .burst.soft path {
  stroke: #9fd4ff;
  stroke-width: 0.26;
}
.welcome-logo #spark .burst {
  transform-origin: 0 0;
  animation: arc-flash 0.11s steps(1, end) infinite;
}
.welcome-logo #spark .burst.soft {
  animation-duration: 0.07s;
  animation-delay: -0.03s;
}
@keyframes arc-flash {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.45; }
}
@keyframes arc-halo {
  50% { transform: scale(1.35); opacity: 0.72; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 1.6rem 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #243ed4; color: white; }
.btn-ghost { background: transparent; border-color: #8b93a7; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #12141a; }
.btn-light { background: #ece8e1; color: #12141a; }
.btn-light:hover { background: #d9d3c8; color: #12141a; }

.hero-frame {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 0.9rem;
  box-shadow: var(--shadow);
}
.hero-frame img { width: 100%; border-radius: 12px; }
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.spec {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.28rem 0.45rem;
  text-align: center;
}
.spec b { display: block; font-size: 0.86rem; white-space: nowrap; }
.spec span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.band {
  background: #161a24;
  border-block: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  background: #10131a;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 0.8rem;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.file-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem 1rem;
  overflow: visible;
}
.file-card .card-body { padding: 0.1rem 0 0; }
.card-body p { color: var(--ink-soft); margin: 0; flex: 1; }
.price {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
}
.meta { color: var(--muted); font-size: 0.88rem; }

.quote-grid, .two, .three, .quote-stack {
  display: grid;
  gap: 1rem;
}
.quote-grid, .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.quote, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
}
.quote p { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.quote footer { color: var(--muted); font-size: 0.9rem; }
.quote footer a { color: var(--blue-deep); }
.stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1.7l2.85 6.05 6.65.57-5.04 4.36 1.55 6.5L12 16.4l-5.99 3.38 1.55-6.5L2.5 8.32l6.65-.57L12 1.7z'/%3E%3C/svg%3E");
  margin: 0 0 0.55rem;
}
.stars > span { display: inline-flex; gap: 0.16rem; }
.stars > span > span {
  width: 1.05rem;
  height: 1.05rem;
  background: #e0a52a;
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}
.stars > span > span.off { background: #6d768c; }
.quote .stars + h2 { margin-top: 0; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.7rem;
}
.gallery figure {
  margin: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery img { width: 100%; height: 280px; object-fit: cover; }
.gallery figcaption { padding: 0.7rem 0.85rem 0.85rem; color: var(--muted); font-size: 0.88rem; }

.slideshow { position: relative; margin-top: 1rem; }
.slideshow-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0c0e14;
  scrollbar-width: none;
}
.slideshow-viewport::-webkit-scrollbar { display: none; }
.slideshow-track { display: flex; }
.slideshow-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.slideshow-slide img {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: contain;
  background: #0c0e14;
}
.slideshow-slide figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 18, 24, 0.82);
  color: var(--ink);
  font-size: 0.88rem;
}
.slideshow-btn {
  position: absolute;
  top: min(34vh, 310px);
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 24, 0.82);
  color: var(--ink);
  cursor: pointer;
}
.slideshow-btn svg { width: 1.25rem; height: 1.25rem; }
.slideshow-btn:hover { border-color: var(--blue-deep); color: white; }
.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }
.slideshow-status { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.88rem; }

.forum-band {
  background: linear-gradient(160deg, #1c2744, #141822);
  color: #f4f1ea;
  border: 1px solid #3a4a72;
  border-radius: 24px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: center;
}
.forum-band p { color: #d5d0c6; }
.forum-band a.btn-primary { justify-self: end; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.feature-list, .plain-list { padding-left: 1.15rem; }
.feature-list li, .plain-list li { margin: 0.35rem 0; }
.page-hero { padding: 2.6rem 0 0.4rem; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}
.product-photos { display: grid; gap: 0.7rem; }
.product-photos img {
  background: #10131a;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }

.file-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.65rem; }
.file-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.file-copy { min-width: 0; padding-top: 0.15rem; }
.file-copy h3 { font-size: 1.05rem; margin: 0 0 0.2rem; }
.file-copy p { margin: 0; color: var(--ink-soft); }
.file-type {
  position: relative;
  width: 46px;
  height: 56px;
  flex: none;
  display: block;
  text-decoration: none;
  color: #e4533d;
}
.file-type svg { width: 100%; height: 100%; display: block; }
.file-type svg path { fill: currentColor; }
.file-type svg .fold { fill: rgba(255, 255, 255, 0.34); }
.file-type span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: white;
}
.file-zip { color: #e0a52a; }
.file-zip span { color: #2a2208; }
.file-type:hover { filter: brightness(1.12); }
.file-block { margin-top: 2.4rem; }
.group-jump { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.15rem; }
.group-jump a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
}
.group-jump a:hover { border-color: var(--blue-deep); color: white; }
.download-groups, .download-group { min-width: 0; }
.download-group {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem 1.15rem 1.05rem;
  margin-bottom: 1rem;
}
.download-group h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 0 0 0.3rem; }
.download-group > p { color: var(--ink-soft); margin: 0 0 0.9rem; }
.download-group .file-list { margin: 0; }
.download-group .file-list li { background: var(--paper); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stock { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.stock.in { color: var(--good); }
.stock.out { color: var(--bad); }
.note {
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--ink-soft);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  color: white;
  text-decoration: none;
}
.yt-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-fallback span {
  position: relative;
  margin: 0.85rem;
  background: rgba(10, 12, 16, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}
.yt-fallback:hover span { background: var(--blue); border-color: transparent; }
.video-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.video-list a {
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.video-list a:hover { border-color: var(--blue-deep); color: white; }

.site-footer {
  background: #090a0d;
  color: #c8c3b8;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: #f4f1ea; text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa3b2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #9aa3b2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.vcard {
  background:
    linear-gradient(165deg, rgba(47, 77, 255, 0.2), transparent 46%),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 1.15rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.4rem 1.8rem;
  align-items: start;
}
.vcard-brand img { width: 168px; height: auto; }
.vcard-brand p { color: var(--ink-soft); max-width: 22rem; margin: 0.9rem 0 0; }
.vcard-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
}
.vcard-list div {
  background: rgba(16, 18, 24, 0.45);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.vcard-list dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.28rem;
}
.vcard-list dd { margin: 0; }
.vcard-list a { color: var(--ink); text-decoration: none; }
.vcard-list a:hover { color: white; text-decoration: underline; }
.vcard-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.15rem;
  margin: 0.15rem 0 0;
  padding-top: 0.2rem;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  color: var(--muted);
}
.callout {
  border-left: 4px solid var(--bad);
  background: #2a1814;
  color: #f6e7e1;
  padding: 0.85rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
}
.steps { padding-left: 1.15rem; }
.steps li { margin: 0.4rem 0; }

@media (max-width: 1180px) {
  .site-nav a { padding: 0.4rem 0.42rem; font-size: 0.88rem; }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0.8rem 0.9rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .hero, .split, .product-hero, .forum-band, .vcard, .vcard-list,
  .cards, .quote-grid, .three, .two, .foot-grid, .gallery, .shop-grid {
    grid-template-columns: 1fr;
  }
  .gallery img { height: 220px; }
  .slideshow-slide img { height: min(58vh, 460px); }
  .slideshow-btn { top: min(29vh, 230px); width: 2.4rem; height: 2.4rem; }
  .forum-band a.btn-primary { justify-self: start; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { position: sticky; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-in 0.28s both; }
  .hero-frame { animation: hero-in 0.32s 0.22s both; }
  .specs .spec:nth-child(1) { animation: hero-in 0.2s 0.52s both; }
  .specs .spec:nth-child(2) { animation: hero-in 0.2s 0.64s both; }
  .specs .spec:nth-child(3) { animation: hero-in 0.2s 0.76s both; }
  .specs .spec:nth-child(4) { animation: hero-in 0.2s 0.88s both; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .welcome-logo #spark { display: none; }
}
