:root {
  color-scheme: light;
  --ink: #28102f;
  --muted: #6f5a74;
  --paper: #fffaf2;
  --paper-bright: #ffffff;
  --plum-950: #18051f;
  --plum-900: #27062f;
  --plum-800: #3d0849;
  --plum-700: #5e0c70;
  --plum-600: #7c1490;
  --gold-500: #f3b62f;
  --gold-400: #ffd467;
  --gold-300: #ffe69a;
  --rose-500: #dd245c;
  --line: rgba(80, 30, 86, 0.16);
  --shadow: 0 18px 50px rgba(37, 5, 45, 0.14);
  --shadow-soft: 0 10px 28px rgba(37, 5, 45, 0.1);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
  --content: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(243, 182, 47, 0.22), transparent 25rem),
    linear-gradient(180deg, #2d0736 0, #190520 19rem, #f7f0e7 19rem, #fffaf2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--plum-700);
  text-decoration-color: rgba(94, 12, 112, 0.36);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rose-500);
  text-decoration-color: currentColor;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.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;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--plum-950);
  background: var(--gold-400);
  border-radius: 0.6rem;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: white;
  background: rgba(24, 5, 31, 0.94);
  border-bottom: 1px solid rgba(255, 212, 103, 0.32);
  box-shadow: 0 8px 28px rgba(10, 0, 14, 0.24);
  backdrop-filter: blur(16px);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 1.5rem, var(--content));
  min-height: 4.5rem;
  margin-inline: auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: white;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border: 1px solid rgba(255, 212, 103, 0.85);
  border-radius: 0.75rem;
  box-shadow: 0 0 0 3px rgba(243, 182, 47, 0.13);
}

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 0.28rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
}

.primary-nav {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  left: 0;
  display: none;
  padding: 0.65rem;
  background: #25052d;
  border: 1px solid rgba(255, 212, 103, 0.24);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 60px rgba(10, 0, 14, 0.44);
}

.primary-nav.is-open {
  display: grid;
}

.primary-nav > a,
.guide-menu > summary,
.guide-panel a {
  display: block;
  padding: 0.72rem 0.82rem;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
}

.primary-nav > a:hover,
.guide-menu > summary:hover,
.guide-panel a:hover,
.primary-nav [aria-current="page"] {
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.07);
}

.guide-menu > summary {
  list-style: none;
  cursor: pointer;
}

.guide-menu > summary::-webkit-details-marker {
  display: none;
}

.guide-menu > summary::after {
  content: "+";
  float: right;
  color: var(--gold-400);
}

.guide-menu[open] > summary::after {
  content: "−";
}

.guide-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.35rem;
}

main {
  min-height: 70vh;
}

.page-shell {
  width: min(100% - 1.2rem, 68rem);
  margin: 2rem auto 4rem;
  padding: clamp(1.15rem, 4vw, 3.5rem);
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(255, 212, 103, 0.38);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.article-header {
  max-width: 55rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--plum-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--gold-500);
}

h1,
h2,
h3 {
  color: var(--plum-950);
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 8vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  position: relative;
  margin: 3.7rem 0 1rem;
  padding-top: 0.35rem;
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
}

h2::before {
  content: "";
  position: absolute;
  top: -0.62rem;
  left: 0;
  width: 3.2rem;
  height: 0.24rem;
  background: linear-gradient(90deg, var(--gold-500), var(--rose-500));
  border-radius: 99px;
}

h3 {
  margin: 2rem 0 0.65rem;
  font-size: clamp(1.22rem, 4vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
}

p {
  margin: 0.8rem 0 1.05rem;
}

.article-header > p:first-of-type {
  color: #4f3d53;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.74;
}

strong {
  color: var(--plum-800);
  font-weight: 800;
}

em {
  color: #5e425f;
}

.breadcrumbs {
  margin: -0.2rem 0 1.5rem;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #a08ba3;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

.download-panel {
  display: grid;
  justify-items: center;
  margin: 1.7rem 0 1.5rem;
}

.hero-logo {
  width: min(52vw, 13rem);
  aspect-ratio: 1;
  margin-bottom: 0.65rem;
  border-radius: 22%;
  filter: drop-shadow(0 18px 24px rgba(48, 3, 58, 0.24));
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 12rem;
  min-height: 3.6rem;
  padding: 0.85rem 1.6rem;
  color: #2a082d;
  background: linear-gradient(180deg, #ffe997 0%, #f3b62f 70%, #d58f0e 100%);
  border: 1px solid #c88000;
  border-radius: 999px;
  box-shadow: 0 9px 0 #8c4d06, 0 18px 35px rgba(85, 35, 1, 0.23);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-button span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  color: white;
  background: var(--plum-800);
  border-radius: 50%;
}

.download-button:hover {
  color: #2a082d;
  box-shadow: 0 6px 0 #8c4d06, 0 14px 28px rgba(85, 35, 1, 0.2);
  transform: translateY(3px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 2.6rem;
}

.feature-card {
  min-width: 0;
  padding: 1rem;
  background: linear-gradient(145deg, #36063f, #5f0d70);
  border: 1px solid rgba(255, 212, 103, 0.62);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  box-shadow: 0 16px 38px rgba(55, 5, 66, 0.22);
  transform: translateY(-4px);
}

.feature-card dt {
  color: var(--gold-300);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.feature-card dd {
  margin: 0.35rem 0 0;
  color: white;
  font-size: clamp(1rem, 3vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
}

.screenshots-section {
  margin: 3.8rem 0 3rem;
}

.screenshots-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.screenshots-heading h2 {
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.slider-status {
  min-width: 3.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.slider-button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  color: white;
  background: var(--plum-800);
  border: 1px solid rgba(255, 212, 103, 0.72);
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(39, 6, 47, 0.18);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.slider-button:hover:not(:disabled) {
  background: var(--plum-600);
  transform: translateY(-2px);
}

.slider-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.screenshots-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) #eaddec;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 0.2rem;
}

.screenshots-viewport::-webkit-scrollbar {
  height: 0.65rem;
}

.screenshots-viewport::-webkit-scrollbar-track {
  background: #eaddec;
  border-radius: 999px;
}

.screenshots-viewport::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border: 2px solid #eaddec;
  border-radius: 999px;
}

.screenshots-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  margin: 0;
  padding: 0.3rem 0.2rem 1rem;
  list-style: none;
}

.screenshot-slide {
  flex: 0 0 min(78vw, 18rem);
  overflow: hidden;
  background: var(--plum-950);
  border: 2px solid rgba(243, 182, 47, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 34px rgba(31, 4, 38, 0.2);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.screenshot-slide img {
  width: 100%;
  height: auto;
}

.toc {
  margin: 2.5rem 0 3.3rem;
  overflow: hidden;
  background: #f4e6f4;
  border: 1px solid rgba(94, 12, 112, 0.2);
  border-radius: var(--radius-md);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  color: var(--plum-900);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

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

.toc summary span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  color: white;
  background: var(--plum-700);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.toc[open] summary span {
  transform: rotate(45deg);
}

.toc nav {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(94, 12, 112, 0.14);
}

.toc ol {
  display: grid;
  gap: 0.3rem;
  margin: 0.9rem 0 0;
  padding-left: 1.35rem;
}

.toc a {
  display: inline-block;
  padding: 0.2rem 0;
}

.table-wrap {
  margin: 1.35rem 0 2rem;
  overflow-x: auto;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 24px rgba(41, 9, 47, 0.07);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: white;
  background: var(--plum-800);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #fbf4fb;
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: #f5e5f5;
}

.content-list,
.steps {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.content-list li,
.steps li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 16px rgba(41, 9, 47, 0.05);
  transition: border-color 160ms ease, transform 160ms ease;
}

.content-list li:hover,
.steps li:hover {
  border-color: rgba(124, 20, 144, 0.35);
  transform: translateX(3px);
}

.content-list li::before {
  content: "◆";
  position: absolute;
  top: 0.94rem;
  left: 1rem;
  color: var(--gold-500);
  font-size: 0.8rem;
}

.steps {
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  top: 0.75rem;
  left: 0.8rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: white;
  background: var(--plum-700);
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  color: #4c3750;
  background: #fff4cf;
  border-left: 0.34rem solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.trust-page {
  max-width: 58rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #130318;
  border-top: 1px solid rgba(255, 212, 103, 0.28);
}

.footer-shell {
  display: grid;
  gap: 1.35rem;
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
  padding: 2.5rem 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer nav a:hover {
  color: var(--gold-300);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (min-width: 42rem) {
  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(243, 182, 47, 0.2), transparent 31rem),
      radial-gradient(circle at 88% 8%, rgba(221, 36, 92, 0.15), transparent 27rem),
      linear-gradient(180deg, #2d0736 0, #190520 24rem, #f7f0e7 24rem, #fffaf2 100%);
  }

  .page-shell {
    width: min(100% - 3rem, 68rem);
    margin-top: 3rem;
  }

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

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

  .footer-shell {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-footer nav {
    justify-content: flex-end;
  }

  .site-footer p {
    grid-column: 1 / -1;
  }
}

@media (min-width: 58rem) {
  .nav-shell {
    width: min(100% - 3rem, var(--content));
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .guide-menu {
    position: relative;
  }

  .guide-menu > summary::after {
    margin-left: 0.55rem;
  }

  .guide-panel {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
    width: 25rem;
    padding: 0.65rem;
    background: #25052d;
    border: 1px solid rgba(255, 212, 103, 0.24);
    border-radius: var(--radius-md);
    box-shadow: 0 22px 60px rgba(10, 0, 14, 0.44);
  }

  .page-shell {
    margin-top: 4rem;
  }

  .home-page .article-header {
    max-width: 59rem;
  }

  .home-page h1 {
    max-width: 54rem;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .download-panel,
  .toc {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
