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

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

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

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

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

@font-face {
  font-family: "Press Start 2P";
  src: url("../assets/fonts/press-start-2p-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #090209;
  --bg-soft: #150512;
  --panel: rgba(31, 10, 24, 0.82);
  --panel-strong: rgba(55, 15, 37, 0.92);
  --line: rgba(255, 204, 228, 0.16);
  --text: #fff8fc;
  --muted: #efd4df;
  --accent: #ff6da9;
  --accent-2: #ff9ec8;
  --accent-3: #ffe3ef;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --site-width: min(1200px, calc(100vw - 32px));
  --reading-width: 760px;
  --font-body: "Outfit", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-pixel: "Press Start 2P", "Courier New", "Lucida Console", Monaco, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 136, 188, 0.18), transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(255, 209, 232, 0.16), transparent 18%),
    radial-gradient(circle at 50% 120%, rgba(99, 28, 61, 0.35), transparent 34%),
    linear-gradient(180deg, #15050f 0%, #090209 55%, #040104 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
}

body::after {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 235, 244, 0.08), transparent 10px),
    radial-gradient(circle at 76% 25%, rgba(255, 145, 198, 0.08), transparent 12px),
    radial-gradient(circle at 66% 78%, rgba(255, 222, 238, 0.06), transparent 8px);
  background-size: 260px 260px;
  opacity: 0.8;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

.page-shell {
  width: var(--site-width);
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site-header,
.site-footer,
.glass-card,
.hero-banner,
.hero-panel,
.article-card,
.cluster-card,
.path-card,
.faq-item,
.summary-card,
.toc-card,
.article-block,
.related-card,
.cta-band {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(17, 5, 15, 0.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  image-rendering: pixelated;
  box-shadow: 0 14px 28px rgba(255, 109, 169, 0.22);
}

.brand-kicker,
.brand strong {
  display: block;
}

.brand-kicker {
  margin-bottom: 4px;
  color: var(--accent-3);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand strong {
  font-family: var(--font-pixel);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  line-height: 1.5;
}

.site-nav,
.footer-links,
.hero-actions,
.pillars,
.path-links,
.cluster-links,
.meta-strip,
.related-links,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav {
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 214, 236, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.language-link:hover {
  color: var(--accent-3);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.language-link.is-active {
  color: #250713;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 10px 24px rgba(255, 110, 169, 0.28);
}

.site-nav a,
.footer-links a,
.cluster-links a,
.related-links a,
.inline-link {
  color: var(--accent-3);
  font-weight: 700;
}

.site-nav a:hover,
.footer-links a:hover,
.cluster-links a:hover,
.related-links a:hover,
.inline-link:hover {
  color: var(--accent-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: center;
  padding: 78px 0 22px;
}

.hero-hub {
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.82fr);
  gap: 28px;
}

.hero-compact {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.62fr);
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-3);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
  max-width: 11ch;
}

.hero-compact h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  max-width: 12ch;
}

.hero-copy p,
.hero-copy li,
.hero-panel p,
.section-heading p,
.article-card p,
.cluster-card p,
.path-card p,
.summary-card p,
.toc-card p,
.article-block p,
.faq-item p,
.cta-band p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-intro {
  max-width: 64ch;
  margin-top: 22px;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #ff6da9, #ff9cc8 55%, #ffe3ef);
  color: #2a0816;
  box-shadow: 0 16px 38px rgba(255, 109, 169, 0.34);
}

.button-secondary {
  border-color: rgba(255, 225, 238, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.pillars {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pillars li,
.meta-chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 225, 238, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-3);
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-banner {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-xl);
}

.hero-banner img {
  width: 100%;
  min-height: 0;
  height: auto;
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 148, 196, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(38, 10, 24, 0.94), rgba(19, 6, 15, 0.96));
}

.hero-banner-full img {
  min-height: 0;
}

.hero-banner-full {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero-copy {
  max-width: 820px;
}

.hero-hub .hero-banner,
.hero-compact .hero-banner {
  padding: 16px;
}

.hero-hub .hero-banner img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 430px;
  object-fit: contain;
  border-radius: 22px;
}

.hero-compact .hero-banner img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 360px;
  object-fit: contain;
  border-radius: 22px;
}

.hero-hub .hero-panel {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 520px;
  margin: 18px auto 0;
}

.hero-compact .hero-panel {
  display: none;
}

.hero-panel {
  position: absolute;
  right: -8px;
  bottom: -28px;
  width: min(90%, 360px);
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(45, 13, 28, 0.94), rgba(19, 6, 15, 0.92));
}

.hero-panel strong,
.summary-card strong,
.toc-card strong,
.article-block h2,
.article-card h3,
.cluster-card h3,
.path-card h3,
.cta-band h2 {
  color: var(--text);
}

.section {
  padding-top: 88px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.9rem);
  max-width: 14ch;
}

.feature-grid,
.cluster-grid,
.path-grid,
.faq-grid,
.related-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.article-card,
.cluster-card,
.path-card,
.faq-item,
.summary-card,
.toc-card,
.article-block,
.related-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.article-card {
  background: linear-gradient(180deg, rgba(43, 12, 30, 0.9), rgba(21, 7, 18, 0.86));
}

.article-card p,
.cluster-card p,
.path-card p,
.summary-card p,
.faq-item p,
.related-card p {
  margin: 14px 0 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 225, 238, 0.14);
  border-radius: 999px;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cluster-links,
.path-links,
.related-links {
  margin-top: 18px;
}

.cluster-links a,
.path-links a,
.related-links a {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 20px;
}

.meta-strip {
  margin-top: 26px;
}

.summary-card strong,
.toc-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-3);
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.toc-card ul,
.article-block ul,
.article-block ol {
  margin: 0;
  padding-left: 20px;
}

.toc-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.toc-card li a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-3);
  font-weight: 700;
}

.toc-card li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.article-main {
  display: grid;
  gap: 22px;
}

.article-block {
  background: linear-gradient(180deg, rgba(42, 13, 28, 0.9), rgba(19, 7, 16, 0.88));
}

.article-block h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.article-block h3 {
  margin-top: 26px;
  font-size: 1.25rem;
}

.article-block p + p,
.article-block ul,
.article-block ol,
.article-block h3 {
  margin-top: 16px;
}

.article-block li + li {
  margin-top: 10px;
}

.note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 225, 238, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.infographic-card {
  margin-top: 22px;
  padding: 12px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 225, 238, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 236, 245, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.infographic-card img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
}

.related-card {
  background: linear-gradient(145deg, rgba(255, 109, 169, 0.12), rgba(255, 255, 255, 0.03));
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 109, 169, 0.16), rgba(255, 255, 255, 0.03));
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
}

.faq-item p {
  margin-top: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--accent-3);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 227, 239, 0.55);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 92px;
  padding: 22px 24px;
  border-radius: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.content-shell {
  max-width: var(--reading-width);
}

@media (max-width: 1080px) {
  .hero,
  .hero-hub,
  .hero-compact,
  .feature-grid,
  .cluster-grid,
  .path-grid,
  .faq-grid,
  .related-grid,
  .article-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-hub,
  .hero-compact {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-panel,
  .article-sidebar {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1200px);
    padding-top: 12px;
  }

  .site-header,
  .site-footer,
  .brand {
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .hero h1,
  .hero-compact h1,
  .section-heading h2 {
    max-width: none;
  }

  .button,
  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .article-card,
  .cluster-card,
  .path-card,
  .faq-item,
  .summary-card,
  .toc-card,
  .article-block,
  .related-card,
  .cta-band,
  .site-footer {
    padding: 20px;
  }

  .section {
    padding-top: 72px;
  }

  .hero-banner img {
    min-height: 0;
  }

  .hero-banner-full img {
    min-height: 0;
  }

  .hero-hub .hero-banner img,
  .hero-compact .hero-banner img {
    max-height: none;
  }
}
