/* Sixth Star Guides — styles. Single dark theme tuned for long reading. */
:root {
  --bg: #120c24;
  --bg-2: #1a1233;
  --bg-3: #241a45;
  --line: rgba(255, 255, 255, .1);
  --text: #efeaf9;
  --muted: #b4aacb;
  --pink: #ff3d7f;
  --orange: #ffb347;
  --teal: #2de2c8;
  --violet: #7b2ff7;
  --ok: #2de2a0;
  --warn: #ffc857;
  --radius: 16px;
  --wrap: 1180px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--orange)); z-index: 60; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 12, 36, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: var(--bg-3); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--pink), var(--orange)); color: #1a0d1f; box-shadow: 0 10px 30px -10px rgba(255, 61, 127, .7); }
.btn-primary:hover { color: #1a0d1f; box-shadow: 0 14px 36px -10px rgba(255, 61, 127, .9); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #170d33 0%, #3b1263 38%, #a1236b 66%, #ff7a59 86%, #ffb347 100%); }
.sun {
  position: absolute; left: 72%; bottom: 16%; width: min(520px, 80vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe29a 0%, #ff9a5a 55%, #ff3d7f 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
  mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
  opacity: .9;
  animation: sunrise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@media (max-width: 760px) { .sun { left: 60%; bottom: 22%; opacity: .55; } }
@keyframes sunrise { from { transform: translate(-50%, 18%); opacity: 0; } to { transform: translate(-50%, 0); } }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background:
  linear-gradient(180deg, rgba(11, 7, 22, 0) 0%, rgba(11, 7, 22, .9) 70%),
  repeating-linear-gradient(90deg, rgba(45, 226, 200, .25) 0 1px, transparent 1px 80px); }
.palms { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.hero-content { padding: 72px 0 120px; position: relative; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font: 400 clamp(52px, 10vw, 128px)/.92 var(--display); text-transform: uppercase; margin: 0 0 20px; letter-spacing: .01em; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.grad { background: linear-gradient(90deg, #fff 0%, #ffe29a 40%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 640px; color: #fbf6ff; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections & cards ---------- */
.section-title { font: 400 clamp(28px, 4vw, 40px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 72px 0 24px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 61, 127, .5); box-shadow: 0 20px 40px -24px rgba(255, 61, 127, .6); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; }
.card-art { aspect-ratio: 16 / 9; overflow: hidden; }
.card-art .cover { width: 100%; height: 100%; transition: transform .5s; }
.card:hover .cover { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 19px; line-height: 1.3; margin: 8px 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .25s; }
.feature:hover { color: inherit; border-color: rgba(255, 61, 127, .5); }
.feature-art .cover { width: 100%; height: 100%; }
.feature-body { padding: 36px; align-self: center; }
.feature-body h3 { font: 400 clamp(28px, 3.4vw, 42px)/1.05 var(--display); text-transform: uppercase; margin: 10px 0 14px; }
.feature-body p { color: var(--muted); margin: 0 0 18px; }
.read-more { font-weight: 800; color: var(--teal); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature-body { padding: 24px; } .feature-art { aspect-ratio: 16 / 9; } }

.cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s; }
.cat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 127, .35), transparent 70%); }
.cat:hover { color: inherit; border-color: var(--pink); transform: translateY(-3px); }
.cat-name { font: 400 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.cat-sub { color: var(--muted); font-size: 15px; }
.cat-count { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--teal); }

.promise { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-top: 80px; padding: 36px; border-radius: 22px; background: linear-gradient(120deg, rgba(123, 47, 247, .25), rgba(255, 61, 127, .15)); border: 1px solid var(--line); }
.promise h2 { font: 400 32px/1.1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.promise p { margin: 0; color: #e2daf3; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promise-list li { padding: 14px 16px; background: rgba(0, 0, 0, .25); border-radius: 12px; border-left: 3px solid var(--teal); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; padding: 24px; } }

.cat-section { scroll-margin-top: 80px; }
.cat-section .section-title { margin-bottom: 4px; }
.cat-section > .muted { margin: 0 0 22px; }

/* ---------- Article ---------- */
.article-hero { padding: 48px 0 36px; background: radial-gradient(ellipse at 80% 0%, rgba(255, 61, 127, .22), transparent 60%), radial-gradient(ellipse at 0% 100%, rgba(45, 226, 200, .12), transparent 55%); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.article-hero h1 { font: 400 clamp(34px, 5.4vw, 64px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 14px; max-width: 920px; }
.dek { font-size: clamp(17px, 2vw, 20px); color: #ddd4ee; max-width: 780px; margin: 0 0 14px; }
.byline { font-size: 14px; color: var(--muted); margin: 0; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; }
.sidebar { position: relative; }
.toc-box { position: sticky; top: 88px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.toc-title { display: block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.toc { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.toc li { margin: 8px 0; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: #fff; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; gap: 0; } .sidebar { order: -1; } .toc-box { position: static; margin-bottom: 28px; } }

.prose { min-width: 0; }
.prose h2 { font: 400 clamp(26px, 3.2vw, 34px)/1.15 var(--display); text-transform: uppercase; letter-spacing: .015em; margin: 52px 0 14px; scroll-margin-top: 84px; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 34px 0 10px; scroll-margin-top: 84px; }
.prose p, .prose li { color: #e6dff4; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: #fff; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--pink); background: var(--bg-2); border-radius: 0 12px 12px 0; color: #e6dff4; }

.quick { position: relative; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(45, 226, 200, .14), rgba(123, 47, 247, .16)); border: 1px solid rgba(45, 226, 200, .35); margin-bottom: 8px; }
.quick p { margin: 6px 0 0; color: #fff; }
.quick ul { margin: 8px 0 0; }
.quick-label { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-3); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

.tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; vertical-align: 2px; white-space: nowrap; }
.tag.ok { background: rgba(45, 226, 160, .16); color: var(--ok); border: 1px solid rgba(45, 226, 160, .4); }
.tag.warn { background: rgba(255, 200, 87, .14); color: var(--warn); border: 1px solid rgba(255, 200, 87, .4); }
.tag.no { background: rgba(255, 61, 127, .14); color: #ff8fb3; border: 1px solid rgba(255, 61, 127, .4); }

.callout { margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--orange); }
.callout p { margin: 0; }
.callout.tip { border-left-color: var(--teal); }

.faq { margin-top: 56px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; }

.note { margin-top: 40px; padding: 18px 20px; font-size: 15px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .18); color: var(--muted); }
.note strong { color: #fff; }
.related { margin-bottom: 40px; }

/* ---------- Ads ---------- */
.ad-wrap { margin: 28px 0; min-height: 120px; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sidebar .ad-wrap { position: sticky; top: 420px; }

/* ---------- Map explorer ---------- */
.map-explorer { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 28px 0; }
.map-figure { margin: 0 auto; width: 100%; max-width: 560px; background: radial-gradient(circle at 50% 50%, #1b3d5c, #0c1a2c); border-radius: 18px; border: 1px solid var(--line); padding: 10px; }
.map-figure figcaption { font-size: 13px; color: var(--muted); text-align: center; padding: 6px 0 2px; }
.region { cursor: pointer; transition: filter .2s, opacity .2s; outline: none; }
.region path { stroke: #0c1a2c; stroke-width: 3; transition: transform .2s; }
.region text { font: 400 15px var(--display); letter-spacing: .04em; fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 3px; }
.region:hover, .region:focus-visible { filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 255, 255, .45)); }
.map-explorer.has-active .region:not(.active) { opacity: .5; }
.region.active { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, .6)); }
.region-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.region-card { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--pink)); transition: border-color .2s, background .2s, transform .2s; scroll-margin-top: 90px; }
.region-card h3 { margin: 0 0 4px !important; font-size: 19px; }
.region-card p { margin: 0; font-size: 15.5px; }
.region-card.active { background: var(--bg-3); transform: translateX(4px); border-color: var(--c); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: #0d0920; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-grid p { font-size: 15px; max-width: 420px; }
.footer-h { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 4px 0 10px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.notfound { padding: 96px 0 40px; text-align: center; }
.notfound h1 { font: 400 clamp(64px, 14vw, 160px)/1 var(--display); text-transform: uppercase; margin: 0; background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll — content stays visible if JS fails */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
