:root {
  color-scheme: dark;
  --page: #070707;
  --surface: #10100f;
  --surface-raised: #161615;
  --text: #f4f4f0;
  --text-soft: #aaa9a3;
  --text-muted: #85847e;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.075);
  --focus: #f4f4f0;
  --dark-page: #070707;
  --dark-surface: #10100f;
  --dark-text: #f4f4f0;
  --dark-soft: #aaa9a3;
  --dark-muted: #85847e;
  --dark-line: rgba(255, 255, 255, 0.13);
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1280px;
  --gutter: clamp(1.5rem, 4.2vw, 4.5rem);
  --section-space: clamp(6.5rem, 11vw, 10rem);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --page: #efeee9;
    --surface: #e4e3de;
    --surface-raised: #f8f7f2;
    --text: #121211;
    --text-soft: #55544f;
    --text-muted: #67665f;
    --line: rgba(0, 0, 0, 0.16);
    --line-soft: rgba(0, 0, 0, 0.085);
    --focus: #121211;
  }
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--dark-page);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--text);
  color: var(--page);
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

p:last-child {
  margin-bottom: 0;
}

[id] {
  scroll-margin-top: 5.5rem;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.hero :focus-visible,
.agent-section :focus-visible,
.download-section :focus-visible,
.site-footer :focus-visible,
.site-nav :focus-visible {
  outline-color: var(--dark-text);
}

.container {
  width: min(100%, calc(var(--container) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--dark-text);
  color: var(--dark-page);
  font-family: var(--mono);
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

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

.eyebrow,
.group-index,
.release-meta,
.flow-index,
.footer-label {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.eyebrow-on-dark {
  color: rgba(244, 244, 240, 0.66);
}

/* Navigation */

.site-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 4.75rem;
  color: var(--dark-text);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    backdrop-filter 240ms ease;
}

.site-nav::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: transparent;
  transition: background-color 240ms ease;
}

.site-nav.nav-scrolled {
  background: rgba(7, 7, 7, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.site-nav.nav-scrolled::after {
  background: var(--dark-line);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, calc(var(--container) + (var(--gutter) * 2)));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-self: start;
  gap: 0.65rem;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  stroke-width: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.84rem;
  color: rgba(244, 244, 240, 0.74);
}

.nav-links a,
.footer-links a {
  transition: color 180ms ease;
}

.nav-download {
  display: inline-flex;
  justify-self: end;
  min-width: 6.8rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(244, 244, 240, 0.42);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  min-height: min(1000px, 100svh);
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-page);
  color: var(--dark-text);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 2, 2, 0.89) 0%, rgba(2, 2, 2, 0.68) 27%, rgba(2, 2, 2, 0.23) 57%, rgba(2, 2, 2, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 2, 2, 0.91) 0%, rgba(2, 2, 2, 0.28) 30%, rgba(2, 2, 2, 0.1) 66%, rgba(2, 2, 2, 0.42) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 11rem;
  padding-bottom: clamp(4.5rem, 8.5vh, 7.5rem);
}

.hero-copy {
  width: min(53rem, 72vw);
}

.hero h1 {
  margin-bottom: 1.8rem;
  font-size: clamp(4.3rem, 7.1vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.87;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.28);
}

.hero h1 span {
  display: block;
}

.hero-description {
  max-width: 48rem;
  margin-bottom: 2rem;
  color: rgba(244, 244, 240, 0.77);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.92rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button-primary {
  background: var(--dark-text);
  color: var(--dark-page);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary-on-dark {
  border-color: rgba(244, 244, 240, 0.32);
  color: var(--dark-text);
}

.button-icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 1.55;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-top: 1.25rem;
  color: rgba(244, 244, 240, 0.58);
}

.release-meta p {
  position: relative;
  margin-bottom: 0;
}

.release-meta p + p::before {
  position: absolute;
  top: 0.25em;
  left: -0.95rem;
  content: "·";
}

/* Feature editorial */

.feature-section {
  padding-block: var(--section-space);
  background: var(--page);
  color: var(--text);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

.section-heading h2,
.agent-copy h2,
.download-copy h2 {
  margin-bottom: 0;
  font-size: clamp(3.3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-wrap: balance;
}

.section-intro {
  max-width: 39rem;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.feature-group {
  display: grid;
  grid-template-columns: minmax(13rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(4rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.feature-group:last-child {
  padding-bottom: 0;
}

.feature-group-heading {
  align-self: start;
}

.group-index {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.feature-group h3 {
  max-width: 15rem;
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 5vw, 5rem);
}

.feature-item {
  min-width: 0;
  padding-block: 1.8rem 2.5rem;
  border-top: 1px solid var(--line-soft);
}

.feature-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-item:last-child:nth-child(odd) p {
  max-width: 40rem;
}

.feature-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
}

.feature-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-item h4 {
  margin-bottom: 0.65rem;
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.feature-item p {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Agent harness */

.agent-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.045), transparent 30%),
    var(--dark-surface);
  color: var(--dark-text);
}

.agent-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 5rem 5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 42%, black 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 42%, black 80%, transparent);
}

.agent-section .container {
  position: relative;
}

.agent-copy {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.agent-copy .eyebrow {
  color: var(--dark-muted);
}

.agent-description {
  max-width: 37rem;
  margin-bottom: 0.4rem;
  color: var(--dark-soft);
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.flow-step {
  position: relative;
  min-height: 12rem;
  padding: 1.65rem clamp(1.25rem, 2.4vw, 2rem) 2rem;
  border-left: 1px solid var(--dark-line);
}

.flow-icon {
  position: absolute;
  top: 1.55rem;
  right: clamp(1.25rem, 2.4vw, 2rem);
  width: 1.2rem;
  height: 1.2rem;
  color: var(--dark-muted);
}

.flow-step:first-child {
  border-left: 0;
}

.flow-step:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -0.7rem;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  background: var(--dark-surface);
  color: var(--dark-muted);
  content: "→";
  font-family: var(--mono);
  font-size: 0.65rem;
}

.flow-index {
  display: block;
  margin-bottom: 3.6rem;
  color: var(--dark-muted);
}

.flow-step strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.flow-step small {
  display: block;
  margin-bottom: 0;
  color: var(--dark-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Download close */

.download-section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--dark-line);
  background: var(--dark-page);
  color: var(--dark-text);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(19rem, 1.05fr) minmax(20rem, 0.75fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: end;
}

.download-copy .eyebrow {
  color: var(--dark-muted);
}

.download-copy h2 {
  max-width: 47rem;
}

.download-panel {
  padding-top: 2rem;
  border-top: 1px solid var(--dark-line);
}

.download-panel > p {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: var(--dark-soft);
  font-size: 1.06rem;
  line-height: 1.62;
}

.download-panel strong {
  color: var(--dark-text);
  font-weight: 500;
}

.download-panel .release-meta {
  margin-top: 1.3rem;
}

/* Footer */

.site-footer {
  padding-block: 4.5rem 2rem;
  border-top: 1px solid var(--dark-line);
  background: var(--dark-page);
  color: var(--dark-text);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto auto auto;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 5rem;
}

.footer-brand .brand {
  margin-bottom: 1.1rem;
}

.footer-tagline {
  max-width: 22rem;
  color: var(--dark-muted);
  font-size: 0.95rem;
}

.footer-label {
  margin-bottom: 1.15rem;
  color: var(--dark-muted);
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  min-width: 8.5rem;
  font-size: 0.9rem;
  color: var(--dark-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Motion */

body.reveal-ready [data-reveal].reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.reveal-ready [data-reveal].reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .nav-links a:hover,
  .footer-links a:hover {
    color: var(--dark-text);
  }

  .nav-download:hover {
    border-color: var(--dark-text);
    background: var(--dark-text);
    color: var(--dark-page);
  }

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

  .button-primary:hover {
    background: #d9d9d5;
  }

  .button-secondary:hover {
    border-color: currentColor;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: min(920px, 100svh);
  }

  .hero-copy {
    width: min(48rem, 78vw);
  }

  .section-heading,
  .agent-copy,
  .download-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-heading {
    align-items: start;
  }

  .feature-group {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .feature-group h3 {
    max-width: none;
  }

  .agent-description,
  .section-intro,
  .download-panel > p {
    max-width: 43rem;
  }

  .download-copy h2 {
    max-width: 55rem;
  }
}

@media (max-width: 780px) {
  :root {
    --gutter: 1.5rem;
    --section-space: 6rem;
  }

  .site-nav {
    height: 4.25rem;
    background: rgba(7, 7, 7, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-top: 4.25rem;
  }

  .hero-inner {
    order: 1;
    padding-top: 4.75rem;
    padding-bottom: 3.75rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-media {
    position: relative;
    z-index: 0;
    order: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .hero-media img {
    object-position: 50% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, var(--dark-page) 0%, rgba(7, 7, 7, 0.12) 22%, rgba(7, 7, 7, 0.05) 70%, rgba(7, 7, 7, 0.74) 100%),
      linear-gradient(90deg, rgba(7, 7, 7, 0.15), transparent 40%, rgba(7, 7, 7, 0.15));
  }

  .hero h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(3.5rem, 15vw, 6rem);
    line-height: 0.9;
  }

  .hero-description {
    max-width: 42rem;
    font-size: 1.05rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .agent-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step:nth-child(3) {
    border-left: 0;
  }

  .flow-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark-line);
  }

  .flow-step::after {
    display: none !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-links a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1.25rem;
    --section-space: 5.25rem;
  }

  .brand-mark {
    width: 1.65rem;
    height: 1.65rem;
  }

  .nav-download {
    min-width: 6.2rem;
    padding-inline: 0.8rem;
  }

  .hero-inner {
    padding-top: 3.7rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 16.8vw, 4.8rem);
  }

  .hero-media {
    aspect-ratio: 1 / 1.05;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .release-meta {
    display: grid;
    gap: 0.3rem;
  }

  .release-meta p + p::before {
    display: none;
  }

  .section-heading {
    padding-bottom: 4.75rem;
  }

  .section-heading h2,
  .agent-copy h2,
  .download-copy h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .feature-group {
    padding-block: 3.6rem;
  }

  .feature-item {
    padding-block: 1.6rem 2.25rem;
  }

  .agent-flow {
    grid-template-columns: 1fr;
  }

  .flow-step,
  .flow-step:nth-child(3) {
    min-height: 0;
    border-left: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .flow-index {
    margin-bottom: 2.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-bottom: 3.5rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

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

  body.reveal-ready [data-reveal].reveal {
    opacity: 1;
    transform: none;
  }
}

/* Inline text link (hero "live demo") */
.text-link {
  color: var(--text-2, #a1a1aa);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.text-link:hover {
  color: var(--text, #fafafa);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Live demo embed (app-window frame around an iframe of /demo/) ────────── */
.live-demo {
  padding: 32px 0 88px;
}
.app-window {
  margin-top: 40px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 44px 120px -34px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.app-window-bar .dots { display: flex; gap: 7px; }
.app-window-bar .dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text-3); opacity: 0.5;
}
.app-window-title {
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.app-window-open {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.app-window-open:hover { color: var(--text); }
.app-window-body {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0c;
  aspect-ratio: 16 / 10; /* no-JS fallback; JS sets an exact height */
}
.app-window-frame {
  position: absolute;
  top: 0; left: 0;
  width: 1440px; height: 900px;
  border: 0;
  transform-origin: top left;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.app-window-frame.is-loaded { opacity: 1; }
.app-window-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-3); font-size: 13px;
  transition: opacity 0.4s ease;
}
.app-window-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  border-top-color: var(--text-2);
  animation: aw-spin 0.8s linear infinite;
}
@keyframes aw-spin { to { transform: rotate(360deg); } }

/* ── "Built in Rust" band (above the footer) ─────────────────────────────── */
.built-with {
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.built-with-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 760px;
}
.rust-logo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  color: var(--text-2);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.built-with:hover .rust-logo {
  opacity: 1;
  color: var(--text);
}
.built-with-copy {
  max-width: 460px;
}
.built-with-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.built-with-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
}
@media (max-width: 560px) {
  .built-with-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* ── Business / licensing section (end of page) ──────────────────────────── */
.business {
  border-top: 1px solid var(--border);
  padding: 88px 0 96px;
  text-align: center;
}
.business-inner {
  max-width: 620px;
  margin: 0 auto;
}
.business h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 6px 0 14px;
}
.business-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 auto 30px;
  max-width: 500px;
}
.business-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.business-email {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
@media (max-width: 480px) {
  .business h2 { font-size: 26px; }
  .business { padding: 64px 0; }
}

/* ── Meta-harness / orchestrator section ─────────────────────────────────── */
.works-with {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: -2.5rem 0 4rem;
}
.works-with b {
  color: var(--text);
  font-weight: 500;
}
