/* ============================================================
   OBX — Obsidian eXtended · Homepage mockup
   Theme: obsidian — deep black-violet glass with purple crystal accents
   ============================================================ */

:root {
  --obsidian-0: #07040c;
  --obsidian-1: #0b0710;
  --obsidian-2: #120b1d;
  --obsidian-3: #1a1029;
  --line:       #2a1c40;
  --line-soft:  rgba(160,120,255,.12);

  --violet:     #b478ff;
  --violet-2:   #8b5cf6;
  --violet-3:   #6d28d9;
  --magenta:    #c084fc;
  --crystal:    #d8b4fe;
  --green:      #5ee0a0;

  --text:       #ece7f5;
  --text-dim:   #a99fc0;
  --text-faint: #6f6589;

  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1140px;

  --grad-violet: linear-gradient(135deg, #c79bff 0%, #8b5cf6 45%, #6d28d9 100%);
  --shadow:      0 24px 60px -20px rgba(0,0,0,.7);
  --glow:        0 0 0 1px var(--line-soft), 0 18px 50px -16px rgba(123,58,237,.45);
  color-scheme: dark;
}

/* ═════════════ Light theme ═════════════
   Soft lavender-white glass with the same purple crystal accents. Activated
   by data-theme="light" on <html> (set by the toggle + the head pre-paint
   script). Overrides the palette variables, then the handful of selectors
   that bake in dark colours directly. */
:root[data-theme="light"] {
  --obsidian-0: #e6def4;
  --obsidian-1: #f4f0fb;
  --obsidian-2: #ffffff;
  --obsidian-3: #f7f2ff;
  --line:       #ddd2f0;
  --line-soft:  rgba(109,40,217,.14);

  --violet:     #7c3aed;
  --violet-2:   #8b5cf6;
  --violet-3:   #6d28d9;
  --magenta:    #9333ea;
  --crystal:    #6d28d9;
  --green:      #15a05a;

  --text:       #1c1330;
  --text-dim:   #4b4163;
  --text-faint: #7b7194;

  --grad-violet: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #6d28d9 100%);
  --shadow:      0 24px 60px -22px rgba(76,29,149,.28);
  --glow:        0 0 0 1px var(--line-soft), 0 18px 50px -18px rgba(124,58,237,.20);
  color-scheme: light;
}

:root[data-theme="light"] body { background: var(--obsidian-1); }
:root[data-theme="light"] .bg-layer {
  background: radial-gradient(120% 80% at 50% -10%, #efe7fb 0%, var(--obsidian-1) 45%, var(--obsidian-0) 100%);
}
:root[data-theme="light"] .bg-glow { opacity: .3; }
:root[data-theme="light"] .bg-glow--1 { background: radial-gradient(circle, #c4b5fd, transparent 70%); }
:root[data-theme="light"] .bg-glow--2 { background: radial-gradient(circle, #ddd6fe, transparent 70%); }
:root[data-theme="light"] .bg-noise { opacity: .025; }

:root[data-theme="light"] .nav.is-stuck { background: rgba(244,240,251,.82); }
:root[data-theme="light"] .nav__mobile { background: rgba(244,240,251,.97); }

:root[data-theme="light"] .btn--ghost { background: rgba(124,58,237,.04); }
:root[data-theme="light"] .btn--ghost:hover { color: var(--violet-3); background: rgba(124,58,237,.1); }

:root[data-theme="light"] code { background: rgba(124,58,237,.1); }

:root[data-theme="light"] .hero__badges li { background: rgba(124,58,237,.05); }
:root[data-theme="light"] .hero__badges--hl { color: var(--violet-3) !important;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(109,40,217,.12)) !important; }

:root[data-theme="light"] .panel__bar { background: rgba(124,58,237,.05); }
:root[data-theme="light"] .stats { background: rgba(124,58,237,.035); }
:root[data-theme="light"] .section--alt { background: rgba(124,58,237,.04); }

:root[data-theme="light"] .card { background: linear-gradient(180deg, #ffffff, #f7f2ff); }
:root[data-theme="light"] .matrix { background: rgba(124,58,237,.035); }
:root[data-theme="light"] .ench-book { background: linear-gradient(160deg, #f1e9ff, #ffffff); }
:root[data-theme="light"] .ench-list li { background: rgba(124,58,237,.05); }
:root[data-theme="light"] .step { background: linear-gradient(180deg, #ffffff, #f7f2ff); }
:root[data-theme="light"] .footer { background: rgba(124,58,237,.04); }

/* ═════════════ Colour-blind-safe theme ═════════════
   A dark, high-contrast base with an Okabe-Ito-derived accent set — blue
   primary, orange secondary, teal success — chosen so the brand accents,
   status colours and console dots stay distinguishable across protanopia,
   deuteranopia and tritanopia (the purple/green originals do not). Activated
   by data-theme="cb". Surfaces reuse the dark base; only hues are swapped. */
:root[data-theme="cb"] {
  --obsidian-0: #050609;
  --obsidian-1: #0a0c11;
  --obsidian-2: #14171f;
  --obsidian-3: #1b1f2b;
  --line:       #343b4f;
  --line-soft:  rgba(120,180,240,.16);

  --violet:     #56b4e9;
  --violet-2:   #2e9bd6;
  --violet-3:   #0072b2;
  --magenta:    #e69f00;
  --crystal:    #93d5ff;
  --green:      #00c08a;

  --text:       #f3f5fc;
  --text-dim:   #c3c8db;
  --text-faint: #8b91a8;

  --grad-violet: linear-gradient(135deg, #7cc7f2 0%, #2e9bd6 45%, #0072b2 100%);
  --shadow:      0 24px 60px -20px rgba(0,0,0,.8);
  --glow:        0 0 0 1px var(--line-soft), 0 18px 50px -16px rgba(0,114,178,.45);
  color-scheme: dark;
}

:root[data-theme="cb"] .bg-layer {
  background: radial-gradient(120% 80% at 50% -10%, #0e1a2b 0%, var(--obsidian-1) 45%, var(--obsidian-0) 100%);
}
:root[data-theme="cb"] .bg-glow--1 { background: radial-gradient(circle, #0072b2, transparent 70%); }
:root[data-theme="cb"] .bg-glow--2 { background: radial-gradient(circle, #1f5f8b, transparent 70%); }

:root[data-theme="cb"] .nav.is-stuck { background: rgba(10,12,17,.78); }
:root[data-theme="cb"] .nav__mobile { background: rgba(10,12,17,.96); }

:root[data-theme="cb"] code { background: rgba(86,180,233,.12); }
:root[data-theme="cb"] .eyebrow { background: rgba(86,180,233,.1); }
:root[data-theme="cb"] .btn--ghost:hover { background: rgba(86,180,233,.1); }

:root[data-theme="cb"] .hero__badges--hl { color: #fff !important;
  background: linear-gradient(135deg, rgba(86,180,233,.22), rgba(0,114,178,.22)) !important;
  border-color: var(--violet) !important; }

:root[data-theme="cb"] .matrix__row--head { background: rgba(86,180,233,.08); }
:root[data-theme="cb"] .matrix__row b.ok { background: rgba(0,192,138,.16); border-color: rgba(0,192,138,.32); }

:root[data-theme="cb"] .ench-book__glow {
  background: radial-gradient(circle at 30% 20%, rgba(86,180,233,.25), transparent 60%); }
:root[data-theme="cb"] .finalcta::before {
  background: radial-gradient(120% 140% at 50% 0%, rgba(0,114,178,.22), transparent 60%); }

/* Console "traffic light" dots: swap the red/amber/green (red↔green clash)
   for an Okabe-Ito trio distinct in both hue and luminance. */
:root[data-theme="cb"] .dot:nth-child(1) { background: #d55e00; }
:root[data-theme="cb"] .dot:nth-child(2) { background: #f0e442; }
:root[data-theme="cb"] .dot:nth-child(3) { background: #56b4e9; }

/* Smooth cross-fade when switching themes (surfaces without their own
   transitions; elements with hover transitions are extended in place). */
body, .bg-layer, .bg-glow, .panel, .panel__bar, .matrix, .ench-book,
.stats, .section--alt, .footer, code {
  transition: background .45s ease, background-color .45s ease,
              color .4s ease, border-color .45s ease, box-shadow .45s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--obsidian-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand__text {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
}

/* ───────────── Custom OBX purple scrollbar ───────────── */
/* Firefox */
html {
  scrollbar-width: auto;
  scrollbar-color: var(--violet-3) var(--obsidian-1);
}
/* WebKit / Blink (Chrome, Edge, Safari) */
*::-webkit-scrollbar { width: 18px; height: 18px; }
*::-webkit-scrollbar-track {
  background: var(--obsidian-0);
  border-left: 1px solid var(--line);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c79bff 0%, #8b5cf6 50%, #6d28d9 100%);
  border: 3px solid var(--obsidian-0);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d8b4fe 0%, #b478ff 50%, #8b5cf6 100%);
}
*::-webkit-scrollbar-corner { background: var(--obsidian-0); }

/* ───────────── Content-protection deterrents (CSS layer) ─────────────
   Disable text/element selection, image dragging and the iOS long-press
   "save image" callout. Editable fields stay usable. Deterrent only —
   see protect.js header for the honest limitations. */
html {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img, svg, canvas, a, .card, .panel, .panel__body, .matrix, .step, .ench-book {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* (custom cursor rules live at the END of this file so they win the
   cascade over the .btn / .nav__burger `cursor: pointer` declarations) */

a { color: inherit; text-decoration: none; }
code, .panel__body {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
code {
  background: rgba(160,120,255,.1);
  color: var(--crystal);
  padding: .08em .42em;
  border-radius: 6px;
  font-size: .85em;
}

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

/* ───────────── Animated obsidian backdrop ───────────── */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #1a0f2e 0%, var(--obsidian-1) 45%, var(--obsidian-0) 100%); }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 80%);
  opacity: .5;
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow--1 { width: 620px; height: 620px; top: -180px; left: -120px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation: float1 18s ease-in-out infinite; }
.bg-glow--2 { width: 520px; height: 520px; top: 30%; right: -140px;
  background: radial-gradient(circle, #4c1d95, transparent 70%);
  animation: float2 22s ease-in-out infinite; }
.bg-noise { position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@keyframes float1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-70px, -50px) scale(1.15); } }

/* ───────────── Nav ───────────── */
.nav { position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent; }
.nav.is-stuck {
  background: rgba(11,7,16,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand__mark { display: grid; place-items: center;
  filter: drop-shadow(0 4px 14px rgba(124,58,237,.55)); }
.brand__text { font-weight: 800; font-size: 1.3rem; display: flex; flex-direction: column; line-height: 1; }
.brand__text small { font-weight: 500; font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-faint); margin-top: 4px; font-family: "Inter"; }

.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .94rem; font-weight: 500; }
.nav__links a { color: var(--text-dim); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background: var(--grad-violet); transition: width .25s; border-radius: 2px; }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; gap: .6rem; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display:block; width:24px; height:2px; background: var(--text); margin:5px 0; border-radius:2px; transition: .3s; }
.nav.is-open .nav__burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2){ opacity:0; }
.nav.is-open .nav__burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: .2rem; padding: 0 4vw;
  background: rgba(11,7,16,.96); border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); }
.nav__mobile .btn { margin: 1rem 0; }

/* ───────────── Buttons ───────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 600; font-family: "Sora"; border-radius: 999px; cursor: pointer;
  padding: .72rem 1.5rem; font-size: .95rem; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn__icon { font-size: .8em; }

.btn--primary { background: var(--grad-violet); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124,58,237,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(124,58,237,.85); }

.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--violet); color: #fff; background: rgba(160,120,255,.08); transform: translateY(-2px); }

/* ───────────── Hero ───────────── */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 3rem; width: min(var(--maxw), 92vw); margin-inline: auto;
  padding: clamp(3rem, 9vh, 7rem) 0 5rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--crystal);
  background: rgba(160,120,255,.08); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; }

.hero__title { margin: 1.2rem 0 .4rem; }
.hero__title-lead { display: block; font-size: clamp(3.4rem, 9vw, 6.4rem); font-weight: 800;
  background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(124,58,237,.4)); }
.hero__title-sub { display: block; font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 600;
  color: var(--text-dim); letter-spacing: .04em; }

.hero__tag { font-family: "Sora"; font-weight: 700; font-size: 1.15rem; color: var(--crystal);
  margin: .3rem 0 1rem; font-style: italic; }
.hero__lede { color: var(--text-dim); font-size: 1.07rem; max-width: 34rem; margin: 0 0 1.8rem; }

.hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem;
  padding: 0; margin: 2.2rem 0 0; }
.hero__badges li { font-size: .8rem; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 8px; padding: .35rem .8rem;
  background: rgba(255,255,255,.02); }
.hero__badges--hl { color: #fff !important;
  background: linear-gradient(135deg, rgba(160,120,255,.18), rgba(109,40,217,.18)) !important;
  border-color: var(--violet) !important; }

/* Console panel */
.hero__panel { perspective: 1400px; }
.panel { background: linear-gradient(180deg, var(--obsidian-3), var(--obsidian-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
  transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d;
  animation: panelFloat 7s ease-in-out infinite; }
@keyframes panelFloat { 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px); } }
.panel__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem;
  background: rgba(0,0,0,.3); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #3a2a55; }
.dot:nth-child(1){ background:#ff5f57; } .dot:nth-child(2){ background:#febc2e; } .dot:nth-child(3){ background:#28c840; }
.panel__title { margin-left: auto; font-size: .76rem; color: var(--text-faint); letter-spacing: .08em; }
.panel__body { margin: 0; padding: 1.2rem 1.3rem; font-size: .82rem; line-height: 1.8;
  color: var(--text-dim); white-space: pre-wrap; }
.c-dim { color: var(--text-faint); } .c-pur { color: var(--crystal); } .c-grn { color: var(--green); }

/* ───────────── Stat band ───────────── */
.stats { border-block: 1px solid var(--line); background: rgba(0,0,0,.2); }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 2.2rem 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Sora"; font-weight: 800; font-size: clamp(1.6rem,3.4vw,2.4rem);
  background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-faint); font-size: .85rem; }

/* ───────────── Sections ───────────── */
.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section--alt { background: rgba(0,0,0,.22); border-block: 1px solid var(--line-soft); }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.kicker { color: var(--violet); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.section__head h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: .7rem 0 .8rem; }
.section__head p { color: var(--text-dim); font-size: 1.05rem; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card { background: linear-gradient(180deg, rgba(26,16,41,.7), rgba(18,11,29,.7));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .45s, box-shadow .25s, background .45s, color .4s; }
.card::before { content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: var(--grad-violet); opacity:0; transition: opacity .25s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -22px rgba(124,58,237,.6); }
.card:hover::before { opacity: 1; }
.card__ico { font-size: 1.9rem; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(160,120,255,.1); border: 1px solid var(--line); margin-bottom: 1rem; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* Compatibility */
.compat { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.compat__copy h2 { font-size: clamp(1.9rem,4.2vw,2.7rem); margin: .7rem 0 1rem; }
.compat__copy p { color: var(--text-dim); }
.ticklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.ticklist li { position: relative; padding-left: 1.9rem; color: var(--text-dim); }
.ticklist li::before { content:"✓"; position:absolute; left:0; top:0;
  width: 1.3rem; height: 1.3rem; border-radius: 6px; display: grid; place-items: center;
  font-size: .75rem; color:#fff; background: var(--grad-violet); }
.ticklist strong { color: var(--text); }

.matrix { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: rgba(0,0,0,.25); box-shadow: var(--shadow); }
.matrix__row { display: grid; grid-template-columns: 1fr 1.3fr .9fr; gap: .5rem;
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-soft); align-items: center; font-size: .93rem; }
.matrix__row:last-child { border-bottom: 0; }
.matrix__row--head { background: rgba(160,120,255,.07); color: var(--text-faint);
  text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; font-weight: 700; }
.matrix__row b.ok { justify-self: start; color: var(--green); font-weight: 600;
  background: rgba(94,224,160,.1); border: 1px solid rgba(94,224,160,.25);
  padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; }
.matrix__row span:first-child { font-weight: 600; color: var(--text); }

/* Arcanum */
.arcanum { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.arcanum__copy h2 { font-size: clamp(1.9rem,4.2vw,2.7rem); margin: .7rem 0 1rem; }
.arcanum__copy p { color: var(--text-dim); }
.arcanum__copy .btn { margin-top: 1rem; }
.ench-book { position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; background: linear-gradient(160deg, #1c1130, #0e0819); box-shadow: var(--shadow), var(--glow); }
.ench-book__glow { position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, rgba(192,132,252,.25), transparent 60%);
  pointer-events: none; }
.ench-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; position: relative; }
.ench-list li { display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: rgba(0,0,0,.25); transition: transform .2s, border-color .2s; }
.ench-list li:hover { transform: translateX(6px); border-color: var(--violet); }
.ench-name { font-family: "Sora"; font-weight: 600; color: var(--crystal); }
.ench-lvl { font-family: "JetBrains Mono"; font-size: .8rem; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 6px; padding: .1rem .5rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; counter-reset: s; }
.step { background: linear-gradient(180deg, rgba(26,16,41,.6), rgba(18,11,29,.6));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; position: relative; }
.step__num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  font-family: "Sora"; font-weight: 800; color: #fff; background: var(--grad-violet); margin-bottom: 1rem;
  box-shadow: 0 8px 20px -6px rgba(124,58,237,.7); }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .94rem; margin: 0; }

.download { text-align: center; margin-top: 3rem; }
.download__note { color: var(--text-faint); font-size: .85rem; margin-top: .9rem; }

/* Final CTA */
.finalcta__inner { text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(124,58,237,.22), transparent 60%);
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(2.5rem,6vw,4.5rem) 2rem; }
.finalcta h2 { font-size: clamp(2rem,5vw,3.2rem); font-style: italic; margin-bottom: .6rem;
  background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finalcta p { color: var(--text-dim); margin: 0 0 1.6rem; }
.finalcta .hero__actions { justify-content: center; }

/* ───────────── Footer ───────────── */
.footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.3); padding-top: 3rem; margin-top: 1rem; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand .brand__text { font-size: 1.4rem; }
.footer__brand p { color: var(--text-faint); max-width: 22rem; font-size: .92rem; margin-top: .8rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.footer__cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: .9rem; }
.footer__cols a { display: block; color: var(--text-dim); font-size: .92rem; padding: .25rem 0; transition: color .2s; }
.footer__cols a:hover { color: var(--violet); }
.footer__base { display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft); padding: 1.3rem 0; font-size: .82rem; color: var(--text-faint); }
.footer__motto { font-style: italic; color: var(--crystal); }

/* ───────────── Reveal animation ───────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE TIERS — tailored layouts per device class
   The base styles above target COMPUTER (desktop / laptop).
     Phone .................. <= 600px
     Tablet ................. 601px – 1024px
     Computer (default) ..... 1025px – 1439px
     Large monitor .......... >= 1440px
   ============================================================ */

/* ---- COMPUTER · large monitors (>= 1440px) ---- */
/* A little more width + breathing room on big screens. */
@media (min-width: 1440px) {
  :root { --maxw: 1240px; }
  .hero { gap: 4rem; }
  .features { gap: 1.4rem; }
}

/* ---- TABLET (601px – 1024px) ---- */
/* Stack the hero, hide the 3D console, two-up feature grid. */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: clamp(2.5rem, 7vh, 5rem) 0 4rem;
  }
  .hero__panel { display: none; }
  .hero__lede { max-width: 48rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .compat, .arcanum { grid-template-columns: 1fr; gap: 2.4rem; }
  .arcanum__art { order: 2; }
  .footer__inner { grid-template-columns: 1fr 1.5fr; }
}

/* ---- MOBILE PHONE (<= 600px) ---- */
/* Single-column everything, larger tap targets, compact type. */
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 2.25rem 0 3rem;
  }
  .hero__panel { display: none; }
  .hero__title-lead { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero__lede { font-size: 1rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .features { grid-template-columns: 1fr; }
  .compat, .arcanum { grid-template-columns: 1fr; gap: 2rem; }
  .arcanum__art { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .matrix__row { font-size: .86rem; padding: .85rem 1rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__base { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ---- Auxiliary: collapse the nav to a burger when it gets tight ---- */
/* (covers phones and small tablets, independent of the content tiers) */
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__mobile { display: flex; }
}

/* ---- Very small phones (<= 380px) ---- */
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═════════════ Back-to-top button (OBX shard) ═════════════
   Hidden until the user scrolls past the hero, then fades/slides in
   at the bottom-right. Click smooth-scrolls to the top. */
.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--grad-violet);
  color: #fff;
  box-shadow: var(--glow);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.25,1), box-shadow .3s ease;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 1px var(--violet), 0 20px 44px -12px rgba(123,58,237,.7);
}
.to-top:active { transform: translateY(-1px) scale(.98); }
.to-top:focus-visible { outline: 2px solid var(--crystal); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; display: block; }

/* Themed hover tooltip — obsidian glass chip sitting to the left of the button */
.to-top::after,
.to-top::before {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.25,1);
}
.to-top::after {
  content: attr(data-tip);
  transform: translate(6px, -50%);
  white-space: nowrap;
  font-family: "Sora", "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--crystal);
  background: linear-gradient(180deg, var(--obsidian-3), var(--obsidian-2));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow: var(--shadow);
}
.to-top::before {
  content: "";
  transform: translate(6px, -50%) rotate(45deg);
  width: 9px;
  height: 9px;
  right: calc(100% + 9px);
  background: var(--obsidian-3);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 1px;
}
.to-top:hover::after,
.to-top:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.to-top:hover::before,
.to-top:focus-visible::before { opacity: 1; transform: translate(0, -50%) rotate(45deg); }

@media (hover: none) { .to-top::after, .to-top::before { display: none; } }

/* ═════════════ Language chip tooltip (full language names) ═════════════
   Themed glass chip that rises above the EN · DE · ES stat on hover/focus. */
.lang-chip { position: relative; cursor: help; }
.lang-chip::after,
.lang-chip::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.25,1);
}
.lang-chip::after {
  content: attr(data-tip);
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-family: "Sora", "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--crystal);
  background: linear-gradient(180deg, var(--obsidian-3), var(--obsidian-2));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 7px 13px;
  box-shadow: var(--shadow);
}
.lang-chip::before {
  content: "";
  transform: translate(-50%, 6px) rotate(45deg);
  bottom: calc(100% + 7px);
  width: 9px;
  height: 9px;
  background: var(--obsidian-2);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 1px;
}
.lang-chip:hover::after,
.lang-chip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.lang-chip:hover::before,
.lang-chip:focus-visible::before { opacity: 1; transform: translate(-50%, 0) rotate(45deg); }
.lang-chip:focus-visible { outline: 2px solid var(--crystal); outline-offset: 4px; border-radius: 6px; }

@media (hover: none) { .lang-chip::after, .lang-chip::before { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s ease; transform: none; }
  .to-top.is-visible { transform: none; }
}

/* ═════════════ Theme dock — day/night toggle (bottom-left) ═════════════
   A glass pill flush to the left edge, holding the day/night switch and a
   hide tab. The hide tab condenses the dock further off the left edge,
   morphing its shape; clicking the leftover tab reopens it. Fixed, so it
   stays put while scrolling, on every device. */
.theme-dock {
  position: fixed;
  left: 0;
  bottom: clamp(18px, 6vh, 44px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  background: linear-gradient(180deg, var(--obsidian-3), var(--obsidian-2));
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow), var(--glow);
  transform: translateX(0);
  transition: transform .5s cubic-bezier(.62,.05,.2,1),
              border-radius .5s cubic-bezier(.62,.05,.2,1),
              padding .5s cubic-bezier(.62,.05,.2,1),
              background .45s ease, border-color .45s ease;
}
/* Collapsed: slide the dock left so only the tab peeks out, condensing the
   shape into a small rounded tab. */
.theme-dock.is-collapsed {
  transform: translateX(calc(-100% + 30px));
  border-radius: 0 12px 12px 0;
  padding-left: 8px;
}

/* Day / night switch */
.theme-switch { padding: 0; margin: 0; border: 0; background: none; display: inline-flex; }
.theme-switch__track {
  position: relative;
  width: 60px; height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,58,237,.28), rgba(160,120,255,.14));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7px;
  transition: background .4s ease, border-color .4s ease;
}
.theme-switch__icon { width: 15px; height: 15px; display: block; z-index: 1; transition: color .4s ease; }
/* Active icon (sitting over the thumb) pops; the other dims onto the track. */
.theme-switch__icon--moon { color: #efe7ff; }
.theme-switch__icon--sun  { color: var(--text-faint); }
:root[data-theme="light"] .theme-switch__icon--moon { color: var(--text-faint); }
:root[data-theme="light"] .theme-switch__icon--sun  { color: #fff; }
.theme-switch__thumb {
  position: absolute;
  top: 50%; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-violet);
  box-shadow: 0 4px 10px -3px rgba(124,58,237,.8);
  transform: translateY(-50%);
  transition: transform .42s cubic-bezier(.5,.1,.2,1), background .42s ease, box-shadow .42s ease;
}
:root[data-theme="light"] .theme-switch__track {
  background: linear-gradient(90deg, rgba(243,169,60,.28), rgba(124,58,237,.12));
}
:root[data-theme="light"] .theme-switch__thumb {
  transform: translate(30px, -50%);
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 4px 10px -3px rgba(245,158,11,.7);
}

/* Colour-blind-safe toggle */
.theme-cb {
  display: grid; place-items: center;
  width: 34px; height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(140,170,220,.06);
  color: var(--text-dim);
  transition: background .25s, color .25s, border-color .25s;
}
.theme-cb:hover { color: var(--text); border-color: var(--violet); }
.theme-cb svg { width: 18px; height: 18px; display: block; }
.theme-cb.is-active {
  background: var(--grad-violet);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(0,114,178,.7);
}

/* Hide / show tab */
.theme-dock__tab {
  position: relative;
  display: grid; place-items: center;
  width: 22px; height: 36px;
  padding: 0; border: 0;
  border-radius: 8px;
  background: rgba(124,58,237,.12);
  color: var(--crystal);
  transition: background .25s, color .25s;
}
.theme-dock__tab:hover { background: rgba(124,58,237,.26); color: var(--text); }
.theme-dock__tab svg { width: 16px; height: 16px; display: block;
  transition: transform .5s cubic-bezier(.62,.05,.2,1); }
.theme-dock.is-collapsed .theme-dock__tab svg { transform: rotate(180deg); }

/* Themed tooltip for the dock controls (opens to the right, toward the page) */
.theme-dock [data-tip] { position: relative; }
/* Lift the hovered/focused control above its sibling buttons so its tooltip
   paints over them instead of showing their icons through it. */
.theme-dock [data-tip]:hover,
.theme-dock [data-tip]:focus-visible { z-index: 3; }
.theme-dock [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 3;
  transform: translate(-6px, -50%);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  font-family: "Sora", "Inter", sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  color: var(--text);
  background: var(--obsidian-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 11px;
  box-shadow: var(--shadow);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.25,1);
}
.theme-dock [data-tip]:hover::after,
.theme-dock [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.theme-dock__tab:focus-visible,
.theme-switch:focus-visible { outline: 2px solid var(--crystal); outline-offset: 3px; border-radius: 10px; }
@media (hover: none) { .theme-dock [data-tip]::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .theme-dock, .theme-switch__thumb, .theme-dock__tab svg { transition: none; }
}

/* ═════════════ Custom cursor: OBX shard ═════════════
   Placed LAST so it overrides the earlier `cursor: pointer` rules on
   .btn / .nav__burger.
     · Default          -> white shard
     · Links / buttons / animated feature cards -> purple shard inside a
       thin purple outline (active state)
   Hotspots sit on the shard tip. Real pointers only; touch is untouched. */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("../cursor-obx.svg") 16 3, auto;
  }
  a, button, .btn, [role="button"], .nav__burger, summary, label,
  .card, .step, .ench-list li {
    cursor: url("../cursor-obx-active.svg") 20 7, pointer;
  }
}
