/* Mythos site. Charcoal + Seafoam, matching the client's default theme. */
:root {
  --bg: #0b1112;
  --bg-2: #0f1719;
  --surface: #131d20;
  --surface-2: #182427;
  --line: #22322f;
  --line-2: #2c403c;
  --text: #e9f3f0;
  --muted: #93a8a3;
  --faint: #62756f;
  --accent: #92ddc5;
  --accent-2: #5fc3a7;
  --accent-ink: #06231b;
  --danger: #f2687a;
  --warn: #f6bc45;
  --ok: #7fe0b0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .65);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(146, 221, 197, .28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 24px; height: 24px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Backdrop */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px;
  background: radial-gradient(600px 380px at 50% 18%, rgba(146, 221, 197, .16), transparent 70%),
              radial-gradient(500px 300px at 85% 5%, rgba(95, 195, 167, .10), transparent 70%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(146, 221, 197, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(146, 221, 197, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(11, 17, 18, .72); border-bottom: 1px solid rgba(34, 50, 47, .6); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 12px rgba(146, 221, 197, .35)); }
.brand small { font: 500 11px/1 var(--font); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 14.5px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(146, 221, 197, .06); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: #3a524d; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #a6e7d3, var(--accent)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(146, 221, 197, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.primary:hover { background: linear-gradient(180deg, #b5eedc, #a0e4cf); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(242, 104, 122, .35); background: rgba(242, 104, 122, .06); }
.btn.danger:hover { background: rgba(242, 104, 122, .12); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.nav .btn { height: 38px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(19, 29, 32, .7); color: var(--muted); font-size: 13px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(146, 221, 197, .15); }
.hero-emblem { width: 112px; height: 112px; margin: 28px auto 8px; filter: drop-shadow(0 0 40px rgba(146, 221, 197, .35)); animation: spin-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes spin-in { from { transform: rotate(-72deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1 { font: 700 clamp(44px, 8vw, 84px)/1 var(--display); letter-spacing: -.035em; margin: 12px 0 18px; }
.hero h1 span { background: linear-gradient(180deg, #d6f6eb 10%, var(--accent) 60%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-shot { position: relative; margin: 64px auto 0; max-width: 1040px; perspective: 1600px; }
.hero-shot .frame { border-radius: 22px; padding: 10px; background: linear-gradient(180deg, rgba(146, 221, 197, .22), rgba(146, 221, 197, .02) 60%); box-shadow: var(--shadow), 0 0 120px -40px rgba(146, 221, 197, .4); transform: rotateX(8deg); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero-shot:hover .frame { transform: rotateX(0); }
.hero-shot img { border-radius: 14px; width: 100%; height: auto; }
.hero-shot::after { content: ""; position: absolute; inset: auto 8% -40px; height: 80px; background: radial-gradient(closest-side, rgba(146, 221, 197, .25), transparent); filter: blur(20px); z-index: -1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 72px auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stat { background: var(--bg-2); padding: 22px 20px; text-align: center; }
.stat b { display: block; font: 700 30px/1.1 var(--display); letter-spacing: -.02em; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section.block { padding: 96px 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { color: var(--accent); font: 600 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font: 700 clamp(30px, 4.5vw, 44px)/1.08 var(--display); letter-spacing: -.025em; margin: 14px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.feature { transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .badge-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(146, 221, 197, .08); border: 1px solid rgba(146, 221, 197, .18); margin-bottom: 18px; }
.feature h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--display); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.categories { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.chip b { color: var(--text); font-weight: 600; }
.chip .icon { color: var(--accent); }

.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot.tall img { aspect-ratio: auto; height: 100%; object-fit: cover; }
.shot figcaption { padding: 14px 18px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.shot figcaption b { color: var(--text); font-weight: 600; margin-right: 6px; }
.stack { display: grid; gap: 16px; }
.arraylist-shot { background: radial-gradient(circle at 70% 30%, #8fb2ee, #6f95dc 60%, #5c7fc4); display: grid; place-items: center; padding: 28px; }
.arraylist-shot img { width: min(100%, 380px); aspect-ratio: auto; border-radius: 8px; image-rendering: auto; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }

.steps { counter-reset: step; }
.step { padding-top: 22px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 15px/1 var(--display); background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px rgba(146, 221, 197, .6); }
.step h3 { margin: 6px 0 6px; font: 600 18px/1.3 var(--display); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
kbd { font: 600 12.5px/1 var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2); color: var(--text); }

.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(146, 221, 197, .18); background: rgba(146, 221, 197, .04); color: var(--muted); font-size: 15px; }
.note .icon { color: var(--accent); margin-top: 2px; }
.note b { color: var(--text); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 400 22px/1 var(--font); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta { margin-top: 96px; text-align: center; padding: 56px 24px; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(500px 220px at 50% 0%, rgba(146, 221, 197, .14), transparent 75%), var(--bg-2); }
.cta h2 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.cta p { color: var(--muted); margin: 0 0 26px; }

footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- App pages (members / admin) ---------- */
.app-main { padding: 48px 0 0; min-height: calc(100vh - 64px - 120px); }
.signin { max-width: 440px; margin: 40px auto 0; }
.signin .card { padding: 32px; }
.signin h1 { font: 700 30px/1.15 var(--display); letter-spacing: -.02em; margin: 18px 0 6px; }
.signin p.sub { margin: 0 0 24px; color: var(--muted); }
.signin .emblem { width: 56px; height: 56px; filter: drop-shadow(0 0 20px rgba(146, 221, 197, .3)); }
label.field { display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text); font: 500 15px/1 var(--mono); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(146, 221, 197, .14); }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; line-height: 1.5; font-family: var(--font); resize: vertical; }
.input.text { font-family: var(--font); }
.form-row { display: grid; gap: 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.form-actions .btn { flex: 1; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.hint { color: var(--faint); font-size: 13px; margin-top: 18px; display: flex; gap: 8px; }
.hint .icon { margin-top: 2px; }

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font: 700 clamp(28px, 4vw, 38px)/1.1 var(--display); letter-spacing: -.025em; margin: 8px 0 0; }
.dash-head .kicker { color: var(--muted); font-size: 14px; }
.dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.panel h2 { display: flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--display); margin: 0 0 18px; }
.panel h2 .icon { color: var(--accent); }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12.5px/1.2 var(--font); border: 1px solid; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); border-color: rgba(127, 224, 176, .3); background: rgba(127, 224, 176, .07); }
.pill.wait { color: var(--warn); border-color: rgba(246, 188, 69, .3); background: rgba(246, 188, 69, .07); }
.pill.bad { color: var(--danger); border-color: rgba(242, 104, 122, .3); background: rgba(242, 104, 122, .07); }
.pill.muted { color: var(--muted); border-color: var(--line-2); background: transparent; }

.release { display: grid; gap: 18px; }
.release-top { display: flex; align-items: center; gap: 16px; }
.release-top .jar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(146, 221, 197, .08); border: 1px solid rgba(146, 221, 197, .2); color: var(--accent); }
.release-top h3 { margin: 0; font: 600 20px/1.2 var(--display); }
.release-top p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.release .btn.primary { height: 50px; font-size: 16px; }
.notes { white-space: pre-wrap; color: var(--muted); font-size: 14.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; max-height: 220px; overflow: auto; }
.checksum { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; }
.checksum code { font-family: var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .icon { width: 32px; height: 32px; color: var(--faint); margin: 0 auto 10px; }
ol.setup { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
ol.setup li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); font-size: 14.5px; }
ol.setup li::before { content: counter(s); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 600 13px/1 var(--display); }
ol.setup b { color: var(--text); font-weight: 600; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Admin */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--faint); font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 0 12px 12px; white-space: nowrap; }
td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
td.wrap-cell { white-space: normal; min-width: 140px; }
td .actions { display: flex; gap: 6px; justify-content: flex-end; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input { flex: 1; min-width: 180px; height: 40px; }
.toolbar .btn { height: 40px; }
.reveal-key { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid rgba(146, 221, 197, .35); background: rgba(146, 221, 197, .06); }
.reveal-key p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.reveal-key .row { display: flex; gap: 8px; }
.reveal-key code { flex: 1; min-width: 0; font: 600 14px/1.4 var(--mono); padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); overflow-wrap: anywhere; user-select: all; }
.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(146, 221, 197, .04); }
.drop .icon { width: 28px; height: 28px; color: var(--accent); }
.drop b { color: var(--text); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .2s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--accent); }
.toast.bad .icon { color: var(--danger); }
[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .grid.three { grid-template-columns: 1fr 1fr; }
  .showcase, .dash { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 44px; }
  .hero-shot .frame { transform: none; padding: 6px; border-radius: 16px; }
  section.block { padding-top: 72px; }
  .card { padding: 20px; }
  .signin .card { padding: 24px; }
  .table-wrap { margin: 0 -20px; padding: 0 20px; }
  .form-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
