:root {
  --background: #0a0a0f;
  --foreground: #fafafa;
  --muted-foreground: #71717a;
  --accent: #f59e0b;
  --accent-foreground: #0a0a0f;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --card: rgba(26, 26, 36, 0.6);
  --card-solid: #1a1a24;
  --shadow-glow-sm: 0 0 20px rgba(245, 158, 11, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.28);
  --content-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.04) 0%, transparent 52%);
  pointer-events: none;
  z-index: -3;
}

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

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

button,
input,
textarea,
pre,
code {
  font: inherit;
}

.ambient-orb,
.noise-layer {
  position: fixed;
  pointer-events: none;
  z-index: -2;
}

.ambient-orb {
  border-radius: 9999px;
  filter: blur(140px);
  opacity: 0.12;
}

.ambient-orb-top {
  top: -8rem;
  left: 50%;
  width: 34rem;
  height: 22rem;
  transform: translateX(-50%);
  background: rgba(245, 158, 11, 0.22);
}

.ambient-orb-bottom {
  right: -8rem;
  bottom: -6rem;
  width: 28rem;
  height: 28rem;
  background: rgba(245, 158, 11, 0.12);
}

.noise-layer {
  inset: 0;
  opacity: 0.018;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.7) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 45% 75%, rgba(255, 255, 255, 0.7) 0 0.5px, transparent 0.8px);
  background-size: 180px 180px;
}

.site-header,
.page-shell,
.site-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 2.8rem;
  height: 2.8rem;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong,
.hero-title,
.section-head h2,
.star-callout h2,
.demo-row-title strong,
.feature-card h3,
.install-card h3,
.mascot-card strong,
.stats-item strong,
.demo-notch-head strong,
.demo-panel-body strong,
.detached-feature-card h3,
.detached-body h3,
.detached-body h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 600;
}

.mono-label,
.site-nav a,
.signal-chip,
.status-badge,
.demo-chip,
.star-count,
.demo-settings-button,
.demo-statusbar,
.demo-state-badge,
.demo-row-title span,
.demo-pill,
.detached-pill {
  font-family: "JetBrains Mono", monospace;
}

.mono-label {
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--foreground);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 200ms ease-out;
}

.button:hover {
  transform: scale(1.02);
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible,
.site-nav a:focus-visible,
.demo-chip:focus-visible,
.demo-notch:focus-visible,
.demo-settings-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--foreground);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.button-ghost {
  color: var(--foreground);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.github-button {
  gap: 0.55rem;
}

.github-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.star-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.page-shell {
  padding: 1.5rem 0 4rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 0.35rem 0 0.5rem;
}

.hero-intro {
  width: 100%;
  max-width: none;
}

.badge-row,
.hero-actions,
.center-actions,
.demo-controls,
.demo-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 0.95rem;
}

.center-actions {
  justify-content: center;
}

.status-badge,
.signal-chip,
.demo-chip,
.demo-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--foreground);
  font-size: 0.76rem;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-chip,
.demo-chip.is-active,
.demo-chip:hover {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

.pulse-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.18);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
  border-radius: inherit;
  border: 1px solid rgba(245, 158, 11, 0.35);
  animation: pulse-ring 2s infinite;
}

.hero-title,
.section-head h2,
.star-callout h2 {
  margin: 1rem 0 0;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-title {
  width: 100%;
  max-width: none;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 0.95;
}

.gradient-text {
  background: linear-gradient(to right, #f59e0b, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-card,
.panel {
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 300ms ease-out;
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

.panel {
  background: var(--card-solid);
}

.glass-card:hover,
.panel:hover {
  transform: scale(1.01);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
}

.hero-demo-card,
.star-callout {
  padding: 1rem;
}

.hero-demo-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.desktop-demo-stage {
  position: relative;
  min-height: 40rem;
  padding-bottom: 0;
  border-radius: 2.2rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(100, 160, 255, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(60, 220, 240, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #6cb4f0 0%, #5ec6f0 30%, #55daf5 60%, #4de8fa 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.28);
}

.desktop-demo-stage.is-expanded {
  min-height: 40rem;
}

.desktop-demo-collapsed-bar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 24rem;
  max-width: 34rem;
  min-height: 3.35rem;
  padding: 0.62rem 0.95rem 0.78rem;
  border-radius: 0 0 1.45rem 1.45rem;
  background: rgba(2, 2, 4, 0.985);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateX(-50%) translateY(0) scale(1);
}

.desktop-demo-collapsed-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.7rem;
  object-fit: contain;
  flex: 0 0 auto;
  transition: opacity 200ms ease;
}

.desktop-demo-collapsed-title {
  min-width: 0;
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 200ms ease;
}

.desktop-demo-collapsed-count {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  transition: opacity 200ms ease;
}

.desktop-demo-collapsed-bar::before,
.desktop-demo-collapsed-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 1rem;
  height: 1rem;
  background: transparent;
}

.desktop-demo-collapsed-bar::before {
  right: -1rem;
  top: 0rem;
  border-top-left-radius: 1.5rem;
  box-shadow: -1.6rem -1.6rem 0 1.5rem rgb(2 2 4 / 99%);
}

.desktop-demo-collapsed-bar::after {
  left: -1rem;
  top: 0rem;
  border-top-right-radius: 1.5rem;
  box-shadow: 1.6rem -1.6rem 0 1.5rem rgba(2, 2, 4, 0.985);
}

.desktop-demo-rails {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.desktop-demo-window {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: min(100%, 46rem);
  min-height: 24rem;
  margin: 0;
  padding: 1rem 1rem 1.2rem;
  border-radius: 0 0 2.35rem 2.35rem;
  background: rgba(2, 2, 4, 0.985);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) scale(0.9);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.desktop-demo-stage.is-expanded .desktop-demo-window {
  opacity: 1;
  pointer-events: auto;
}

.desktop-demo-stage.is-expanded .desktop-demo-collapsed-icon,
.desktop-demo-stage.is-expanded .desktop-demo-collapsed-title,
.desktop-demo-stage.is-expanded .desktop-demo-collapsed-count {
  opacity: 0;
}

.desktop-demo-window::before,
.desktop-demo-window::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: transparent;
}

.desktop-demo-window::before {
  right: -3rem;
  border-top-left-radius: 1.5rem;
  box-shadow: -1.6rem -1.6rem 0 1.5rem rgba(2, 2, 4, 0.985);
}

.desktop-demo-window::after {
  left: -3rem;
  border-top-right-radius: 1.5rem;
  box-shadow: 1.6rem -1.6rem 0 1.5rem rgba(2, 2, 4, 0.985);
}

.desktop-demo-settings {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0.8rem;
  background: rgba(29, 29, 34, 0.96);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.desktop-demo-settings svg {
  width: 0.95rem;
  height: 0.95rem;
}

.desktop-demo-feed-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  object-fit: contain;
}

.desktop-demo-title-row,
.desktop-demo-feed-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.desktop-demo-title-row span,
.desktop-demo-feed-title span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.desktop-demo-title-row strong,
.desktop-demo-feed-title strong {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.98);
  min-width: 0;
}

.desktop-demo-title-row span,
.desktop-demo-title-row strong {
  font-size: 0.72rem;
  font-weight: 600;
}

.desktop-demo-title-row strong {
  font-family: "Inter", system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.72);
}

.desktop-demo-title-row span:nth-child(2) {
  color: rgba(255, 255, 255, 0.4);
}

.desktop-demo-feed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.desktop-demo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.desktop-demo-pill.is-warm {
  background: rgba(110, 79, 32, 0.82);
}

.desktop-demo-pill.is-codex {
  background: rgba(52, 76, 140, 0.58);
}

.desktop-demo-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.05rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(110, 79, 32, 0.22);
  color: rgba(244, 194, 111, 0.98);
  box-shadow:
    0 0 0 1px rgba(183, 132, 56, 0.28),
    0 0 18px rgba(183, 132, 56, 0.2);
  transform-origin: top center;
  animation: bell-nudge 1.9s ease-in-out infinite;
}

.desktop-demo-alert svg {
  width: 0.9rem;
  height: 0.9rem;
}

.desktop-demo-question-group {
  border-radius: 1.4rem;
}

.desktop-demo-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem 0;
  transform: translateY(-0.35rem);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    padding-top 220ms ease;
}

.desktop-demo-question-group:hover .desktop-demo-body,
.desktop-demo-question-group:focus-within .desktop-demo-body {
  max-height: 30rem;
  opacity: 1;
  padding-top: 1.55rem;
  transform: translateY(0);
}

.desktop-demo-kicker {
  margin: 0 0 1rem;
  color: #6a9cff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.desktop-demo-body h2 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.desktop-demo-subtitle {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
}

.desktop-demo-body h3 {
  margin: 2rem 0 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.28rem;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.desktop-demo-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.desktop-demo-choice {
  display: grid;
  gap: 0.28rem;
  min-height: 4.2rem;
  padding: 0.85rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 9, 11, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.desktop-demo-choice:nth-child(4) {
  grid-column: 1 / span 1;
}

.desktop-demo-choice {
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.desktop-demo-choice:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 24, 0.96);
}

.desktop-demo-choice.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(30, 30, 36, 0.96);
}

.desktop-demo-choice strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.1;
}

.desktop-demo-choice span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.66rem;
  line-height: 1.35;
  font-weight: 600;
}

.desktop-demo-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(244, 244, 247, 0.45);
  color: rgba(17, 17, 23, 0.86);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: not-allowed;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 220ms ease;
}

.desktop-demo-submit:disabled {
  opacity: 0.88;
}

.desktop-demo-submit.is-ready {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(10, 10, 15, 0.95);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.desktop-demo-submit.is-ready:hover {
  transform: translateY(-1px);
}

.desktop-demo-submit.is-celebrating {
  animation: desktop-demo-submit-pop 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.desktop-demo-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

.desktop-demo-confetti-piece {
  position: fixed;
  left: var(--origin-x);
  top: var(--origin-y);
  width: 0.42rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--confetti-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--confetti-color) 45%, transparent);
  transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
  animation: desktop-demo-confetti-burst 900ms cubic-bezier(0.18, 0.8, 0.24, 1) forwards;
}

.desktop-demo-confetti-piece.is-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

@keyframes desktop-demo-submit-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes desktop-demo-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.4);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--travel-x)),
        calc(-50% + var(--travel-y))
      )
      rotate(var(--spin))
      scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-demo-submit,
  .desktop-demo-submit.is-ready,
  .desktop-demo-submit.is-celebrating,
  .desktop-demo-confetti-piece {
    animation: none;
    transition: none;
    transform: none;
  }
}

.desktop-demo-feed {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.6rem;
  padding: 0 1.5rem;
}

.desktop-demo-feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
}

.desktop-demo-feed-row-alert {
  padding: 2.3rem 1.5rem 0;
  cursor: pointer;
}

.desktop-demo-feed-copy {
  min-width: 0;
}

.desktop-demo-feed-copy p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 600;
}

.desktop-demo-feed-pills {
  justify-content: flex-end;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  margin-bottom: 3.75rem;
}

.stats-item {
  padding: 0.2rem 0;
}

.stats-item strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.12rem;
}

.content-section {
  padding: 0 0 4.5rem;
}

.section-head {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.star-callout h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-head p,
.feature-card p,
.install-card li,
.star-callout p,
.mascot-card figcaption .mono-label,
.detached-feature-card p,
.detached-feature-list,
.detached-summary,
.detached-choice-card span {
  color: var(--muted-foreground);
}

.feature-grid,
.mascot-gallery,
.install-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.install-card {
  padding: 1.2rem;
}

.feature-card h3,
.install-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.detached-feature-section {
  padding-bottom: 4rem;
}

.detached-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
  gap: 1rem;
  align-items: stretch;
}

.detached-feature-copy {
  padding: 1.2rem;
}

.detached-feature-grid {
  display: grid;
  gap: 1rem;
}

.detached-feature-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.detached-feature-card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.12rem;
}

.detached-feature-card p {
  margin: 0;
  line-height: 1.5;
}

.detached-feature-list {
  margin: 1.15rem 0 0;
  padding-left: 1.25rem;
}

.detached-feature-list li + li {
  margin-top: 0.5rem;
}

.detached-demo-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 31rem;
  justify-self: stretch;
}

.detached-stage {
  position: relative;
  overflow: hidden;
  min-height: 31rem;
  padding: 0.8rem 0.9rem 1.2rem;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 36% 10%, rgba(255, 196, 103, 0.28), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(255, 111, 44, 0.22), transparent 22%),
    linear-gradient(135deg, #7d1320 0%, #b32310 28%, #ff6f00 60%, #7f1026 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detached-stage-decor {
  position: absolute;
  border-radius: 2.4rem;
  opacity: 0.72;
}

.detached-stage-decor-a {
  left: -8%;
  bottom: -16%;
  width: 14rem;
  height: 10rem;
  background: linear-gradient(140deg, rgba(242, 55, 124, 0.8), rgba(122, 22, 73, 0.18));
  transform: rotate(-36deg);
}

.detached-stage-decor-b {
  right: -9%;
  bottom: -10%;
  width: 14rem;
  height: 12rem;
  background: linear-gradient(140deg, rgba(255, 181, 86, 0.35), rgba(255, 101, 33, 0.78));
  transform: rotate(-38deg);
}

.detached-stage-decor-c {
  left: 40%;
  top: 14%;
  width: 6rem;
  height: 14rem;
  background: linear-gradient(180deg, rgba(255, 135, 0, 0.76), rgba(255, 109, 42, 0.16));
  transform: rotate(28deg);
  filter: blur(2px);
}

.detached-shell {
  position: relative;
  width: min(100%, 28rem);
  min-height: 0;
  margin: -1rem -1.6rem 13px auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  transform: scale(0.54);
  transform-origin: bottom;
}

.detached-window {
  position: relative;
  width: 100%;
  border-radius: 1.55rem 1.55rem 0 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.98), rgba(8, 8, 10, 0.98)),
    #0b0b0c;
  padding: 1rem 1rem 1.05rem;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.detached-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.detached-header-icon {
  width: 1.9rem;
  height: 1.9rem;
  image-rendering: pixelated;
}

.detached-header-copy {
  display: grid;
  gap: 0.65rem;
}

.detached-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
}

.detached-title-row span {
  color: rgba(255, 255, 255, 0.82);
}

.detached-title-row span:nth-child(2) {
  color: rgba(255, 255, 255, 0.28);
}

.detached-title-row strong {
  font-size: 1.25rem;
  line-height: 1.02;
}

.detached-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detached-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
}

.detached-pill-brand {
  background: rgba(153, 110, 45, 0.48);
  border-color: rgba(245, 183, 88, 0.18);
  color: #ffe5b2;
}

.detached-body {
  display: grid;
  gap: 0.72rem;
  padding-right: 0.35rem;
  padding-bottom: 1.25rem;
}

.detached-section-label {
  margin: 0;
  color: #6a9cff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.detached-body h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.06;
}

.detached-summary {
  margin: 0;
  max-width: 25rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.detached-body h4 {
  margin: 0.2rem 0 0;
  max-width: 18rem;
  font-size: 1.12rem;
  line-height: 1.1;
}

.detached-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.detached-choice-card {
  min-height: 5.5rem;
  padding: 0.75rem 0.78rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.detached-choice-card strong {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.92rem;
}

.detached-choice-card span {
  display: block;
  font-size: 0.7rem;
  line-height: 1.38;
}

.detached-submit {
  width: fit-content;
  margin-top: 0.15rem;
  min-height: 2.35rem;
  padding: 0.58rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(19, 19, 21, 0.8);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: not-allowed;
}

.floating-pet {
  position: absolute;
  right: 0.35rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 2;
}

.floating-pet-glow {
  position: absolute;
  inset: 0.35rem 0.8rem 0.35rem 0.1rem;
  background: rgba(255, 124, 48, 0.42);
  filter: blur(18px);
  border-radius: 999px;
}

.floating-pet-image {
  position: relative;
  width: 3rem;
  height: 3rem;
  image-rendering: pixelated;
}

.floating-pet-count {
  position: relative;
  margin-bottom: 0.05rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.mascot-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.mascot-card {
  margin: 0;
  padding: 0.9rem 0.85rem 0.8rem;
}

.mascot-card-new {
  border-color: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.06), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.mascot-card img {
  width: min(100%, 4.75rem);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.mascot-card figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.6rem;
  text-align: center;
}

.mascot-card strong {
  font-size: 0.92rem;
}

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

.install-card ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.code-block {
  margin: 0 0 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.star-callout {
  padding: 1rem;
  text-align: center;
}

.star-callout p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
  color: var(--muted-foreground);
}

@keyframes pulse-ring {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes bell-nudge {
  0%,
  72%,
  100% {
    transform: rotate(0deg);
  }
  76% {
    transform: rotate(16deg);
  }
  82% {
    transform: rotate(-14deg);
  }
  88% {
    transform: rotate(10deg);
  }
  94% {
    transform: rotate(-8deg);
  }
}

@media (max-width: 1100px) {
  .desktop-demo-stage {
    min-height: 40rem;
  }

  .desktop-demo-stage.is-expanded {
    min-height: 40rem;
  }

  .desktop-demo-window {
    width: min(100%, 40rem);
    min-height: 22rem;
    transform: translateX(-50%) scale(0.9);
  }

  .desktop-demo-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .desktop-demo-choice:nth-child(3),
  .desktop-demo-choice:nth-child(4) {
    grid-column: auto;
  }

  .feature-grid,
  .mascot-gallery,
  .install-grid,
  .stats-panel,
  .detached-feature-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .desktop-demo-stage {
    min-height: auto;
    padding: 0;
  }

  .desktop-demo-window {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 96%);
    min-height: auto;
    padding: 1rem 1rem 1.25rem;
    border-radius: 0 0 1.8rem 1.8rem;
    transform: none;
  }

  .desktop-demo-feed-row-alert,
  .desktop-demo-body,
  .desktop-demo-feed {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .desktop-demo-feed-row-alert {
    padding-top: 2rem;
  }

  .desktop-demo-body {
    padding-top: 1.2rem;
  }

  .desktop-demo-title-row strong,
  .desktop-demo-body h2,
  .desktop-demo-body h3,
  .desktop-demo-feed-title strong {
    font-size: 1.35rem;
  }

  .desktop-demo-choice-grid,
  .detached-choice-grid {
    grid-template-columns: 1fr;
  }

  .desktop-demo-feed-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .desktop-demo-feed-pills {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 0.6rem;
  }

  .site-header,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .site-header,
  .site-footer,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    display: none;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3.5rem);
  }

  .button {
    width: 100%;
  }

  .detached-stage {
    min-height: auto;
    padding: 0.9rem;
  }

  .detached-shell {
    min-height: auto;
    padding: 0.8rem;
    margin-right: 4.6rem;
  }

  .detached-window {
    padding: 1rem;
  }

  .detached-title-row strong {
    font-size: 1.3rem;
  }

  .detached-body h3 {
    font-size: 1.5rem;
  }

  .detached-body h4 {
    font-size: 1.18rem;
  }

  .floating-pet {
    right: 0.25rem;
    bottom: 1.45rem;
  }

  .floating-pet-image {
    width: 3.1rem;
    height: 3.1rem;
  }

  .floating-pet-count {
    font-size: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
