/* =====================================================================
   ForgeShaders.com — "Obsidian Smithy" design (seed FS-2611-ANVIL)
   Plain CSS, no build step. Edit the variables below; every page updates.
   ===================================================================== */

/* ---------- 1. Easy-edit settings ---------- */
:root {
  /* Colours (no blue anywhere) */
  --obsidian: #170D1C;      /* dark sections, header, footer */
  --obsidian-2: #24132D;    /* cards on dark */
  --violet: #7B2DC9;        /* crying-obsidian purple */
  --orchid: #C04BF2;        /* bright purple */
  --pink: #FF5FA8;          /* main accent */
  --ember: #FF7A3D;         /* molten orange */
  --sun: #FFC72C;           /* gold highlight */
  --paper: #FFF7F3;         /* page background */
  --blush: #FBEAF2;         /* tinted sections */
  --ink: #241330;           /* body text */
  --muted: #6E5876;         /* secondary text */
  --line: #EBD5E2;          /* borders */
  --on-dark: #F6E9F1;       /* text on dark */
  --on-dark-muted: #C9B2C4;

  /* Typography */
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --hero-h1: clamp(2.2rem, 4.6vw + .6rem, 4.1rem);   /* hero H1 size — change this one value */
  --h2: clamp(1.75rem, 2.4vw + .8rem, 2.75rem);
  --h3: 1.2rem;
  --body: 1.05rem;

  /* Shape & spacing */
  --cut: 14px;              /* chamfered corner size on cards */
  --radius: 6px;
  --container: 1200px;
  --section-pad: clamp(64px, 8vw, 112px);
  --molten: linear-gradient(100deg, var(--pink), var(--ember) 55%, var(--sun));
}

/* ---------- 2. Fonts (self-hosted) ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--body); line-height: 1.7; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h2 { font-size: var(--h2); font-weight: 800; }
h3 { font-size: var(--h3); font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: #F4E1EC; color: #5A1E83; padding: .1em .4em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--obsidian); padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- 4. Header (logo left, menu right) ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(23, 13, 28, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.seam { height: 3px; background: rgba(255, 255, 255, .06); position: relative; }
.seam::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: var(--molten); box-shadow: 0 0 12px var(--pink); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo img { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 95, 168, .35); transition: transform .4s; }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; }
.logo-text em { font-style: normal; background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 13px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--molten); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; border-radius: var(--radius); cursor: pointer; }
.bars { display: grid; gap: 5px; width: 22px; margin: auto; }
.bars i { display: block; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.bars i:nth-child(2) { width: 70%; justify-self: end; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--obsidian); border-top: 1px solid rgba(255, 255, 255, .08);
         max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s ease, visibility .4s; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6); }
  .nav.open { max-height: 80vh; visibility: visible; overflow-y: auto; }
  .nav ul { flex-direction: column; padding: 10px 20px 22px; gap: 0; }
  .nav li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav a { padding: 13px 4px; font-size: 1.05rem; }
  .nav a::after { left: 4px; right: auto; width: 40px; }
  .no-js .nav { position: static; max-height: none; visibility: visible; }
  .no-js .header-row { flex-wrap: wrap; }
  .no-js .menu-toggle { display: none; }
}

/* ---------- 5. Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 700; line-height: 1.2;
       border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background-position .6s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-txt { display: grid; text-align: left; }
.btn-txt b { font-family: var(--font-head); font-weight: 700; }
.btn-txt small { font-weight: 500; font-size: .76rem; opacity: .85; }
.btn-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(23, 13, 28, .18); }
.btn-molten { color: var(--obsidian); background: linear-gradient(100deg, var(--pink), var(--ember), var(--sun), var(--pink)); background-size: 300% 100%; box-shadow: 0 14px 30px -12px rgba(255, 95, 168, .7); }
.btn-molten:hover { color: var(--obsidian); background-position: 100% 0; transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(255, 122, 61, .75); }
.btn-molten .btn-ico svg { animation: drip 2.4s ease-in-out infinite; }
.btn-sun { color: var(--obsidian); background: var(--sun); }
.btn-sun:hover { color: var(--obsidian); background: #FFD75E; transform: translateY(-3px); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--violet); box-shadow: inset 0 0 0 2px var(--orchid); }
.btn-ghost.light, .hero .btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.btn-ghost.light:hover, .hero .btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--pink); }
.btn-lg { padding: 14px 24px 14px 14px; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-sm .btn-ico { width: 30px; height: 30px; }
@keyframes drip { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background:
  radial-gradient(60% 70% at 85% 30%, rgba(192, 75, 242, .35), transparent 70%),
  radial-gradient(50% 60% at 10% 100%, rgba(255, 122, 61, .22), transparent 70%), var(--obsidian); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 6vw, 84px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 18px; }
.eyebrow i { width: 10px; height: 10px; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 95, 168, .25); animation: beat 2s infinite; }
.hero h1 { font-size: var(--hero-h1); font-weight: 800; color: #fff; letter-spacing: -.035em; margin-bottom: .45em; }
.hero-lead { font-size: 1.12rem; color: var(--on-dark-muted); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero-cta.center { justify-content: center; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-facts li { padding: 16px 26px 0 0; margin-right: 26px; display: grid; }
.hero-facts li + li { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 26px; }
.hero-facts b { font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.hero-facts span { font-size: .85rem; color: var(--on-dark-muted); }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(.7); } }

/* Layer stack illustration */
.stack { position: relative; margin: 0; padding: 20px 0 10px; }
.stack-glow { position: absolute; inset: 15% 10%; background: radial-gradient(circle, rgba(255, 95, 168, .45), transparent 65%); filter: blur(20px); animation: glow 4s ease-in-out infinite; }
.layers { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ly { position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 20px;
      background: linear-gradient(120deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
      clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
      animation: forge-in .9s cubic-bezier(.2, .8, .2, 1) both, hover-y 6s ease-in-out infinite; }
.ly-ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; background: rgba(23, 13, 28, .6); color: var(--sun); }
.ly-ico svg { width: 26px; height: 26px; }
.ly b { font-family: var(--font-head); color: #fff; font-size: 1.08rem; }
.ly small { color: var(--on-dark-muted); font-size: .85rem; }
.ly1 { margin-right: 18%; animation-delay: .1s, 1.2s; }
.ly2 { margin: 0 12% 0 6%; animation-delay: .35s, 1.6s; }
.ly3 { margin: 0 6% 0 12%; animation-delay: .6s, 2s; }
.ly4 { margin-left: 18%; animation-delay: .85s, 2.4s; background: linear-gradient(120deg, rgba(255, 95, 168, .5), rgba(192, 75, 242, .35)); border-color: rgba(255, 95, 168, .6); }
.ly4 .ly-ico { color: var(--pink); background: var(--obsidian); }
.ly4::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%); transform: translateX(-100%); animation: sheen 3.5s 1.6s ease-in-out infinite; }
.stack figcaption { position: relative; margin-top: 16px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); text-align: right; }
@keyframes forge-in { from { opacity: 0; transform: translateY(-46px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hover-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes glow { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* Rising embers */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); background: var(--sun); box-shadow: 0 0 10px 2px var(--ember);
            animation: rise var(--t) linear var(--delay) infinite; opacity: 0; }
.embers i:nth-child(even) { background: var(--pink); box-shadow: 0 0 10px 2px var(--pink); }
@keyframes rise { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(40px, -760px) rotate(220deg); opacity: 0; } }

/* Keyword ticker */
.ticker { position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .25); }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker span { white-space: nowrap; padding: 14px 0; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--on-dark-muted); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 7. Sections ---------- */
.section { padding: var(--section-pad) 0; position: relative; }
.section.tint { background: var(--blush); }
.section.dark { background: radial-gradient(70% 60% at 100% 0, rgba(192, 75, 242, .22), transparent 70%), var(--obsidian); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: #FFB3D5; }
.s-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.s-tag { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.s-tag b { display: grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; font-family: var(--font-head); letter-spacing: 0; color: #fff; background: var(--obsidian);
           clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.dark .s-tag { color: var(--sun); }
.dark .s-tag b { background: var(--pink); color: var(--obsidian); }
.s-head h2 { position: relative; padding-bottom: 16px; }
.s-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 4px; background: var(--molten); transform: scaleX(0); transform-origin: left; transition: transform .9s .25s cubic-bezier(.2, .8, .2, 1); }
.s-head.show h2::after, .no-js .s-head h2::after { transform: scaleX(1); }
.lead { font-size: 1.1rem; color: var(--muted); }
.dark .lead { color: var(--on-dark-muted); }
.after-note { margin-top: 28px; color: var(--muted); }
.dark .after-note { color: var(--on-dark-muted); }

/* Features: sticky side + rune cards */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.split-side { position: sticky; top: 110px; }
.side-art { width: min(100%, 300px); border-radius: 26px; transform: rotate(-4deg); box-shadow: 0 30px 60px -24px rgba(123, 45, 201, .6), 0 0 0 10px #fff; }
.runes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rune { position: relative; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, border-color .35s;
        clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.rune:nth-child(3n) { grid-column: span 2; }
.rune:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 24px 40px -26px rgba(255, 95, 168, .8); }
.rune-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.rune-ico svg { width: 26px; height: 26px; }
.rune:hover .rune-ico { animation: heat .9s; }
.rune h3 { margin-bottom: .4em; }
.rune p { margin: 0; color: var(--muted); }
.rune-no { position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: #F3DCE8; }
@keyframes heat { 0%, 100% { filter: none; } 50% { filter: brightness(1.4) drop-shadow(0 0 10px var(--sun)); } }

/* Download ticket */
.ticket { display: grid; grid-template-columns: 1.3fr .9fr; background: var(--obsidian-2); border: 1px solid rgba(255, 255, 255, .1); position: relative;
          clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--molten); }
.ticket-main { padding: clamp(28px, 4vw, 46px); }
.ticket-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sun); font-size: .9rem; margin-bottom: 10px; }
.ticket-kicker svg { width: 20px; height: 20px; }
.ticket h3 { font-size: clamp(1.4rem, 2vw + .6rem, 2rem); font-weight: 800; }
.ticket-main > p { color: var(--on-dark-muted); }
.ticket-main .btn { margin: 10px 0 18px; }
.ticket-note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 0; }
.ticket-note svg { width: 20px; height: 20px; flex: none; color: var(--pink); margin-top: 3px; }
.ticket-stub { margin: 0; padding: clamp(24px, 3vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-content: center;
               border-left: 2px dashed rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .18); }
.ticket-stub div { padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ticket-stub dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-muted); }
.ticket-stub dd { margin: 0; font-weight: 700; color: #fff; overflow-wrap: anywhere; font-size: .95rem; }

.why { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why li { display: flex; gap: 10px; align-items: flex-start; padding: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); font-size: .94rem; color: var(--on-dark-muted); }
.why b { color: #fff; }
.why svg { width: 22px; height: 22px; flex: none; color: var(--sun); }
.ticks { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; background: var(--molten); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.check-ver { margin-top: 26px; padding: 22px 24px; background: var(--obsidian); color: var(--on-dark-muted); border-left: 4px solid var(--sun); }
.check-ver h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.check-ver h3 svg { width: 22px; height: 22px; color: var(--sun); }
.check-ver p { margin: 0; }

/* How to download: rail */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.rail::before, .rail::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 4px; background: var(--line); }
.rail::after { background: var(--molten); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }
.no-js .rail::after { transform: scaleX(1); }
.rail li { position: relative; z-index: 1; }
.node { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
        color: #fff; background: var(--obsidian); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--orchid); transition: background .4s, transform .4s; }
.rail li.show .node { background: var(--violet); }
.rail li:hover .node { transform: rotate(45deg); }
.rail h3 { margin-bottom: .35em; }
.rail p { color: var(--muted); margin: 0; }

/* What it does */
.what { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.pass { margin: 0; background: var(--obsidian); padding: 26px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.pass svg { width: 100%; }
.pass figcaption { margin-top: 10px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.sunb { animation: pulse-sun 3s ease-in-out infinite; transform-origin: 46px 42px; }
.beams path { stroke-dasharray: 200; animation: beam 3s ease-in-out infinite; }
.beams path:nth-child(2) { animation-delay: .5s; } .beams path:nth-child(3) { animation-delay: 1s; }
.shade-s { animation: shade 3s ease-in-out infinite; }
.blk { animation: hover-y 5s ease-in-out infinite; }
.wv { stroke-dasharray: 12 8; animation: wave 1.6s linear infinite; }
@keyframes pulse-sun { 50% { transform: scale(1.12); } }
@keyframes beam { 0% { stroke-dashoffset: 200; opacity: .2; } 50% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -200; opacity: .2; } }
@keyframes shade { 50% { opacity: .9; } }
@keyframes wave { to { stroke-dashoffset: -40; } }

/* Install: loader cards as tabs */
.lt-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.lt-list [role="tab"] { display: grid; gap: 4px; text-align: left; padding: 18px 20px; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); cursor: pointer;
                         clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: border-color .3s, background .3s, transform .3s; }
.lt-list [role="tab"] b { font-family: var(--font-head); font-size: 1.08rem; }
.lt-list [role="tab"] small { color: var(--muted); font-size: .85rem; }
.lt-list [role="tab"]:hover { border-color: var(--orchid); transform: translateY(-2px); }
.lt-list [role="tab"][aria-selected="true"] { background: var(--obsidian); border-color: var(--pink); color: #fff; }
.lt-list [role="tab"][aria-selected="true"] small { color: var(--on-dark-muted); }
.no-js .lt-list { display: none; }
.lt-panel { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 38px); margin-bottom: 14px; animation: panel-in .5s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
ol.num { list-style: none; counter-reset: n; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
ol.num li { counter-increment: n; position: relative; padding-left: 50px; min-height: 34px; }
ol.num li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--obsidian); background: var(--sun); }
.tip { display: flex; gap: 10px; padding: 14px 16px; margin: 0; background: var(--blush); border-left: 4px solid var(--pink); font-size: .95rem; }
.tip svg { width: 20px; height: 20px; flex: none; color: var(--violet); margin-top: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.grid-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .97rem; }
.grid-table th, .grid-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.grid-table thead th { font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--obsidian); }
.grid-table tbody th { font-weight: 700; }
.grid-table tbody tr { transition: background .25s; }
.grid-table tbody tr:hover { background: #FDF1F7; }
.dark .table-wrap { background: var(--obsidian-2); border-color: rgba(255, 255, 255, .1); }
.grid-table.on-dark th, .grid-table.on-dark td { border-color: rgba(255, 255, 255, .08); color: var(--on-dark); }
.grid-table.on-dark thead th { background: #2F1A3A; color: var(--sun); }
.grid-table.on-dark tbody tr:hover { background: rgba(255, 95, 168, .08); }
.mk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.mk svg { width: 14px; height: 14px; }
.mk.yes { color: #1E6B3A; background: #DDF5E4; }
.mk.part { color: #8A4B00; background: #FFF0C7; }
.mk.no { color: #A11F48; background: #FFE0EA; }
.sys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.sys > div { background: #fff; padding: 22px; border-top: 4px solid var(--orchid); }
.sys h3 { display: flex; align-items: center; gap: 10px; }
.sys h3 svg { width: 22px; height: 22px; color: var(--pink); }
.sys p { margin: 0; color: var(--muted); }

/* Pros & cons scale */
.scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.pan { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); }
.pan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.pan h3 svg { width: 30px; height: 30px; padding: 5px; color: #fff; }
.pan-pro { border-top: 5px solid #2E9B57; } .pan-pro h3 svg { background: #2E9B57; }
.pan-con { border-top: 5px solid var(--pink); } .pan-con h3 svg { background: var(--pink); }
.pan ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pivot { align-self: center; display: grid; place-items: center; width: 72px; height: 72px; font-family: var(--font-head); font-weight: 800; color: var(--sun); background: var(--obsidian); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: glow 4s ease-in-out infinite; }

/* Troubleshooting */
.fix-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.fixes { display: grid; gap: 12px; }
.fix { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--violet); transition: border-color .3s; }
.fix[open] { border-left-color: var(--pink); }
.fix summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; font-family: var(--font-head); font-weight: 700; list-style: none; }
.fix summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.fx { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: var(--violet); background: var(--blush); }
.fx svg { width: 20px; height: 20px; }
.fix[open] .fx { color: var(--obsidian); background: var(--sun); }
.fix-body { padding: 0 20px 6px 68px; color: var(--muted); }
.fix[open] .fix-body, .qa[open] .qa-body { animation: panel-in .4s ease; }

/* Editorial views */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.view { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.view::before { content: "\201C"; position: absolute; right: 14px; top: -24px; font-family: var(--font-head); font-size: 8rem; line-height: 1; color: #F6DCEA; }
.view-tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--violet); }
.view h3, .view p { position: relative; }
.view p { margin: 0; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faqs { counter-reset: q; display: grid; gap: 0; border-top: 2px solid var(--obsidian); }
.qa { counter-increment: q; border-bottom: 1px solid var(--line); }
.qa summary { position: relative; display: flex; gap: 18px; align-items: baseline; padding: 20px 54px 20px 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }
.qa summary::before { content: counter(q, decimal-leading-zero); font-size: .85rem; color: var(--pink); min-width: 26px; }
.qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
                     background: linear-gradient(var(--violet), var(--violet)) center/100% 3px no-repeat, linear-gradient(var(--violet), var(--violet)) center/3px 100% no-repeat; transition: transform .3s; }
.qa[open] summary::after { transform: rotate(135deg); }
.qa summary:hover { color: var(--violet); }
.qa-body { padding: 0 0 10px 44px; color: var(--muted); }

/* Finale */
.finale { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0; text-align: center; color: var(--on-dark);
          background: radial-gradient(50% 80% at 50% 110%, rgba(255, 122, 61, .55), transparent 70%), radial-gradient(40% 60% at 15% 0, rgba(192, 75, 242, .4), transparent 70%), var(--obsidian); }
.finale::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 140px; background: var(--molten); filter: blur(40px); opacity: .45; animation: lava 6s ease-in-out infinite alternate; }
.finale-in { position: relative; max-width: 760px; }
.finale h2 { font-size: clamp(2rem, 3.4vw + .8rem, 3.4rem); color: #fff; }
.finale p { color: var(--on-dark-muted); font-size: 1.12rem; }
.eyebrow.light { justify-content: center; }
@keyframes lava { from { transform: translateX(-4%) scaleY(.8); } to { transform: translateX(4%) scaleY(1.2); } }

/* ---------- 8. Inner pages ---------- */
.page-top { padding: clamp(46px, 6vw, 80px) 0 clamp(36px, 4vw, 54px); color: var(--on-dark); background: radial-gradient(60% 90% at 90% 0, rgba(192, 75, 242, .35), transparent 70%), var(--obsidian); }
.page-top h1 { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); font-weight: 800; color: #fff; max-width: 900px; }
.page-top p { color: var(--on-dark-muted); max-width: 760px; font-size: 1.1rem; }
.page-top .label { display: inline-block; margin-bottom: 12px; padding: 4px 12px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--obsidian); background: var(--pink); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.crumbs li { color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--pink); }
.crumbs a { color: var(--on-dark); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--on-dark-muted); }
.content { max-width: 800px; }
.content h2 { font-size: clamp(1.5rem, 1.5vw + .9rem, 2rem); margin-top: 1.6em; scroll-margin-top: 96px; }
.content h3 { margin-top: 1.3em; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 6px; }
.content .table-wrap { margin: 18px 0 24px; }
.cover { margin: 0 0 30px; }
.cover img { width: 100%; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--pink); }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.toc ol { padding-left: 18px; margin: 0 0 18px; font-size: .93rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--pink); }
.end-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 44px; padding: 28px; color: var(--on-dark); background: var(--obsidian); border-top: 4px solid var(--sun); }
.end-cta h2 { margin: 0 0 4px; font-size: 1.4rem; color: #fff; }
.end-cta p { margin: 0; color: var(--on-dark-muted); }
.related { margin-top: 70px; }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; position: relative; }
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -28px rgba(123, 45, 201, .8); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card .body { padding: 20px 22px 24px; }
.guide-card .cat { display: inline-block; margin-bottom: 8px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pink); }
.guide-card h2, .guide-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after, .guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card:hover h2 a, .guide-card:hover h3 a { color: var(--violet); }
.guide-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.cols, .map-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.map-cols { grid-template-columns: repeat(3, 1fr); }
.cols > div { padding: 20px; background: #fff; border: 1px solid var(--line); }
.cols h3 { margin-top: 0; }
.mail-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; overflow-wrap: anywhere; }
.mail-link svg { width: 26px; height: 26px; flex: none; }
.error-page { padding: clamp(70px, 10vw, 130px) 0; text-align: center; }
.error-page .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; margin: 0; background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-line code { background: var(--obsidian); color: var(--pink); padding: 6px 12px; }
.error-page .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 9. Footer ---------- */
.footer { position: relative; overflow: hidden; color: var(--on-dark-muted); background: #120A16; padding-top: clamp(56px, 7vw, 86px); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--molten); }
.footer-glow { position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 75, 242, .3), transparent 65%); pointer-events: none; }
.f-top { position: relative; display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 5vw, 70px); padding-bottom: 36px; }
.f-desc { margin: 18px 0 22px; max-width: 440px; }
.f-recipe { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-recipe li { padding: 5px 11px; font-size: .82rem; font-weight: 700; color: var(--on-dark); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.f-recipe li + li::before { content: "+"; margin-right: 7px; color: var(--pink); }
.f-recipe li.out { color: var(--obsidian); background: var(--molten); border-color: transparent; }
.f-recipe li.out::before { content: "="; color: var(--obsidian); }
.f-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f-col h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-col a { color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; transition: color .25s, padding .25s; }
.f-col a:hover { color: #fff; padding-left: 4px; }
.footer-note { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 30px; padding: 16px 18px; font-size: .92rem; color: var(--on-dark); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-left: 4px solid var(--pink); }
.footer-note svg { width: 22px; height: 22px; flex: none; color: var(--pink); }
.footer-bottom { position: relative; padding: 18px 0; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .08); background: #0C060F; text-align: center; }
.footer-bottom a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-bottom a:hover { color: var(--pink); }

/* ---------- 10. Reveal animation ("temper": blur + rise) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px) saturate(.4); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s ease; transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal.show { opacity: 1; transform: none; filter: none; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1080px) {
  .guides { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .what, .fix-grid, .f-top { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .side-art { display: none; }
  .stack { max-width: 520px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .18); }
  .rail { grid-template-columns: 1fr 1fr; }
  .rail::before, .rail::after { display: none; }
  .views, .sys { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .scale { grid-template-columns: 1fr; }
  .pivot { justify-self: center; width: 52px; height: 52px; }
}
@media (max-width: 640px) {
  :root { --body: 1rem; }
  .runes { grid-template-columns: 1fr; }
  .rune:nth-child(3n) { grid-column: auto; }
  .lt-list { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .guides, .cols, .map-cols { grid-template-columns: 1fr; }
  .f-links { grid-template-columns: 1fr 1fr; }
  .f-links .f-col:last-child { grid-column: span 2; }
  .hero-facts li { margin-right: 16px; padding-right: 16px; }
  .hero-facts li + li { padding-left: 16px; }
  .ticket-stub { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .fix-body { padding-left: 20px; }
  .qa-body { padding-left: 0; }
  .end-cta .btn { width: 100%; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 28px); }
  .logo-text { font-size: 1.1rem; }
  .hero-facts li + li { border-left: 0; padding-left: 0; }
}

/* ---------- 12. Reduced motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .embers { display: none; }
}
@media print {
  .header, .footer, .embers, .ticker, .toc { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
