:root {
  color-scheme: dark;
  --bg: #100e12;
  --panel: #18151c;
  --ink: #f9f2f5;
  --muted: #c8bac4;
  --accent: #ffc5cf;
  --line: #41323f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-padding-top: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #e6c3ff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { letter-spacing: -.061em; }
h2 { font-size: clamp(1.68rem, 3vw, 2.3rem); letter-spacing: -.04em; }
h3 { letter-spacing: -.027em; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 10; transform: translateY(-155%); padding: .65rem 1rem; background: #271e35; border-radius: 8px; }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; background: #100e12f8; border-bottom: 1px solid #342933; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 1.25rem; font-weight: 790; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #a56479; border-radius: 11px; background: #442233; color: #ffd2d9; }
.brand-sub { margin-left: .38em; font-size: .75em; font-weight: 560; letter-spacing: -.026em; color: #e1bccb; }
.desktop-nav { display: flex; gap: clamp(6px, 1.04vw, 17px); align-items: center; }
.desktop-nav a, .menu nav > a:not(.button) { color: var(--muted); padding: 9px 10px; font-size: .9rem; border-radius: 9px; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .menu nav a[aria-current] { background: #28222e; color: #f6edff; }
.menu { display: none; }

.button { min-height: 46px; padding: 10px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; font-size: .91rem; font-weight: 730; text-align: center; text-decoration: none; border: 1px solid transparent; transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button.primary { background: linear-gradient(115deg, #ffd2bf, #ff9cb0 85%); color: #29121d; box-shadow: 0 5px 28px #ff7e9d38; }
.button.secondary { background: #211722e8; border-color: #77546a; color: #fff1f5; }
.header-action .button { min-height: 40px; padding-inline: 14px; }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 24px #ff9db446; }
.button.secondary:hover { border-color: #e2a0b9; background: #392535; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 25px; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; min-height: 440px; margin-top: 24px; border: 1px solid #5b3948; border-radius: 25px; background: #1c131c; }
.hero-art, .hero-art img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center 42%; }
.hero::after { content: ""; background: linear-gradient(90deg, #18111b 2%, #18111beb 24%, #18111ba0 43%, #18111b18 73%), linear-gradient(0deg, #160d1570, transparent 44%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 590px; padding: clamp(28px, 3.3vw, 45px) clamp(27px, 4.8vw, 60px); padding-right: 18px; }
.kicker { display: flex; align-items: center; gap: 9px; color: #ffd1d6; font-size: .78rem; font-weight: 700; letter-spacing: .135em; text-transform: uppercase; margin-bottom: 15px; }
.kicker-line { width: 19px; height: 2px; border-radius: 999px; background: #ff9cb0; box-shadow: 0 0 13px #ff8ca79c; }
.hero h1 { max-width: 535px; font-size: clamp(3.25rem, 5.65vw, 5.15rem); line-height: .96; text-wrap: initial; }
.hero h1 span { display: block; color: #ffc0c9; }
.hero-lead { max-width: 465px; margin-top: 18px; color: #ede0e7; font-size: clamp(1rem, 1.5vw, 1.14rem); }

.feature-section { margin: 36px 0 29px; }
.feature-section h2 { margin-bottom: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 19px; text-decoration: none; transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease; }
.feature:hover, .feature:focus-visible { transform: translateY(-4px); border-color: #a97791; box-shadow: 0 13px 34px #150911; }
.feature-art { position: relative; overflow: hidden; height: clamp(155px, 22vw, 280px); background: #2c1a29; }
.feature-art img, .guide-art img { width: 100%; height: 100%; object-fit: cover; }
.feature-art img { transition: transform .55s ease; }
.feature:hover img { transform: scale(1.055); }
.feature-art::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, #16131d9e); }
.feature-copy { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.feature-copy h3 { font-size: 1.12rem; line-height: 1.18; }
.tile-icon { display: inline-grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; background: #382337; color: #ffc5d5; border: 1px solid #77516d; border-radius: 10px; }
.tile-icon svg { width: 21px; height: 21px; }

.topic-panel { padding: clamp(18px, 3vw, 31px); background: radial-gradient(ellipse at 0 0, #322130, transparent 70%), #1a151e; border: 1px solid var(--line); border-radius: 18px; }
.topic-panel ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 15px 0 0; }
.topic-panel a { display: block; padding: 6px 11px; color: var(--ink); background: #281c28; border: 1px solid #624859; border-radius: 999px; font-size: .9rem; text-decoration: none; }
.topic-panel a:hover { background: #432735; border-color: #bd768d; }

.breadcrumbs { margin: 24px 0 13px; font-size: .88rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: #9b88ac; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.guide-hero { --guide: #c69afb; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: clamp(22px, 5vw, 66px); align-items: center; border-radius: 24px; padding: clamp(25px, 4.4vw, 56px); background: radial-gradient(ellipse at 92% -8%, #3a2450, transparent 56%), linear-gradient(130deg, #21172b, #16141a 70%); border: 1px solid #493857; }
.theme-image, .theme-spark { --guide: #bdc5ff; background: radial-gradient(ellipse at 92% -8%, #322951, transparent 61%), linear-gradient(135deg, #1d192e, #15151c 70%); }
.theme-shield, .theme-account { --guide: #c6d7ff; background: radial-gradient(ellipse at 96% 0%, #252d45, transparent 55%), linear-gradient(135deg, #1b2030, #15151c 72%); }
.theme-layers { --guide: #ffbfde; background: radial-gradient(ellipse at 96% 0%, #402236, transparent 60%), linear-gradient(135deg, #241a2d, #18151c 72%); }
.guide-copy .kicker { color: var(--guide); }
.guide-copy h1 { font-size: clamp(2.4rem, 4.8vw, 4.45rem); line-height: 1.02; }
.guide-copy .scope { color: var(--muted); font-size: .91rem; margin-top: 12px; }
.guide-side { isolation: isolate; position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.guide-art { height: 150px; border-radius: 16px 16px 0 0; overflow: hidden; border: 1px solid #554460; border-bottom: 0; }
.guide-art + .process { border-radius: 0 0 16px 16px; }
.process { background: #17131ee8; padding: 22px; border: 1px solid #5a4868; border-radius: 16px; }
.process .tile-icon { width: 35px; height: 35px; color: var(--guide); }
.process h2 { font-size: 1.22rem; margin-top: 10px; }
.process ol { position: relative; list-style: none; counter-reset: step; padding: 0; margin: 15px 0 0; display: grid; gap: 10px; }
.process ol::before { content: ""; position: absolute; left: 11px; top: 11px; bottom: 13px; width: 1px; background: #8b659d; }
.process li { counter-increment: step; display: flex; align-items: baseline; gap: 9px; color: #e0d5e9; font-size: .9rem; }
.process li::before { content: counter(step); position: relative; display: inline-grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%; background: #37274a; border: 1px solid #725689; color: var(--guide); font-size: .75rem; font-weight: 750; }

.reading { display: grid; grid-template-columns: minmax(185px, 245px) minmax(0, 780px); gap: clamp(25px, 4.5vw, 64px); justify-content: center; align-items: start; margin: clamp(36px, 5vw, 64px) 0; }
.reading aside { position: sticky; top: 92px; }
.toc { background: #18161c; border: 1px solid #3b3143; border-radius: 14px; padding: 13px 13px 15px; max-height: calc(100vh - 118px); overflow: auto; }
.toc summary { cursor: pointer; font-size: .94rem; font-weight: 730; padding: 3px 5px; }
.toc ul { list-style: none; padding: 0; margin: 7px 0 0; }
.toc a { display: block; color: var(--muted); font-size: .85rem; line-height: 1.32; padding: 7px 6px; border-radius: 6px; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--ink); background: #2d2336; }
.article { font-size: 1.045rem; line-height: 1.72; color: #dfd8e4; overflow-wrap: break-word; }
.article h2, .article h3 { color: var(--ink); text-wrap: pretty; }
.article h2 { border-bottom: 1px solid #3a3042; padding-bottom: 13px; margin: 5px 0 15px; font-size: clamp(1.52rem, 3vw, 2.02rem); }
.article h3 { margin-top: 23px; margin-bottom: 8px; font-size: 1.23rem; }
.article p { margin-bottom: 13px; }
.article > p:first-of-type { color: var(--ink); font-size: 1.13rem; }
.article a { text-underline-offset: .2em; }
.article a:hover { color: #ffe4fa; }
.article ol, .article ul { padding-left: 1.4rem; margin-top: 9px; margin-bottom: 16px; }
.article li { padding-left: 3px; margin-bottom: 5px; }
.article li::marker { color: #d6aef6; }
.body-section { margin-top: clamp(31px, 4.6vw, 52px); }
.table-scroll { margin: 19px 0 25px; overflow-x: auto; border: 1px solid #473a53; border-radius: 12px; background: #18161d; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.5; min-width: 470px; }
caption { text-align: left; padding: 12px 14px; color: var(--ink); font-weight: 730; background: #261e30; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid #3d3245; }
th { color: #f3e9ff; background: #251d30; }
tr:nth-child(even) td { background: #1d1922; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid #45384f; border-radius: 11px; background: #1b1720; }
.faq details[open] { border-color: #73528d; }
.faq summary { position: relative; cursor: pointer; list-style: none; color: #f3e8fa; padding: 12px 42px 12px 14px; font-weight: 660; }
.faq summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 15px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); background: linear-gradient(var(--accent), var(--accent)) center / 12px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1px 12px no-repeat; }
.faq details[open] summary::after { background-size: 12px 1px, 0 0; }
.faq details p { padding: 0 14px; margin: 0 0 14px; }

.site-footer { border-top: 1px solid #3c2b39; background: #18131a; }
.footer-grid { display: grid; grid-template-columns: minmax(160px, .81fr) 2.19fr; gap: 34px; padding: 35px 0 28px; }
.footer-about p { color: var(--muted); max-width: 270px; margin-top: 10px; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.footer-nav h2 { font-size: .95rem; letter-spacing: 0; line-height: 1.3; margin: 0 0 9px; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 5px; }
.footer-nav a, .footer-base { color: var(--muted); font-size: .88rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #3a3241; padding: 14px 0 18px; }
.error-page { min-height: 85vh; display: grid; justify-items: start; align-content: center; gap: 15px; }
.error-page h1 { font-size: clamp(2.7rem, 8vw, 5rem); }

@media (max-width: 990px) {
  .wrap { width: min(100% - 40px, 1220px); }
  .desktop-nav, .header-action { display: none; }
  .menu { display: block; }
  .menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #5c4769; border-radius: 10px; color: var(--ink); font-size: .9rem; }
  .menu summary svg { width: 19px; height: 19px; }
  .menu nav { display: grid; gap: 4px; position: absolute; z-index: 2; top: calc(100% + 7px); right: 0; width: min(350px, 100%); padding: 10px; background: #221a29; border: 1px solid #6f5287; border-radius: 13px; box-shadow: 0 10px 32px #0d0911b3; }
  .menu nav .button { margin-top: 5px; }
  .hero { min-height: 425px; }
  .hero h1 { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr; gap: 21px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 60px; }
  .reading { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reading aside { position: static; }
  .toc { max-height: none; }
  .toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hero { grid-template-columns: minmax(0, 1fr); }
  .guide-side { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { scroll-padding-top: 73px; }
  .wrap { width: calc(100% - 30px); }
  .hero { margin-top: 14px; min-height: 0; display: flex; flex-direction: column; align-items: stretch; border-radius: 19px; }
  .hero-art { position: relative; height: auto; aspect-ratio: 1.66; }
  .hero-art img { object-position: 50% 46%; }
  .hero::after { content: none; }
  .hero-art::after { content: ''; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(0deg, #1c131c 2%, #1c131ca8 42%, transparent); }
  .hero-copy { margin-top: -33px; padding: 0 20px 23px; }
  .hero h1 { font-size: clamp(2.48rem, 9.55vw, 3.65rem); }
  .hero-lead { margin-top: 12px; }
  .actions { margin-top: 18px; }
  .button { min-height: 44px; padding-inline: 12px; font-size: .85rem; }
  .feature-section { margin-top: 27px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .feature { border-radius: 14px; }
  .feature-art { height: clamp(139px, 48vw, 260px); }
  .feature-copy { padding: 11px 9px; gap: 7px; }
  .feature-copy .tile-icon { width: 28px; height: 28px; border-radius: 8px; }
  .feature-copy .tile-icon svg { width: 16px; height: 16px; }
  .feature-copy h3 { font-size: .99rem; }
  .toc ul { grid-template-columns: minmax(0, 1fr); }
  .guide-hero { border-radius: 17px; padding: 20px; }
  .guide-copy h1 { font-size: clamp(2.2rem, 8.9vw, 3.25rem); }
  .process { padding: 16px; }
  .article { font-size: 1rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .feature:hover, .feature:hover img { transform: none; }
}
