:root {
  --bg: #0f1115; --panel: #15171c; --card: #1d2027; --line: #2a2f3a;
  --text: #e6e8ee; --muted: #8b92a3; --accent: #ff8a3d; --accent-2: #ffb07a; --ok: #3ccf6e; --bad: #ff5d6c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; font-family: Consolas, monospace; }

.top { max-width: 1080px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }
h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 18px; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 40px; }
.lead { font-size: 18px; color: #c9cdd8; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.note { margin-top: 18px; max-width: 36em; }
.btn { display: inline-block; background: var(--accent); color: #1a1205; font-weight: 700; padding: 13px 22px; border-radius: 10px; }
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { border-color: var(--accent); }

/* hero mock of the widget */
.hero-art { position: relative; display: flex; justify-content: center; padding-bottom: 36px; }
.widget { width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 30px 80px #0008; }
.w-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.w-head b { flex: none; }
.kbd { color: var(--muted); font-size: 11px; flex: 1; }
.dots, .pill { display: inline-flex; gap: 5px; }
.dots i, .pill i { width: 8px; height: 8px; border-radius: 50%; background: #4a4f5c; }
i.g { background: var(--ok); box-shadow: 0 0 7px var(--ok); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.w-tabs { display: flex; gap: 4px; margin: 10px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.w-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; }
.w-tabs .on { background: var(--card); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.w-card { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 10px; padding: 8px; font-size: 13px; }
.art { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, #ff8a3d, #7b4dff); flex: none; }
.w-row { height: 26px; border-radius: 8px; background: var(--card); margin-top: 8px; opacity: .7; }
.w-row.short { width: 70%; }
.w-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.play { width: 0; height: 0; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.seek { flex: 1; height: 4px; background: var(--line); border-radius: 2px; position: relative; }
.seek i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--accent); border-radius: 2px; }
.pill { position: absolute; right: 8%; bottom: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature p { margin: 0; color: #c0c5d0; font-size: 15px; }

.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin: 22px 0; }
.plug { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.plug-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plug p { margin: 0; color: #c0c5d0; font-size: 15px; }
.perms { display: flex; flex-wrap: wrap; gap: 6px; }
.perm { font-size: 12.5px; padding: 2px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); }
.perm.high { border-color: #6b2a31; color: #ff8a95; }

.build p { max-width: 40em; color: #c9cdd8; }

footer { max-width: 1080px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
}
@media (max-width: 520px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav a { font-size: 14px; }
}
@media (max-width: 420px) {
  main, .top, footer { padding-left: 16px; padding-right: 16px; }
  .widget { width: 100%; }
}
