:root {
  --bg: #0f221b;
  --bg-soft: #12281f;
  --panel: #17342a;
  --ink: #f4efdf;
  --muted: #a7bdaf;
  --accent: #ffd84d;
  --line: rgba(244, 239, 223, 0.14);
  --line-strong: rgba(244, 239, 223, 0.3);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
div[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p,
dl,
dd,
dt,
ul,
ol,
li {
  margin: 0;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.nowrap {
  white-space: nowrap;
}

.kicker {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

/* masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 34, 27, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: block;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-domain {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.masthead-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.masthead-nav a span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.masthead-nav a:hover,
.masthead-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* hero */
.hero {
  padding: 92px 0 104px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

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

.btn-solid {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--accent);
  color: #14261f;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 216, 77, 0.18);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.16s ease;
}

.btn-line:hover {
  border-color: var(--accent);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px 36px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-facts dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.hero-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 21px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.index-row:hover {
  background: rgba(244, 239, 223, 0.035);
}

.index-no {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.index-body {
  display: block;
  min-width: 0;
}

.index-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.index-desc {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* channels */
.channel {
  border-bottom: 1px solid var(--line);
}

.channel-grid {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.channel-no {
  font-size: clamp(44px, 4.6vw, 60px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.channel-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.channel-body p {
  margin-top: 14px;
  max-width: 46em;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.line-list {
  list-style: none;
  margin-top: 24px;
  padding: 0;
  max-width: 820px;
}

.line-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.line-list strong {
  margin-right: 10px;
  color: var(--ink);
  font-weight: 600;
}

/* screens */
.screens {
  padding: 88px 0 96px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.screens-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: 46px;
}

.screens-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
}

.screens-head p {
  max-width: 40em;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.screen-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.screen {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  background: #0a1813;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 22px 46px rgba(0, 0, 0, 0.36);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* order */
.order {
  padding: 92px 0 96px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
}

.section-head p {
  max-width: 42em;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 30px 34px 0 0;
}

.steps li + li {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.step-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.steps h3 {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* faq */
.faq {
  padding: 92px 0 96px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
}

.faq-intro h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
}

.faq-intro p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.faq-list details p {
  padding: 2px 0 22px;
  max-width: 52em;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

/* install */
.install {
  padding: 88px 0 96px;
  background: var(--accent);
  color: #10241c;
}

.install-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.install .kicker {
  color: #46583e;
  padding-top: 8px;
}

.install h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
}

.install-lead {
  margin-top: 14px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.85;
  color: #3c4f38;
}

.install-list {
  margin-top: 0;
}

.entry {
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 6px;
  border-bottom: 1px solid rgba(16, 36, 28, 0.26);
  color: #10241c;
  transition: background 0.18s ease, padding-left 0.18s ease;
}

.entry:not([hidden]) {
  display: flex;
}

.entry:hover {
  background: rgba(16, 36, 28, 0.06);
  padding-left: 14px;
}

.entry-no {
  flex: 0 0 auto;
  width: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #50644a;
}

.entry-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.entry-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.entry-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #3d5138;
}

.entry-go {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 7px 19px;
  border-radius: 999px;
  background: #10241c;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* colophon */
.colophon {
  padding: 62px 0 26px;
}

.colophon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.colophon-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.colophon-brand .brand-name {
  font-size: 18px;
}

.colophon-brand .brand-domain {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.colophon-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--muted);
}

.colophon-nav a:hover {
  color: var(--accent);
}

.colophon-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
}

/* 404 */
.error-main {
  padding: 110px 0 130px;
}

.error-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.error-code {
  font-size: 84px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.error-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.3;
  font-weight: 800;
}

.error-copy p {
  margin-top: 14px;
  max-width: 36em;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.error-copy .btn-solid {
  margin-top: 30px;
}

/* responsive */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-index {
    max-width: 640px;
  }

  .channel-grid {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
  }

  .install-head {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .error-grid {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
  }

  .error-code {
    font-size: 64px;
  }
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding: 26px 0;
  }

  .steps li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .masthead-inner {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .brand {
    margin-right: auto;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .masthead-nav {
    order: 3;
    flex: 1 1 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
    font-size: 13px;
  }

  .masthead-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding: 52px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-top: 34px;
  }

  .index-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 2px;
  }

  .index-no {
    font-size: 25px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .channel-no {
    font-size: 38px;
  }

  .screens {
    padding: 60px 0 66px;
  }

  .screens-head {
    margin-bottom: 30px;
  }

  .screen-row {
    justify-content: flex-start;
    gap: 14px;
    padding: 4px 0 14px;
    scroll-snap-type: x mandatory;
  }

  .screen {
    flex: 0 0 164px;
    width: 164px;
    scroll-snap-align: start;
  }

  .order,
  .faq {
    padding: 60px 0 66px;
  }

  .install {
    padding: 60px 0 68px;
  }

  .install-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .install .kicker {
    padding-top: 0;
  }

  .entry {
    gap: 14px;
    padding: 16px 4px;
  }

  .entry-no {
    width: 20px;
  }

  .entry-name {
    font-size: 16.5px;
  }

  .entry-go {
    padding: 6px 16px;
  }

  .error-main {
    padding: 64px 0 84px;
  }

  .error-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .error-code {
    font-size: 56px;
  }

  .colophon {
    padding: 46px 0 22px;
  }

  .colophon-inner {
    flex-direction: column;
    gap: 20px;
  }
}
