:root {
  color-scheme: light;
  --ink: #10100f;
  --muted: #5d625c;
  --paper: #f9faf6;
  --paper-strong: #ffffff;
  --line: #dfe4dc;
  --green: #b7f34b;
  --blue: #265dff;
  --coral: #ff6847;
  --terminal: #141514;
  --terminal-soft: #20231f;
  --shadow: 0 24px 80px rgba(16, 16, 15, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(16, 16, 15, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
}

a {
  color: inherit;
}

.top-marquee {
  position: relative;
  z-index: 11;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.top-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}

.top-marquee-group {
  display: flex;
  flex-shrink: 0;
}

.top-marquee-group span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-inline: 14px;
  white-space: nowrap;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-marquee-group span::after {
  margin-left: 14px;
  color: var(--coral);
  content: "■";
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(249, 250, 246, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.download-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  min-height: calc(100svh - 120px);
  padding: clamp(44px, 8vw, 96px) clamp(18px, 6vw, 84px) 36px;
}

.hero-copy,
.section-heading,
.download-panel,
.quickstart-grid,
.feature-grid {
  max-width: 1160px;
}

.hero-copy {
  min-width: 0;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 7.8vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.lede {
  max-width: 670px;
  color: #30332e;
  font-size: clamp(1.22rem, 2vw, 1.75rem);
  line-height: 1.28;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  background: var(--green);
  box-shadow: 6px 6px 0 var(--ink);
}

.button-secondary {
  background: var(--paper-strong);
}

.button-secondary:hover {
  background: #edf2ff;
}

.release-status {
  max-width: 100%;
  min-height: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.macos-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin-top: 18px;
  padding: 18px 22px 18px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff7d8;
  box-shadow: 6px 6px 0 var(--coral);
}

.macos-alert-emoji {
  display: inline-block;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 0.92;
  transform: rotate(-10deg) translateY(2px);
  transform-origin: 52% 66%;
  filter: drop-shadow(4px 5px 0 rgba(255, 104, 71, 0.28));
}

.macos-alert strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.macos-alert span {
  color: #353833;
  font-size: 1rem;
  line-height: 1.45;
}

.screenshot-stack {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-width: 0;
  min-height: clamp(470px, 47vw, 680px);
  perspective: 1400px;
  isolation: isolate;
}

.screenshot-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 15, 0.38);
  border-radius: 12px;
  background: #000;
  box-shadow: var(--shadow);
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 360ms ease,
    box-shadow 360ms ease,
    opacity 360ms ease;
  will-change: transform;
}

.screenshot-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%);
  opacity: 0;
  transition: opacity 360ms ease;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-card-welcome {
  top: 3%;
  right: 0;
  z-index: 1;
  width: min(86%, 710px);
  opacity: 0.86;
  filter: saturate(0.82) brightness(0.78);
  transform: translate3d(20px, 10px, -120px) rotate(3deg) scale(0.92);
}

.screenshot-card-agent {
  top: 23%;
  left: 0;
  z-index: 2;
  width: min(94%, 790px);
  transform: translate3d(0, 0, 0) rotate(-2deg);
}

.screenshot-stack:hover .screenshot-card,
.screenshot-stack:focus-within .screenshot-card {
  box-shadow: 0 34px 100px rgba(16, 16, 15, 0.22);
}

.screenshot-stack:hover .screenshot-card::after,
.screenshot-stack:focus-within .screenshot-card::after {
  opacity: 1;
}

.screenshot-stack:hover .screenshot-card-agent,
.screenshot-stack:focus-within .screenshot-card-agent {
  transform: translate3d(-18px, -26px, 80px) rotate(-4deg) scale(1.02);
}

.screenshot-stack:hover .screenshot-card-welcome,
.screenshot-stack:focus-within .screenshot-card-welcome {
  opacity: 1;
  filter: saturate(1) brightness(0.95);
  transform: translate3d(32px, 30px, -40px) rotate(5deg) scale(0.96);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--ink);
  background: var(--ink);
}

.signal-strip div {
  min-height: 112px;
  padding: 22px clamp(18px, 3vw, 36px);
  background: var(--paper-strong);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 8px;
}

.signal-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.section-band,
.quickstart-section,
.download-section {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 6vw, 84px);
}

.section-band {
  background: #ffffff;
}

.section-heading {
  margin: 0 auto 36px;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.feature-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.feature-grid article:nth-child(2) {
  border-color: rgba(38, 93, 255, 0.35);
}

.feature-grid article:nth-child(3) {
  border-color: rgba(255, 104, 71, 0.35);
}

.feature-mark {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--blue);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-weight: 800;
}

.feature-grid p,
.install-card p,
.download-panel p,
.asset-list {
  color: var(--muted);
  line-height: 1.6;
}

.quickstart-section {
  background: var(--ink);
  color: var(--paper);
}

.quickstart-section .eyebrow,
.quickstart-section .section-heading p {
  color: var(--green);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin: 0 auto;
}

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

.install-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid #373c35;
  border-radius: 8px;
  background: #171917;
}

.install-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-weight: 800;
}

.install-card h3 {
  color: var(--paper);
}

.install-card p {
  margin-bottom: 0;
  color: #cfd8c9;
}

.download-section {
  background: #f1f4ff;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
}

.download-panel h3 {
  margin-bottom: 6px;
}

.download-panel p {
  margin-bottom: 0;
}

.macos-download-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 16px auto 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(16, 16, 15, 0.18);
  border-radius: 8px;
  background: #fff7d8;
}

.macos-download-emoji {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1;
  transform: rotate(-9deg);
  transform-origin: 52% 70%;
  filter: drop-shadow(5px 6px 0 rgba(255, 104, 71, 0.24));
}

.macos-download-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.16;
}

.macos-download-note p {
  margin: 0;
  color: #474b44;
  line-height: 1.6;
}

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

.asset-list {
  display: grid;
  gap: 10px;
  max-width: 1160px;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}

.asset-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 16, 15, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.asset-list a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  justify-content: center;
  gap: 22px;
  min-height: 86px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-strong);
}

@media (max-width: 960px) {
  .hero,
  .feature-grid,
  .quickstart-grid,
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .screenshot-stack {
    min-height: clamp(460px, 66vw, 680px);
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .download-panel,
  .macos-download-note,
  .asset-list li,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .macos-download-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .macos-alert {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .macos-alert-emoji {
    font-size: 4rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.88rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 12.5vw, 3.3rem);
    line-height: 0.88;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .screenshot-stack {
    display: grid;
    min-height: 0;
  }

  .screenshot-card {
    position: relative;
    inset: auto;
    max-width: 100%;
    width: 100%;
    transform: none;
  }

  .screenshot-card-welcome {
    right: auto;
    order: 2;
    width: calc(100% - 22px);
    margin: -22px 0 0 22px;
    opacity: 0.9;
    filter: saturate(0.85) brightness(0.82);
  }

  .screenshot-card-agent {
    left: auto;
    order: 1;
    width: calc(100% - 12px);
  }

  .screenshot-stack:hover .screenshot-card-agent,
  .screenshot-stack:focus-within .screenshot-card-agent,
  .screenshot-stack:hover .screenshot-card-welcome,
  .screenshot-stack:focus-within .screenshot-card-welcome {
    transform: none;
  }

  .button,
  .hero-actions,
  .download-actions {
    width: 100%;
  }

  .button-primary {
    width: calc(100% - 6px);
  }

  .feature-grid article {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
