:root {
  --ink: #10211c;
  --muted: #5f706a;
  --paper: #f7f5ed;
  --paper-deep: #eceadd;
  --green: #159957;
  --green-dark: #0b5f3a;
  --orange: #f2a93b;
  --night: #071813;
  --line: rgba(16, 33, 28, 0.14);
  --shadow: 0 30px 80px rgba(9, 43, 31, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.fixed-bg-art {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(
      to right,
      rgba(247, 245, 237, 0.95) 0%,
      rgba(247, 245, 237, 0.88) 36%,
      rgba(247, 245, 237, 0.58) 64%,
      rgba(247, 245, 237, 0.3) 100%
    ),
    url("assets/childhood-areca.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.02);
  pointer-events: none;
  transform: translateZ(0);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

.skip-link:focus {
  transform: none;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 12px auto 0;
  padding: 10px 18px;
  background: rgba(247, 245, 237, 0.86);
  border: 1px solid rgba(16, 33, 28, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(13, 56, 40, 0.06);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand b {
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 13px;
  color: #45564f;
  font-size: 14px;
  font-weight: 650;
  border-radius: 10px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(21, 153, 87, 0.08);
}

.site-nav .nav-github {
  margin-left: 6px;
  color: white;
  background: var(--ink);
}

.site-nav .nav-github:hover {
  color: white;
  background: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  min-height: calc(100vh - 96px);
  padding-block: 88px 110px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 em {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.source-link {
  padding: 10px 4px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 750;
}

.source-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 750;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(21, 153, 87, 0.25);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.experimental-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.experimental-note span {
  margin-right: 5px;
  color: var(--orange);
}

.hero-demo {
  position: relative;
}

.demo-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #fffef8;
  border: 1px solid rgba(16, 33, 28, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  padding: 0 18px;
  background: #f0eee4;
  border-bottom: 1px solid rgba(16, 33, 28, 0.08);
}

.window-bar > span {
  width: 9px;
  height: 9px;
  background: #c9c7bd;
  border-radius: 50%;
}

.window-bar > span:first-child {
  background: var(--orange);
}

.window-bar small {
  margin-left: auto;
  color: #78857f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.typing-stage {
  padding: clamp(34px, 6vw, 66px) clamp(22px, 5vw, 56px);
  text-align: center;
}

.stage-label {
  margin-bottom: 16px;
  color: #819089;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.keys {
  display: flex;
  justify-content: center;
  gap: 7px;
}

kbd {
  display: grid;
  place-items: center;
  width: clamp(34px, 4vw, 46px);
  aspect-ratio: 1;
  color: #32443d;
  background: white;
  border: 1px solid #d7d9d3;
  border-bottom-width: 4px;
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
}

.flow-arrow {
  position: relative;
  width: 1px;
  height: 47px;
  margin: 18px auto;
  background: linear-gradient(var(--green), transparent);
}

.flow-arrow::after {
  position: absolute;
  bottom: -1px;
  left: -4px;
  width: 7px;
  height: 7px;
  content: "";
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}

.result-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 86px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  margin-left: 5px;
  background: var(--green);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.demo-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  color: #63736c;
  background: #f0eee4;
  border-top: 1px solid rgba(16, 33, 28, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(21, 153, 87, 0.12);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(21, 153, 87, 0.15);
  border-radius: 50%;
}

.orbit-one {
  inset: -55px -35px 40px 10px;
}

.orbit-two {
  inset: 25px 45px -55px -35px;
  border-color: rgba(242, 169, 59, 0.2);
}

.section-block {
  padding-block: 110px;
}

.section-heading {
  max-width: 710px;
  margin-bottom: 52px;
}

.section-heading h2,
.install h2,
.credits h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.install-copy > p,
.credits p {
  color: var(--muted);
  font-size: 18px;
}

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

.feature-card {
  min-height: 350px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12, 52, 37, 0.04);
}

.feature-wide {
  grid-column: span 2;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
  color: var(--green-dark);
  background: rgba(21, 153, 87, 0.1);
  border-radius: 14px;
  font-size: 23px;
  font-weight: 800;
}

.queue-icon {
  display: flex;
  gap: 4px;
  padding: 12px 10px;
}

.queue-icon i {
  width: 8px;
  height: 24px;
  background: var(--green);
  border-radius: 3px;
}

.queue-icon i:nth-child(2) { height: 17px; opacity: 0.65; }
.queue-icon i:nth-child(3) { height: 11px; opacity: 0.35; }

.bamboo-icon {
  color: #9a640c;
  background: rgba(242, 169, 59, 0.15);
  font-family: Georgia, serif;
}

.card-kicker {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.feature-card > p:last-of-type {
  color: var(--muted);
}

.mini-queue {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
}

.mini-queue span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #75827d;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.mini-queue .active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.mini-queue b { color: var(--orange); }
.mini-queue em { font-size: 12px; font-style: normal; font-weight: 750; }

.mode-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.mode-list span {
  padding: 13px;
  background: rgba(21, 153, 87, 0.06);
  border-radius: 10px;
}

.mode-list b,
.mode-list small {
  display: block;
}

.mode-list b { font-size: 13px; }
.mode-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.direction {
  background: #efede3;
  border-top: 1px solid var(--line);
}

.direction-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.direction-intro .section-heading {
  margin-bottom: 0;
}

.comparison-note {
  max-width: 270px;
  margin: 0 0 4px;
  padding-left: 17px;
  color: var(--muted);
  border-left: 2px solid var(--orange);
  font-size: 12px;
}

.comparison-table {
  overflow: hidden;
  background: #faf9f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(12, 52, 37, 0.06);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.25fr;
  gap: 30px;
  align-items: center;
  min-height: 130px;
  padding: 24px 30px;
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-head {
  min-height: 52px;
  padding-block: 14px;
  color: #73817b;
  background: #e5e3d9;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.comparison-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.approach-name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.approach-name i {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--green-dark);
  background: rgba(21, 153, 87, 0.09);
  border-radius: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.approach-name span,
.approach-name b,
.approach-name small {
  display: block;
}

.approach-name b {
  font-size: 15px;
}

.approach-name small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.areca-row {
  position: relative;
  background: rgba(21, 153, 87, 0.075);
}

.areca-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--green);
}

.areca-row .approach-name i {
  color: white;
  background: var(--green);
}

.direction-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.direction-pillars article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  padding: 21px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.direction-pillars article > span {
  color: var(--orange);
  font-weight: 900;
}

.direction-pillars b {
  font-size: 13px;
}

.direction-pillars p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.direction-pillars code {
  color: var(--green-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.integration-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 35px;
  align-items: center;
  margin-top: 18px;
  padding: 23px 25px;
  color: white;
  background: var(--ink);
  border-radius: 16px;
}

.integration-path {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.integration-path span {
  padding: 7px 10px;
  color: #b9d0c6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 750;
}

.integration-path span:nth-of-type(2) {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.integration-path i {
  color: var(--orange);
  font-style: normal;
}

.integration-line p {
  margin: 0;
  color: #aebdb7;
  font-size: 12px;
  line-height: 1.55;
}

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

/* Styles for the uinput check/fix panel */
.uinput-check {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(12, 52, 37, 0.04);
}
.uinput-check h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #b45309;
}
.uinput-check h4 { margin: 12px 0 6px; }
.uinput-check h4 b { color: #b45309; }
.uinput-check p { color: var(--muted); font-size: 14px; }
.uinput-check pre {
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(16, 33, 28, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #23302b;
  overflow: auto;
  margin: 6px 0 0 0;
}

.uinput-check p b { font-weight: 800; }

.architecture::before {
  position: absolute;
  top: -250px;
  right: -170px;
  width: 620px;
  height: 620px;
  content: "";
  background: radial-gradient(circle, rgba(21, 153, 87, 0.26), transparent 67%);
}

.section-heading-light p:last-child { color: #9fb0a9; }
.section-heading-light .eyebrow,
.architecture .eyebrow { color: #75d9a9; }

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr 70px 1.35fr;
  align-items: center;
}

.pipeline-node {
  min-height: 142px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
}

.pipeline-node span,
.pipeline-node b,
.pipeline-node small {
  display: block;
}

.pipeline-node span {
  margin-bottom: 22px;
  color: #75d9a9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.pipeline-node b {
  font-size: 16px;
}

.pipeline-node small {
  margin-top: 5px;
  color: #91a39c;
}

.node-highlight {
  background: rgba(21, 153, 87, 0.16);
  border-color: rgba(117, 217, 169, 0.35);
}

.connector {
  height: 1px;
  background: rgba(117, 217, 169, 0.4);
}

.connector::after {
  display: block;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 auto;
  content: "";
  border-top: 1px solid #75d9a9;
  border-right: 1px solid #75d9a9;
  transform: rotate(45deg);
}

.backend-stack {
  display: grid;
  gap: 9px;
}

.backend-stack .pipeline-node {
  min-height: auto;
  padding: 17px 19px;
}

.backend-stack .pipeline-node span {
  float: left;
  margin: 3px 10px 0 0;
}

.invariant-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 48px 0 32px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.invariant-row p {
  color: #91a39c;
  font-size: 13px;
}

.invariant-row b {
  display: block;
  margin-bottom: 3px;
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 750;
  border-bottom: 1px solid rgba(21, 153, 87, 0.35);
}

.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }
.light-link { color: #75d9a9; }

.architecture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.install {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.distro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}

.distro-list span {
  padding: 6px 11px;
  color: var(--green-dark);
  background: rgba(21, 153, 87, 0.09);
  border: 1px solid rgba(21, 153, 87, 0.13);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.release-button {
  width: fit-content;
  margin-top: 24px;
}

.download-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 9px;
  color: var(--green-dark);
  background: white;
  border-radius: 50%;
  font-size: 15px;
}

.install-copy .text-link {
  display: flex;
  width: fit-content;
}

.installer-card {
  overflow: hidden;
  min-height: 515px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.installer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
  color: var(--muted);
  background: #eeece3;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.installer-head > span {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.installer-head a {
  color: var(--green-dark);
  font-weight: 750;
}

.distro-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
  background: #f7f5ed;
  border-bottom: 1px solid var(--line);
}

.distro-tab {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.distro-tab:hover {
  color: var(--ink);
  background: rgba(21, 153, 87, 0.06);
}

.distro-tab.is-active {
  color: white;
  background: var(--green-dark);
  box-shadow: 0 6px 16px rgba(11, 95, 58, 0.18);
}

.install-panel {
  padding: 27px 26px 22px;
}

.install-panel[hidden] {
  display: none;
}

.package-instruction {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 15px;
}

.command-row + .package-instruction {
  margin-top: 24px;
}

.package-instruction p,
.source-intro {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.package-instruction a {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.package-instruction code,
.panel-note code,
.after-install code {
  color: var(--green-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.step-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--green-dark);
  background: rgba(21, 153, 87, 0.1);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.command-row {
  position: relative;
  overflow: hidden;
  margin: 20px 0 0 38px;
  color: #e6f0eb;
  background: #0a1713;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.command-row pre {
  min-height: 70px;
  margin: 0;
  padding: 25px 112px 22px 18px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.65;
}

.command-row code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.command-row .copy-button {
  position: absolute;
  top: 16px;
  right: 13px;
}

.source-command-row {
  margin-left: 0;
}

.source-command-row pre {
  min-height: 144px;
}

.copy-button {
  padding: 7px 10px;
  color: #c2d0ca;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.copy-button:hover { background: rgba(255, 255, 255, 0.08); }
.copy-icon { margin-right: 5px; }

.panel-note {
  margin: 18px 0 0 38px;
  color: var(--muted);
  font-size: 11px;
}

.after-install {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 17px 25px;
  color: var(--muted);
  background: rgba(21, 153, 87, 0.055);
  border-top: 1px solid rgba(21, 153, 87, 0.11);
  font-size: 12px;
}

.after-install > span {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 11px;
}

.after-install p {
  margin: 0;
}

.fcitx-setup {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: clamp(28px, 5vw, 54px);
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.setup-heading {
  max-width: 760px;
}

.setup-heading h3 {
  margin: 10px 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
}

.setup-heading > p:last-child,
.desktop-setup-card p,
.setup-finish p {
  color: var(--muted);
}

.fcitx-package-command {
  margin-top: 28px;
}

.fcitx-package-command > p {
  margin-bottom: 10px;
}

.fcitx-package-command pre,
.desktop-setup-card pre {
  overflow-x: auto;
  margin: 0;
  color: #dcebe4;
  background: #0a1713;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.65;
}

.fcitx-package-command pre {
  padding: 20px;
}

.desktop-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.desktop-setup-card {
  min-width: 0;
  padding: 21px;
  background: #f7f5ed;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.desktop-setup-card h4 {
  margin: 0 0 11px;
  color: var(--green-dark);
  font-size: 16px;
}

.desktop-setup-card p {
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.55;
}

.desktop-setup-card code,
.setup-finish code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.desktop-setup-card p code,
.setup-finish p code {
  color: var(--green-dark);
  font-weight: 700;
}

.desktop-setup-card pre {
  padding: 14px;
}

.desktop-setup-card .setup-note {
  margin-bottom: 0;
  font-size: 11px;
}

.setup-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.setup-finish p {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
}

.setup-finish a {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  border-bottom: 1px solid rgba(21, 153, 87, 0.35);
}

.credits {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.credits-logo {
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 18px 50px rgba(12, 52, 37, 0.07);
}

.credits > div:last-child { max-width: 820px; }
.credits a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  padding: 32px 24px;
  color: #aebdb7;
  background: #06110e;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: auto;
}

.footer-brand span,
.footer-brand small { display: block; }
.footer-brand b { color: white; }
.footer-brand small { font-size: 10px; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

.site-footer a:hover { color: white; }

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

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

@media (max-width: 980px) {
  .fixed-bg-art {
    background-image:
      linear-gradient(
        to bottom,
        rgba(247, 245, 237, 0.92) 0%,
        rgba(247, 245, 237, 0.82) 45%,
        rgba(247, 245, 237, 0.5) 75%,
        var(--paper) 100%
      ),
      url("assets/childhood-areca.jpg");
    background-position: center top;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 90px;
  }

  .hero-copy { max-width: 760px; }
  .hero-demo { width: min(680px, 100%); margin: 10px auto 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .direction-intro {
    align-items: start;
    flex-direction: column;
  }

  .comparison-note {
    max-width: 560px;
  }

  .direction-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr 36px 1fr 36px 1fr;
  }

  .pipeline > .connector:nth-of-type(3),
  .backend-stack {
    display: none;
  }

  .install { grid-template-columns: 1fr; }
  .install-copy { max-width: 720px; }
  .desktop-setup-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section-shell { width: min(100% - 30px, 1180px); }
  .site-header { width: calc(100% - 20px); margin-top: 8px; }

  .menu-toggle { display: block; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    background: #f9f7f0;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-github { margin-left: 0; text-align: center; }

  .hero { padding-block: 70px 85px; }
  h1 { font-size: clamp(43px, 13.5vw, 68px); }
  .section-block { padding-block: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .mode-list { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }

  .comparison-head {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 24px;
  }

  .comparison-row > p {
    padding-left: 52px;
  }

  .comparison-row > p::before {
    display: block;
    margin-bottom: 3px;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .comparison-row > p:nth-child(2)::before { content: "Điểm thuận lợi"; }
  .comparison-row > p:nth-child(3)::before { content: "Cần cân nhắc"; }

  .direction-pillars {
    grid-template-columns: 1fr;
  }

  .integration-line {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .integration-path {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipeline .connector {
    display: block;
    width: 1px;
    height: 26px;
    margin: auto;
  }

  .pipeline .connector::after { margin: auto 0 0 -3px; transform: rotate(135deg); }
  .invariant-row { grid-template-columns: 1fr; gap: 8px; }
  .desktop-setup-grid { grid-template-columns: 1fr; }
  .setup-finish { align-items: flex-start; flex-direction: column; gap: 16px; }
  .credits { grid-template-columns: 1fr; gap: 25px; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .source-link { width: 100%; text-align: center; }
  .keys { gap: 4px; }
  kbd { width: 34px; }
  .demo-status span:last-child { display: none; }
  .release-button { width: 100%; }
  .distro-tabs { grid-template-columns: 1fr 1fr; }
  .installer-head { align-items: flex-start; height: auto; padding-block: 14px; }
  .install-panel { padding-inline: 16px; }
  .command-row { margin-left: 0; }
  .command-row pre { padding: 58px 16px 20px; }
  .command-row .copy-button { left: 13px; right: auto; }
  .panel-note { margin-left: 0; }
  .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; }
}

@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; }
}
