/* Hanse – site styles. Colours follow the logos: navy shield #1e2230, gold rim #d9b44a. */

:root {
  --navy-950: #0e1018;
  --navy-900: #141722;
  --navy-850: #181c29;
  --navy-800: #1e2230;
  --navy-700: #2a3042;
  --line: #2f3548;
  --gold: #d9b44a;
  --gold-soft: #b8963c;
  --gold-dim: #645939;
  --cream: #efe6d2;
  --text: #e4e1d8;
  --muted: #a3a6b4;
  --brick: #b4493a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
  color: var(--cream);
}

h1, h2, h3 { font-family: var(--serif); color: var(--cream); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 .4rem; }
h3 { font-size: 1.35rem; margin: 0; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }

section { padding: 5rem 0; }
.band { background: var(--navy-900); border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 2.5rem; font-size: 1.05rem; }

/* ---------- top bar ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(14 16 24 / .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); font: 600 1.25rem var(--serif); letter-spacing: .02em; }
.top nav { display: flex; gap: 1.4rem; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--cream); }
.top nav { margin-left: auto; }
.lang {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-decoration: none;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 6px; padding: .2rem .5rem;
}
.lang:hover { border-color: var(--gold); color: var(--cream); }

/* ---------- hero ---------- */

.hero {
  padding: 6rem 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgb(217 180 74 / .10), transparent 70%),
    linear-gradient(var(--navy-950), var(--navy-900));
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 22ch; margin: 0 auto 1.2rem; }
.lead { max-width: 62ch; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }

.cta { display: flex; justify-content: center; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .7rem 1.3rem;
  border: 1px solid var(--gold-dim); border-radius: 8px;
  color: var(--cream); text-decoration: none; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--gold); color: var(--cream); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.btn.primary:hover { background: #e6c464; color: var(--navy-950); }

.shields {
  list-style: none; padding: 0; margin: 3.5rem auto 0;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem;
}
.shields a { display: block; transition: transform .2s ease; }
.shields a:hover { transform: translateY(-6px); }
.shields img { width: 104px; height: 104px; display: block; }

/* ---------- addon cards ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }


.addon {
  display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem;
  padding: 1.5rem;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.addon::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.addon .logo { width: 88px; height: 88px; }
.addon-body { display: flex; flex-direction: column; min-width: 0; }
.addon header { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; margin-bottom: .5rem; }
.addon p { margin: 0 0 .8rem; }
.addon ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.addon li { margin: .2rem 0; }
.addon li::marker { color: var(--gold-soft); }

.tag {
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px;
  padding: .1rem .6rem;
}

.addon footer {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; font-size: .9rem;
}
.req { color: var(--muted); }
.links { margin-left: auto; display: flex; gap: 1rem; }


/* ---------- screenshots ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem .45rem .6rem; cursor: pointer;
  background: var(--navy-800); color: var(--muted); font: 500 .98rem var(--sans);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.tab:hover { color: var(--cream); }
.tab[aria-selected="true"] { color: var(--cream); border-color: var(--gold); background: #262a35; }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shot-panels { max-width: 900px; }
.shot-panel[hidden] { display: none; }

.gallery { min-width: 0; }
.stage {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 11;
  padding: clamp(.8rem, 2.5vw, 1.6rem);
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgb(217 180 74 / .09), transparent 70%),
    linear-gradient(160deg, #1a2030, #10131c);
  border: 1px solid var(--line); border-radius: 14px;
  cursor: zoom-in; position: relative; overflow: hidden;
}
.stage::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04);
}
.stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .6);
  transition: transform .25s ease;
}
.stage:hover img { transform: scale(1.015); }
.stage:focus-visible, .thumb:focus-visible, .lb-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.stage-caption { margin: .8rem 0 .7rem; color: var(--muted); font-size: .92rem; min-height: 1.5em; }

.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumb {
  width: 88px; height: 60px; padding: 4px; cursor: pointer;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; opacity: .65; transition: opacity .15s, border-color .15s;
}
.thumb img { max-width: 100%; max-height: 100%; border-radius: 3px; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--gold); }

.strip { grid-column: 1 / -1; margin: .5rem 0 0; }
.strip img {
  display: block; width: 100%; height: auto; border-radius: 6px;
  box-shadow: 0 12px 30px rgb(0 0 0 / .5), 0 0 0 1px rgb(0 0 0 / .6);
  image-rendering: auto;
}
.strip figcaption { margin-top: .7rem; color: var(--muted); font-size: .92rem; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text);
}
.lightbox::backdrop { background: rgb(8 10 16 / .92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: calc(100vw - 8rem); text-align: center; pointer-events: none; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 24px 60px rgb(0 0 0 / .6);
}
.lightbox figcaption { margin-top: 1rem; color: var(--muted); }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  background: rgb(30 34 48 / .85); border: 1px solid var(--line); color: var(--cream);
  font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.5rem; top: 50%; translate: 0 -50%; }
.lb-close { right: 1.5rem; top: 1.5rem; font-size: 1.6rem; }
.lb-count { position: fixed; left: 50%; top: 1.9rem; translate: -50% 0; color: var(--muted); font-size: .9rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- libraries ---------- */

.libs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
.lib-cards { display: grid; gap: 1.25rem; }

.deps {
  margin: 0; padding: 1.5rem;
  background: var(--navy-900); border: 1px solid var(--line); border-radius: var(--radius);
  position: sticky; top: 84px;
}
.deps svg { width: 100%; height: auto; display: block; }
.deps .edges path { fill: none; stroke: var(--line); stroke-width: 2; }
.deps .edges path.w { stroke: #3d3a2e; }
.deps .nodes rect { fill: var(--navy-800); stroke: var(--line); }
.deps .nodes .core rect { fill: #262a35; stroke: var(--gold-dim); stroke-width: 1.5; }
.deps text { fill: var(--text); font: 500 14px var(--sans); text-anchor: middle; dominant-baseline: central; }
.deps .core text { fill: var(--gold); font: 600 16px var(--serif); }
.deps figcaption { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* ---------- themes ---------- */

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.theme { margin: 0; }
.theme figcaption { margin-top: .7rem; color: var(--muted); font-size: .92rem; }
.theme figcaption strong { color: var(--cream); font-family: var(--serif); font-size: 1.1rem; display: block; }

.mock {
  background: var(--bg); border: 1px solid var(--bd); border-radius: 6px;
  padding: 0 0 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.mock-bar {
  background: var(--bar); color: var(--tx); font-size: .82rem; font-weight: 600;
  padding: 8px 12px; border-bottom: 1px solid var(--bd); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.mock-bar span { width: 10px; height: 10px; border-radius: 2px; background: var(--ac); }
.mock-row { height: 22px; margin: 0 12px 6px; background: var(--sf); border-radius: 3px; position: relative; }
.mock-row::after { content: ""; position: absolute; left: 10px; top: 8px; width: 45%; height: 6px; border-radius: 3px; background: var(--mu); opacity: .55; }
.mock-row.sel { box-shadow: inset 3px 0 0 var(--ac); background: color-mix(in srgb, var(--ac) 18%, var(--sf)); }
.mock-row.sel::after { background: var(--tx); opacity: .8; }
.mock-btn {
  margin: 12px 12px 0 auto; width: max-content;
  background: var(--ac); color: #111; font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 4px;
}

/* ---------- install ---------- */

.steps { list-style: none; padding: 0; margin: 2rem 0 3rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.8rem 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold); font: 600 1rem var(--serif);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .3rem; width: 2px; background: var(--line);
}
.steps h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { margin: .3rem 0; }
.steps pre {
  background: var(--navy-900); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.2rem; overflow-x: auto; margin: .8rem 0;
}
.steps pre code { background: none; border: 0; padding: 0; font-size: .9rem; color: var(--text); }
.note { color: var(--muted); font-size: .93rem; }

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--cream); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: .9rem; }
.foot p { margin: .3rem 0; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .grid, .libs { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .deps { position: static; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .top nav { gap: .9rem; }
  .top-inner { gap: .7rem; }
  .top nav a:nth-child(n+2):not(:last-child) { display: none; }
  .addon { grid-template-columns: 1fr; }
  .addon .logo { width: 72px; height: 72px; }
  .links { margin-left: 0; }
  .shields img { width: 72px; height: 72px; }
  .themes { grid-template-columns: 1fr; }
  .thumb { width: 72px; height: 50px; }
  .lightbox figure { max-width: calc(100vw - 1.5rem); }
  .lb-prev, .lb-next { top: auto; bottom: 1.2rem; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shields a, .btn, .stage img, .thumb { transition: none; }
  .stage:hover img { transform: none; }
}
