@font-face {
  font-family: "PS2P";
  src: url("../fonts/PressStart2P.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "ShareTechMono";
  src: url("../fonts/ShareTechMono.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

:root {
  --y: #f7d117;
  --o: #f7931e;
  --r: #f0352a;
  --m: #ff2d9a;
  --mm: #c2408f;
  --p: #7a1450;
  --ol: #3d0a26;
  --bg: #07040a;
  --bg2: #100814;
  --panel: rgba(40, 8, 34, 0.88);
  --panel-solid: #160a16;
  --text: #e8dce8;
  --muted: #b99ab4;
  --faint: #8a6f86;
  --c: #2ef2ff;
  --ok: #7dff9a;
  --grad: linear-gradient(90deg, var(--y), var(--o), var(--r), var(--mm), var(--p));
  --radius: 0;
  --max: 1100px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--y);
  --font-body: "ShareTechMono", ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  --font-display: "PS2P", var(--font-body);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(122, 20, 80, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(46, 242, 255, 0.08), transparent 45%),
    var(--bg);
  position: relative;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16V48L28 64L0 48V16Z M28 97V64' fill='none' stroke='%23ff2d9a' stroke-width='1.5'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--y);
  color: #111;
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: none; box-shadow: var(--focus); }

a { color: var(--c); text-underline-offset: 0.2em; }
a:hover { color: var(--y); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(255, 45, 154, 0.35);
  background: linear-gradient(180deg, rgba(14, 6, 16, 0.96), rgba(7, 4, 10, 0.85));
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand img,
.brand svg {
  width: 48px;
  height: auto;
  display: block;
}
.brand-logo {
  width: clamp(88px, 16vw, 128px) !important;
  height: auto !important;
  filter: drop-shadow(0 0 12px rgba(255, 45, 154, 0.45));
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--y);
  text-shadow: 2px 0 var(--r), -2px 0 var(--c);
}
.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--y);
  border-bottom-color: var(--m);
}

.tape {
  height: 28px;
  background: repeating-linear-gradient(-45deg, var(--y) 0 14px, #111 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(247, 209, 23, 0.25);
}
.tape span {
  background: #111;
  color: var(--y);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.9rem;
}

main { padding: 2.5rem 0 4rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 0 2.25rem;
}
.hero-panel {
  position: relative;
  background: linear-gradient(160deg, rgba(40, 8, 34, 0.92), rgba(10, 4, 14, 0.96));
  border: 1px solid rgba(255, 45, 154, 0.45);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 0 28px rgba(255, 45, 154, 0.18);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 209, 23, 0.12), transparent 35%, transparent 65%, rgba(122, 20, 80, 0.25));
  opacity: 0.9;
}
.hero-splash {
  display: grid;
  gap: 1.15rem 1.6rem;
  align-items: center;
  padding: 1.65rem 1.45rem 1.6rem;
}
@media (min-width: 820px) {
  .hero-splash {
    grid-template-columns: minmax(200px, 0.85fr) 1.3fr;
  }
}
.hero-mark,
.hero-copy { position: relative; z-index: 1; }
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mark img {
  width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 45, 154, 0.55)) drop-shadow(0 0 8px rgba(247, 209, 23, 0.25));
}
.hero-mark-sm img { width: min(100%, 300px); }
.hero-copy h1 {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  margin: 0 0 0.7rem;
}
.eyebrow {
  color: var(--m);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.65rem;
}
.eyebrow::before {
  content: "0 ";
  color: var(--y);
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 400;
}
h1 {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  text-shadow: 2px 0 var(--r), -2px 0 var(--c), 0 0 24px rgba(255, 45, 154, 0.45);
}
h2 {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: var(--y);
}
h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.lead {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1.1rem;
}
.slogan {
  color: var(--text);
  border-left: 3px solid var(--m);
  padding-left: 0.9rem;
  margin: 0 0 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--grad);
  color: #12040e;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255, 45, 154, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); color: #12040e; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 45, 154, 0.55);
}
.btn-ghost:hover { border-color: var(--y); color: var(--y); }
.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid.cards-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cards-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: linear-gradient(160deg, rgba(40, 8, 34, 0.88), rgba(10, 4, 14, 0.94));
  border: 1px solid rgba(194, 64, 143, 0.45);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  padding: 1.25rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.card p { margin: 0; color: var(--muted); flex: 1; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-live { color: var(--ok); }
.badge-soon { color: var(--y); }
.badge-info { color: var(--c); }
.badge-muted { color: var(--faint); }

.section {
  margin-top: 2.75rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 45, 154, 0.28);
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 45, 154, 0.35);
  padding: 1.25rem 1.2rem;
  min-width: 0;
  max-width: 100%;
}
.panel + .panel { margin-top: 1rem; }

.steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.steps li { margin: 0.45rem 0; }
.steps strong { color: var(--text); }

code, kbd {
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 45, 154, 0.25);
  padding: 0.05rem 0.35rem;
  color: var(--y);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
pre {
  overflow-x: auto;
  background: #050308;
  border: 1px solid rgba(255, 45, 154, 0.3);
  padding: 0.9rem 1rem;
  color: var(--text);
}
pre code {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(255, 45, 154, 0.22);
  vertical-align: top;
}
th { color: var(--y); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
td { color: var(--muted); }
td strong { color: var(--text); }

.note {
  border-left: 3px solid var(--c);
  padding: 0.75rem 0.9rem;
  background: rgba(46, 242, 255, 0.06);
  color: var(--text);
  margin: 1rem 0 0;
}
.warn {
  border-left-color: var(--y);
  background: rgba(247, 209, 23, 0.07);
}
.dl-box {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  min-width: 0;
}
@media (min-width: 720px) {
  .dl-box { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.file-meta {
  color: var(--faint);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.file-meta dt { color: var(--muted); margin-top: 0.45rem; }
.file-meta dd { margin: 0.15rem 0 0; color: var(--text); min-width: 0; }
.file-meta dd code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
}



.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  max-width: 38rem;
  margin-top: 0.15rem;
}
.hero-actions .btn {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
.hero-cta {
  background: rgba(255, 45, 154, 0.08);
}
.hero-cta:hover {
  background: rgba(247, 209, 23, 0.08);
}
.hero-cta .label-short { display: none; }
.hero-actions .social-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  display: block;
}
.hero-actions .social-btn span { line-height: 1; }

.site-footer {
  border-top: 1px solid rgba(255, 45, 154, 0.28);
  padding: 1.5rem 0 2.5rem;
  color: var(--faint);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--y); }

.lang-note {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0.85rem 0 0;
  max-width: 52ch;
}
.hero-copy .lang-note {
  margin-top: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media (max-width: 560px) {
  .brand-text strong { font-size: 0.62rem; }
  .hero-panel { padding: 1.25rem 1rem; }
  .btn { width: 100%; }
  .hero-actions {
    gap: 0.55rem;
    max-width: none;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 0.55rem 0.4rem;
    font-size: 0.72rem;
  }
  .hero-actions .social-icon {
    width: 0.9rem;
    height: 0.9rem;
  }
  .hero-cta .label-full { display: none; }
  .hero-cta .label-short { display: inline; }
}

@media (max-width: 400px) {
  .hero-actions {
    gap: 0.45rem;
  }
  .hero-actions .btn {
    padding: 0.5rem 0.3rem;
    font-size: 0.68rem;
  }
}
