/* EmblemWeave site, in the same visual language as xiondigital.net: near-black
   surfaces, one blue accent, Sora for text, Instrument Serif for the display
   line and JetBrains Mono for labels. */

:root {
  --bg: #050607;
  --bg-raised: #0a0b0d;
  --panel: #0c0e11;
  --panel-hi: #101318;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #ecedef;
  --body: #bdc3cc;
  --muted: #8b9099;
  --muted-dim: #767d87;
  --blue: #3f80ff;
  --blue-hi: #79a8ff;
  --blue-soft: rgba(63, 128, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 26px 60px -38px rgba(0, 0, 0, 0.98);
  --glow: 0 0 0 1px rgba(63, 128, 255, 0.38), 0 24px 64px -28px rgba(63, 128, 255, 0.62);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* A single soft wash behind the top of the page, no grid, no scanlines. */
.grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 72% -5%, rgba(63, 128, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 45% 32% at 15% 8%, rgba(63, 128, 255, 0.06), transparent 70%),
    var(--bg);
}
.grid::after { content: none; }
.scanlines { display: none; }

.hud {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 44px);
  height: 68px;
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-hi);
  color: var(--blue-hi);
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.5px;
}
.brand-text { font: 600 14px/1.15 var(--font-display); letter-spacing: 0.2px; }
.brand-text small { display: block; font: 400 10px/1.3 var(--font-mono); letter-spacing: 0.4px; color: var(--muted); margin-top: 4px; }
.hud nav { display: flex; gap: 22px; margin-left: auto; }
.hud nav a {
  color: var(--muted);
  text-decoration: none;
  font: 500 13px/1 var(--font-body);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hud nav a:hover, .hud nav a:focus-visible { color: var(--ink); border-color: var(--blue); }
.hud-right { display: flex; align-items: center; gap: 10px; }
.build {
  font: 500 11px/1 var(--font-mono);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--panel);
}
.icon {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--body);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon:hover { border-color: var(--line-strong); color: var(--ink); background: var(--panel-hi); }
.icon[aria-pressed="false"] { color: var(--muted-dim); }

main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px) 96px; }

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(48px, 8vw, 104px) 0 36px;
}
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: "";
  position: absolute;
  width: 72%; height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 128, 255, 0.22), transparent 68%);
  filter: blur(34px);
}
.hero-art img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.6)); }

.eyebrow {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin: 0 0 18px;
}
h1 {
  font: 500 clamp(30px, 4vw, 50px)/1.12 var(--font-display);
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.8px;
  text-wrap: balance;
}
h1 em {
  font: italic 400 1.06em/1 var(--font-serif);
  font-style: italic;
  color: var(--blue-hi);
  letter-spacing: 0;
}
.lede { font-size: clamp(15px, 1.4vw, 17px); color: var(--body); max-width: 60ch; }
.lede.small { font-size: 14.5px; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font: 500 14px/1 var(--font-body);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 40px -22px rgba(63, 128, 255, 0.9);
}
.btn.primary:hover { background: #2f6ff0; transform: translateY(-1px); }
.btn.ghost { color: var(--ink); border: 1px solid var(--line-strong); background: var(--panel); }
.btn.ghost:hover { background: var(--panel-hi); border-color: rgba(255, 255, 255, 0.22); }
.btn:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.badges li {
  font: 400 10.5px/1 var(--font-mono);
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 9px;
  border-radius: 6px;
}

.section { padding: clamp(44px, 6vw, 76px) 0 8px; }
h2 {
  font: 500 clamp(21px, 2.2vw, 28px)/1.25 var(--font-display);
  color: var(--ink);
  margin: 0 0 22px;
  letter-spacing: -0.2px;
}
h2 span {
  font: 400 11px/1 var(--font-mono);
  color: var(--muted-dim);
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 5px;
  margin-right: 12px;
  vertical-align: middle;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards article {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cards article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% -20%, rgba(63, 128, 255, 0.2), transparent 68%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.cards article:hover { border-color: rgba(63, 128, 255, 0.4); background: var(--panel-hi); transform: translateY(-3px); box-shadow: var(--glow); }
.cards article:hover::before { opacity: 1; }
.cards h3 { margin: 0 0 8px; font: 500 16px/1.35 var(--font-display); color: var(--ink); }
.cards p { margin: 0; font-size: 14.5px; color: var(--body); }
.cards code, .split code, .note code, .legal code { color: var(--blue-hi); font-family: var(--font-mono); font-size: 0.92em; }

.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.split p { margin-top: 0; }
.note { font-size: 13.5px; color: var(--muted); }
.note a, .legal a { color: var(--blue-hi); text-decoration: none; }
.note a:hover, .legal a:hover { text-decoration: underline; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 14px;
  color: var(--body);
}

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.shots figure.feature { grid-column: 1 / -1; }
.shots .shot { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.shots .shot::after {
  content: attr(data-label);
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(121, 168, 255, 0.45);
  border-radius: 7px;
  background: rgba(5, 6, 7, 0.82);
  color: var(--blue-hi);
  font: 500 10.5px/1 var(--font-mono);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.shots img { display: block; width: 100%; height: auto; opacity: 0.94; transition: opacity 0.25s var(--ease), transform 0.45s var(--ease); }
.shots figure:hover { border-color: rgba(63, 128, 255, 0.42); box-shadow: var(--glow); transform: translateY(-2px); }
.shots figure:hover img { opacity: 1; transform: scale(1.012); }
.shots figure:hover .shot::after { opacity: 1; transform: translateY(0); }
.shots .shot:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: -3px; }
.shots figcaption { padding: 10px 14px; font: 400 11.5px/1.4 var(--font-mono); color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }

/* The screenshot viewer: the original 1440x900 image, not the gallery thumbnail. */
.lightbox {
  width: min(94vw, 1500px);
  max-width: 1500px;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(121, 168, 255, 0.28);
  border-radius: 16px;
  background: #07090c;
  color: var(--body);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.86), 0 0 80px -36px rgba(63, 128, 255, 0.58);
}
.lightbox::backdrop { background: rgba(2, 3, 5, 0.86); backdrop-filter: blur(7px); }
.lightbox[open] { animation: lightbox-in 0.18s var(--ease) both; }
.lightbox img { display: block; width: 100%; max-height: calc(92vh - 66px); object-fit: contain; background: #050607; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(5, 6, 7, 0.84);
  color: var(--ink);
  font: 400 22px/1 var(--font-display);
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--blue); color: #fff; }
.lightbox-close:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.lightbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.lightbox-foot p { margin: 0; }
#lightbox-caption { color: var(--ink); font-size: 13px; }
.lightbox-keys { color: var(--muted); font: 400 10.5px/1.4 var(--font-mono); text-align: right; }
@keyframes lightbox-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }

.mirrors { list-style: none; padding: 0; margin: 16px 0 14px; display: grid; gap: 8px; }
.mirrors li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.mirrors li:hover { border-color: rgba(63, 128, 255, 0.34); background: var(--panel-hi); }
.mirrors a { color: var(--ink); text-decoration: none; font-weight: 500; }
.mirrors a:hover { color: var(--blue-hi); }
.mirrors .state {
  margin-left: auto;
  font: 400 10.5px/1 var(--font-mono);
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted-dim);
}
.mirrors .state.up { color: #8fd8a8; border-color: rgba(143, 216, 168, 0.28); }
.mirrors .state.down { color: #e3a1a8; border-color: rgba(227, 161, 168, 0.25); }
.mirrors .why { color: var(--muted); font-size: 12.5px; }

.legal p { font-size: 14.5px; color: var(--body); border-left: 1px solid var(--line-strong); padding-left: 18px; }

.foot { border-top: 1px solid var(--line); padding: 32px clamp(20px, 4vw, 44px) 48px; text-align: center; color: var(--muted); font-size: 13.5px; }
.foot a { color: var(--blue-hi); text-decoration: none; }
.foot .tiny { font-size: 11.5px; color: var(--muted-dim); }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .cta, .badges { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .hud nav { display: none; }
}
@media (max-width: 620px) {
  .cards, .shots { grid-template-columns: 1fr; }
  .hud { gap: 12px; }
  .brand-text small { display: none; }
  .lightbox { width: 100vw; max-height: 100vh; border-radius: 0; }
  .lightbox img { max-height: calc(100vh - 92px); }
  .lightbox-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lightbox-keys { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cards article:hover, .shots figure:hover { transform: none; }
  .shots figure:hover img { transform: none; }
  .lightbox[open] { animation: none; }
}
