:root {
  --bg: #08090b;
  --panel: #0e1013;
  --panel-2: #121418;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --fg: #f5f6f8;
  --muted: #8a8f98;
  --faint: #5b616b;
  --accent: #5b82ff;
  --rss: #6690ff;
  --podcast: #ffb547;
  --newsletter: #3fd8b5;
  --explore: #ffd48a;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: rgba(8, 9, 11, .72); border-bottom: 1px solid var(--line);
}
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.logo { width: 20px; height: 20px; border-radius: 6px; background: conic-gradient(from 210deg, var(--rss), var(--newsletter), var(--podcast), var(--rss)); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); color: var(--fg);
  transition: background .2s, border-color .2s;
}
.btn:hover { border-color: rgba(255, 255, 255, .25); }
.btn.light { background: var(--fg); color: #0a0b0d; border-color: var(--fg); }
.btn.light:hover { background: #fff; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }

/* language switcher */
.lang { position: relative; }
.lang-btn { padding: 0 12px; gap: 6px; color: var(--muted); background: transparent; font: inherit; font-size: 14px; cursor: pointer; }
.lang-btn:hover { color: var(--fg); }
.lang-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; margin: 0; padding: 6px; list-style: none; background: #111317; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 60px -10px rgba(0,0,0,.7); z-index: 30; }
.lang-menu li { padding: 8px 10px; border-radius: 7px; font-size: 13.5px; color: var(--muted); cursor: pointer; display: flex; justify-content: space-between; }
.lang-menu li:hover, .lang-menu li:focus { background: rgba(255,255,255,.06); color: var(--fg); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--fg); }
.lang-menu li[aria-selected="true"]::after { content: "✓"; color: #b9c9ff; }

/* footer */
footer { margin-top: 140px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; padding-top: 72px; padding-bottom: 72px; font-size: 14px; }
.foot .logo { display: block; width: 22px; height: 22px; }
.foot h4 { margin: 0 0 26px; font-size: 14px; font-weight: 500; color: var(--fg); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.foot ul a, .foot-legal a { color: var(--muted); transition: color .15s; }
.foot ul a:hover, .foot-legal a:hover { color: var(--fg); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; font-size: 13.5px; }
.foot-legal a { color: var(--faint); }
.foot-legal a + a::before { content: "·"; margin: 0 12px; color: var(--faint); opacity: .6; }
.foot-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-meta { display: flex; align-items: center; gap: 22px; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); transition: color .15s; }
.foot-status:hover { color: var(--fg); }
.foot-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--newsletter); box-shadow: 0 0 0 3px rgba(63, 216, 181, .12); }
.foot-social { display: flex; align-items: center; gap: 2px; }
.social-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--faint); transition: color .15s, background .15s; }
.social-link:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.social-link svg { width: 17px; height: 17px; fill: currentColor; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .login { display: none; }
  .lang-cur { display: none; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 48px; padding-bottom: 48px; }
  .foot > .logo-col, .foot-bottom { grid-column: 1 / -1; }
  .foot-bottom { margin-top: 32px; }
}

@media (max-width: 560px) {
  .foot-meta { width: 100%; justify-content: space-between; }
}

