:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-primary: #f95106;
  --color-primary-light: #ff7a3c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Selection */
::selection {
  background: rgba(249, 81, 6, 0.35);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Hero blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 10s ease-in-out infinite;
}

.blob-1 {
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(249, 81, 6, 0.3), transparent 70%);
  top: -6rem;
  left: -8rem;
  animation-delay: 0s;
}

.blob-2 {
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(255, 122, 60, 0.25), transparent 70%);
  bottom: -4rem;
  right: -6rem;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-24px) scale(1.05);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Generated product visuals */
.site-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #0d0d0d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.site-visual::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  content: "";
  pointer-events: none;
}

.site-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.site-visual-hero {
  width: min(100%, 1120px);
  margin-inline: auto;
  border-color: rgba(249, 81, 6, 0.22);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(249, 81, 6, 0.08);
  transform: perspective(1400px) rotateX(1.6deg);
  transform-origin: center top;
}

/* Homepage hero stage: the single retained effect from the scroll-story study. */
.hero-stage {
  position: relative;
  width: min(100%, 1120px);
  margin: 3.5rem auto 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: var(--color-bg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform-origin: center;
}

.hero-stage.reveal {
  transform: translateY(20px) rotate(1.6deg);
}

.hero-stage.reveal.is-visible {
  transform: rotate(1.6deg);
}

.hero-stage::before,
.hero-stage::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.hero-stage::before {
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stage::after {
  top: -18px;
  right: 42px;
  width: 84px;
  height: 36px;
  border-top: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
}

.hero-media,
.hero-media img {
  display: block;
  width: 100%;
  border-radius: inherit;
}

.hero-media img {
  aspect-ratio: 1.665;
  object-fit: cover;
}

.demo-window {
  position: absolute;
  right: -4%;
  bottom: -9%;
  width: min(38%, 300px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(249, 81, 6, 0.7);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  transform: rotate(-2.2deg);
}

.demo-window img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-window figcaption {
  padding: 8px 11px;
  color: #d8d0c6;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
  text-align: left;
}

.hero-index {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.76);
  backdrop-filter: blur(12px);
  color: #d8d0c6;
  font: 9px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero-index b {
  color: var(--color-primary-light);
  font-weight: 500;
}

@media (min-width: 641px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-stage.is-visible {
    animation: hero-stage-breathe 7s ease-in-out 650ms infinite;
  }

  .hero-stage.is-visible .demo-window {
    animation: hero-demo-float 5.5s ease-in-out 650ms infinite;
  }
}

@keyframes hero-stage-breathe {
  0%, 100% { transform: rotate(1.6deg) translateY(0); }
  50% { transform: rotate(0.8deg) translateY(-8px); }
}

@keyframes hero-demo-float {
  0%, 100% { transform: rotate(-2.2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-9px); }
}

@media (max-width: 640px) {
  .hero-stage {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-bottom: 2.75rem;
    border-radius: 12px;
  }

  .hero-stage.reveal {
    transform: translateY(20px);
  }

  .hero-stage.reveal.is-visible {
    transform: none;
  }

  .hero-stage::after,
  .hero-index {
    display: none;
  }

  .demo-window {
    right: 8px;
    bottom: -36px;
    width: 46%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage.reveal,
  .hero-stage.reveal.is-visible {
    opacity: 1;
    transform: rotate(1.6deg);
    transition: none;
  }

  .demo-window {
    animation: none;
  }
}

.feature-visuals {
  display: grid;
  gap: 42px;
}

.feature-visual figcaption {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 0.58fr);
  gap: 32px;
  padding: 22px 4px 0;
  text-align: left;
}

.feature-visual figcaption span {
  color: rgba(255, 255, 255, 0.96);
  font-size: 18px;
  font-weight: 700;
}

.feature-visual figcaption p {
  margin: 0;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.7;
}

.creation-visual {
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-visual .site-visual,
  .creation-visual {
    transition: transform 360ms ease, border-color 360ms ease;
  }

  .feature-visual:hover .site-visual,
  .creation-visual:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 81, 6, 0.28);
  }
}

@media (min-width: 1024px) {
  .feature-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-visual {
    border-radius: 12px;
  }

  .site-visual-hero {
    width: calc(100% + 24px);
    margin-left: -12px;
    transform: none;
  }

  .feature-visual figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 16px;
  }
}

/* Stagger children within grids/lists */
.value-card:nth-child(1) { transition-delay: 0ms; }
.value-card:nth-child(2) { transition-delay: 80ms; }
.value-card:nth-child(3) { transition-delay: 160ms; }
.value-card:nth-child(4) { transition-delay: 240ms; }

.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 60ms; }
.feature-card:nth-child(3) { transition-delay: 120ms; }
.feature-card:nth-child(4) { transition-delay: 180ms; }
.feature-card:nth-child(5) { transition-delay: 240ms; }
.feature-card:nth-child(6) { transition-delay: 300ms; }

.workflow-step:nth-child(1) { transition-delay: 0ms; }
.workflow-step:nth-child(2) { transition-delay: 100ms; }
.workflow-step:nth-child(3) { transition-delay: 200ms; }
.workflow-step:nth-child(4) { transition-delay: 300ms; }

.audience-card:nth-child(1) { transition-delay: 0ms; }
.audience-card:nth-child(2) { transition-delay: 80ms; }
.audience-card:nth-child(3) { transition-delay: 160ms; }
.audience-card:nth-child(4) { transition-delay: 240ms; }

/* FAQ summary marker removal */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary {
  list-style: none;
}

/* Focus ring polish */
:focus-visible { outline: 2px solid #F95106; outline-offset: 4px; }

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

  .blob {
    animation: none;
  }

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

/* Mobile nav transition */
#mobileMenu {
  transition: opacity 200ms ease, transform 200ms ease;
}

#mobileMenu.hidden {
  display: none;
}

/* Modal transitions */
#downloadModal [data-modal-backdrop] {
  transition: opacity 200ms ease;
}

#downloadModal [data-modal-panel] {
  transition: opacity 200ms ease, transform 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  #downloadModal [data-modal-backdrop],
  #downloadModal [data-modal-panel] {
    transition: none;
  }
}

/* Documentation pages */
.doc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px);
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.doc-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.doc-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
  font-weight: 600;
}

.doc-nav a {
  transition: color 160ms ease;
}

.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  color: #fff;
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 820px);
  gap: 56px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.doc-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100svh - 120px);
  overflow: auto;
  padding-right: 8px;
}

.doc-sidebar-title {
  margin-bottom: 16px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-link {
  display: block;
  padding: 7px 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 14px;
  line-height: 1.35;
  transition: color 160ms ease, transform 160ms ease;
}

.toc-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.toc-level-3 {
  padding-left: 14px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.75);
}

.doc-article,
.doc-index-shell {
  min-width: 0;
}

.doc-kicker {
  margin-bottom: 22px;
  color: rgba(148, 163, 184, 0.8);
  font-size: 14px;
}

.doc-kicker a {
  color: #ff7a3c;
}

.doc-status {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid rgba(249, 81, 6, 0.28);
  border-radius: 8px;
  background: rgba(249, 81, 6, 0.08);
  color: rgba(255, 237, 213, 0.92);
}

.doc-content {
  overflow-wrap: anywhere;
  color: rgba(226, 232, 240, 0.9);
  font-size: 17px;
  line-height: 1.82;
}

.doc-content h1 {
  scroll-margin-top: 84px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
}

.doc-content h2 {
  scroll-margin-top: 84px;
  margin: 58px 0 18px;
  padding-top: 10px;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 800;
}

.doc-content h3 {
  scroll-margin-top: 84px;
  margin: 34px 0 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 750;
}

.doc-content p,
.doc-content ul,
.doc-content ol,
.doc-content blockquote,
.doc-image {
  margin: 0 0 20px;
}

.doc-content ul,
.doc-content ol {
  padding-left: 24px;
}

.doc-content li {
  margin: 8px 0;
}

.doc-content a {
  color: #ff7a3c;
  text-decoration: underline;
  text-decoration-color: rgba(255, 122, 60, 0.45);
  text-underline-offset: 4px;
}

.doc-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9em;
}

.doc-content blockquote {
  padding: 14px 18px;
  border-left: 3px solid #f95106;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.86);
}

.doc-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.doc-image img {
  display: block;
  width: 100%;
  height: auto;
}

.doc-image figcaption {
  padding: 10px 14px;
  color: rgba(148, 163, 184, 0.88);
  font-size: 13px;
}

.doc-image-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  color: rgba(255, 237, 213, 0.85);
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    rgba(249, 81, 6, 0.08) 0,
    rgba(249, 81, 6, 0.08) 12px,
    rgba(255, 255, 255, 0.035) 12px,
    rgba(255, 255, 255, 0.035) 24px
  );
}

.doc-muted {
  color: rgba(148, 163, 184, 0.8);
  font-size: 14px;
}

.doc-index-shell {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.doc-index-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  font-weight: 800;
}

.doc-index-hero p:last-child {
  max-width: 680px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.release-list {
  margin-top: 44px;
  display: grid;
  gap: 16px;
}

.release-item {
  display: grid;
  grid-template-columns: 120px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(203, 213, 225, 0.82);
  transition: color 160ms ease, border-color 160ms ease;
}

.release-item:hover {
  border-color: rgba(249, 81, 6, 0.55);
  color: #fff;
}

.release-version {
  color: #ff7a3c;
  font-weight: 800;
}

.release-date {
  color: rgba(148, 163, 184, 0.9);
}

.release-item strong {
  color: #fff;
}

.release-item span:last-child {
  grid-column: 3;
  color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 860px) {
  .doc-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .doc-nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .doc-shell {
    display: block;
    width: min(100% - 32px, 760px);
    padding-top: 36px;
  }

  .doc-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #docToc {
    display: flex;
    gap: 14px;
    overflow-x: auto;
  }

  .toc-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .toc-level-3 {
    padding-left: 0;
  }

  .doc-content {
    font-size: 16px;
    line-height: 1.76;
  }

  .release-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .release-item span:last-child {
    grid-column: auto;
  }
}

/* Current product guides: readable without scripts or remote styles. */
.guide-page { background:#000; color:#ededed; }
.guide-page .doc-header { background:rgba(0,0,0,.94); }
.guide-page .doc-nav { flex-wrap:wrap; color:#b6b6b6; }
.guide-page .doc-nav a { white-space:nowrap; padding:8px 0; }
.guide-page .doc-content { color:#d6d6d6; font-size:16px; line-height:1.9; }
.guide-page .doc-content h1 { font-size:clamp(30px,3.5vw,48px); line-height:1.3; letter-spacing:-.025em; }
.guide-page .doc-content h2 { margin-top:42px; font-size:clamp(23px,2.4vw,29px); line-height:1.4; }
.guide-page .doc-content h3 { font-size:20px; }
.guide-page .toc-link, .guide-page .doc-kicker, .guide-page .doc-sidebar-title { color:#aaa; }
.guide-page .toc-link:hover, .guide-page .doc-nav a:hover { color:#fff; }
.doc-review { margin:0 0 22px; color:#a9a9a9; font-size:13px; line-height:1.8; }
.doc-review a { text-decoration:underline; text-underline-offset:3px; }
.doc-content table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; margin:24px 0; font-size:14px; }
.doc-content th, .doc-content td { padding:14px; border:1px solid #303030; min-width:150px; text-align:left; vertical-align:top; }
.doc-content th { color:#fff; background:#17181B; font-weight:650; }
.doc-content td { background:#101113; }
.doc-content ul { list-style:disc; }
.doc-content ol { list-style:decimal; }
.anchor-alias { display:block; scroll-margin-top:150px; }
.geo-footer { display:flex; flex-wrap:wrap; gap:16px 28px; width:min(1180px,calc(100% - 48px)); margin:0 auto; padding:28px 0 40px; border-top:1px solid #303030; color:#b6b6b6; font-size:14px; }
.geo-footer a:hover { color:#fff; text-decoration:underline; }
.skip-link { position:fixed; top:8px; left:16px; z-index:100; transform:translateY(-150%); background:#17181B; color:#fff; padding:12px; border:1px solid #F95106; }
.skip-link:focus { transform:none; }
@media(max-width:860px) {
  .guide-page .doc-header { position:relative; gap:8px; }
  .guide-page .doc-nav { gap:0 18px; overflow:visible; font-size:13px; }
  .guide-page .doc-shell { padding-top:24px; }
  .guide-page .doc-sidebar { margin-bottom:24px; }
  .guide-page .doc-content h1, .guide-page .doc-content h2, .guide-page .doc-content h3 { scroll-margin-top:16px; }
}

.guide-page .doc-content a[href$="_x64-setup.exe"] { display:inline-flex; padding:12px 20px; border-radius:8px; background:#F95106; color:#fff; font-weight:650; text-decoration:none; }
.guide-page .doc-content a[href$="_x64-setup.exe"]:hover { background:#d94605; }
