/* Runa — site de présentation de la suite (Gná, Andvari, Saga, Völund)
   Même charte que le site de Gná : fond Nuit, Noto Sans, rayons 8-12 px.
   L'accent de Runa est l'ivoire ; chaque outil garde sa couleur (.t-gna, .t-andvari…). */

:root {
  --bg: #0E1116;
  --surface: #161B22;
  --surface-2: #1C222B;
  --border: #30363D;
  --text: #E6E9EF;
  --muted: #8B949E;
  --accent: #E6DFCF;
  --accent-ink: #0E1116;
  --accent-soft: rgba(230, 223, 207, .08);
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --radius: 12px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  /* couleurs de la famille (thème sombre) */
  --gna: #5FB3A1;
  --andvari: #E0B04A;
  --saga: #9B8AFB;
  --volund: #E8834A;
  --ok: #3FB950;
  --down: #E5534B;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F4EF;
    --surface: #FFFFFF;
    --surface-2: #EFECE5;
    --border: #D8D3C8;
    --text: #1F2328;
    --muted: #5C6370;
    --accent: #4A5160;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(74, 81, 96, .08);
    --shadow: 0 20px 50px rgba(31, 35, 40, .10);
    --gna: #2F8F7B;
    --andvari: #9C7019;
    --saga: #6A55D9;
    --volund: #B4540F;
    --ok: #1A7F37;
    --down: #CF222E;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #EFECE5;
  --border: #D8D3C8;
  --text: #1F2328;
  --muted: #5C6370;
  --accent: #4A5160;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(74, 81, 96, .08);
  --shadow: 0 20px 50px rgba(31, 35, 40, .10);
  --gna: #2F8F7B;
  --andvari: #9C7019;
  --saga: #6A55D9;
  --volund: #B4540F;
  --ok: #1A7F37;
  --down: #CF222E;
  color-scheme: light;
}

/* Couleur propre à chaque outil, réutilisée par tous les composants (--c) */
.t-runa { --c: var(--accent); }
.t-gna { --c: var(--gna); }
.t-andvari { --c: var(--andvari); }
.t-saga { --c: var(--saga); }
.t-volund { --c: var(--volund); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  color: var(--c, var(--muted)); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8em;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand small { color: var(--muted); font-weight: 500; font-size: .8rem; margin-left: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--text); }
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.menu-btn { display: none; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 9px; text-decoration: none;
  font-weight: 650; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--c, var(--accent)); }
.btn-tool { background: var(--c); color: #0E1116; }
:root[data-theme="light"] .btn-tool { color: #FFFFFF; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn-tool { color: #FFFFFF; } }
.btn-tool:hover { filter: brightness(1.08); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-in > * { min-width: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent); transform: rotate(45deg) translateY(-2px); }
.h-runes { display: inline-flex; gap: .18em; }
.h-runes span:nth-child(1) { color: var(--gna); }
.h-runes span:nth-child(2) { color: var(--andvari); }
.h-runes span:nth-child(3) { color: var(--saga); }
.h-runes span:nth-child(4) { color: var(--volund); }

/* Constellation : Runa au centre, les quatre outils autour */
.constellation { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.constellation .orbit {
  position: absolute; inset: 12%; border: 1px dashed var(--border); border-radius: 50%;
  animation: spin 120s linear infinite;
}
.constellation .orbit-2 { inset: 30%; border-style: solid; opacity: .6; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.constellation .lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--border); }
.node {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translate(-50%, -50%); text-decoration: none; color: var(--text);
}
.node img { width: 84px; height: 84px; border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s; }
.node:hover img { transform: translateY(-3px) scale(1.04); }
.node span { font-weight: 700; font-size: .92rem; }
.node small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; text-align: center; margin-top: -6px; }
.node-core { left: 50%; top: 50%; }
.node-core img { width: 116px; height: 116px; border-radius: 24px; }
.n1 { left: 50%; top: 9%; }
.n2 { left: 91%; top: 50%; }
.n3 { left: 50%; top: 91%; }
.n4 { left: 9%; top: 50%; }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }
.section-alt .card, .section-alt .mock { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* cartes des outils */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.tool-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
  background: var(--c); border-radius: 0 0 3px 3px;
}
.tool-card:hover { border-color: var(--c); transform: translateY(-2px); }
.tool-card img { width: 52px; height: 52px; border-radius: 12px; }
.tool-card h3 { margin: 6px 0 0; font-size: 1.25rem; }
.tool-card .role { color: var(--c); font-weight: 650; font-size: .9rem; margin: -6px 0 0; }
.tool-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.tool-card .more { margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 650; color: var(--c); }
.ver { font: 600 .74rem var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px; align-self: flex-start; }

/* cycle de vie */
.cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.cycle li { position: relative; padding: 0 18px; text-align: center; }
.cycle li::after {
  content: ""; position: absolute; top: 30px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
}
.cycle li:last-child::after { display: none; }
.cycle .step-ico {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.cycle .step-ico svg { width: 28px; height: 28px; }
.cycle .verb { display: block; font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.cycle h3 { margin-bottom: .4em; }
.cycle p { color: var(--muted); font-size: .93rem; margin: 0; }

.links { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.link-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.link-card .pair { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.link-card .pair img { width: 34px; height: 34px; border-radius: 8px; }
.link-card .pair svg { width: 16px; height: 16px; color: var(--muted); }
.link-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.link-card b { color: var(--text); }
.tag-soon { display: inline-block; font: 600 .7rem var(--mono); color: var(--muted); border: 1px dashed var(--border); border-radius: 99px; padding: 0 7px; margin-left: 6px; vertical-align: 1px; }

/* présentation détaillée de chaque outil */
.tool { padding: 88px 0; border-top: 1px solid var(--border); }
.tool.alt { background: var(--surface); }
.tool.alt .mock { background: var(--bg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.tool.flip .split > :first-child { order: 2; }
.tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tool-head img { width: 60px; height: 60px; border-radius: 14px; }
.tool-head h2 { margin: 0; }
.tool-head .role { color: var(--c); font-weight: 650; margin: 0; }
.tool .lead { font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); font-size: .96rem; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px;
  background: var(--c); transform: rotate(45deg);
}
.checks li b { color: var(--text); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-actions .ver { align-self: center; }

/* maquettes (toujours sombres : ce sont des écrans d'application) */
.mock {
  background: #0B0E12; border: 1px solid #30363D; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: #C9D1D9; font-size: .86rem;
}
.tool.alt .mock { background: #0B0E12; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #161B22; border-bottom: 1px solid #30363D; }
.mock-bar img { width: 22px; height: 22px; border-radius: 5px; }
.mock-bar b { color: #E6E9EF; font-size: .88rem; }
.mock-bar .mb-right { margin-left: auto; color: #8B949E; font: 500 .76rem var(--mono); }
.mock-body { padding: 16px; }
.mock pre { margin: 0; font: .82rem/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.mock .p { color: #5FB3A1; }
.mock .dim { color: #6E7681; }
.cursor { animation: blink 1.1s steps(1) infinite; color: #5FB3A1; }
@keyframes blink { 50% { opacity: .2; } }
.rec { display: inline-flex; align-items: center; gap: 6px; color: #E5534B; font: 700 .72rem var(--mono); letter-spacing: .08em; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5534B; animation: blink 1.6s ease-in-out infinite; }
.m-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #11151B; border-bottom: 1px solid #30363D; overflow: hidden; }
.m-tabs span { padding: 6px 12px; border-radius: 7px 7px 0 0; color: #8B949E; font-size: .78rem; white-space: nowrap; }
.m-tabs span.on { background: #0B0E12; color: #E6E9EF; box-shadow: inset 0 2px 0 #5FB3A1; }

.m-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #161B22; border: 1px solid #262C35; border-radius: 8px; }
.m-row .ico { width: 30px; height: 30px; border-radius: 7px; background: #1C222B; display: grid; place-items: center; color: #E0B04A; font: 700 .8rem var(--mono); flex-shrink: 0; }
.m-row .txt { min-width: 0; flex: 1; }
.m-row .txt b { display: block; color: #E6E9EF; font-size: .86rem; font-weight: 600; }
.m-row .txt small { color: #8B949E; font: .76rem var(--mono); }
.m-row .end { margin-left: auto; color: #8B949E; font: 600 .76rem var(--mono); white-space: nowrap; }
.m-row .otp { color: #E0B04A; letter-spacing: .08em; }
.m-lock { display: flex; align-items: center; gap: 8px; padding: 0 2px 12px; color: #8B949E; font-size: .78rem; }
.m-lock svg { width: 14px; height: 14px; color: #E0B04A; }

.beats { display: flex; gap: 3px; flex: 1; min-width: 0; justify-content: flex-end; overflow: hidden; }
.beats i { width: 5px; height: 20px; border-radius: 3px; background: #3FB950; flex-shrink: 0; }
.beats i.d { background: #E5534B; }
.beats i.w { background: #D9A35B; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3FB950; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(63, 185, 80, .15); }
.dot.d { background: #E5534B; box-shadow: 0 0 0 4px rgba(229, 83, 75, .15); }
.m-row .up { color: #3FB950; }
.m-row .down { color: #E5534B; }
.m-name { width: 34%; flex-shrink: 0; min-width: 0; }
.m-name b { display: block; color: #E6E9EF; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name small { color: #8B949E; font: .72rem var(--mono); }

.m-steps { display: grid; gap: 8px; }
.m-step { display: flex; align-items: center; gap: 10px; color: #8B949E; font-size: .84rem; }
.m-step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #30363D; flex-shrink: 0; }
.m-step.done { color: #C9D1D9; }
.m-step.done i { border-color: #E8834A; background: #E8834A; box-shadow: inset 0 0 0 3px #0B0E12; }
.m-step.now { color: #E6E9EF; font-weight: 600; }
.m-step.now i { border-color: #E8834A; animation: blink 1.4s ease-in-out infinite; }
.m-progress { height: 6px; border-radius: 3px; background: #1C222B; overflow: hidden; margin: 14px 0 4px; }
.m-progress b { display: block; height: 100%; width: 64%; background: #E8834A; }
.m-url { margin-top: 12px; padding: 9px 12px; border: 1px dashed #30363D; border-radius: 8px; font: .8rem var(--mono); color: #E8834A; }

/* principes communs */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--text); margin-bottom: 16px; border: 1px solid var(--border); }
.card-ico svg { width: 24px; height: 24px; }

.stack { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stack span { padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: .88rem; background: var(--surface); }
.section-alt .stack span { background: var(--bg); }

/* installation */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted);
  font: 600 .95rem var(--font); cursor: pointer;
}
.tab-btn img { width: 24px; height: 24px; border-radius: 6px; }
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] { color: var(--text); border-color: var(--c); box-shadow: inset 0 -2px 0 var(--c); }
.panel { max-width: 860px; margin: 0 auto; }
.panel[hidden] { display: none; }
.install { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.install > * { min-width: 0; }
.code { position: relative; background: #0B0E12; border: 1px solid #30363D; border-radius: var(--radius); color: #C9D1D9; }
.code pre { margin: 0; padding: 18px 18px 18px; overflow-x: auto; font: .84rem/1.7 var(--mono); }
.code .c { color: #6E7681; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; border-bottom: 1px solid #30363D; color: #8B949E; font: 600 .75rem var(--mono); }
.copy { border: 1px solid #30363D; border-radius: 7px; background: #161B22; color: #C9D1D9; font: 600 .76rem var(--font); padding: 5px 10px; cursor: pointer; }
.copy:hover { border-color: #8B949E; }
.panel .note { margin-top: 14px; }
.dl-list { display: grid; gap: 10px; }
.dl {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
}
.section-alt .dl { background: var(--bg); }
.dl:hover { border-color: var(--c); }
.dl b { font-size: .95rem; }
.dl span { font: .78rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.dl small { color: var(--muted); font-size: .8rem; }

/* mythologie */
.myth .split { grid-template-columns: .9fr 1.1fr; }
.myth-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 400px; margin: 0 auto; width: 100%; }
.myth-art .big { width: 62%; height: auto; color: var(--accent); }
.myth-art .ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--border); animation: spin 240s linear infinite; }
.runes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.runes div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.runes svg { width: 22px; height: 38px; color: var(--accent); margin-bottom: 4px; }
.runes b { font-size: .92rem; }
.runes small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.family { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.family li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .94rem; }
.family img { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; margin-top: 1px; }
.family b { color: var(--c); }

/* pied de page */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer p { grid-column: 1 / -1; margin: 0; }

/* page de texte (mentions légales) */
.legal { padding: 56px 24px 80px; }
.doc { max-width: 760px; margin: 0 auto; }
.doc-head { margin-bottom: 36px; }
.doc section { padding-top: 12px; }
.doc h2 { font-size: 1.45rem; margin-top: 1.2em; }
.doc h3 { margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; color: var(--muted); }
.doc li { margin-bottom: .4em; }
.doc p { color: var(--muted); }
.doc p strong, .doc li strong { color: var(--text); }
.anchor { color: var(--border); text-decoration: none; font-weight: 400; }
.anchor:hover { color: var(--muted); }
.doc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .cycle li:nth-child(2)::after { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .topbar-actions { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .hero { padding: 56px 0 64px; }
  .hero-in, .split, .install, .myth .split { grid-template-columns: 1fr; gap: 40px; }
  .tool.flip .split > :first-child { order: 0; }
  .links { grid-template-columns: 1fr; }
  .section, .tool { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .tools, .grid { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; }
  .cycle li::after { display: none; }
  .runes { grid-template-columns: repeat(2, 1fr); }
  .node img { width: 64px; height: 64px; border-radius: 14px; }
  .node-core img { width: 88px; height: 88px; border-radius: 20px; }
  .node small { display: none; }
  .constellation { width: calc(100% - 48px); }
  .node span { font-size: .82rem; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .m-name { width: 42%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.center-note { text-align: center; margin: 28px auto 0; max-width: 760px; }
