/* GoRex Landing & Download Page (gorex.uk)
 * Painterly dawn-to-midnight editorial aesthetic inspired by ardia.dev.
 */

:root {
  --paper: #f1ece2;
  --cream: #f3e7cf;
  --cream-top: #f3e9d6;
  --gold: #f2d39b;
  --gold-top: #f0c983;
  --terra: #e8a682;
  --terra-top: #eab47f;
  --dusk: #e09f91;
  --dusk-top: #e69b92;
  --twilight: #373d69;
  --midnight: #1d2b4c;
  --night: #121a2e;

  --ink: #16130f;
  --ink-2: #433e36;
  --ink-3: #5b5449;
  --ink-on: #efe8dc;
  --ink-on-2: #c9c4d6;

  --forest: #113d2e;
  --stamp: #862800;
  --sun: #f6be3d;
  --sun-hover: #ffca4f;

  --rule: rgba(22, 19, 15, 0.14);
  --rule-dark: rgba(239, 232, 220, 0.16);

  --font-sans: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Microsoft YaHei UI", sans-serif;
  --font-zh-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(17, 61, 46, 0.22);
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Sticky Top Bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
}

.bar-inner {
  width: min(1240px, calc(100% - 40px));
  height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bar-edge {
  height: 10px;
  margin-bottom: -10px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v5c-38 2-74-3-118 2s-92-1-140 2-88-4-142 1-96 2-146-2-90 4-148 0-104-3-156 2-94-2-144 1-106-4-156 1-30-1-50-2V0z' fill='%23f1ece2'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-icon {
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(22, 19, 15, 0.18);
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.bar-links a {
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.16s ease;
}

.bar-links a:hover {
  color: var(--ink);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  background: rgba(22, 19, 15, 0.06);
  color: var(--ink);
}

.gh-pill,
.web-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.gh-pill:hover,
.web-pill:hover {
  background: rgba(22, 19, 15, 0.06);
  color: var(--ink);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--ink-on);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-pill:hover {
  background: #2b2620;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 39;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(22, 19, 15, 0.14);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(22, 19, 15, 0.07);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 88vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f3e9d6;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
  display: block;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 238, 223, 0.62) 0%, rgba(245, 238, 223, 0.25) 46%, rgba(245, 238, 223, 0) 76%);
}

.scene-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 580px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(241, 236, 226, 0.78);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(22, 19, 15, 0.08);
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(54px, 8.2vw, 118px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ink);
}

[data-lang="zh"] .hero-title {
  font-family: var(--font-zh-display);
  font-weight: 900;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

[data-lang="zh"] .section-title,
[data-lang="zh"] .closing-title,
[data-lang="zh"] .foot-signoff {
  font-family: var(--font-zh-display);
  font-weight: 900;
  letter-spacing: -0.01em;
}

[data-lang="zh"] .closing-title {
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.12;
}

.hero-plate {
  display: inline-block;
  background: rgba(243, 237, 226, 0.86);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px rgba(22, 19, 15, 0.06);
}

.hero-plate p {
  margin: 0;
  font-size: clamp(16px, 1.55vw, 19.5px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: #23201b;
  color: var(--ink-on);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(22, 19, 15, 0.22);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-primary:hover {
  background: #14120f;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 19, 15, 0.28);
}

.btn-hero {
  padding: 14px 22px;
}

.btn-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(239, 232, 220, 0.72);
  padding-left: 10px;
  border-left: 1px solid rgba(239, 232, 220, 0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(243, 237, 226, 0.84);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(22, 19, 15, 0.14);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 252, 245, 0.96);
  transform: translateY(-1px);
}

.hero-footnote {
  display: inline-block;
  background: rgba(243, 237, 226, 0.86);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 10px 15px;
}

.hero-note {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.hero-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.hero-sublinks a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(22, 19, 15, 0.3);
}

.hero-sublinks a:hover {
  color: var(--ink);
}

/* ---------- Painterly Bands ---------- */
.band {
  position: relative;
  padding: 108px 0;
  background-image:
    radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(0, 0, 0, 0.05) 0%, transparent 55%);
}

.band-cream {
  background-color: var(--cream);
  background-image: linear-gradient(180deg, var(--cream-top) 0%, var(--cream) 55%, #f1d9a8 100%);
  --edge-color: #f3e9d6;
}

.band-gold {
  background-color: var(--gold);
  background-image: linear-gradient(180deg, var(--gold-top) 0%, var(--gold) 45%, var(--terra-top) 100%);
  --edge-color: #f0c983;
}

.band-terra {
  background-color: var(--terra);
  background-image: linear-gradient(180deg, var(--terra-top) 0%, var(--terra) 60%, var(--dusk-top) 100%);
  --edge-color: #eab47f;
}

.band-dusk {
  background-color: var(--dusk);
  background-image: linear-gradient(180deg, var(--dusk-top) 0%, var(--dusk) 65%, #d6989b 100%);
  --edge-color: #e69b92;
}

.band-twilight {
  background-color: #1e284c;
  background-image: none;
  min-height: clamp(540px, 72vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  --edge-color: #212c52;
}

.closing-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.closing-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 52%;
  display: block;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.closing-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 33, 64, 0.72) 0%, rgba(24, 33, 64, 0.34) 48%, rgba(24, 33, 64, 0.04) 76%),
    linear-gradient(180deg, rgba(29, 43, 76, 0) 72%, #223059 100%);
}

.closing-inner {
  position: relative;
  z-index: 2;
}

.closing-copy {
  max-width: 540px;
}

.band-midnight {
  background-color: var(--midnight);
  background-image: linear-gradient(180deg, #223059 0%, #1d2b4c 50%, #172340 100%);
}

.band-night {
  background-color: var(--night);
  padding: 88px 0 72px;
  --edge-color: #121a2e;
}

.band.dark {
  color: var(--ink-on);
}

/* Organic painted top edge between bands */
.edge-top::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  background-color: var(--edge-color);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9c28-4 58 2 92-3s68 1 112-2 82 4 128-1 94-3 142 2 88-5 138-1 102 3 154-2 92 2 142-2 98 4 148 0 98-3 144 2v14H0z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9c28-4 58 2 92-3s68 1 112-2 82 4 128-1 94-3 142 2 88-5 138-1 102 3 154-2 92 2 142-2 98 4 148 0 98-3 144 2v14H0z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ---------- Section Headings ---------- */
.section-head {
  margin-bottom: 42px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.dark .eyebrow {
  color: var(--ink-on-2);
}

.dab {
  display: inline-block;
  width: 14px;
  height: 9px;
  border-radius: 60% 40% 55% 45% / 55% 45% 55% 45%;
  transform: rotate(-8deg);
}

.dab-forest { background: var(--forest); }
.dab-stamp { background: var(--stamp); }
.dab-ink { background: var(--ink); }
.dab-sun { background: var(--sun); }

.section-title {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-lead {
  margin: 0;
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--ink-2);
  line-height: 1.55;
}

.dark .section-lead {
  color: var(--ink-on-2);
}

.release-pill {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(22, 19, 15, 0.09);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* ---------- Interactive Demo Mockup ---------- */
.demo-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 19, 15, 0.22);
  box-shadow: 0 28px 64px rgba(22, 19, 15, 0.22), 0 4px 12px rgba(22, 19, 15, 0.1);
  background: #16181f;
  color: #e6e8f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.demo-frame[data-theme="light"] {
  background: #f5f4f0;
  color: #1c1d22;
  border-color: rgba(22, 19, 15, 0.16);
}

.demo-titlebar {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-frame[data-theme="light"] .demo-titlebar {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.demo-lights {
  display: flex;
  gap: 7px;
}

.demo-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.demo-spaces {
  display: flex;
  gap: 6px;
}

.space-chip {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  opacity: 0.72;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.space-chip.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.demo-frame[data-theme="light"] .space-chip.is-active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.space-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.demo-win-actions {
  display: flex;
  gap: 6px;
}

.demo-mini-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.demo-frame[data-theme="light"] .demo-mini-btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.demo-mini-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.demo-body {
  position: relative;
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 430px;
}

.demo-sidebar {
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.demo-frame[data-theme="light"] .demo-sidebar {
  border-right-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.demo-proj-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  padding: 8px 8px 4px;
}

.demo-tab-btn {
  width: 100%;
  text-align: left;
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 3px;
}

.demo-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.demo-frame[data-theme="light"] .demo-tab-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.demo-tab-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.demo-frame[data-theme="light"] .demo-tab-btn.is-active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.tab-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.run { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.status-dot.done { background: #34d399; }
.status-dot.bell { background: #fbbf24; }

.demo-hosts {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-frame[data-theme="light"] .demo-hosts {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.demo-hosts-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 6px;
  padding: 0 6px;
}

.demo-host-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 4px 6px;
  opacity: 0.85;
}

.host-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.host-via {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.55;
}

.demo-stage {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.pane-card {
  border-radius: 12px;
  background: #101218;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-frame[data-theme="light"] .pane-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

.pane-card.is-agent {
  border-color: rgba(114, 178, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(114, 178, 255, 0.25), 0 0 22px rgba(96, 165, 250, 0.16);
}

.pane-head {
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.demo-frame[data-theme="light"] .pane-head {
  border-bottom-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.02);
}

.pane-prog {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pane-dir {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.58;
}

.pane-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #7cc0ff;
}

.demo-frame[data-theme="light"] .pane-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.pane-pre {
  margin: 0;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
  flex: 1;
}

.demo-float-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 270px;
  background: #fef3c7;
  color: #292524;
  border-radius: 12px;
  border: 1px solid rgba(180, 130, 30, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 5;
}

.float-note-head {
  padding: 8px 12px;
  background: rgba(217, 159, 26, 0.18);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.float-note-head button {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: inherit;
}

.float-note-body {
  padding: 10px 14px 12px;
  font-size: 12.5px;
}

.float-note-body p { margin: 0 0 6px; }
.float-note-body ul { margin: 0; padding-left: 16px; }
.float-note-body li { margin: 3px 0; }

.demo-palette {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 52px;
  z-index: 6;
}

.demo-palette[hidden] {
  display: none;
}

.palette-box {
  width: min(440px, calc(100% - 28px));
  background: #1d202b;
  color: #f1f3f8;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.palette-prompt {
  font-family: var(--font-mono);
  color: #7cc0ff;
}

.palette-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}

.palette-input-row button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.palette-list {
  padding: 6px;
}

.palette-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.palette-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.palette-item kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
}

.demo-caption {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Download & Install Section ---------- */
.dl-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.dl-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-os-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dl-os-title h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.os-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(22, 19, 15, 0.09);
  color: var(--ink-2);
}

.doc-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-underline-offset: 4px;
}

.doc-link:hover {
  color: var(--ink);
}

.dl-card {
  background: rgba(255, 251, 242, 0.88);
  border: 1px solid rgba(22, 19, 15, 0.14);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 6px 20px rgba(22, 19, 15, 0.06);
}

.dl-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dl-app-icon {
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(22, 19, 15, 0.18);
  flex-shrink: 0;
}

.dl-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.dl-card-meta {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 2px;
}

.ext-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1;
  opacity: 0.78;
}

.cmd-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 251, 242, 0.88);
  border: 1px solid rgba(22, 19, 15, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
}

.cmd-box code {
  font-size: 12.5px;
  color: #792200;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.cmd-box code::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  appearance: none;
  flex-shrink: 0;
  border: 1px solid rgba(22, 19, 15, 0.16);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: var(--ink);
  color: var(--ink-on);
}

.copy-btn.is-copied {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ink-on);
}

.linux-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.linux-tab {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(22, 19, 15, 0.06);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.linux-tab:hover {
  background: rgba(22, 19, 15, 0.11);
  color: var(--ink);
}

.linux-tab.is-active {
  background: var(--ink);
  color: var(--ink-on);
}

.direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.direct-links a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}

.direct-links a:hover {
  color: var(--ink);
}

.companion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.companion-card {
  text-decoration: none;
  background: rgba(255, 251, 242, 0.72);
  border: 1px solid rgba(22, 19, 15, 0.13);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.companion-card:hover {
  background: rgba(255, 251, 242, 0.96);
  transform: translateY(-2px);
}

.companion-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--stamp);
  margin-bottom: 4px;
}

.companion-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.companion-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.companion-arrow {
  font-size: 20px;
  font-weight: 700;
  opacity: 0.65;
}

/* ---------- CLI & Agents ---------- */
.cli-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.cli-terminal {
  background: #171614;
  color: #efe8dc;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 19, 15, 0.25);
  box-shadow: 0 22px 48px rgba(22, 19, 15, 0.2);
  overflow: hidden;
}

.cli-term-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(239, 232, 220, 0.72);
}

.cli-term-tag {
  background: rgba(246, 190, 61, 0.16);
  color: #f6be3d;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.cli-terminal pre {
  margin: 0;
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.c-dim { color: #8c8578; }
.c-cmd { color: #f8f1e4; font-weight: 600; }
.c-ok { color: #6ee7b7; }
.c-out { color: #93c5fd; }

.cli-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cli-point {
  background: rgba(255, 249, 240, 0.56);
  border: 1px solid rgba(22, 19, 15, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.cli-point h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.cli-point p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.text-cta {
  font-weight: 700;
  font-size: 15px;
  text-underline-offset: 4px;
}

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

.feat-card {
  background: rgba(255, 249, 242, 0.58);
  border: 1px solid rgba(22, 19, 15, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feat-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--stamp);
  margin-bottom: 10px;
}

.feat-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.feat-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- Closing Twilight ---------- */
.closing-title {
  margin: 0 0 18px;
  font-size: clamp(54px, 7.2vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink-on);
}

.closing-lead {
  margin: 0 0 28px;
  font-size: 19px;
  color: var(--ink-on-2);
  max-width: 460px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.btn-sun {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-sun:hover {
  background: var(--sun-hover);
  transform: translateY(-1px);
}

.closing-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-on);
  text-underline-offset: 4px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-dark);
}

.faq-item {
  border-bottom: 1px solid var(--rule-dark);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--sun);
  transition: transform 0.18s ease;
}

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

.faq-item p {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: 15.5px;
  color: var(--ink-on-2);
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.foot-signoff {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 48px;
}

.foot-signoff span {
  color: var(--sun);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-dark);
}

.foot-col h3 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-on-2);
}

.foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(239, 232, 220, 0.28);
  font-size: 14.5px;
}

.foot-col a:hover {
  text-decoration-color: var(--sun);
}

.foot-col p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-on-2);
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bar-links,
  .web-pill {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cli-grid,
  .closing-grid,
  .companion-grid {
    grid-template-columns: 1fr;
  }

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

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .bar-inner {
    width: calc(100% - 28px);
  }

  .gh-pill span {
    display: none;
  }

  .band {
    padding: 76px 0;
  }

  .hero-inner {
    padding: 48px 0 64px;
  }

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

  .dl-card-actions {
    width: 100%;
  }

  .dl-card-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .feat-grid,
  .foot-cols {
    grid-template-columns: 1fr;
  }
}
