:root {
  --bg: #0a0a0c;
  --card: #151518;
  --card2: #1d1d21;
  --text: #f5f5f7;
  --muted: #9a9aa2;
  --accent: #3b82f6;
  --accent2: #a855f7;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(10,10,12,.72); border-bottom: 1px solid #ffffff10; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { margin-left: auto; display: flex; gap: 6px; }
.nav .links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; }
.nav .links a:hover, .nav .links a.on { color: var(--text); background: #ffffff12; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  padding: 14px 24px; border-radius: 14px; font: inherit; font-weight: 600; color: #fff; background: var(--card2); }
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 30px #3b82f640; }
.btn.small { padding: 9px 16px; border-radius: 11px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

/* hero */
.hero { padding: 70px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto; height: 600px; z-index: -1;
  background: radial-gradient(600px 300px at 30% 30%, #3b82f633, transparent), radial-gradient(600px 300px at 70% 40%, #a855f733, transparent); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 34px 0 14px; letter-spacing: -1.5px; }
.hero h1 span { background: linear-gradient(135deg, #60a5fa, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto 30px; }
.hero .meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* the demo island */
.screen { margin: 0 auto; max-width: 640px; height: 250px; border-radius: 22px; position: relative;
  background: linear-gradient(135deg, #5b7fc7, #b490d6); box-shadow: 0 30px 80px #0008; overflow: hidden; }
.island { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: #000; color: #fff;
  width: 240px; height: 40px; border-radius: 20px; overflow: hidden; cursor: pointer;
  transition: width .5s cubic-bezier(.34,1.4,.64,1), height .5s cubic-bezier(.34,1.4,.64,1), border-radius .5s; }
.island .compact, .island .open { position: absolute; inset: 0; transition: opacity .2s; }
.island .compact { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 600; font-size: 15px; }
.island .open { opacity: 0; padding: 16px 20px; text-align: left; }
.island:hover, .island.big { width: 400px; height: 200px; border-radius: 30px; }
.island:hover .compact, .island.big .compact { opacity: 0; }
.island:hover .open, .island.big .open { opacity: 1; transition-delay: .12s; }
.art { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #f97316, #ec4899); display: inline-block; vertical-align: middle; }
.bars { display: inline-flex; gap: 2px; align-items: center; height: 16px; vertical-align: middle; }
.bars i { width: 3px; border-radius: 2px; background: var(--accent); animation: eq .5s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-duration: .38s; } .bars i:nth-child(3) { animation-duration: .6s; } .bars i:nth-child(4) { animation-duration: .44s; }
@keyframes eq { from { height: 3px; } to { height: 15px; } }
.batt { display: inline-block; width: 24px; height: 12px; border: 1.3px solid #fffc; border-radius: 3.5px; padding: 1.5px; vertical-align: middle; margin-left: 6px; }
.batt b { display: block; height: 100%; width: 76%; background: #30d158; border-radius: 1.5px; }
.open .row { display: flex; align-items: flex-start; justify-content: space-between; }
.open .time { font-size: 28px; font-weight: 700; line-height: 1; }
.open .date { color: #fff9; font-size: 13px; margin-top: 4px; }
.open .icons span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1f1f22; margin-left: 6px; font-size: 13px; }
.open .song { display: flex; gap: 12px; margin-top: 14px; align-items: center; }
.open .song .art { width: 56px; height: 56px; border-radius: 12px; }
.open .song small { color: #fff9; display: block; }
.open .lyric { text-align: center; font-weight: 600; margin-top: 12px; }
.hint { color: #ffffffcc; position: absolute; bottom: 14px; width: 100%; text-align: center; font-size: 14px; }

/* sections */
section { padding: 50px 0; }
h2 { font-size: 30px; letter-spacing: -.5px; margin: 0 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid #ffffff0d; border-radius: var(--radius); padding: 22px; }
.card .ico { font-size: 26px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 14px; padding: 16px 18px 16px 60px; position: relative; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.note { background: #1f2a3a; color: #c9dcf7; border-radius: 14px; padding: 14px 18px; font-size: 14px; }
footer { border-top: 1px solid #ffffff10; padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* forum */
.forum-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 20px; flex-wrap: wrap; }
.forum-head h1 { margin: 0; font-size: 34px; letter-spacing: -.5px; }
.thread { display: block; text-decoration: none; background: var(--card); border: 1px solid #ffffff0d; border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.thread:hover { background: var(--card2); }
.thread h3 { margin: 0 0 4px; font-size: 17px; }
.thread .info, .post .info { color: var(--muted); font-size: 13px; }
.post { background: var(--card); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.post .body { white-space: pre-wrap; word-wrap: break-word; margin-top: 6px; }
.post.first { border: 1px solid #3b82f655; }
form.box { background: var(--card); border-radius: 18px; padding: 20px; display: grid; gap: 12px; margin: 16px 0 30px; }
form.box label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
input, textarea { width: 100%; background: #0e0e11; border: 1px solid #ffffff1a; border-radius: 12px; padding: 12px 14px; color: var(--text); font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.msg { padding: 12px 16px; border-radius: 12px; background: #3a1f1f; color: #f8c4c4; font-size: 14px; }
.msg.ok { background: #1f3a28; color: #bdf0cc; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  .nav .links a { padding: 8px 10px; }
  .island:hover, .island.big { width: 92%; }
}

#tTitle, .thread h3, .post .body { overflow-wrap: anywhere; }
