:root {
  color-scheme: dark;
  --bg: #0d1418;
  --surface: #151e24;
  --surface-2: #1b272e;
  --line: #2a3942;
  --text: #f3f7f8;
  --muted: #a8b6bd;
  --brand: #3ae3a3;
  --brand-deep: #103f31;
  --blue: #7bd4ff;
  --danger: #ffbf69;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 82% 5%, #17362e 0, transparent 26rem), var(--bg); color: var(--text); min-height: 100vh; }
a { color: inherit; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(13,20,24,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #092219; font-weight: 900; }
nav { display: flex; gap: 1.6rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a.active { color: var(--text); }
main { width: min(1180px, 92vw); margin: 0 auto; }
.intro { min-height: 360px; display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 4rem; padding: 5rem 0 4rem; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.06em; margin: 0; max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; margin: 0; }
.intro-copy { color: var(--muted); font-size: 1.15rem; line-height: 1.6; max-width: 620px; margin: 1.5rem 0 0; }
.release-panel { border: 1px solid #315044; border-radius: 24px; background: linear-gradient(145deg, #182a24, #131c21); padding: 1.6rem; box-shadow: 0 24px 70px rgba(0,0,0,.26); }
.release-panel span { display: block; color: var(--muted); margin-bottom: .6rem; }
.release-panel strong { display: block; font-size: 2rem; letter-spacing: -.04em; margin-bottom: 1.6rem; }
.button { min-height: 46px; padding: .78rem 1rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--brand); color: #082117; width: 100%; }
.button.secondary { background: #22323a; border-color: #3b515d; color: var(--text); }
.button.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.catalog-section { padding: 3.5rem 0 5rem; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.search input { width: min(360px, 80vw); height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 1rem; background: var(--surface); color: var(--text); font: inherit; }
.search input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.filter { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); padding: .55rem .9rem; font: inherit; cursor: pointer; }
.filter.active { background: var(--brand-deep); border-color: var(--brand); color: var(--text); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.app-card { display: flex; flex-direction: column; min-height: 310px; padding: 1.4rem; background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; }
.app-card.featured { border-color: #3b725f; background: linear-gradient(145deg, #18372c, #152126 70%); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.app-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #22353e; color: var(--blue); font-size: 1.45rem; font-weight: 850; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .65rem; color: var(--muted); font-size: .78rem; }
.app-card h3 { margin: 1.3rem 0 .35rem; font-size: 1.45rem; letter-spacing: -.025em; }
.meta { color: var(--brand); font-size: .88rem; }
.description { color: var(--muted); line-height: 1.55; margin: .9rem 0 1.4rem; }
.card-actions { margin-top: auto; display: flex; gap: .7rem; align-items: center; }
.card-actions .button { flex: 1; }
.hash { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); color: #91a4ad; font: .76rem/1.45 Consolas, monospace; word-break: break-all; }
.warning { color: var(--danger); font-size: .83rem; margin-top: .8rem; }
.empty-state { border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); padding: 2rem; text-align: center; }
.verify-section { margin-bottom: 5rem; padding: 2rem; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.verify-section p:not(.eyebrow) { color: var(--muted); line-height: 1.55; max-width: 680px; }
.verify-actions { display: flex; flex-direction: column; gap: .7rem; min-width: 250px; }
.copy-status { color: var(--brand); min-height: 1.2rem; font-size: .85rem; text-align: center; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 4vw 2rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.instructions-main { padding-bottom: 5rem; }
.instructions-intro { padding: 4.5rem 0 2.4rem; }
.instructions-intro p:last-child { color: var(--muted); font-size: 1.1rem; }
.instruction-list { display: grid; gap: .8rem; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 1.25rem; }
summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 750; font-size: 1.05rem; }
summary small { color: var(--muted); font-weight: 500; }
details p, details ol { color: var(--muted); line-height: 1.65; margin: 0 0 1.3rem; }
details li + li { margin-top: .4rem; }
pre { overflow: auto; padding: 1rem; border-radius: 12px; background: #0a1013; border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .topbar { min-height: 64px; padding: 0 1rem; }
  nav { gap: .9rem; }
  nav a { font-size: .85rem; }
  .intro { grid-template-columns: 1fr; gap: 2.2rem; padding: 3.5rem 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .verify-section { grid-template-columns: 1fr; padding: 1.4rem; }
  .verify-actions { min-width: 0; }
  footer { flex-direction: column; }
}
@media (max-width: 520px) {
  nav a:nth-child(3) { display: none; }
  .brand span:last-child { display: none; }
  .card-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
