/*
 * Landing page styles for the QiLin product front page.
 * Visual reference: the 2.0.x product landing page ("玄金麒麟" VI), reproduced
 * here without a CSS framework. landing.html owns every visible string.
 *
 * The dark palette is the default and the VI's native statement. The header
 * toggle (landing.ts) sets html[data-ql-theme='light'] for the warm-paper
 * variant: same gold ramp and cinnabar, ink and surfaces mirrored to paper.
 *
 * Page structure follows the harness-marketing pattern: centered hero, a real
 * product screenshot in a desktop window frame, capability cards with more
 * screenshots, a feature grid, developer commands, and a closing call to
 * action. Sections carry data-reveal and landing.ts fades them in on scroll.
 */

:root {
  color-scheme: dark;

  /* Brand tokens, copied verbatim from the 2.0.x VI layer. */
  --ql-bg: #0d0b09;
  --ql-surface: #16130f;
  --ql-raised: #1d1915;
  --ql-gold-300: #f3dc9e;
  --ql-gold-500: #c9a24a;
  --ql-gold-700: #8f6f2e;
  --ql-ink-hi: #efe9df;
  --ql-ink-mid: #a89f90;
  --ql-ink-low: #857c6c;
  --ql-cinnabar: #c3402f;
  --ql-cinnabar-hi: #e0684f;

  /* Presentation-only stacks: the page fetches no web font. */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Light variant: the warm-paper counterpart of the dark VI, sharing the gold
   ramp and cinnabar unchanged. Ink depths keep the dark mode's AA margins
   over the paper canvas (#221d15 on #f8f5ee is 15.4:1, ink-mid 6.6:1). */
html[data-ql-theme='light'] {
  color-scheme: light;

  --ql-bg: #f8f5ee;
  --ql-surface: #fffdf7;
  --ql-raised: #f3eee1;
  --ql-ink-hi: #221d15;
  --ql-ink-mid: #5f5749;
  --ql-ink-low: #857c6c;
}

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

html {
  background: var(--ql-bg);
  /* The document scrolls when the viewport is shorter than the page; the bar
     stays unpainted so nothing sits beside the centred column. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--ql-bg);
  color: var(--ql-ink-hi);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: var(--ql-bg);
  color: var(--ql-ink-hi);
}

/* Decorative layers: never hit-testable, never announced. */
.page__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page__glow {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 420px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(201, 162, 74, 0.1), transparent 70%);
}

.page__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(239, 233, 223, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 233, 223, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page__scale {
  position: absolute;
  right: 0;
  bottom: 0;
}

.page__body {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* Scroll reveal: landing.ts swaps data-reveal for data-reveal-visible once the
   section enters the viewport; --reveal-delay staggers members of a group. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity 640ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal][data-reveal-visible] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Header */

.site-header {
  position: fixed;
  /* OpenKylin 桌面壳自绘标题栏让位：--ok-tb-h 由壳注入，纯 web 无此变量回落 0 */
  top: var(--ok-tb-h, 0px);
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  transition: background-color 200ms ease, box-shadow 200ms ease;
  /* The 2.0.x desktop shell inset this row for the macOS traffic lights; the
     browser document keeps the plain page padding. */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Once the page scrolls, the header picks up a surface so the hero shot and
   section titles pass under a legible bar. */
.site-header[data-header-scrolled] {
  background: color-mix(in srgb, var(--ql-bg) 82%, transparent);
  box-shadow: 0 1px 0 rgba(239, 233, 223, 0.08);
}

html[data-ql-theme='light'] .site-header[data-header-scrolled] {
  box-shadow: 0 1px 0 rgba(34, 29, 21, 0.1);
}

@media (min-width: 48rem) {
  .site-header {
    padding-inline: 2.5rem;
  }
}

.site-header__home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ql-ink-hi);
  text-decoration: none;
}

.site-header__wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.site-header__link {
  color: var(--ql-ink-mid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-header__link:hover {
  color: var(--ql-gold-300);
}

/* Header right cluster: theme toggle beside the console link. */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Theme toggle: hairline square carrying one glyph. The dark page offers the
   sun (switch to light), the light page the moon (switch back); landing.ts
   owns the click, the html owns the labels and glyphs. */
.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(239, 233, 223, 0.16);
  border-radius: 8px;
  background: transparent;
  color: var(--ql-ink-mid);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.site-header__toggle:hover {
  border-color: var(--ql-gold-700);
  color: var(--ql-gold-300);
}

html[data-ql-theme='light'] .site-header__toggle {
  border-color: rgba(34, 29, 21, 0.14);
}

html[data-ql-theme='light'] .site-header__toggle:hover {
  color: var(--ql-gold-700);
}

/* One glyph per scheme: sun while dark, moon while light. */
.site-header__toggle .toggle-glyph--moon {
  display: none;
}

html[data-ql-theme='light'] .site-header__toggle .toggle-glyph--sun {
  display: none;
}

html[data-ql-theme='light'] .site-header__toggle .toggle-glyph--moon {
  display: block;
}

/* Hairline at the header's lower edge, brightest at mid-page. */
.site-header__rule {
  position: absolute;
  top: 4rem;
  right: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background-image: linear-gradient(90deg, transparent, rgba(239, 233, 223, 0.66), transparent);
}

html[data-ql-theme='light'] .site-header__rule {
  background-image: linear-gradient(90deg, transparent, rgba(34, 29, 21, 0.38), transparent);
}

/* Main column shared by every section. */

.site-main {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  width: 100%;
  padding-top: 4rem;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.hero__kicker {
  margin: 0;
  color: var(--ql-gold-500);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.35em;
}

.hero__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 64rem) {
  .hero__headline {
    font-size: 3.5rem;
  }
}

/* Rotating capability word: the 2.0.x headline tinted it with the aurora
   gradient, whose visible slice is this amber range. */
.word-rotate {
  display: inline-block;
  overflow: hidden;
  /* The 2.0.x headline padded the rotating word with a fixed 8px. */
  padding-block: 0.5rem;
}

.word-rotate__word {
  display: inline-block;
  background-image: linear-gradient(135deg, #e9c665, #e3a812);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__headline-accent {
  background-image: linear-gradient(90deg, var(--ql-gold-300), var(--ql-gold-500));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .word-rotate__word {
    color: #e9c665;
    -webkit-text-fill-color: currentColor;
  }

  .hero__headline-accent {
    color: var(--ql-gold-300);
    -webkit-text-fill-color: currentColor;
  }
}

@keyframes word-enter {
  from {
    opacity: 0;
    transform: translateY(0.25em);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.word-rotate__word--enter {
  animation: word-enter 300ms ease-out;
}

.hero__tagline {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: 0.5rem;
  background: var(--ql-gold-500);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  color: #141006;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease;
}

.hero__cta:hover {
  background: var(--ql-gold-300);
  transform: translateY(-1px);
}

.hero__cta:active {
  background: var(--ql-gold-500);
  transform: none;
}

.hero__cta-icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 300ms ease;
}

.hero__cta:hover .hero__cta-icon {
  transform: translateX(0.25rem);
}

/* Secondary outline action beside the gold CTA. */
.hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.1rem;
  border: 1px solid rgba(239, 233, 223, 0.18);
  border-radius: 0.5rem;
  color: var(--ql-ink-hi);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease;
}

.hero__ghost:hover {
  border-color: var(--ql-gold-700);
  color: var(--ql-gold-300);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero__tag {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: var(--ql-ink-mid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
}

/* NMO 理念标签：金边金字，与产品能力标签区分开——这三条是产品宪法，不是功能清单。 */
.hero__tag--nmo {
  border-color: rgba(201, 162, 74, 0.45);
  color: var(--ql-gold-300);
}

html[data-ql-theme='light'] .hero__tag--nmo {
  border-color: rgba(143, 111, 46, 0.4);
  color: var(--ql-gold-700);
}

/* Desktop window frame around every real product screenshot. */

.showcase {
  position: relative;
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  padding: 1rem 1.5rem 0;
}

/* A slow gold pool behind the hero screenshot. */
.showcase__glow {
  position: absolute;
  inset: 8% 6% auto;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(201, 162, 74, 0.16), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 233, 223, 0.14);
  border-radius: 0.875rem;
  background: var(--ql-surface);
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.55),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.window:hover {
  border-color: rgba(201, 162, 74, 0.45);
  box-shadow:
    0 34px 70px -18px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(201, 162, 74, 0.18),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding-inline: 0.9rem;
  background: rgba(239, 233, 223, 0.045);
  border-bottom: 1px solid rgba(239, 233, 223, 0.08);
}

.window__dot {
  flex: none;
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 999px;
}

.window__dot--r {
  background: #ff5f57;
}

.window__dot--y {
  background: #febc2e;
}

.window__dot--g {
  background: #28c840;
}

.window__title {
  flex: 1;
  overflow: hidden;
  margin-inline: 0.5rem;
  color: var(--ql-ink-low);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window__bar::after {
  content: "";
  flex: none;
  width: 2.4rem;
}

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

/* Capability sections with alternating copy + screenshot cards. */

.caps {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 6rem 1.5rem 1rem;
}

.caps__head {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.caps__title,
.devex__title,
.outro__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 64rem) {
  .caps__title,
  .devex__title {
    font-size: 2.25rem;
  }
}

.caps__sub {
  margin: 0.875rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 1rem;
  line-height: 1.7;
}

.caps__stack {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3.5rem;
}

.cap {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .cap {
    flex-direction: row;
    gap: 3rem;
  }

  /* The second card mirrors the first so the stack reads as a rhythm. */
  .cap--flip {
    flex-direction: row-reverse;
  }
}

.cap__copy {
  flex: 0 0 34%;
  text-align: left;
}

.cap__index {
  margin: 0;
  color: var(--ql-gold-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.cap__title {
  margin: 0.625rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.cap__desc {
  margin: 0.75rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.cap__points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cap__points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ql-ink-mid);
  font-size: 0.875rem;
  line-height: 1.9;
}

.cap__points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--ql-gold-500);
  transform: rotate(45deg);
}

.window--card {
  flex: 1 1 0%;
  min-width: 0;
}

/* Feature mini-card grid. */

.features {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 5rem 1.5rem 1rem;
}

.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.feature:hover {
  border-color: var(--ql-gold-700);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature__index {
  color: var(--ql-gold-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.feature__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ql-gold-500);
}

.feature__title {
  margin: 0.75rem 0 0;
  color: #f4f4f5;
  font-size: 0.9375rem;
  font-weight: 600;
}

.feature__desc {
  margin: 0.25rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 0.8125rem;
  line-height: 1.625;
}

/* Developer experience: two command cards. */

.devex {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 5rem 1.5rem 1rem;
}

.devex__head {
  text-align: center;
}

.devex__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 64rem) {
  .devex__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.devex-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease;
}

.devex-card:hover {
  border-color: var(--ql-gold-700);
}

.devex-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.devex-card__desc {
  margin: 0.5rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 0.875rem;
  line-height: 1.7;
}

.devex-card__code {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding: 0.7rem 0.5rem 0.7rem 0.9rem;
  border: 1px solid rgba(239, 233, 223, 0.1);
  border-radius: 0.5rem;
  background: rgba(13, 11, 9, 0.6);
}

.devex-card__code code {
  flex: 1 1 0%;
  overflow-x: auto;
  color: var(--ql-gold-300);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.devex-card__prompt {
  color: var(--ql-ink-low);
  user-select: none;
}

.devex-card__copy {
  flex: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(239, 233, 223, 0.14);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ql-ink-mid);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.devex-card__copy:hover {
  border-color: var(--ql-gold-700);
  color: var(--ql-gold-300);
}

.devex-card__copy[data-copied] {
  border-color: var(--ql-gold-500);
  color: var(--ql-gold-300);
}

/* Closing ecosystem call to action. */

.outro {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 5rem 1.5rem 4rem;
}

.outro__card {
  padding: 3rem 1.5rem;
  border: 1px solid rgba(201, 162, 74, 0.28);
  border-radius: 1rem;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(201, 162, 74, 0.1), transparent 70%),
    var(--ql-surface);
  text-align: center;
}

@media (min-width: 48rem) {
  .outro__card {
    padding: 3.5rem 3rem;
  }
}

.outro__title {
  font-size: 1.5rem;
}

@media (min-width: 64rem) {
  .outro__title {
    font-size: 1.875rem;
  }
}

.outro__desc {
  max-width: 36rem;
  margin: 0.875rem auto 0;
  color: var(--ql-ink-mid);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.outro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 80rem;
  margin: 1rem auto 0;
}

.gold-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
}

.gold-divider__line {
  flex: 1 1 0%;
  height: 1px;
}

.gold-divider__line--start {
  background-image: linear-gradient(90deg, transparent, var(--ql-gold-700));
}

.gold-divider__line--end {
  background-image: linear-gradient(90deg, var(--ql-gold-700), transparent);
}

.gold-divider__diamond {
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--ql-gold-500);
  transform: rotate(45deg);
}

.site-footer__quote-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 3rem;
  color: var(--ql-ink-mid);
  font-size: 0.875rem;
}

.site-footer__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .site-footer__quote {
    font-size: 1rem;
  }
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--ql-ink-low);
  font-size: 0.75rem;
}

.site-footer__meta p {
  margin: 0;
}

/* Light-mode decorative overrides: the white-alpha washes become warm-ink
   washes over paper, and the CTA shadow softens to a paper-appropriate one. */
html[data-ql-theme='light'] .page__glow {
  background: radial-gradient(60% 100% at 50% 0%, rgba(201, 162, 74, 0.14), transparent 70%);
}

html[data-ql-theme='light'] .page__grid {
  background-image:
    linear-gradient(rgba(34, 29, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 29, 21, 0.035) 1px, transparent 1px);
}

html[data-ql-theme='light'] .hero__tag {
  border-color: rgba(34, 29, 21, 0.12);
}

html[data-ql-theme='light'] .hero__ghost {
  border-color: rgba(34, 29, 21, 0.16);
}

html[data-ql-theme='light'] .hero__cta {
  box-shadow: 0 10px 15px -3px rgba(60, 48, 26, 0.18), 0 4px 6px -4px rgba(60, 48, 26, 0.18);
}

html[data-ql-theme='light'] .showcase__glow {
  background: radial-gradient(50% 60% at 50% 40%, rgba(201, 162, 74, 0.2), transparent 72%);
}

html[data-ql-theme='light'] .window {
  border-color: rgba(34, 29, 21, 0.12);
  background: var(--ql-surface);
  box-shadow:
    0 30px 60px -22px rgba(60, 48, 26, 0.28),
    0 12px 24px -14px rgba(60, 48, 26, 0.22);
}

html[data-ql-theme='light'] .window:hover {
  border-color: rgba(201, 162, 74, 0.55);
  box-shadow:
    0 34px 70px -22px rgba(60, 48, 26, 0.32),
    0 0 0 1px rgba(201, 162, 74, 0.25),
    0 12px 24px -14px rgba(60, 48, 26, 0.22);
}

html[data-ql-theme='light'] .window__bar {
  background: rgba(34, 29, 21, 0.045);
  border-bottom-color: rgba(34, 29, 21, 0.08);
}

html[data-ql-theme='light'] .feature {
  border-color: rgba(34, 29, 21, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

html[data-ql-theme='light'] .feature:hover {
  background: rgba(255, 255, 255, 0.8);
}

html[data-ql-theme='light'] .feature__title {
  color: #26211a;
}

html[data-ql-theme='light'] .devex-card {
  border-color: rgba(34, 29, 21, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

html[data-ql-theme='light'] .devex-card__code {
  border-color: rgba(34, 29, 21, 0.1);
  background: rgba(34, 29, 21, 0.05);
}

html[data-ql-theme='light'] .devex-card__code code {
  color: #6b4f12;
}

html[data-ql-theme='light'] .devex-card__copy {
  border-color: rgba(34, 29, 21, 0.14);
}

html[data-ql-theme='light'] .outro__card {
  border-color: rgba(201, 162, 74, 0.45);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(201, 162, 74, 0.14), transparent 70%),
    var(--ql-surface);
}

/* Keyboard focus for every interactive element on the page. The light paper
   needs the deeper gold to keep the ring at 3:1. */
.hero__cta:focus-visible,
.hero__ghost:focus-visible,
.site-header__home:focus-visible,
.site-header__link:focus-visible,
.site-header__toggle:focus-visible,
.devex-card__copy:focus-visible {
  outline: 2px solid var(--ql-gold-300);
  outline-offset: 2px;
}

html[data-ql-theme='light'] .hero__cta:focus-visible,
html[data-ql-theme='light'] .hero__ghost:focus-visible,
html[data-ql-theme='light'] .site-header__home:focus-visible,
html[data-ql-theme='light'] .site-header__link:focus-visible,
html[data-ql-theme='light'] .site-header__toggle:focus-visible,
html[data-ql-theme='light'] .devex-card__copy:focus-visible {
  outline-color: var(--ql-gold-700);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .word-rotate__word--enter {
    animation: none;
  }

  .hero__cta,
  .hero__cta-icon,
  .hero__ghost,
  .site-header,
  .site-header__link,
  .site-header__toggle,
  .window,
  .feature,
  .devex-card,
  .devex-card__copy {
    transition: none;
  }

  .hero__cta:hover,
  .feature:hover {
    transform: none;
  }
}

/* =====================================================================
 * Release site additions: documentation pages projected onto the landing VI.
 * Everything below extends the copied landing stylesheet for the engine,
 * architecture and download pages, plus the shared in-page navigation.
 * ===================================================================== */

/* Header middle cluster: in-page navigation links, mono like the console
   link the product page carried, with a gold state for the current page. */
.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__link--active {
  color: var(--ql-gold-300);
}

html[data-ql-theme='light'] .site-header__link--active {
  color: var(--ql-gold-700);
}

/* Documentation page column. */

.doc {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding: 4.5rem 1.5rem 3rem;
}

.doc__kicker {
  margin: 0;
  color: var(--ql-gold-500);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.doc__title {
  margin: 0.875rem 0 0;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

@media (min-width: 64rem) {
  .doc__title {
    font-size: 2.75rem;
  }
}

.doc__lead {
  max-width: 40rem;
  margin: 1.125rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* Documentation sections and prose. */

.doc__section {
  margin-top: 3.75rem;
}

.doc__section-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 64rem) {
  .doc__section-title {
    font-size: 1.75rem;
  }
}

.doc__section-index {
  color: var(--ql-gold-700);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.doc__section-sub {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: var(--ql-ink-mid);
  line-height: 1.8;
}

.doc p {
  margin: 1rem 0 0;
  line-height: 1.85;
}

.doc h3 {
  margin: 2.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.doc h3 code {
  font-size: 1em;
}

.doc ul,
.doc ol {
  margin: 0.875rem 0 0;
  padding-left: 1.375rem;
  line-height: 1.85;
}

.doc li + li {
  margin-top: 0.375rem;
}

.doc li::marker {
  color: var(--ql-gold-500);
}

.doc strong {
  color: var(--ql-ink-hi);
  font-weight: 600;
}

.doc a {
  color: var(--ql-gold-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 74, 0.35);
}

.doc a:hover {
  color: var(--ql-gold-500);
  border-bottom-color: var(--ql-gold-500);
}

html[data-ql-theme='light'] .doc a {
  color: var(--ql-gold-700);
}

/* Inline code and fenced blocks, sharing the devex card's surface language. */

.doc code {
  padding: 0.125rem 0.375rem;
  border: 1px solid rgba(239, 233, 223, 0.1);
  border-radius: 0.375rem;
  background: var(--ql-surface);
  color: var(--ql-gold-300);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

html[data-ql-theme='light'] .doc code {
  border-color: rgba(34, 29, 21, 0.1);
  color: var(--ql-gold-700);
}

.doc pre {
  margin: 1.25rem 0 0;
  padding: 1.125rem 1.375rem;
  border: 1px solid rgba(239, 233, 223, 0.1);
  border-radius: 0.75rem;
  background: var(--ql-surface);
  overflow-x: auto;
}

html[data-ql-theme='light'] .doc pre {
  border-color: rgba(34, 29, 21, 0.1);
}

.doc pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ql-ink-hi);
  font-size: 0.8125rem;
  line-height: 1.75;
}

/* Tables: catalogue of packages, dispatch modes and the like. */

.doc__table-wrap {
  margin-top: 1.25rem;
  padding: 0 1px;
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.doc th {
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(201, 162, 74, 0.22);
  background: var(--ql-surface);
  color: var(--ql-gold-300);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}

html[data-ql-theme='light'] .doc th {
  color: var(--ql-gold-700);
}

.doc td {
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(239, 233, 223, 0.09);
  line-height: 1.65;
  vertical-align: top;
}

html[data-ql-theme='light'] .doc td {
  border-color: rgba(34, 29, 21, 0.1);
}

.doc td code {
  white-space: nowrap;
}

/* Card grids: engine concepts, principles, deployment forms. */

.doc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .doc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .doc-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.doc-card {
  padding: 1.375rem 1.375rem 1.5rem;
  border: 1px solid rgba(239, 233, 223, 0.09);
  border-radius: 0.875rem;
  background: var(--ql-surface);
  transition: border-color 200ms ease, transform 200ms ease;
}

.doc-card:hover {
  border-color: rgba(201, 162, 74, 0.32);
  transform: translateY(-2px);
}

html[data-ql-theme='light'] .doc-card {
  border-color: rgba(34, 29, 21, 0.1);
}

.doc-card__tag {
  color: var(--ql-gold-500);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}

.doc-card__title {
  margin: 0.625rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.doc-card__desc {
  margin: 0.625rem 0 0;
  color: var(--ql-ink-mid);
  font-size: 0.875rem;
  line-height: 1.75;
}

.doc-card__title code,
.doc-card__desc code {
  font-size: 0.8125em;
}

/* Architecture diagram figure: the animated SVG in a framed surface. */

.arch-figure {
  margin: 1.75rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(239, 233, 223, 0.09);
  border-radius: 1rem;
  background: var(--ql-surface);
}

html[data-ql-theme='light'] .arch-figure {
  border-color: rgba(34, 29, 21, 0.1);
}

.arch-figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.arch-figure__caption {
  margin: 0.875rem 0 0;
  color: var(--ql-ink-low);
  font-size: 0.8125rem;
  line-height: 1.7;
  text-align: center;
}

/* Download page: product cards and the "coming soon" state. */

.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 64rem) {
  .dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px dashed rgba(201, 162, 74, 0.35);
  border-radius: 1rem;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(201, 162, 74, 0.06), transparent 70%),
    var(--ql-surface);
}

.dl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dl-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.dl-card__desc {
  margin: 0;
  color: var(--ql-ink-mid);
  font-size: 0.875rem;
  line-height: 1.75;
}

.badge-soon {
  flex: none;
  padding: 2px 10px;
  border: 1px solid rgba(201, 162, 74, 0.4);
  border-radius: 999px;
  color: var(--ql-gold-300);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

html[data-ql-theme='light'] .badge-soon {
  color: var(--ql-gold-700);
}

/* Prev/next pager closing each documentation page. */

.doc-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(239, 233, 223, 0.09);
}

html[data-ql-theme='light'] .doc-pager {
  border-top-color: rgba(34, 29, 21, 0.1);
}

.doc-pager__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(239, 233, 223, 0.14);
  border-radius: 0.625rem;
  color: var(--ql-ink-mid);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.doc-pager__link:hover {
  border-color: var(--ql-gold-700);
  color: var(--ql-gold-300);
}

html[data-ql-theme='light'] .doc-pager__link:hover {
  color: var(--ql-gold-700);
}

.doc-pager__label {
  color: var(--ql-ink-low);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

/* ICP filing line under the footer meta, required for the public deployment. */
.site-footer__icp {
  margin-bottom: 1.25rem;
}

.site-footer__icp a {
  color: var(--ql-ink-low);
  font-size: 0.75rem;
  text-decoration: none;
}

.site-footer__icp a:hover {
  color: var(--ql-ink-mid);
}
