/* =========================================================
   lanerc漫画 / lanerc2027.com.cn
   下拉宇宙：一条向下的长漫画页
   ========================================================= */

:root {
  --night: #08080c;
  --panel: #121219;
  --panel-deep: #0b0b11;
  --paper: #f4f0e6;
  --cyan: #58e7ff;
  --pink: #ff4d97;
  --ink: #08080c;
  --muted: #9c9aa8;
  --line: rgba(244, 240, 230, 0.13);
  --line-strong: rgba(244, 240, 230, 0.24);
  --line-cyan: rgba(88, 231, 255, 0.34);
  --line-pink: rgba(255, 77, 151, 0.34);
  --header-h: 64px;
  --page-max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", "Heiti SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas,
    "Liberation Mono", "Courier New", monospace;
  --scroll: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

p,
h1,
h2,
h3,
dl,
dd,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--pink);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 99;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

/* ---------- scroll progress ---------- */

.scroll-line {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  height: 2px;
  background: rgba(244, 240, 230, 0.07);
}

.scroll-line-fill {
  display: block;
  width: calc(var(--scroll, 0) * 100%);
  height: 100%;
  background: var(--cyan);
}

.scroll-rail {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: min(50vh, 400px);
  transform: translateY(-50%);
}

.scroll-rail-percent {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.scroll-rail-track {
  position: relative;
  flex: 1;
  width: 2px;
  background: rgba(244, 240, 230, 0.16);
}

.scroll-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--scroll, 0) * 100%);
  background: var(--cyan);
}

.scroll-rail-fill::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.scroll-rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(244, 240, 230, 0.42);
  writing-mode: vertical-rl;
}

@media (min-width: 1180px) {
  .scroll-line {
    display: none;
  }

  .scroll-rail {
    display: flex;
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(8, 8, 12, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 4px;
  height: 20px;
  background: var(--cyan);
}

.brand-cjk {
  color: var(--cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(244, 240, 230, 0.7);
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--paper);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.nav-link--cta {
  padding: 9px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 800;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle-bar {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-bar:nth-child(1) {
  top: 14px;
}

.menu-toggle-bar:nth-child(2) {
  top: 19px;
}

.menu-toggle-bar:nth-child(3) {
  top: 24px;
}

.nav-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 6px var(--gutter) 22px;
    background: #0a0a10;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid rgba(244, 240, 230, 0.08);
    font-size: 17px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link--cta {
    margin-top: 14px;
    padding: 13px 0;
    border-bottom: 0;
    text-align: center;
    font-size: 16px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(32px, 7vh, 76px)) var(--gutter)
    clamp(72px, 9vh, 120px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.hero-title {
  font-size: clamp(46px, 9.2vw, 118px);
  font-weight: 900;
  letter-spacing: -0.038em;
  line-height: 0.94;
}

.hero-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(26px, 4vw, 44px);
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.6);
}

.hero-masthead-name {
  color: var(--paper);
  letter-spacing: 0.18em;
}

.hero-masthead-note {
  letter-spacing: 0.08em;
  text-align: right;
}

.hero-word {
  display: block;
}

.hero-word--pink {
  color: var(--pink);
}

.hero-lede {
  max-width: 34ch;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.95;
  color: rgba(244, 240, 230, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--paper);
}

.btn--ghost {
  border-color: rgba(244, 240, 230, 0.28);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 240, 230, 0.07);
}

.hero-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(38px, 6vw, 74px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(244, 240, 230, 0.42);
}

.hero-cue-line {
  width: 1px;
  height: 58px;
  background: var(--cyan);
  opacity: 0.6;
}

.hero-reader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  padding-top: clamp(0px, 4vw, 44px);
}

.reader-bars {
  position: absolute;
  top: -36px;
  right: -6%;
  bottom: -24px;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.reader-bars span {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}

.reader-bars span:nth-child(1) {
  left: 1%;
  width: 42px;
  border-left: 1px solid rgba(244, 240, 230, 0.13);
  background: rgba(18, 18, 25, 0.5);
}

.reader-bars span:nth-child(2) {
  left: 20%;
  top: 9%;
  bottom: -5%;
  width: 32px;
  border-left: 1px solid var(--line-pink);
  background: rgba(255, 77, 151, 0.05);
}

.reader-bars span:nth-child(3) {
  left: auto;
  right: 5%;
  top: -5%;
  width: 54px;
  border-left: 1px solid var(--line-cyan);
  border-right: 1px solid rgba(88, 231, 255, 0.12);
  background: rgba(88, 231, 255, 0.035);
}

.reader-phone {
  position: relative;
  z-index: 2;
  width: clamp(232px, 27vw, 372px);
}

.reader-screen {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(88, 231, 255, 0.55);
  border-radius: 6px;
  background: #050508;
  box-shadow: 0 0 70px rgba(88, 231, 255, 0.14);
}

.reader-screen img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.reader-phone figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.48);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 8vw, 56px);
    padding-top: calc(var(--header-h) + 38px);
  }

  .hero-title {
    font-size: clamp(46px, 12vw, 88px);
  }

  .hero-reader {
    align-items: flex-start;
    padding-top: 0;
  }

  .reader-phone {
    width: min(76vw, 300px);
    margin: 0 auto;
  }

  .reader-bars {
    top: -18px;
    right: 4%;
    bottom: auto;
    left: 4%;
    height: 104%;
  }

  .reader-bars span:nth-child(1) {
    left: 0;
  }

  .reader-bars span:nth-child(2) {
    left: 16%;
    top: 6%;
    bottom: auto;
    height: 92%;
  }

  .reader-bars span:nth-child(3) {
    right: 0;
    top: 0;
    bottom: auto;
    height: 100%;
  }

  .hero-cue {
    margin-top: 32px;
  }
}

@media (max-width: 420px) {
  .hero-masthead {
    flex-direction: column;
    gap: 6px;
  }

  .hero-masthead-note {
    text-align: left;
  }

  .hero-title {
    font-size: clamp(43px, 12.6vw, 60px);
  }

  .btn {
    min-height: 48px;
    padding: 0 20px;
  }
}

/* ---------- shared section type ---------- */

.section-no {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 24px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.section-no::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* ---------- read / 下拉式阅读 ---------- */

.read {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0 clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}

.read-inner {
  display: grid;
  grid-template-columns: minmax(248px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 88px);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.read-aside {
  position: sticky;
  top: calc(var(--header-h) + 44px);
  padding-bottom: 24px;
}

.read-aside .section-title {
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.read-lede {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(244, 240, 230, 0.68);
}

.read-specs {
  margin-top: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid var(--line);
}

.read-specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.read-specs dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 240, 230, 0.42);
}

.read-specs dd {
  font-size: 13px;
  font-weight: 700;
  color: rgba(244, 240, 230, 0.86);
}

.read-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 54px);
  padding-left: clamp(18px, 2.6vw, 34px);
  border-left: 1px solid rgba(244, 240, 230, 0.1);
}

.flow-step {
  max-width: 54ch;
}

.flow-step--indent {
  margin-left: clamp(0px, 7vw, 92px);
}

.flow-step-no {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.flow-step h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.flow-step p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.64);
}

.flow-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flow-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.flow-frame--lead img {
  aspect-ratio: 21 / 9;
}

.flow-frame--tall {
  width: min(74%, 520px);
  margin-left: auto;
}

.flow-frame--tall img {
  aspect-ratio: 3 / 4;
  object-position: 50% 80%;
}

.flow-frame--wide img {
  aspect-ratio: 2 / 1;
}

.flow-frame figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel-deep);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.7);
}

.flow-frame figcaption .mono {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.crop-top {
  object-position: 50% 0%;
}

.crop-mid {
  object-position: 50% 46%;
}

.crop-end {
  object-position: 50% 100%;
}

.keep-scrolling {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 20px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  transition: background-color 0.18s ease;
}

.keep-scrolling:hover {
  background: var(--paper);
}

.keep-scrolling .mono {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
}

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

  .read-aside {
    position: static;
  }

  .read-lede {
    max-width: 40ch;
  }

  .read-flow {
    margin-top: 8px;
  }

  .flow-frame--tall {
    width: min(88%, 420px);
  }
}

@media (max-width: 560px) {
  .read-flow {
    padding-left: 14px;
  }

  .flow-frame--lead img {
    aspect-ratio: 16 / 10;
  }

  .flow-frame--tall {
    width: 100%;
  }

  .flow-frame--tall img {
    aspect-ratio: 4 / 5;
  }

  .flow-frame--wide img {
    aspect-ratio: 3 / 2;
  }

  .flow-frame figcaption {
    padding: 10px 12px;
    font-size: 11.5px;
  }

  .flow-step--indent {
    margin-left: 0;
  }

  .keep-scrolling {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* ---------- library / 书库 ---------- */

.library {
  padding: clamp(64px, 8vw, 110px) 0 clamp(80px, 10vw, 130px);
  background: var(--paper);
  color: var(--ink);
}

.library-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(22px, 4vw, 60px);
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(8, 8, 12, 0.22);
}

.library .section-no {
  color: rgba(8, 8, 12, 0.66);
}

.library-title {
  margin-top: 6px;
  font-size: clamp(38px, 4.9vw, 66px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.99;
}

.library-note {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(8, 8, 12, 0.64);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(36px, 5vw, 60px);
}

.book {
  min-width: 0;
}

.book:nth-child(1) {
  grid-column: 1 / span 3;
}

.book:nth-child(2) {
  grid-column: 5 / span 4;
  margin-top: clamp(24px, 4vw, 64px);
}

.book:nth-child(3) {
  grid-column: 10 / span 3;
  margin-top: clamp(8px, 1.6vw, 20px);
}

.book:nth-child(4) {
  grid-column: 2 / span 3;
}

.book:nth-child(5) {
  grid-column: 6 / span 3;
  margin-top: clamp(24px, 4vw, 56px);
}

.book:nth-child(6) {
  grid-column: 10 / span 3;
  margin-top: clamp(8px, 1.6vw, 18px);
}

.book-cover {
  overflow: hidden;
  border: 1px solid rgba(8, 8, 12, 0.28);
  background: var(--panel-deep);
}

.book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(8, 8, 12, 0.24);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(8, 8, 12, 0.56);
}

.book-genre {
  letter-spacing: 0.05em;
}

.book-title {
  margin: 9px 0 6px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.book-desc {
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(8, 8, 12, 0.62);
}

@media (max-width: 1000px) {
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }

  .book:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .book:nth-child(even) {
    margin-top: clamp(20px, 4vw, 44px);
  }

  .library-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .library-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .book:nth-child(n) {
    margin-top: 0;
  }

  .book-cover {
    max-width: 82%;
  }

  .book-title {
    font-size: 22px;
  }

  .book-desc {
    max-width: 32ch;
  }
}

/* ---------- free / 免费入口 ---------- */

.free {
  background: var(--night);
  border-bottom: 1px solid var(--line);
}

.free-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(56px, 7vw, 92px);
}

.free-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: start;
}

.free-block {
  padding: clamp(28px, 3.6vw, 56px);
  color: var(--ink);
}

.free-block--cyan {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 40px);
  min-height: clamp(340px, 38vw, 480px);
  background: var(--cyan);
}

.free-block--pink {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: clamp(240px, 26vw, 320px);
  margin-top: clamp(32px, 7vw, 96px);
  background: var(--pink);
}

.free-block .section-no {
  color: rgba(8, 8, 12, 0.66);
}

.free-title {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.free-block p {
  max-width: 38ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(8, 8, 12, 0.76);
}

.free-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.free-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 0.18s ease;
}

.free-link:hover {
  background: #1b1b24;
}

.free-quote {
  max-width: 12ch;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}

.free-quote-note {
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(8, 8, 12, 0.72);
}

.free-rows {
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.free-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(12px, 4vw, 48px);
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}

.free-row dt {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.015em;
}

.free-row dd {
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.66);
}

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

  .free-block--cyan {
    min-height: 0;
  }

  .free-block--pink {
    min-height: 0;
    margin-top: 0;
  }

  .free-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .free-quote {
    max-width: 14ch;
  }
}

/* ---------- download ---------- */

.download {
  padding: clamp(72px, 9vw, 118px) 0 clamp(80px, 10vw, 128px);
  background: var(--night);
}

.download-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.download-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.download-title {
  margin-top: 6px;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.download-note {
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.6);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
  gap: 1px;
}

.download-grid:has([data-channel]:not([hidden])) {
  border: 1px solid var(--line-cyan);
  background: var(--line-cyan);
}

.dl {
  min-height: 218px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--panel-deep);
  transition: background-color 0.18s ease;
}

.dl:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(26px, 4vw, 40px);
}

.dl:hover {
  background: #14141d;
}

.dl-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-top .mono {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 240, 230, 0.46);
}

.dl-rule {
  flex: 1;
  height: 1px;
  background: rgba(244, 240, 230, 0.16);
}

.dl-name {
  display: block;
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
}

.dl-note {
  display: block;
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.58);
}

.dl-foot {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.dl:hover .dl-name {
  color: var(--cyan);
}

.dl:focus-visible {
  outline-offset: -3px;
}

.download-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-size: 13px;
  color: rgba(244, 240, 230, 0.5);
}

.download-foot .mono {
  color: rgba(244, 240, 230, 0.42);
}

@media (max-width: 560px) {
  .dl {
    min-height: 0;
    gap: 24px;
  }
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(44px, 6vw, 76px) 0 24px;
  background: #060609;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
  gap: clamp(26px, 4vw, 64px);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-word {
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: var(--paper);
}

.footer-word span {
  margin-left: 4px;
  font-size: 0.38em;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.footer-desc {
  max-width: 26ch;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.5);
}

.footer-label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244, 240, 230, 0.4);
}

.footer-nav ul {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.footer-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: rgba(244, 240, 230, 0.72);
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(244, 240, 230, 0.5);
}

.footer-meta .mono {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--page-max);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.38);
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- error page ---------- */

.error-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 8vh) var(--gutter) 10vh;
  overflow: clip;
}

.error-bars {
  position: absolute;
  top: 0;
  right: 8%;
  bottom: 0;
  left: 8%;
  z-index: 0;
  pointer-events: none;
}

.error-bars span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(244, 240, 230, 0.09);
}

.error-bars span:nth-child(1) {
  left: 0;
}

.error-bars span:nth-child(2) {
  left: 34%;
  background: var(--line-pink);
}

.error-bars span:nth-child(3) {
  right: 12%;
  background: var(--line-cyan);
}

.error-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.error-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.error-code::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.error-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.error-text {
  max-width: 34ch;
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(244, 240, 230, 0.66);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.error-foot {
  margin-top: clamp(48px, 8vw, 96px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 240, 230, 0.38);
}

@media (max-width: 560px) {
  .error-page {
    padding-top: calc(var(--header-h) + 56px);
  }

  .error-title {
    font-size: clamp(38px, 10.5vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }
}