:root {
  color-scheme: dark;
  --bg: #05080c;
  --panel: #08131c;
  --soft: #101d28;
  --text: #e8fff2;
  --muted: #8da39a;
  --border: #254456;
  --blue: #28d7ff;
  --green: #9cff38;
  --red: #ff6d6d;
  --amber: #ffd166;
  --shadow: rgba(156, 255, 56, 0.16);
  --terminal-line: rgba(156, 255, 56, 0.35);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(40, 215, 255, 0.12), transparent 28%),
    radial-gradient(circle at 14% 72%, rgba(156, 255, 56, 0.12), transparent 30%),
    var(--bg);
  background-size: 100% 4px, auto, auto, auto;
  color: var(--text);
  overflow-x: hidden;
  user-select: text;
  -webkit-user-select: text;
  display: flex;
  flex-direction: column;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.025), transparent 45%, rgba(0, 0, 0, 0.08));
  mix-blend-mode: screen;
  opacity: 0.18;
  z-index: 100;
}

a {
  color: inherit;
}

a,
button,
img {
  -webkit-user-drag: none;
}

img {
  user-select: none;
  -webkit-user-select: none;
}

.topbar {
  min-height: 72px;
  padding: 14px 30px;
  background: rgba(5, 8, 12, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.brand,
.topbar nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.topbar nav {
  gap: 8px;
  flex-wrap: wrap;
}

.topbar nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 0;
}

.topbar nav a:hover {
  color: var(--green);
  background: rgba(156, 255, 56, 0.08);
  border-color: rgba(156, 255, 56, 0.35);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 28px auto 56px;
  flex: 1 0 auto;
}

.intro,
.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(156, 255, 56, 0.04), 0 18px 70px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.intro::before,
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(156, 255, 56, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.22;
}

.intro::after,
.section::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 15px 0 0 var(--amber), 30px 0 0 var(--green);
  opacity: 0.9;
}

.intro > *,
.section > * {
  position: relative;
  z-index: 1;
}

.intro {
  padding: 28px;
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
  max-width: none;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(156, 255, 56, 0.12);
}

.intro h1 {
  white-space: nowrap;
}

h1::before {
  content: "> ";
  color: var(--green);
}

.lead {
  margin-top: 14px;
  max-width: 690px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
}

.terminal-lines {
  margin-top: 18px;
  border: 1px solid var(--terminal-line);
  background: rgba(5, 8, 12, 0.62);
  display: grid;
  gap: 6px;
  max-width: 640px;
  padding: 12px 14px;
  color: var(--muted);
  box-shadow: inset 0 0 20px rgba(156, 255, 56, 0.05);
}

.terminal-lines span {
  display: block;
  line-height: 1.35;
}

.terminal-lines b {
  color: var(--green);
}

.intro-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.intro-card::before {
  content: "package.exe";
  grid-column: 1 / -1;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.intro-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.intro-card strong {
  display: block;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.intro-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.intro-card .button {
  grid-column: 1 / -1;
}

.section {
  margin-top: 18px;
  padding: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

h2 {
  font-size: 38px;
}

.contact-grid,
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

#contacts .contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card,
.links-grid a,
.feature-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px;
  text-decoration: none;
  min-width: 0;
}

.contact-card {
  display: grid;
  gap: 7px;
}

.contact-card .button {
  width: fit-content;
  margin-top: 8px;
}

.contact-card span {
  color: var(--muted);
  font-size: 14px;
}

.contact-card strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.links-grid a {
  min-height: 70px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 750;
}

.contact-card:hover,
.links-grid a:hover,
.feature-card:hover {
  border-color: rgba(156, 255, 56, 0.45);
  box-shadow: 0 0 24px var(--shadow);
}

.market-list {
  display: grid;
  gap: 12px;
}

.market-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--green);
}

.market-card > img {
  width: 68px;
  height: 68px;
  border-radius: 0;
}

.market-meta,
.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-meta {
  margin-bottom: 7px;
}

.market-meta span {
  color: var(--green);
  background: rgba(156, 255, 56, 0.08);
  border: 1px solid rgba(156, 255, 56, 0.25);
  border-radius: 0;
  padding: 4px 7px;
  font-size: 13px;
  font-weight: 750;
}

.market-card h3 {
  font-size: 24px;
}

.market-card h3::before,
.app-card h3::before {
  content: "./";
  color: var(--green);
}

.market-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.market-actions {
  justify-content: flex-end;
}


.apps {
  display: grid;
  gap: 16px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.app-info {
  display: flex;
  gap: 16px;
  min-width: 0;
}

.app-icon {
  width: 86px;
  height: 86px;
  border-radius: 0;
  flex: 0 0 auto;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

h3 {
  font-size: 30px;
  overflow-wrap: anywhere;
}

.status {
  color: var(--green);
  background: rgba(156, 255, 56, 0.08);
  border: 1px solid rgba(156, 255, 56, 0.25);
  padding: 5px 9px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
}

.tagline {
  margin-top: 8px;
  font-weight: 750;
  font-size: 17px;
}

.description,
.notes {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.description {
  margin-top: 8px;
}

.meta,
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta {
  margin-top: 13px;
}

.meta span {
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 5px 8px;
  font-size: 14px;
}

.screenshot-button {
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft);
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  appearance: none;
}

.screenshot-button:hover {
  border-color: rgba(156, 255, 56, 0.55);
}

.screenshot-button:focus-visible {
  outline: 3px solid rgba(156, 255, 56, 0.35);
  outline-offset: 3px;
}

.screenshot-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 4, 7, 0.88);
}

.image-viewer.is-open {
  display: flex;
}

.image-viewer img {
  max-width: min(1180px, 100%);
  max-height: calc(100vh - 92px);
  object-fit: contain;
  border-radius: 0;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  color: var(--text);
  background: var(--soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.downloads,
.notes {
  grid-column: 1 / -1;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #142231;
  text-decoration: none;
  padding: 0 14px;
  font-weight: 750;
}

.button.primary {
  color: #061006;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 22px var(--shadow);
}

.button.primary::before {
  content: "> ";
}

.notes {
  margin: 0;
  padding-left: 20px;
}

.empty {
  color: var(--muted);
  padding: 24px;
}

.code-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.code-search {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(5, 8, 12, 0.78);
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
}

.code-search:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.code-list {
  display: grid;
  gap: 14px;
}

.code-card {
  border: 1px solid var(--border);
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.code-card[hidden] {
  display: none;
}

.code-card-head {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.code-card h2 {
  font-size: 22px;
}

.code-card h2::before {
  content: "./";
  color: var(--green);
}

.code-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.code-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.code-action {
  min-height: 36px;
  padding: 0 11px;
  color: var(--text);
  background: #142231;
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.code-action:hover,
.code-action:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.code-panel {
  border-top: 1px solid var(--border);
  background: #101114;
  overflow: auto;
}

.code-panel-bar {
  min-width: max-content;
  min-height: 48px;
  padding: 6px 10px 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #8b949e;
  background: #191a1f;
  border-bottom: 1px solid #303238;
  font-size: 12px;
  font-weight: 800;
}

.code-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-panel pre {
  margin: 0;
  padding: 18px;
  min-width: max-content;
  color: #a9b7c6;
  font: 14px/1.6 ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  tab-size: 2;
}

.syntax-type {
  color: #ffc66d;
}

.syntax-method {
  color: #ffc66d;
}

.syntax-string {
  color: #6a8759;
}

.syntax-keyword {
  color: #cc7832;
  font-weight: 700;
}

.syntax-comment {
  color: #808080;
  font-style: italic;
}

.code-card.is-collapsed .code-panel {
  display: none;
}

.code-panel.is-panel-collapsed pre {
  display: none;
}

.code-panel.is-panel-collapsed .copy-code {
  display: none;
}

.code-empty {
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--border);
}

footer {
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 34px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar,
  .intro,
  .section-head,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .intro,
  .contact-grid,
  .links-grid,
  .app-card,
  .market-card {
    grid-template-columns: 1fr;
  }

  .market-actions {
    justify-content: flex-start;
  }

  .section,
  .intro {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 14px 18px;
  }

  main {
    width: min(100% - 24px, 1160px);
    margin-top: 18px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.08;
  }

  .intro h1 {
    white-space: normal;
  }

  .section {
    padding: 18px;
  }

  .app-info {
    display: grid;
  }

  .app-icon {
    width: 74px;
    height: 74px;
  }

  .market-card > img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .market-actions .button {
    width: 100%;
  }

  .code-card-head {
    display: grid;
  }

  .code-actions {
    flex-wrap: wrap;
  }
}
