:root {
  --bg-deep: #070608;
  --bg-elevated: #0e1016;
  --bg-card: #13161f;
  --border: #2a2f3d;
  --border-hot: rgba(225, 29, 72, 0.45);
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #e11d48;
  --accent-hot: #fb7185;
  --accent-glow: rgba(225, 29, 72, 0.4);
  --gold: #f59e0b;
  --gold-soft: #fcd34d;
  --violet: #8b5cf6;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Oswald", "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #0c0a09;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

body.site-portal {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(1000px 700px at 15% -5%, rgba(225, 29, 72, 0.14) 0%, transparent 55%),
    radial-gradient(800px 500px at 95% 10%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(168deg, #050506 0%, var(--bg-deep) 40%, #030304 100%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  min-height: 100vh;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.top-accent {
  height: 4px;
  background: linear-gradient(
    90deg,
    #7f1d1d 0%,
    var(--accent) 22%,
    var(--gold) 48%,
    var(--accent-hot) 72%,
    var(--violet) 100%
  );
  box-shadow: 0 0 24px rgba(225, 29, 72, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 6, 0.88);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(42, 47, 61, 0.85);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

a.logo {
  text-decoration: none;
  color: inherit;
}
a.logo:hover {
  text-decoration: none;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.logo span {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-items: center;
}

nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}
nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  text-decoration: none;
}
nav a.is-active {
  color: #0c0a09;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 45%, #ea580c 100%);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.announce-strip-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px 0;
}
.announce-strip {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.announce-strip-label {
  flex-shrink: 0;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0a09;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  border-radius: 6px;
}
.announce-strip-text strong {
  color: var(--text);
}

.hero-backdrop {
  position: relative;
  margin-bottom: 8px;
}
.hero-backdrop-glow {
  position: absolute;
  inset: 0;
  top: -40px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(225, 29, 72, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(245, 158, 11, 0.1), transparent 55%);
  pointer-events: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 64px;
  position: relative;
  z-index: 1;
}
.hero--portal {
  padding-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 36px;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: hero-in 0.65s ease both, hero-shine 12s ease-in-out infinite;
  background: linear-gradient(105deg, #fff 0%, #fecdd3 35%, var(--gold-soft) 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--muted);
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  min-width: 120px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.hero-stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--dim);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(19, 22, 31, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #9f1239 100%);
  color: #fff;
  box-shadow: 0 10px 36px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fb7185 0%, var(--accent) 100%);
  box-shadow: 0 12px 40px var(--accent-glow);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  color: var(--text);
  text-decoration: none;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--dim);
  max-width: 560px;
}

.hero-side-card {
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(19, 22, 31, 0.95) 0%, rgba(10, 12, 18, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.hero-side-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.hero-side-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.hero-side-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.hero-side-list a {
  color: var(--text);
  font-weight: 500;
}
.hero-side-list a:hover {
  color: var(--gold-soft);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 80px;
}

.page-inner section {
  margin-bottom: 48px;
}
.page-inner section:last-of-type {
  margin-bottom: 0;
}

.page-intro {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
}
.page-intro .section-lead {
  margin: 0;
}

.section-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.section-title-portal {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.section-title-portal-kicker {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  font-size: 0.55em;
  vertical-align: middle;
  letter-spacing: 0.14em;
  color: #0c0a09;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 6px;
}

.section-lead--tight {
  margin-top: 0;
}

.home-teaser h2:not(.section-title-portal) {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.card-link h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}
.card-link h3 a {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.card-link h3 a:hover {
  color: var(--gold-soft);
  text-decoration: none;
}

.card-grid--portal .card-portal {
  position: relative;
  padding-top: 48px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card-grid--portal .card-portal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--violet));
}
.card-grid--portal .card-portal:hover {
  transform: translateY(-5px);
  border-color: var(--border-hot);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(225, 29, 72, 0.15);
}
.card-portal-icon {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.25rem;
  color: rgba(225, 29, 72, 0.45);
  font-weight: 700;
}

.page-nav-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

section {
  margin-bottom: 64px;
}

section h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.section-lead {
  margin: -8px 0 22px;
  max-width: 640px;
  color: var(--dim);
  font-size: 0.95rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  background: rgba(9, 9, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fecdd3;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.card h3,
.card h2.card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
  font-size: 0.85rem;
}

.links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.links-bar a {
  font-weight: 500;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  padding: 22px 22px 22px 20px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child {
  border-bottom: none;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #0c0a09;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}
.step h3,
.step h3.step-heading {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.screenshot-placeholder {
  margin: 0;
}
.screenshot-placeholder figcaption {
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.screenshot-frame {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(9, 10, 14, 0.6);
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-hot);
  font-weight: 700;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.download-card .download-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.download-meta {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.5;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 36px 22px 44px;
  background: linear-gradient(180deg, rgba(7, 6, 8, 0.95) 0%, #030304 100%);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 18px;
}
.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-brand-tag {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.footer-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  text-decoration: none;
}

.footer-pill--accent {
  color: #0c0a09;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}
.footer-pill--accent:hover {
  color: #0c0a09;
  filter: brightness(1.06);
  text-decoration: none;
}

.footer-copy {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--dim);
}
.footer-legal {
  margin: 0;
  font-size: 0.75rem;
  color: #52525b;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(19, 22, 31, 0.94);
  backdrop-filter: blur(8px);
  color: var(--accent-hot);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--text);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumbs-wrap {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 6, 8, 0.65);
}
.breadcrumbs-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 22px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--dim);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--border);
  font-weight: 600;
  opacity: 0.9;
}
.breadcrumbs a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--gold-soft);
  text-decoration: none;
}
.breadcrumbs li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 60;
  transform: translateX(-50%) translateY(12px);
  max-width: min(90vw, 360px);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  background: rgba(19, 22, 31, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.copy-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.copy-field-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(9, 9, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.copy-field-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.copy-field-btn {
  flex: 0 0 auto;
}

.link-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.link-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.link-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-hot);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(225, 29, 72, 0.12);
  text-decoration: none;
}
.link-tile-icon {
  color: var(--accent-hot);
  margin-bottom: 4px;
}
.link-tile-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.link-tile-desc {
  font-size: 0.85rem;
  color: var(--dim);
}

.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: rgba(19, 22, 31, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq-search-wrap {
  flex: 1 1 240px;
  min-width: 0;
}
.faq-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.input-search {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(9, 9, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.input-search::placeholder {
  color: var(--dim);
}
.input-search:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: transparent;
}

.faq .faq-item.is-filtered-out {
  display: none !important;
}

.faq-empty {
  margin: 16px 0 0;
  padding: 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.breadcrumbs-wrap + main#main {
  padding-top: 20px;
}

main#main.page-inner .section-lead a,
main#main.page-inner .step a,
main#main.page-inner .card p a:not(.btn),
main#main.page-inner .catalog-alert a,
main#main.page-inner .hero-side-list a {
  color: var(--gold-soft);
  font-weight: 500;
}
main#main.page-inner .section-lead a:hover,
main#main.page-inner .step a:hover,
main#main.page-inner .card p a:not(.btn):hover,
main#main.page-inner .catalog-alert a:hover,
main#main.page-inner .hero-side-list a:hover {
  color: #fff;
}

.catalog-alert {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.catalog-alert--error {
  background: rgba(127, 29, 29, 0.25);
  border-color: rgba(225, 29, 72, 0.45);
}
.catalog-alert--warn {
  background: rgba(113, 63, 18, 0.2);
  border-color: rgba(245, 158, 11, 0.35);
}
.catalog-alert p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}
.catalog-alert p:last-child {
  margin-bottom: 0;
}
.catalog-alert strong {
  color: var(--text);
}
.catalog-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px !important;
}

.catalog-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.catalog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--dim);
}
.catalog-meta-pill span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.catalog-meta-pill strong {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.catalog-meta-pill--muted {
  opacity: 0.85;
}

.catalog-root {
  margin-bottom: 8px;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(19, 22, 31, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.catalog-search {
  width: 100%;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-chip {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(9, 9, 12, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.catalog-chip:hover {
  color: var(--text);
  border-color: var(--dim);
}
.catalog-chip.is-active {
  color: #0c0a09;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}

.catalog-empty {
  margin: 12px 0 28px;
  padding: 18px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.catalog-category {
  margin-bottom: 40px;
}
.catalog-category-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.mod-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mod-card[id] {
  scroll-margin-top: 96px;
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hot);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(225, 29, 72, 0.12);
}
.mod-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(9, 9, 12, 0.95);
}
.mod-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mod-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.82rem;
  color: var(--dim);
}
.mod-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mod-card-badge {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hot);
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 999px;
}
.mod-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--text);
}
.mod-card-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-card-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--dim);
}
.mod-card-author {
  font-weight: 500;
  color: var(--muted);
}
.mod-card-id {
  font-size: 0.72rem;
  padding: 2px 6px;
}

.catalog-sets {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.sets-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.sets-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: linear-gradient(165deg, rgba(19, 22, 31, 0.98) 0%, rgba(12, 14, 20, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.sets-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--accent), var(--gold));
}
.sets-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.sets-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.sets-card-set-id {
  font-size: 0.72rem;
  padding: 4px 8px;
  color: var(--dim);
  background: rgba(9, 9, 12, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.sets-card-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dim);
}
.sets-mod-list {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: decimal;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.sets-mod-list-item {
  margin-bottom: 10px;
  padding-left: 4px;
}
.sets-mod-list-item:last-child {
  margin-bottom: 0;
}
.sets-mod-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 4px;
}
.sets-mod-name {
  font-weight: 600;
  color: var(--text);
}
.sets-mod-jump {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hot);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 113, 133, 0.35);
}
.sets-mod-jump:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
  text-decoration: none;
}
.sets-mod-tech-id {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.7rem;
  padding: 2px 6px;
  color: var(--dim);
  background: rgba(9, 9, 12, 0.75);
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-all;
}
.sets-mod-list-item--unknown .sets-mod-name {
  color: var(--muted);
  font-weight: 500;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 0.85rem;
}
.sets-mod-missing-hint {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-title {
    animation: none;
  }
  .back-to-top {
    transition: none;
  }
  .card-grid--portal .card-portal {
    transition: none;
  }
  .card-grid--portal .card-portal:hover {
    transform: none;
  }
  .link-tile {
    transition: none;
  }
  .link-tile:hover {
    transform: none;
  }
  .mod-card {
    transition: none;
  }
  .mod-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 5, 6, 0.98);
    border-bottom: 1px solid var(--border);
    transition: max-height 0.28s ease;
  }
  .nav-panel.is-open {
    max-height: 520px;
    overflow-y: auto;
  }
  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
  .logo {
    flex: 1;
  }
  .nav-panel ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px 20px;
    gap: 6px;
  }
  .nav-panel a {
    display: block;
    text-align: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  .nav-panel li:last-child a {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 24px;
  }
  .announce-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
