/* viewer.lifetech.systems: LifeTech Viewer's page. Same look as lifetech.systems
   (dark, the brand's orange glowing on it, Sora titles and Inter text). */

:root {
  --bg: #07090e;
  --bg2: #0c1018;
  --panel: #111621;
  --panel2: #161c29;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #eef1f6;
  --muted: #9aa4b5;
  --dim: #6b7486;
  --brand: #ff7a1a;
  --brand2: #ffb02e;
  --brand3: #ff4d2e;
  --cyan: #33c4ff;
  --ok: #3ddc84;
  --bad: #ff5a5a;
  --radius: 20px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 20px; }
p { margin: 0; }
code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand2); outline-offset: 3px; border-radius: 6px; }
.grad { background: linear-gradient(100deg, var(--brand2), var(--brand) 45%, var(--brand3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand2); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand2), var(--brand)); }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 14px; font: 700 15.5px/1 "Inter", system-ui, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; white-space: nowrap; }
.btn-glow { color: #1a0a00; background: linear-gradient(135deg, var(--brand2), var(--brand) 55%, var(--brand3)); box-shadow: 0 10px 30px -10px rgba(255, 122, 26, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 122, 26, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 14, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 36px; filter: drop-shadow(0 4px 14px rgba(255, 122, 26, .45)); }
.brand span { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav a.opt { display: none; } .bar { gap: 12px; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ------------------------------------------------------------- hero */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(sky.webp) left top / cover no-repeat; opacity: .55; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); }
.hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -280px; background: radial-gradient(closest-side, rgba(255, 122, 26, .22), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-logo { width: min(340px, 80%); margin-bottom: 26px; filter: drop-shadow(0 10px 40px rgba(255, 122, 26, .35)); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 560px; }
.shot { position: relative; border-radius: var(--radius); border: 1px solid var(--line2); background: var(--panel); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 122, 26, .12), 0 30px 120px -40px rgba(255, 122, 26, .55); overflow: hidden; }
.hero .shot { max-width: 420px; justify-self: center; transform: rotate(1.2deg); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero .shot { transform: none; max-width: 380px; } .hero { padding-top: 48px; } }

/* ------------------------------------------------------------- sections */
section { padding: 90px 0; }
.head { max-width: 720px; margin-bottom: 44px; }
.head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line2); transform: translateY(-3px); }
.feature figure { margin: 0; height: 280px; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 122, 26, .16), transparent 60%), var(--bg2); display: flex; align-items: flex-end; justify-content: center; padding: 26px 26px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.feature figure img { max-height: 100%; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .7); object-fit: cover; object-position: top; }
.feature figure.fit img { border-radius: 12px; align-self: center; margin-bottom: 26px; }
.feature .txt { padding: 24px 26px 28px; }
.feature p { margin-top: 10px; color: var(--muted); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } .feature figure { height: 240px; } }

.small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; }
.tile svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.tile h3 { font-size: 17px; }
.tile p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 820px) { .small { grid-template-columns: 1fr; } }

.download { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); margin-top: 10px; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: rgba(255, 176, 46, .12); color: var(--brand2); border: 1px solid rgba(255, 176, 46, .3); margin-bottom: 14px; }
@media (max-width: 820px) { .download { grid-template-columns: 1fr; } }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

/* ------------------------------------------------------------- private area */
form.inline { margin: 0; }
.area h2.title { margin-top: 10px; }
.area h3.sect { margin-top: 48px; font-size: 22px; }
.area p.note { color: var(--dim); margin-top: 18px; font-size: 14px; }
.gate { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 0; position: relative; overflow: hidden; }
.gate::before { content: ""; position: absolute; inset: 0; background: url(sky.webp) center / cover no-repeat; opacity: .35; }
.gate > .wrap { position: relative; z-index: 1; display: grid; place-items: center; }
.login { width: min(420px, 100%); background: rgba(17, 22, 33, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line2); border-radius: var(--radius); padding: 34px 30px 30px; box-shadow: var(--shadow); }
.login img { width: 64px; margin: 0 auto 16px; filter: drop-shadow(0 6px 20px rgba(255, 122, 26, .5)); }
.login h1 { font-size: 26px; text-align: center; }
.login .sub { color: var(--muted); text-align: center; margin-top: 8px; font-size: 15px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 24px 0 8px; }
input[type=password] { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: 16px "Inter", system-ui, sans-serif; }
input[type=password]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 122, 26, .25); }
.login .btn { width: 100%; margin-top: 18px; }
.msg { margin-top: 16px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; }
.msg.bad { background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .35); color: #ffb4b4; }

.area { padding: 56px 0 90px; }
.area-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.area-head p { color: var(--muted); margin-top: 8px; }
.files { display: grid; gap: 14px; }
.file { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.file .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 122, 26, .12); border: 1px solid rgba(255, 122, 26, .3); }
.file .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--brand2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file > div { min-width: 0; }
.file .name { font-weight: 700; overflow-wrap: anywhere; }
.file .meta { color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.file .meta code { font-size: 12px; padding: 1px 6px; overflow-wrap: anywhere; }
.file.latest { border-color: rgba(255, 122, 26, .45); box-shadow: 0 0 0 1px rgba(255, 122, 26, .15), 0 20px 60px -30px rgba(255, 122, 26, .6); }
@media (max-width: 640px) { .file { grid-template-columns: auto 1fr; } .file .btn { grid-column: 1 / -1; } }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line2); border-radius: 16px; }
.steps { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font: 800 15px var(--display); color: #1a0a00; background: linear-gradient(135deg, var(--brand2), var(--brand)); margin-bottom: 12px; }
.step h3 { font-size: 16.5px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
#download .files { margin-bottom: 18px; }
#download p.note { color: var(--dim); margin: 0 0 22px; font-size: 14px; }
/* changelog.php */
.changelog { padding: 56px 0 72px; }
.changelog .wrap { width: min(860px, 100% - 32px); }
.changelog .back { display: inline-block; color: var(--muted); margin-bottom: 28px; font-size: 14px; }
.changelog h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0 18px; }
.changelog h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 6px; padding-top: 28px; border-top: 1px solid var(--line); }
.changelog h3 { font-size: 18px; margin: 26px 0 8px; color: var(--brand2); }
.changelog p { color: var(--muted); }
.changelog ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.changelog li { color: var(--muted); }
.changelog li b { color: var(--ink, #fff); }
.changelog code { font-size: .9em; }
