:root {
  color-scheme: dark;
  --bg: #050810;
  --bg-soft: #0a1020;
  --panel: rgba(18, 25, 43, 0.72);
  --panel-solid: #11192a;
  --stroke: rgba(180, 213, 255, 0.16);
  --text: #f5f8ff;
  --muted: #aab5c8;
  --cyan: #62d7ff;
  --blue: #4588ff;
  --violet: #8e63ff;
  --red: #ff5777;
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(55, 126, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 24%, rgba(255, 67, 111, 0.11), transparent 28rem),
    linear-gradient(145deg, var(--bg), #070c17 50%, #05070d);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #07101f;
  background: var(--cyan);
  font-weight: 700;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(180, 213, 255, 0.09);
  background: rgba(5, 8, 16, 0.76);
  backdrop-filter: blur(20px) saturate(130%);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

main { overflow: hidden; }

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

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding: 92px 0 82px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.18; letter-spacing: -0.045em; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.8rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { margin-bottom: 10px; font-size: 1.16rem; }

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), #d7e9ff 36%, #a27cff 68%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
}

.lead { max-width: 660px; margin: 0 0 32px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-weight: 720;
}

.button.primary {
  border-color: transparent;
  color: #061020;
  background: linear-gradient(115deg, var(--cyan), #8fa5ff);
  box-shadow: 0 16px 40px rgba(69, 136, 255, 0.22);
}

.button:hover, .button:focus-visible { transform: translateY(-1px); filter: brightness(1.08); }

.hero-art {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(44vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 135, 255, 0.28), transparent 66%);
  filter: blur(10px);
}

.prism {
  position: relative;
  width: min(70vw, 390px);
  aspect-ratio: 1;
  filter: drop-shadow(0 32px 70px rgba(45, 120, 255, 0.28));
  animation: drift 8s ease-in-out infinite;
}

.beam {
  position: absolute;
  left: 40%;
  top: 47%;
  width: 79%;
  height: 17%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.9), var(--cyan) 22%, var(--blue) 46%, var(--violet) 69%, var(--red));
  transform: rotate(-3deg);
  filter: blur(1px);
  opacity: 0.86;
}

.glass {
  position: absolute;
  inset: 7% 14% 13% 7%;
  clip-path: polygon(49% 0, 100% 92%, 0 77%);
  border-radius: 40%;
  background:
    linear-gradient(145deg, rgba(188, 232, 255, 0.28), transparent 32%),
    linear-gradient(35deg, rgba(76, 130, 255, 0.25), rgba(197, 141, 255, 0.09) 48%, rgba(255,255,255,.03));
  box-shadow: inset 0 0 70px rgba(114, 198, 255, 0.12);
  backdrop-filter: blur(4px);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 1.5%;
  clip-path: inherit;
  background: linear-gradient(130deg, rgba(207, 243, 255, .9), rgba(111, 176, 255, .5) 34%, rgba(200, 143, 255, .5) 62%, rgba(255, 115, 143, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
}

.section { padding: 90px 0; }
.section-heading { max-width: 700px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); margin: 0; }

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

.card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 31, 53, 0.8), rgba(10, 15, 28, 0.7));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.15);
}

.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 13px; background: rgba(98, 215, 255, 0.1); color: var(--cyan); font-size: 1.25rem; font-weight: 850; }

.support-strip {
  margin: 40px 0 90px;
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background: linear-gradient(115deg, rgba(47, 123, 255, 0.14), rgba(151, 83, 255, 0.12), rgba(255, 69, 104, 0.09));
}

.support-strip h2 { margin-bottom: 10px; }
.support-strip p { margin: 0; color: var(--muted); }

.page-hero { padding: 82px 0 48px; }
.page-hero .lead { margin-bottom: 0; }

.document {
  max-width: 840px;
  margin: 0 auto 90px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background: rgba(14, 21, 37, 0.76);
}

.document section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--stroke); }
.document h2 { font-size: 1.42rem; letter-spacing: -0.02em; }
.document p, .document li { color: #c7d0df; }
.document ul { padding-left: 1.25rem; }
.document .meta { color: var(--muted); font-size: .9rem; }
.document a { color: var(--cyan); overflow-wrap: anywhere; }

.faq { display: grid; gap: 14px; }
.faq details { padding: 20px 22px; border: 1px solid var(--stroke); border-radius: 16px; background: rgba(255,255,255,.025); }
.faq summary { cursor: pointer; font-weight: 720; }
.faq details p { margin: 12px 0 0; }

.contact-box { padding: 26px; border-radius: 20px; background: rgba(98, 215, 255, .07); border: 1px solid rgba(98, 215, 255, .2); }

.manual-callout {
  padding: 24px;
  border: 1px solid rgba(98, 215, 255, .2);
  border-radius: 20px;
  background: rgba(98, 215, 255, .07);
}

.manual-page { overflow: visible; }
.manual-hero { padding-bottom: 34px; }
.manual-meta { color: var(--muted); font-size: .9rem; }
.manual-search {
  position: relative;
  max-width: 720px;
  margin-top: 28px;
}
.manual-search label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.manual-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 50px 0 17px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  font: inherit;
  outline: none;
}
.manual-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(98,215,255,.12); }
.manual-search kbd {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 2px 7px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  color: var(--muted);
  background: var(--panel-solid);
  font: inherit;
  font-size: .75rem;
}
.manual-status { min-height: 1.7em; margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.manual-layout {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.manual-toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(14,21,37,.82);
}
.manual-toc strong { display: block; margin: 0 8px 8px; font-size: .8rem; color: var(--muted); }
.manual-toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: #c7d0df;
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.35;
}
.manual-toc a:hover, .manual-toc a:focus-visible { color: var(--text); background: rgba(98,215,255,.08); }
.manual-content { min-width: 0; }
.manual-section {
  scroll-margin-top: 92px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(14,21,37,.76);
}
.manual-section[hidden] { display: none; }
.manual-section h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.manual-section h3 { margin-top: 28px; font-size: 1.08rem; letter-spacing: -.01em; }
.manual-section h3:first-of-type { margin-top: 18px; }
.manual-section p, .manual-section li, .manual-section td { color: #c7d0df; }
.manual-section ul, .manual-section ol { padding-left: 1.3rem; }
.manual-section li + li { margin-top: 6px; }
.manual-section a { color: var(--cyan); }
.manual-section table { width: 100%; border-collapse: collapse; margin: 16px 0 6px; font-size: .9rem; }
.manual-section th, .manual-section td { padding: 11px 12px; border: 1px solid var(--stroke); text-align: left; vertical-align: top; }
.manual-section th { color: var(--text); background: rgba(98,215,255,.065); }
.manual-section code { color: #d8e5ff; background: rgba(255,255,255,.06); padding: .12em .38em; border-radius: 5px; }
.manual-section details { padding: 13px 0; border-top: 1px solid var(--stroke); }
.manual-section details:first-of-type { border-top: 0; }
.manual-section summary { cursor: pointer; color: var(--text); font-weight: 720; }
.manual-section details > :last-child { margin-bottom: 0; }
.manual-note { padding: 14px 16px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: rgba(98,215,255,.06); }
.manual-empty { display: none; padding: 36px; border: 1px solid var(--stroke); border-radius: 20px; text-align: center; color: var(--muted); }
.manual-empty.visible { display: block; }

.site-footer { border-top: 1px solid rgba(180, 213, 255, 0.1); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@keyframes drift { 50% { transform: translateY(-12px) rotate(1deg); } }

@media (max-width: 820px) {
  .nav { min-height: 62px; }
  .nav-links a:first-child { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-art { min-height: 340px; grid-row: 1; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .support-strip, .footer-inner { align-items: flex-start; flex-direction: column; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-toc { position: static; max-height: none; columns: 2; }
  .manual-toc strong { column-span: all; }
}

@media (max-width: 520px) {
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .78rem; }
  .brand span { display: none; }
  .hero { padding-top: 48px; }
  .hero-art { min-height: 280px; }
  .section { padding: 66px 0; }
  .manual-toc { columns: 1; }
  .manual-section { border-radius: 18px; }
  .manual-section table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
