:root {
  --ink: #13262d;
  --ink-2: #294047;
  --muted: #66777c;
  --paper: #f6f4ee;
  --surface: #fffefb;
  --surface-2: #edf1ec;
  --night: #10272c;
  --night-2: #17383d;
  --mint: #bfe9d4;
  --mint-strong: #72c6a0;
  --lime: #dff29a;
  --coral: #ef9278;
  --line: #dbe2dc;
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 70px rgba(20, 45, 48, 0.12);
  --shadow-soft: 0 10px 35px rgba(20, 45, 48, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5f1;
  --ink-2: #c4d4d0;
  --muted: #9aafaa;
  --paper: #10191d;
  --surface: #17262a;
  --surface-2: #203438;
  --night: #071418;
  --night-2: #10272c;
  --mint: #1d4a42;
  --mint-strong: #79d0ac;
  --lime: #dff29a;
  --coral: #f1a087;
  --line: #30474a;
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: color 180ms ease, background-color 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: white;
  background: var(--night);
  border-radius: 10px;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.header-solid {
  background: rgba(246, 244, 238, 0.92);
  border-color: rgba(19, 38, 45, 0.1);
  box-shadow: 0 8px 30px rgba(16, 39, 44, 0.06);
  backdrop-filter: blur(18px);
}

.site-header.header-solid {
  position: sticky;
}

.site-header:not(.is-scrolled):not(.header-solid) {
  color: white;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: #faf8f2;
  border: 1px solid rgba(19, 38, 45, 0.08);
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(16, 39, 44, 0.12);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 1.08rem;
}

.brand-x {
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links > a {
  padding: 9px 13px;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 650;
  opacity: 0.84;
  transition: opacity 160ms ease, background 160ms ease;
}

.nav-links > a:hover,
.nav-links > a[aria-current="page"] {
  opacity: 1;
  background: rgba(19, 38, 45, 0.08);
}

.site-header:not(.is-scrolled):not(.header-solid) .nav-links > a:hover,
.site-header:not(.is-scrolled):not(.header-solid) .nav-links > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(12, 28, 32, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 28, 32, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-tools--standalone {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
}

.site-tools--standalone .language-control select,
.site-tools--standalone .theme-toggle {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.language-control {
  display: inline-flex;
  align-items: center;
}

.language-control select,
.theme-toggle {
  min-height: 38px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.language-control select {
  padding: 0 28px 0 11px;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--mint-strong);
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 1rem;
  line-height: 1;
}

.theme-label {
  white-space: nowrap;
}

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

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

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

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

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 15%, rgba(114, 198, 160, 0.28), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(239, 146, 120, 0.16), transparent 26%),
    var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 68px;
  padding-top: 150px;
  padding-bottom: 92px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 7px 11px;
  color: var(--mint);
  border: 1px solid rgba(191, 233, 212, 0.35);
  border-radius: 999px;
  background: rgba(191, 233, 212, 0.08);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(223, 242, 154, 0.12);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h1 .accent {
  color: var(--lime);
}

.hero-copy {
  max-width: 620px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 14px 32px rgba(223, 242, 154, 0.16);
}

.button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.button-dark {
  color: white;
  background: var(--night);
}

.button-outline {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.button-coral {
  color: var(--night);
  background: var(--coral);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--mint-strong);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.app-frame {
  position: relative;
  padding: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 35px 90px rgba(2, 18, 22, 0.42);
  transform: rotateY(-4deg) rotateX(1deg) rotateZ(1deg);
  backdrop-filter: blur(8px);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.app-frame img {
  width: 100%;
  aspect-ratio: 1199 / 768;
  object-fit: cover;
  border-radius: 17px;
}

.float-card {
  position: absolute;
  z-index: 2;
  padding: 13px 16px;
  color: var(--night);
  background: rgba(255, 254, 251, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(3, 24, 27, 0.28);
  backdrop-filter: blur(12px);
}

.float-card strong,
.float-card small {
  display: block;
}

.float-card strong {
  font-size: 0.82rem;
}

.float-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.float-card--top {
  top: -32px;
  right: 22px;
}

.float-card--bottom {
  bottom: -34px;
  left: -28px;
}

.platform-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: white;
  background: var(--night-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.platform-item {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.platform-item:last-child {
  border-right: 0;
}

.platform-item strong,
.platform-item span {
  display: block;
}

.platform-item strong {
  font-size: 0.92rem;
}

.platform-item span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.platform-showcase {
  padding-top: 96px;
  padding-bottom: 96px;
}

.platform-showcase .section-head {
  margin-bottom: 42px;
}

.platform-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}

.platform-shot {
  position: relative;
  margin: 0;
  padding: 18px 18px 20px;
  overflow: hidden;
  background: linear-gradient(155deg, #eef5ee 0%, #e3ede8 100%);
  border: 1px solid rgba(28, 68, 66, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.platform-shot--ios {
  background: linear-gradient(155deg, #f2edf9 0%, #e5e1f3 100%);
}

.platform-shot-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 4px 10px;
  color: var(--night);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 68, 66, 0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.platform-shot img {
  display: block;
  width: auto;
  height: min(620px, 62vw);
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: top;
  background: #f9f8fc;
  border: 8px solid #17171d;
  border-radius: 24px;
  box-shadow: 0 24px 44px rgba(19, 38, 45, 0.2);
}

.platform-shot--android img {
  border-color: #24242c;
  border-radius: 20px;
}

.platform-shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 3px 0;
}

.platform-shot figcaption strong {
  color: var(--ink);
  font-size: 1rem;
}

.platform-shot figcaption span {
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding: 110px 0;
}

.section-tight {
  padding: 80px 0;
}

.section-white {
  background: var(--surface);
}

.section-dark {
  color: white;
  background: var(--night);
}

.section-mint {
  background: var(--mint);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-head > div:first-child {
  max-width: 760px;
}

.section-kicker {
  color: #32745b;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section-dark .section-kicker {
  color: var(--mint);
}

.section-title {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.62);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  color: #287b5a;
}

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

.feature-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) {
  grid-column: span 7;
}

.feature-card:nth-child(2),
.feature-card:nth-child(3) {
  grid-column: span 5;
}

.feature-card h3 {
  max-width: 470px;
  margin: 25px 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

.feature-card--dark {
  color: white;
  background: var(--night);
  border-color: var(--night);
}

.feature-card--dark p {
  color: rgba(255, 255, 255, 0.62);
}

.feature-card--mint {
  background: var(--mint);
}

.feature-card--coral {
  background: #f6d9d1;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--night);
  background: var(--lime);
  border-radius: 14px;
}

.icon-tile svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.feature-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(19, 38, 45, 0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-card--dark .feature-tags span {
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-number {
  position: absolute;
  right: 24px;
  bottom: 14px;
  color: rgba(19, 38, 45, 0.08);
  font-size: 5.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.feature-card--dark .feature-number {
  color: rgba(255, 255, 255, 0.08);
}

.reader-layout,
.plugin-layout,
.tutorial-feature {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 72px;
}

.reader-modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.mode-card {
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 38, 45, 0.1);
  border-radius: 16px;
}

.mode-card strong,
.mode-card span {
  display: block;
}

.mode-card strong {
  font-size: 0.92rem;
}

.mode-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
}

.reader-panel {
  position: relative;
  min-height: 510px;
  padding: 28px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(145deg, rgba(223, 242, 154, 0.08), transparent 42%),
    var(--night);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.reader-page {
  position: absolute;
  top: 58px;
  bottom: 58px;
  width: 43%;
  padding: 36px 30px;
  color: #25363a;
  background: #fbf5e9;
  border-radius: 6px 18px 18px 6px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.reader-page--left {
  left: 7%;
  transform: rotate(-2deg);
}

.reader-page--right {
  right: 7%;
  border-radius: 18px 6px 6px 18px;
  transform: rotate(2deg);
}

.reader-page .line {
  height: 8px;
  margin-bottom: 13px;
  background: rgba(19, 38, 45, 0.15);
  border-radius: 999px;
}

.reader-page .line:nth-child(3n) {
  width: 74%;
}

.reader-page .line:nth-child(4n) {
  width: 88%;
}

.reader-label {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  padding: 9px 12px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.plugin-layout {
  align-items: stretch;
}

.plugin-copy {
  padding: 20px 0;
}

.plugin-flow {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.flow-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.flow-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--night);
  background: var(--mint);
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-row strong,
.flow-row small {
  display: block;
}

.flow-row strong {
  font-size: 0.9rem;
}

.flow-row small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
}

.flow-code {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
}

.plugin-visual {
  position: relative;
  min-height: 600px;
  padding: 36px;
  overflow: hidden;
  background: #e8e3d8;
  border-radius: 32px;
}

.plugin-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image: radial-gradient(var(--ink) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

.plugin-window {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  padding: 8px;
  background: var(--night);
  border-radius: 22px;
  box-shadow: 0 32px 75px rgba(19, 38, 45, 0.23);
  transform: rotate(-2deg);
}

.plugin-window img {
  border-radius: 15px;
}

.code-float {
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 28px;
  width: 245px;
  padding: 18px;
  color: #d9f1df;
  background: #18343a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(19, 38, 45, 0.18);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.7;
}

.code-float .code-accent {
  color: var(--coral);
}

.tutorial-feature {
  grid-template-columns: 1.06fr 0.94fr;
}

.screenshot-stack {
  position: relative;
  min-height: 560px;
}

.shot-card {
  position: absolute;
  width: 88%;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.shot-card img {
  border-radius: 13px;
}

.shot-card:first-child {
  top: 0;
  left: 0;
  transform: rotate(-2deg);
}

.shot-card:last-child {
  right: 0;
  bottom: 0;
  transform: rotate(2.5deg);
}

.step-list {
  margin: 32px 0 0;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--night);
  background: var(--lime);
  border-radius: 13px;
  font-weight: 900;
}

.step-item h3,
.step-item p {
  margin: 0;
}

.step-item h3 {
  font-size: 1rem;
}

.step-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--night);
}

.cta-band::after {
  content: "X";
  position: absolute;
  right: -2vw;
  bottom: -0.45em;
  color: rgba(255, 255, 255, 0.04);
  font-size: 26rem;
  font-weight: 900;
  line-height: 1;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.cta-inner h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.cta-inner p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer {
  padding: 72px 0 24px;
  color: rgba(255, 255, 255, 0.68);
  background: #0a1d21;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 52px;
}

.footer-brand p {
  max-width: 390px;
  margin: 18px 0 0;
  font-size: 0.88rem;
}

.footer-title {
  margin: 0 0 16px;
  color: white;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
}

/* Inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(114, 198, 160, 0.24), transparent 28%),
    var(--night);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -140px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 108px;
  padding-bottom: 86px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 750;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 110px;
}

.docs-sidebar {
  position: sticky;
  top: 104px;
}

.docs-sidebar-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-nav {
  display: grid;
  gap: 3px;
}

.docs-nav a {
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  color: var(--ink);
  background: rgba(191, 233, 212, 0.26);
  border-left-color: var(--mint-strong);
}

.docs-main {
  min-width: 0;
}

.doc-section {
  padding: 18px 0 64px;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-child {
  border-bottom: 0;
}

.doc-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.doc-section h3 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc-section p,
.doc-section li {
  color: var(--ink-2);
}

.doc-section a:not(.button):not(.text-link) {
  color: #287b5a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc-intro {
  margin-bottom: 28px;
  color: var(--muted) !important;
  font-size: 1.02rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.doc-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.doc-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  background: rgba(191, 233, 212, 0.34);
  border: 1px solid rgba(114, 198, 160, 0.42);
  border-left: 4px solid var(--mint-strong);
  border-radius: 16px;
}

.callout--warn {
  background: rgba(239, 146, 120, 0.15);
  border-color: rgba(239, 146, 120, 0.38);
  border-left-color: var(--coral);
}

.callout strong,
.callout p {
  display: block;
}

.callout p {
  margin: 5px 0 0;
  font-size: 0.87rem;
}

.code-block {
  position: relative;
  margin: 22px 0;
  padding: 22px 62px 22px 22px;
  overflow-x: auto;
  color: #d9f1df;
  background: var(--night);
  border-radius: 16px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.doc-steps {
  counter-reset: docs-step;
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.doc-step {
  counter-increment: docs-step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.doc-step::before {
  content: counter(docs-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--night);
  background: var(--lime);
  border-radius: 13px;
  font-size: 0.75rem;
  font-weight: 900;
}

.doc-step h3 {
  margin: 0;
  font-size: 1rem;
}

.doc-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.screenshot {
  margin: 28px 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.screenshot img {
  width: 100%;
  border-radius: 13px;
}

.screenshot figcaption {
  padding: 10px 10px 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.screenshot-grid .screenshot {
  margin: 0;
}

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--ink);
  background: var(--surface-2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td code,
p code,
li code {
  padding: 2px 6px;
  color: #245d49;
  background: rgba(191, 233, 212, 0.35);
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-list summary {
  position: relative;
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  font-size: 1.4rem;
  transform: translateY(-50%);
}

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

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.package-anatomy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.package-tree {
  padding: 24px;
  color: #d9f1df;
  background: var(--night);
  border-radius: 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.package-notes {
  display: grid;
  gap: 10px;
}

.package-note {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.package-note strong,
.package-note span {
  display: block;
}

.package-note strong {
  font-size: 0.86rem;
}

.package-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.search-box {
  position: relative;
  margin: 26px 0;
}

.search-box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(114, 198, 160, 0.14);
}

.search-box::before {
  content: "⌕";
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--muted);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.capability-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.capability-card[hidden] {
  display: none;
}

.capability-card code {
  color: #287b5a;
  font-size: 0.76rem;
  font-weight: 800;
}

.capability-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

:root[data-theme="dark"] .site-header.is-scrolled,
:root[data-theme="dark"] .site-header.header-solid {
  background: rgba(16, 25, 29, 0.92);
  border-color: rgba(213, 235, 226, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .site-header.is-scrolled .nav-links > a:hover,
:root[data-theme="dark"] .site-header.is-scrolled .nav-links > a[aria-current="page"],
:root[data-theme="dark"] .site-header.header-solid .nav-links > a:hover,
:root[data-theme="dark"] .site-header.header-solid .nav-links > a[aria-current="page"] {
  background: rgba(191, 233, 212, 0.14);
}

.site-header:not(.is-scrolled):not(.header-solid) .language-control select,
.site-header:not(.is-scrolled):not(.header-solid) .theme-toggle {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

:root[data-theme="dark"] .brand-icon {
  background: #1a2b2f;
  border-color: rgba(213, 235, 226, 0.16);
}

:root[data-theme="dark"] .section-mint {
  background: #183b37;
}

:root[data-theme="dark"] .section-kicker {
  color: #8bd7b4;
}

:root[data-theme="dark"] .mode-card {
  color: var(--ink);
  background: rgba(13, 29, 32, 0.72);
  border-color: rgba(213, 235, 226, 0.16);
}

:root[data-theme="dark"] .float-card {
  color: var(--ink);
  background: rgba(23, 38, 42, 0.94);
  border-color: rgba(213, 235, 226, 0.16);
}

:root[data-theme="dark"] .plugin-visual {
  background: #203438;
}

:root[data-theme="dark"] .feature-card--coral {
  background: #51352f;
}

:root[data-theme="dark"] .doc-section a:not(.button):not(.text-link),
:root[data-theme="dark"] .capability-card code {
  color: #8bd7b4;
}

:root[data-theme="dark"] td code,
:root[data-theme="dark"] p code,
:root[data-theme="dark"] li code {
  color: #bfe9d4;
  background: rgba(114, 198, 160, 0.2);
}

:root[data-theme="dark"] .nav-links {
  background: rgba(23, 38, 42, 0.98);
}

@media (max-width: 720px) {
  .site-tools {
    gap: 5px;
  }

  .language-control select {
    min-height: 36px;
    padding-right: 22px;
    padding-left: 9px;
  }

  .theme-toggle {
    min-height: 36px;
    padding: 0 10px;
  }
}

@media (max-width: 420px) {
  .theme-label {
    display: none;
  }

  .theme-toggle {
    width: 36px;
    justify-content: center;
    padding: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    z-index: 99;
    inset: 76px 16px auto;
    display: none;
    padding: 14px;
    color: var(--ink);
    background: rgba(255, 254, 251, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links {
    display: grid;
  }

  .nav-links > a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 88px;
    padding-top: 132px;
  }

  .hero-copy-block {
    max-width: 760px;
  }

  .hero-visual {
    width: min(88%, 700px);
    margin-inline: auto;
  }

  .reader-layout,
  .plugin-layout,
  .tutorial-feature {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .plugin-visual {
    min-height: 540px;
  }

  .tutorial-feature .screenshot-stack {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 0.8fr);
  }

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }

  .docs-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .docs-sidebar {
    position: static;
    padding-bottom: 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
  }

  .docs-nav {
    display: flex;
    width: max-content;
  }

  .docs-nav a {
    border-left: 0;
    border-bottom: 2px solid var(--line);
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-links {
    inset: 70px 10px auto;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner {
    gap: 64px;
    padding-top: 116px;
    padding-bottom: 78px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-visual {
    width: 100%;
  }

  .app-frame {
    transform: none;
  }

  .float-card--top {
    top: -44px;
    right: 4px;
  }

  .float-card--bottom {
    bottom: -46px;
    left: 4px;
  }

  .platform-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-showcase {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .platform-showcase-grid {
    grid-template-columns: 1fr;
  }

  .platform-shot img {
    height: min(640px, 145vw);
  }

  .platform-item:nth-child(2) {
    border-right: 0;
  }

  .platform-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .section {
    padding: 78px 0;
  }

  .section-tight {
    padding: 62px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 32px;
  }

  .section-head .text-link {
    margin-top: 18px;
  }

  .feature-card,
  .feature-card:nth-child(n) {
    grid-column: span 12;
    min-height: 250px;
  }

  .reader-modes {
    grid-template-columns: 1fr;
  }

  .reader-panel {
    min-height: 420px;
    padding: 18px;
  }

  .reader-page {
    top: 48px;
    bottom: 48px;
    padding: 27px 20px;
  }

  .flow-row {
    grid-template-columns: 42px 1fr;
  }

  .flow-code {
    display: none;
  }

  .plugin-visual {
    min-height: 440px;
    padding: 20px;
  }

  .plugin-window {
    margin-top: 82px;
  }

  .code-float {
    top: 24px;
    right: 14px;
    width: 210px;
  }

  .screenshot-stack {
    min-height: 400px;
  }

  .shot-card {
    width: 94%;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

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

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span:last-child {
    display: block;
    margin-top: 8px;
  }

  .page-hero-inner {
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  .docs-shell {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .doc-grid,
  .screenshot-grid,
  .package-anatomy,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .doc-step {
    grid-template-columns: 42px 1fr;
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.98rem;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }
}
