/* NTorrent one-pager — dark flat monochrome */
:root {
  --bg: #0d0d0d;
  --surface: #131315;
  --surface-2: #222224;
  --line: #232326;
  --line-soft: #1c1c1e;
  --app-line: #2a2a2c;
  --text: #e6e6e6;
  --text-bright: #ffffff;
  --text-dim: #98989c;
  --text-faint: #55555a;
  --text-ghost: #3a3a3e;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}
a { color: var(--text); }
a:hover { color: var(--text-bright); }
.mono { font-family: var(--font-mono); }
.section-index { font-size: 11px; color: var(--text-faint); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Nav ---- */
.nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
}
.nav__brand img { width: 22px; height: 22px; }
.nav__github { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.lang-switch { display: flex; gap: 2px; }
.lang-switch__btn {
  border: 1px solid #2e2e31;
  padding: 3px 9px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}
.lang-switch__btn.is-active { background: var(--text); color: #111111; }

/* ---- Hero ---- */
.hero {
  padding: 88px 40px 64px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero__main { max-width: 720px; margin: 0 auto; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__title {
  margin: 0;
  font-size: 76px;
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--text-bright);
  text-wrap: balance;
}
.hero__sub {
  margin: 26px auto 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 2px solid var(--text-bright);
  padding-bottom: 6px;
  transition: gap .3s;
}
.hero__cta:hover { gap: 20px; }
.hero__note { margin: 14px 0 0; font-size: 11px; color: var(--text-faint); }

/* ---- Mockup section ---- */
.mock {
  padding: 56px 40px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .9s .2s cubic-bezier(.2,.7,.2,1) both;
}
.mock .section-index { margin-bottom: 18px; max-width: 980px; margin-left: auto; margin-right: auto; }

/* App window */
.app {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  overflow: hidden;
  background: #111111;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.app__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--app-line);
}
.app__titlebar img { width: 16px; height: 16px; }
.app__titlebar span { font-size: 12px; color: var(--text-dim); }
.app__winbtns { display: flex; gap: 18px; color: var(--text-faint); font-size: 13px; margin-left: auto; }
.app__body { display: flex; min-height: 490px; }
.app__sidebar {
  width: 180px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0d0d0d;
  border-right: 1px solid var(--app-line);
  padding: 16px 8px 12px;
}
.app__sidebar-spacer { flex: 1; }
.app__sidebar-bottom { display: flex; gap: 2px; }
.app__sidebar-bottom .app-nav--dim { flex: 1; }
.app-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  padding: 8px 10px;
  color: #b5b5b8;
}
.app-nav img { width: 18px; height: 18px; opacity: .7; }
.app-nav.is-active { background: #2c2c2f; color: var(--text-bright); font-weight: 600; }
.app-nav.is-active img { opacity: 1; }
.app-nav--dim { color: #808083; }
.app-nav--dim img, .app-nav--icon img { opacity: .55; }
.app__content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app__actionbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--app-line);
}
.app__actionbar-spacer { flex: 1; }
.app-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--text-faint);
}
.app-btn img { width: 15px; height: 15px; opacity: .3; }
.app__divider { width: 1px; height: 20px; background: var(--app-line); margin: 0 4px; }
.app__search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid #333336;
  border-radius: 5px;
  padding: 5px 9px;
  width: 190px;
  color: var(--text-faint);
}
.app__search img { width: 13px; height: 13px; opacity: .4; }
.dashboard { flex: 1; padding: 24px; }
.dashboard__title { font-size: 20px; font-weight: 600; color: var(--text-bright); margin-bottom: 16px; }
.dashboard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: var(--surface-2);
  border: 1px solid #2e2e31;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card__k { color: var(--text-dim); font-size: 12px; }
.stat-card__v { color: var(--text-bright); font-size: 20px; font-weight: 600; }
.app__statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  border-top: 1px solid var(--app-line);
  font-size: 12px;
  color: var(--text-dim);
}
.app__statusbar-spacer { flex: 1; }
.app__status-item { display: flex; align-items: center; gap: 6px; }
.app__status-item img { width: 13px; height: 13px; opacity: .7; }

/* Torrent list (Torrents page mockup) */
.app__actionbar--active .app-btn { color: var(--text); }
.app__actionbar--active .app-btn img { opacity: .85; }
.tlist { flex: 1; display: flex; flex-direction: column; }
.tlist__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 78px 120px 100px 52px 52px 88px 88px;
  align-items: center;
  padding: 5px 6px;
}
.tlist__row--head {
  padding: 4px 6px;
  border-bottom: 1px solid var(--app-line);
  color: var(--text-dim);
  font-size: 12px;
}
.tlist__row--alt { background: #1a1a1a; }
.tlist__row.is-selected { background: #2f2f33; color: var(--text-bright); }
.tlist__name { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlist__progress { padding-right: 14px; }
.pbar {
  display: block;
  background: var(--app-line);
  border-radius: 4px;
  height: 15px;
  position: relative;
  overflow: hidden;
}
.pbar__fill { position: absolute; inset: 0; background: #8a8a8e; border-radius: 4px; }
.pbar__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text);
  mix-blend-mode: difference;
}

/* ---- Features ---- */
.features { border-bottom: 1px solid var(--line); }
.features__index { max-width: 980px; margin: 0 auto; padding: 28px 0 0; }
.feature {
  display: grid;
  grid-template-columns: 80px 320px 1fr;
  gap: 32px;
  align-items: baseline;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
  transition: background .3s;
}
.feature:first-of-type { border-top: none; margin-top: 12px; }
.feature:hover { background: var(--surface); }
.feature__num { font-size: 12px; color: var(--text-faint); }
.feature__title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--text-bright); }
.feature__desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }

/* ---- Philosophy ---- */
.philosophy { padding: 88px 40px; border-bottom: 1px solid var(--line); text-align: center; }
.philosophy .section-index { margin-bottom: 24px; }
.philosophy__lead {
  margin: 0 auto;
  max-width: 880px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text-bright);
  text-wrap: balance;
}
.philosophy__body {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ---- FAQ ---- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 56px;
}
.faq__label { padding: 0 0 8px; text-align: center; }
.faq__item { padding: 28px 0; border-top: 1px solid var(--line-soft); }
.faq__list .faq__item:first-child { border-top: none; }
.faq__q { margin: 0 0 10px; font-size: 17px; font-weight: 500; color: var(--text-bright); }
.faq__a { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }

/* ---- Marquee (static) ---- */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track {
  display: flex;
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-ghost);
}

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 40px;
  font-size: 11px;
  color: var(--text-faint);
}
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text-bright); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__title { font-size: 52px; }
  .feature { grid-template-columns: 60px 1fr; }
  .feature__desc { grid-column: 2; }
}
