/* ================================================================
   landing.css — HTML Previewer landing page styles
   ================================================================ */
:root {
  --bg:#0d1117; --surface:#161b22; --overlay:#1c2128; --border:#30363d;
  --bhi:#484f58; --accent:#58a6ff; --adim:rgba(88,166,255,.12);
  --green:#3fb950; --red:#f85149; --yellow:#d29922; --pink:#f778ba;
  --text:#e6edf3; --muted:#8b949e;
  --sans:'Inter',sans-serif; --mono:'JetBrains Mono',monospace;
  --r:8px; --t:.15s ease;
}
[data-theme="light"] {
  --bg:#f6f8fa; --surface:#fff; --overlay:#eaeef2; --border:#d0d7de;
  --bhi:#afb8c1; --text:#1f2328; --muted:#57606a;
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--sans); background:var(--bg); color:var(--text); line-height:1.6; -webkit-font-smoothing:antialiased; transition:background var(--t),color var(--t); }
i.fi { display:inline-flex; align-items:center; justify-content:center; }

/* NAV */
nav { position:sticky; top:0; z-index:100; display:flex; align-items:center; justify-content:space-between; padding:0 28px; height:54px; background:var(--surface); border-bottom:1px solid var(--border); transition:background var(--t),border-color var(--t); }
[data-theme="dark"] nav { background:rgba(22,27,34,.92); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.nav-logo { display:flex; align-items:center; gap:9px; font-weight:700; font-size:15px; text-decoration:none; color:var(--text); flex-shrink:0; letter-spacing:-.2px; }
.nav-logo img { width:22px; height:22px; border-radius:4px; object-fit:contain; }
.nav-logo span { color:var(--accent); }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-link { display:flex; align-items:center; gap:5px; padding:5px 10px; font-size:13px; font-weight:500; color:var(--muted); text-decoration:none; border-radius:6px; border:1px solid transparent; transition:color var(--t),background var(--t),border-color var(--t); }
.nav-link:hover { color:var(--text); background:var(--overlay); border-color:var(--border); }
.nav-link .fi { font-size:14px; }
.nav-theme-dd { position:relative; }
.nav-theme-trigger { all:unset; box-sizing:border-box; display:inline-flex; align-items:center; gap:6px; padding:5px 10px; height:32px; font-family:var(--sans); font-size:13px; font-weight:500; color:var(--muted); background:var(--overlay); border:1px solid var(--border); border-radius:6px; cursor:pointer; transition:color var(--t),border-color var(--t); }
.nav-theme-trigger:hover,.nav-theme-trigger.open { border-color:var(--accent); color:var(--text); }
.nav-theme-trigger .fi { font-size:14px; }
.nt-caret { font-size:10px; transition:transform var(--t); }
.nav-theme-trigger.open .nt-caret { transform:rotate(180deg); }
.nav-theme-menu { position:absolute; top:calc(100% + 6px); right:0; min-width:140px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; box-shadow:0 8px 32px rgba(0,0,0,.35); z-index:200; opacity:0; transform:translateY(-4px); pointer-events:none; transition:opacity .12s ease,transform .12s ease; }
.nav-theme-menu.visible { opacity:1; transform:translateY(0); pointer-events:all; }
.nav-theme-menu button { all:unset; box-sizing:border-box; display:flex; align-items:center; gap:9px; width:100%; padding:9px 12px; font-family:var(--sans); font-size:13px; font-weight:500; color:var(--muted); cursor:pointer; transition:background var(--t),color var(--t); }
.nav-theme-menu button:hover { background:var(--overlay); color:var(--text); }
.nav-theme-menu button.active { color:var(--accent); }
.nav-theme-menu button.active:hover { background:var(--adim); }
.nav-theme-menu .fi { font-size:14px; width:16px; text-align:center; }
.ntm-label { flex:1; }
.ntm-check { font-size:12px; color:var(--accent); opacity:0; transition:opacity var(--t); }
.nav-theme-menu button.active .ntm-check { opacity:1; }
.nav-cta { display:flex; align-items:center; gap:6px; padding:7px 16px; font-size:13px; font-weight:600; color:#fff; background:var(--accent); text-decoration:none; border-radius:6px; transition:filter var(--t),transform var(--t); }
.nav-cta:hover { filter:brightness(1.12); transform:translateY(-1px); }

/* HERO */
.hero { text-align:center; padding:88px 24px 60px; max-width:640px; margin:0 auto; }
.pill { display:inline-block; padding:4px 14px; background:var(--adim); border:1px solid rgba(88,166,255,.2); border-radius:100px; font-size:11px; font-weight:600; letter-spacing:.5px; color:var(--accent); margin-bottom:28px; text-transform:uppercase; }
.hero h1 { font-size:clamp(34px,6vw,58px); font-weight:700; line-height:1.08; letter-spacing:-1.6px; margin-bottom:20px; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero-sub { font-size:17px; color:var(--muted); max-width:440px; margin:0 auto 36px; line-height:1.7; }
.hero-btns { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.btn-primary { display:inline-flex; align-items:center; gap:7px; padding:12px 22px; border-radius:var(--r); font-size:14px; font-weight:600; text-decoration:none; background:var(--accent); color:#fff; border:1px solid transparent; transition:filter var(--t),transform var(--t); }
.btn-primary:hover { filter:brightness(1.12); transform:translateY(-2px); }
.btn-ghost { display:inline-flex; align-items:center; gap:7px; padding:12px 22px; border-radius:var(--r); font-size:14px; font-weight:600; text-decoration:none; background:var(--surface); color:var(--text); border:1px solid var(--border); transition:border-color var(--t),color var(--t),transform var(--t); }
.btn-ghost:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
.btn-primary .fi,.btn-ghost .fi { font-size:15px; }

/* DEMO */
.demo-sec { max-width:1040px; margin:0 auto 72px; padding:0 24px; text-align:center; }
.sec-ey { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent); margin-bottom:8px; }
.sec-ti { font-size:clamp(22px,3.5vw,32px); font-weight:700; letter-spacing:-.5px; margin-bottom:12px; }
.sec-su { font-size:15px; color:var(--muted); margin-bottom:28px; line-height:1.65; }
.sec-su a { color:var(--accent); text-decoration:none; }
.sec-su a:hover { text-decoration:underline; }
.bm { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; box-shadow:0 24px 64px rgba(0,0,0,.4); }
[data-theme="light"] .bm { box-shadow:0 24px 64px rgba(0,0,0,.1); }
.bm-bar { display:flex; align-items:center; gap:8px; padding:9px 12px; background:var(--overlay); border-bottom:1px solid var(--border); }
.tl { display:flex; gap:5px; flex-shrink:0; }
.tl span { width:11px; height:11px; border-radius:50%; display:inline-block; }
.tl-r { background:var(--red); } .tl-y { background:var(--yellow); } .tl-g { background:var(--green); }
.bm-url { flex:1; display:flex; align-items:center; gap:5px; background:var(--bg); border:1px solid var(--border); border-radius:100px; padding:3px 10px; font-family:var(--mono); font-size:11px; min-width:0; overflow:hidden; }
.bu-l { color:var(--green); flex-shrink:0; font-size:11px; }
.bu-t { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bm-ext { all:unset; box-sizing:border-box; width:26px; height:26px; display:flex; align-items:center; justify-content:center; color:var(--muted); cursor:pointer; border-radius:5px; text-decoration:none; flex-shrink:0; transition:color var(--t),background var(--t); }
.bm-ext:hover { color:var(--accent); background:var(--adim); }
.bm-ext .fi { font-size:13px; }
.demo-frame { width:100%; height:540px; border:none; display:block; background:var(--bg); }

/* FEATURES */
.features { max-width:1020px; margin:0 auto 72px; padding:0 24px; text-align:center; }
.feat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.fc { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:20px; text-align:left; transition:border-color var(--t),transform var(--t),box-shadow var(--t); }
.fc:hover { border-color:var(--accent); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.18); }
[data-theme="light"] .fc:hover { box-shadow:0 6px 20px rgba(0,0,0,.07); }
.fc-i { font-size:20px; margin-bottom:10px; display:block; color:var(--accent); }
.fc-i .fi { font-size:22px; }
.fc-t { font-size:13px; font-weight:700; color:var(--text); margin-bottom:5px; }
.fc-d { font-size:12px; color:var(--muted); line-height:1.6; }
.fc-d code { font-family:var(--mono); font-size:10px; background:var(--adim); border:1px solid rgba(88,166,255,.15); padding:1px 5px; border-radius:3px; color:var(--accent); }

/* DONATE */
.donate-sec { max-width:560px; margin:0 auto 72px; padding:0 24px; text-align:center; }
.donate-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:36px 28px; display:flex; flex-direction:column; align-items:center; gap:16px; transition:border-color var(--t),box-shadow var(--t); }
.donate-card:hover { border-color:rgba(247,120,186,.4); box-shadow:0 0 0 3px rgba(247,120,186,.08); }
.donate-icon { width:52px; height:52px; display:flex; align-items:center; justify-content:center; background:rgba(247,120,186,.12); border:1px solid rgba(247,120,186,.25); border-radius:14px; color:var(--pink); }
.donate-icon .fi { font-size:24px; }
.donate-title { font-size:20px; font-weight:700; letter-spacing:-.4px; }
.donate-desc { font-size:14px; color:var(--muted); line-height:1.7; max-width:380px; }
.btn-donate { display:inline-flex; align-items:center; gap:8px; padding:12px 26px; border-radius:var(--r); font-size:14px; font-weight:700; color:#fff; background:var(--pink); text-decoration:none; border:1px solid transparent; transition:filter var(--t),transform var(--t); }
.btn-donate:hover { filter:brightness(1.1); transform:translateY(-2px); }
.btn-donate .fi { font-size:15px; }
.kofi-badge { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:5px; }
.kofi-badge strong { color:var(--text); }

/* INSTALL */
.install-sec { max-width:680px; margin:0 auto 72px; padding:0 24px; text-align:center; }
.cb { background:var(--overlay); border:1px solid var(--border); border-radius:var(--r); overflow:hidden; text-align:left; }
.cb-bar { display:flex; align-items:center; gap:6px; padding:9px 14px; background:var(--surface); border-bottom:1px solid var(--border); }
.cb-lbl { margin-left:auto; font-size:10px; color:var(--muted); font-family:var(--mono); }
.cb pre { padding:16px 18px; font-family:var(--mono); font-size:12.5px; line-height:1.8; overflow-x:auto; color:var(--text); }
.cm { color:var(--muted); } .ck { color:var(--accent); } .cd { color:var(--muted); opacity:.5; }

/* FOOTER */
footer { border-top:1px solid var(--border); padding:32px 24px; text-align:center; }
.fi-row { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; margin-bottom:12px; }
.f-logo { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--text); text-decoration:none; }
.f-logo img { border-radius:3px; object-fit:contain; }
.f-links { display:flex; gap:2px; flex-wrap:wrap; justify-content:center; }
.f-links a { padding:4px 9px; font-size:12px; color:var(--muted); text-decoration:none; border-radius:5px; transition:color var(--t); }
.f-links a:hover { color:var(--accent); }
.f-copy { font-size:11px; color:var(--muted); }
.f-copy a { color:var(--accent); text-decoration:none; }
.f-copy a:hover { text-decoration:underline; }

::-webkit-scrollbar { width:5px; } ::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background:var(--bhi); }

@media (max-width:640px) {
  nav { padding:0 16px; }
  .nav-link { display:none; }
  .hero { padding:60px 20px 48px; }
  .demo-frame { height:380px; }
}
