:root {
  color-scheme: dark;
  --bg: #090a0e;
  --surface: #12141a;
  --surface-2: #181b22;
  --text: #f7f3f5;
  --muted: #aaa7af;
  --border: #2b2e36;
  --pink: #e85b85;
  --pink-light: #ff8ba7;
  --teal: #66d2c2;
  --warning: #f0bf67;
  --max: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: #07100f;
  background: var(--teal);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 10, 14, .9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 720;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a { padding: 5px 0; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--pink); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font-size: 21px;
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 70px);
  max-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg) url("nightask-logo.png") right 8% center / min(50vw, 650px) no-repeat;
}

.hero-inner { padding: 86px 0 110px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span { color: var(--pink-light); }

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  color: #d1cdd2;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
}

.button:hover { border-color: #555963; background: var(--surface-2); }
.button.primary { border-color: var(--pink); background: var(--pink); color: #180910; }
.button.primary:hover { border-color: var(--pink-light); background: var(--pink-light); }
.button .arrow { font-size: 19px; line-height: 1; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  min-height: 160px;
  padding: 34px 42px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 8px; font-size: 17px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 14px; }

.section { padding: 92px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.18; letter-spacing: 0; }
.section-lead { margin: 0; color: var(--muted); font-size: 17px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.feature {
  min-height: 210px;
  padding: 32px;
  background: var(--surface);
}

.feature-index { color: var(--pink-light); font: 700 12px/1 monospace; }
.feature h3 { margin: 46px 0 8px; font-size: 21px; }
.feature p { margin: 0; color: var(--muted); }

.legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.legal-link {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.legal-link:hover { border-color: var(--pink); }
.legal-link h3 { margin: 42px 0 5px; font-size: 19px; }
.legal-link p { margin: 0; color: var(--muted); font-size: 14px; }
.legal-link .arrow { float: right; color: var(--teal); font-size: 22px; }

.page-hero {
  padding: 86px 0 58px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb { margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: 1.1; }
.page-hero .lead { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row strong { color: var(--text); }

.doc-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 80px;
  justify-content: start;
  padding: 58px 0 100px;
}

.doc-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.doc-nav strong { display: block; margin-bottom: 12px; font-size: 13px; }
.doc-nav a { display: block; padding: 6px 0; color: var(--muted); font-size: 13px; }
.doc-nav a:hover { color: var(--pink-light); }

.document { min-width: 0; }
.document section { margin-bottom: 52px; scroll-margin-top: 110px; }
.document h2 { margin: 0 0 14px; font-size: 24px; }
.document h3 { margin: 28px 0 8px; font-size: 17px; }
.document p { margin: 0 0 16px; color: #d4d0d4; }
.document ul, .document ol { margin: 0 0 18px; padding-left: 22px; color: #d4d0d4; }
.document li { margin-bottom: 8px; }
.document a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.notice {
  margin: 0 0 38px;
  padding: 18px 20px;
  border-left: 3px solid var(--warning);
  color: #d7d1c4;
  background: rgba(240, 191, 103, .08);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  padding: 70px 0 100px;
}

.support-grid h2 { margin: 0 0 12px; font-size: 28px; }
.support-intro { margin: 0 0 32px; color: var(--muted); }

.contact-block {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.contact-block + .contact-block { margin-top: 14px; }
.contact-block .label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.contact-block strong { display: block; margin: 5px 0 9px; font-size: 18px; overflow-wrap: anywhere; }
.contact-block p { margin: 0; color: var(--muted); font-size: 14px; }
.placeholder { color: var(--warning); }

.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { padding: 20px 40px 20px 0; cursor: pointer; font-weight: 700; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; color: var(--teal); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -5px 0 22px; color: var(--muted); }

.site-footer { padding: 56px 0 30px; background: #07080b; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.footer-copy { max-width: 360px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.footer-col strong { display: block; margin-bottom: 13px; font-size: 13px; }
.footer-col a { display: block; width: fit-content; padding: 4px 0; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; color: #77747c; font-size: 12px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 16px 20px 22px; border-bottom: 1px solid var(--border); background: #0b0c10; flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; }
  .site-nav a[aria-current="page"] { border-bottom: 0; color: var(--pink-light); }
  .hero { min-height: 680px; max-height: none; background: var(--bg) url("nightask-logo.png") center 8% / min(88vw, 520px) no-repeat; align-items: end; }
  .hero-inner { padding: 300px 0 76px; }
  .hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .hero-copy { font-size: 17px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { min-height: 0; padding: 24px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 64px 0; }
  .feature-grid, .legal-links, .support-grid, .footer-main { grid-template-columns: 1fr; }
  .feature { min-height: 180px; }
  .support-grid { gap: 56px; padding: 54px 0 80px; }
  .doc-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .doc-nav { position: static; display: flex; gap: 7px 16px; flex-wrap: wrap; padding: 0 0 16px; border-left: 0; border-bottom: 1px solid var(--border); }
  .doc-nav strong { width: 100%; margin-bottom: 4px; }
  .doc-nav a { display: inline-block; }
  .footer-main { gap: 34px; }
}

@media (max-width: 520px) {
  .nav-shell, .container, .doc-layout { width: min(100% - 28px, var(--max)); }
  .brand small { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .page-hero { padding: 62px 0 44px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature h3 { margin-top: 30px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
