:root {
  color-scheme: light;
  --ink: #121512;
  --muted: #626961;
  --paper: #f4f6f1;
  --white: #ffffff;
  --line: #d8ddd5;
  --blue: #315bea;
  --lime: #b9ef68;
  --dark: #111411;
  --panel: #ffffff;
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button {
  font: inherit;
}

a {
  color: inherit;
}

code {
  padding: 2px 5px;
  color: #2244b8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: rgb(49 91 234 / 8%);
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--dark);
  background: var(--lime);
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 56px), var(--max-width));
  height: 76px;
  margin: 0 auto;
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / 24%);
}

.brand,
.header-nav,
.header-meta,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  color: inherit;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

.header-nav {
  gap: 20px;
  justify-content: center;
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--white);
}

.header-meta {
  gap: 12px;
  color: rgb(255 255 255 / 74%);
  font-size: 12px;
}

.header-divider {
  width: 1px;
  height: 14px;
  background: rgb(255 255 255 / 30%);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(800px, 90svh);
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
  filter: saturate(0.72) contrast(1.08);
}

.hero-shade {
  background: linear-gradient(90deg, rgb(7 10 8 / 78%), rgb(7 10 8 / 42%));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: min(calc(100% - 56px), var(--max-width));
  margin: 0 auto;
  padding: 150px 0 105px;
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lime);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 76px;
  font-weight: 780;
  line-height: 1.02;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.35;
}

.hero-copy {
  max-width: 690px;
  margin: 20px 0 30px;
  color: rgb(255 255 255 / 78%);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link,
.download-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-link,
.download-link {
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--lime);
}

.secondary-link {
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 24%);
}

.primary-link:hover,
.download-link:hover {
  color: var(--white);
  background: transparent;
}

.secondary-link:hover {
  background: rgb(255 255 255 / 18%);
}

.hero-status {
  position: absolute;
  right: max(28px, calc((100vw - var(--max-width)) / 2));
  bottom: 28px;
  z-index: 1;
  display: flex;
  gap: 18px;
  color: rgb(255 255 255 / 68%);
  font-size: 11px;
}

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

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
}

.section-shell {
  width: min(calc(100% - 56px), var(--max-width));
  margin: 0 auto;
}

.intro,
.codex-context,
.codex-handoff,
.overview,
.manual,
.floating-modes,
.workflow,
.faq {
  padding: 110px 0 120px;
}

.section-index {
  color: var(--blue);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2,
.product-view h2,
.manual-copy h2,
.closing h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 720;
  line-height: 1.18;
}

.manual-copy {
  max-width: 780px;
}

.manual-copy p:not(.section-index),
.closing-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.quick-grid,
.relationship-grid,
.handoff-grid,
.feature-list,
.faq-grid,
.mode-grid,
.platform-grid,
.install-help-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.quick-grid,
.relationship-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.quick-card,
.relationship-card,
.handoff-card,
.feature,
.faq-grid article,
.mode-grid article,
.platform-grid article,
.install-help-grid article,
.panel {
  background: var(--panel);
}

.quick-card,
.relationship-card,
.handoff-card,
.feature,
.faq-grid article,
.mode-grid article,
.platform-grid article,
.install-help-grid article {
  padding: 28px;
}

.quick-card h3,
.relationship-card h3,
.handoff-card h3,
.feature h3,
.faq-grid h3,
.mode-grid h3,
.platform-grid h3,
.install-help-grid h3,
.panel h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.quick-card p,
.relationship-card p,
.handoff-card p,
.feature p,
.faq-grid p,
.mode-grid p,
.platform-grid p,
.install-help-grid p,
.install-help-grid li,
.guide-shot figcaption,
.panel p,
.panel li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.relationship-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note {
  margin-top: 28px;
  padding: 22px 24px;
  color: var(--dark);
  background: #eaf7d2;
  border: 1px solid #cae99b;
  border-radius: 6px;
}

.note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.note p {
  margin: 0;
  line-height: 1.72;
}

.feature-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-list.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.feature-number {
  display: block;
  margin-bottom: 50px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.product-view,
.band {
  color: var(--white);
  background: var(--dark);
}

.product-view {
  padding: 110px 0 120px;
}

.band {
  padding: 110px 0 120px;
}

.product-view .section-index,
.band .section-index {
  color: var(--lime);
}

.product-view-header {
  display: flex;
  gap: 48px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 52px;
}

.product-view-header h2 {
  max-width: 680px;
}

.view-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 650px;
}

.view-tab-section {
  display: grid;
  gap: 6px;
}

.view-tab-label {
  color: rgb(255 255 255 / 48%);
  font-size: 10px;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
}

.view-tab {
  min-height: 38px;
  padding: 8px 12px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 3px;
}

.view-tab:hover,
.view-tab:focus-visible {
  color: var(--white);
}

.view-tab.is-active {
  color: var(--dark);
  font-weight: 700;
  background: var(--lime);
}

.product-frame {
  margin: 0;
  overflow: hidden;
  background: #1d201c;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 7px;
  box-shadow: 0 32px 80px rgb(0 0 0 / 35%);
}

.window-bar {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  background: #292d28;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

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

.window-bar strong {
  position: absolute;
  right: 50%;
  color: rgb(255 255 255 / 56%);
  font-size: 11px;
  transform: translateX(50%);
}

.shot-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 64 / 45;
  background: #181b17;
}

.shot-stage-link {
  display: grid;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.shot-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 140ms ease, transform 140ms ease;
}

.shot-stage img.is-changing {
  opacity: 0;
  transform: scale(0.995);
}

.product-frame figcaption {
  padding: 14px 18px;
  color: rgb(255 255 255 / 58%);
  font-size: 11px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.steps,
.timeline {
  display: grid;
  gap: 1px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps li,
.timeline li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px 26px;
  background: var(--panel);
}

.steps strong,
.timeline strong {
  color: var(--ink);
}

.steps span,
.timeline span {
  color: var(--muted);
  line-height: 1.72;
}

.mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.platform-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.platform-grid p + p,
.install-help-grid p + p {
  margin-top: 12px;
}

.install-help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.install-help-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
}

.install-help-grid img {
  width: 100%;
  height: auto;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 42px rgb(28 39 58 / 13%);
}

.install-help-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.install-help-grid code {
  color: var(--ink);
  font-size: 0.95em;
}

.install-help-opened {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.install-help-opened > div,
.install-help-opened ul {
  margin: 0;
  padding: 28px;
  background: var(--panel);
}

.install-help-opened h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.install-help-opened p,
.install-help-opened li span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.install-help-opened ul {
  display: grid;
  gap: 18px;
  list-style: none;
}

.install-help-opened li {
  display: grid;
  gap: 6px;
}

.install-help-opened li strong {
  color: var(--ink);
}

.sequenceq-link-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sequenceq-link-note > div,
.sequenceq-link-note ul {
  margin: 0;
  padding: 28px;
  background: var(--panel);
}

.sequenceq-link-note h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.sequenceq-link-note p,
.sequenceq-link-note li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.sequenceq-link-note ul {
  display: grid;
  gap: 8px;
  padding-left: 48px;
}

.tutorial-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111411;
  object-fit: contain;
  border-radius: 8px;
}

.guide-shot {
  display: grid;
  gap: 14px;
  margin: 42px 0 0;
}

.guide-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 24px 60px rgb(28 39 58 / 12%);
}

.guide-shot-dark img {
  border-color: rgb(255 255 255 / 16%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 32%);
}

.guide-shot figcaption {
  padding: 0 2px;
}

.guide-shot-dark figcaption {
  color: rgb(255 255 255 / 68%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.band .manual-copy p:not(.section-index) {
  color: rgb(255 255 255 / 70%);
}

.panel {
  padding: 30px;
  color: var(--ink);
  border-radius: 7px;
}

.panel h3 + p,
.panel h3 + ol {
  margin-top: 0;
}

.panel h3:not(:first-child) {
  margin-top: 30px;
}

.panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

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

.float-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

.float-card {
  display: grid;
  gap: 18px;
  align-content: start;
  margin: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.float-card-panel {
  grid-row: span 2;
}

.float-shot {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 18px;
  overflow: hidden;
  background: #dfe4ec;
  border-radius: 6px;
}

.float-card-panel .float-shot {
  min-height: 330px;
}

.float-shot img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgb(28 39 58 / 18%);
}

.float-shot-dot img {
  width: 82px;
}

.float-card figcaption {
  display: grid;
  gap: 8px;
}

.float-card figcaption strong {
  font-size: 20px;
}

.float-card figcaption span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.closing {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
  padding: 120px 0;
}

.closing-mark {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.closing-copy h2 {
  max-width: 780px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.download-actions[hidden],
.download-link[hidden] {
  display: none !important;
}

.download-link {
  margin-top: 14px;
}

.download-actions .download-link {
  margin-top: 0;
}

.secondary-download {
  color: var(--dark);
  background: rgb(17 20 17 / 6%);
  border-color: rgb(17 20 17 / 18%);
}

.secondary-download:hover {
  color: var(--white);
  background: var(--lime);
  border-color: var(--lime);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 56px), var(--max-width));
  min-height: 84px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 750;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-meta {
    display: none;
  }

  .feature-list,
  .feature-list.compact,
  .handoff-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 58px;
  }

  .section-heading,
  .closing,
  .two-column {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 8px;
  }

  .quick-grid,
  .relationship-grid,
  .handoff-grid,
  .float-gallery,
  .mode-grid,
  .platform-grid,
  .install-help-grid,
  .install-help-opened,
  .sequenceq-link-note {
    grid-template-columns: 1fr;
  }

  .float-card-panel {
    grid-row: auto;
  }

  .product-view-header {
    align-items: start;
    flex-direction: column;
  }

  .view-tabs {
    width: 100%;
  }

  .view-switcher {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .header-nav {
    display: none;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .header-meta {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-content,
  .section-shell,
  .site-footer {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .site-header {
    height: 64px;
  }

  .header-meta span:first-child,
  .header-divider {
    display: none;
  }

  .hero {
    min-height: min(760px, 92svh);
  }

  .hero-media {
    object-position: 38% center;
  }

  .hero-content {
    padding: 120px 0 105px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 22px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-status {
    right: 18px;
    bottom: 20px;
    left: 18px;
    justify-content: space-between;
  }

  .intro,
  .codex-context,
  .codex-handoff,
  .overview,
  .manual,
  .floating-modes,
  .workflow,
  .faq,
  .product-view,
  .band,
  .closing {
    padding-top: 78px;
    padding-bottom: 82px;
  }

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

  .section-heading h2,
  .product-view h2,
  .manual-copy h2,
  .closing h2 {
    font-size: 30px;
  }

  .feature-list,
  .feature-list.compact,
  .relationship-grid,
  .handoff-grid,
  .faq-grid,
  .mode-grid,
  .platform-grid,
  .install-help-grid,
  .install-help-opened,
  .sequenceq-link-note {
    grid-template-columns: 1fr;
  }

  .steps li,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .float-card,
  .float-shot {
    padding: 16px;
  }

  .float-card-panel .float-shot {
    min-height: 230px;
  }

  .product-view-header {
    gap: 32px;
  }

  .view-switcher {
    grid-template-columns: 1fr;
  }

  .view-tab {
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  .window-bar strong {
    display: none;
  }

  .closing {
    gap: 32px;
  }

  .closing-mark {
    width: 96px;
    height: 96px;
  }
}

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

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