.home-page {
  isolation: isolate;
  overflow: clip;
}

.home-page [id] {
  scroll-margin-top: 6rem;
}
.home-hero {
  position: relative;
  isolation: isolate;
  width: min(100% - 2rem, 74rem);
  padding-top: 2.5rem;
}
.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw) auto;
  height: 38rem;
  background:
    radial-gradient(ellipse at 30% 38%, rgb(var(--brand-blue) / 0.09), transparent 52%),
    radial-gradient(ellipse at 75% 42%, rgb(var(--brand-pink) / 0.07), transparent 50%);
  pointer-events: none;
  content: "";
}
.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgb(var(--brand-blue) / 0.2);
  border-radius: 999px;
  background: linear-gradient(120deg, rgb(var(--brand-blue) / 0.08), rgb(var(--brand-pink) / 0.05));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  padding: 0.35rem 0.7rem;
  color: var(--hero-muted);
  font-size: 0.75rem;
}
.hero-badge span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgb(var(--brand-pink));
  box-shadow: 0 0 8px rgb(var(--brand-pink) / 0.5);
}
.hero-copy h1 {
  max-width: 54rem;
  margin-top: 1rem;
  color: var(--nova-text);
  font-family: var(--denova-font-display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-wrap: balance;
}
.hero-copy > p {
  max-width: 46rem;
  margin-top: 0.8rem;
  color: var(--hero-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
}
.hero-primary,
.hero-secondary {
  display: inline-flex;
  min-width: 10rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.hero-primary {
  border-color: var(--nova-text);
  background: var(--nova-text);
  color: var(--inverse-text);
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 0 3px rgb(var(--brand-blue) / 0.08),
    0 4px 20px rgb(var(--brand-violet) / 0.12);
}
.hero-secondary {
  background: var(--nova-surface);
  color: var(--secondary-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07);
}
.hero-secondary:hover,
.hero-secondary:focus-visible {
  border-color: rgb(var(--brand-blue) / 0.55);
  background: var(--nova-surface-2);
}
.hero-actions svg,
.hero-actions img {
  width: 1rem;
  height: 1rem;
}
.hero-platforms {
  margin-top: 0.7rem;
  color: var(--nova-text-faint);
  font-size: 0.72rem;
}
.product-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 64rem);
  margin: 1.6rem auto 0;
}
.product-stage::before {
  position: absolute;
  z-index: -1;
  inset: -2.5rem -4rem;
  background:
    radial-gradient(ellipse at 8% 32%, rgb(var(--brand-violet) / 0.2), transparent 48%),
    radial-gradient(ellipse at 92% 60%, rgb(var(--brand-pink) / 0.13), transparent 46%);
  filter: blur(28px);
  pointer-events: none;
  content: "";
}
.product-window {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(var(--brand-blue) / 0.22);
  border-radius: 0.85rem;
  padding: 0.35rem;
  background: linear-gradient(135deg, #20212d, #0b0b10 45%, #21141e);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.8),
    0 24px 64px rgb(0 0 0 / 0.6);
}
.product-window > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
}

.product-window,
.story-window,
.gallery-card,
.discord-card {
  position: relative;
}
.product-window::after,
.story-window::after,
.gallery-card::after,
.discord-card::after {
  position: absolute;
  z-index: 1;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.55),
    rgb(var(--brand-blue) / 0.5) 18%,
    rgb(var(--brand-violet) / 0.08) 45%,
    rgb(var(--brand-pink) / 0.12) 65%,
    rgb(var(--brand-pink) / 0.45)
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  content: "";
}

.product-story,
.home-tools,
.home-closing,
.capability-rail {
  position: relative;
}
.product-story::before,
.home-tools::before,
.home-closing::before,
.capability-rail::before {
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--brand-blue) / 0.28) 25%,
    rgb(215 225 255 / 0.4) 50%,
    rgb(var(--brand-pink) / 0.25) 75%,
    transparent
  );
  pointer-events: none;
  content: "";
}
.home-proof {
  padding-block: 3.5rem;
}
.home-tools {
  padding-block: 3.25rem;
  border-top: 1px solid transparent;
}
.home-tools::before {
  inset-inline: calc(50% - 50vw);
  background-color: var(--section-line);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 3rem;
  align-items: start;
}
.section-heading > span,
.community-intro > span {
  grid-column: 1 / -1;
  margin-bottom: 0.65rem;
  color: var(--nova-text-faint);
  font-size: 0.75rem;
  line-height: 1.5;
}
.section-heading h2,
.community-intro h2,
.story-copy h2,
.story-heading h2 {
  color: var(--nova-text);
  font-family: var(--denova-font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 580;
  letter-spacing: -0.025em;
  line-height: 1.4;
  text-wrap: balance;
}
.section-heading > p,
.community-intro > p {
  color: var(--body-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.capability-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.8rem;
  border-block: 1px solid var(--nova-border);
  background: linear-gradient(
    120deg,
    rgb(var(--brand-blue) / 0.035),
    transparent 45%,
    rgb(var(--brand-pink) / 0.025)
  );
}
.capability-item {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.35rem;
}
.capability-item + .capability-item {
  border-left: 1px solid var(--nova-border);
}
.feature-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgb(var(--brand-blue) / 0.22);
  border-radius: 0.4rem;
  background: linear-gradient(
    140deg,
    rgb(var(--brand-blue) / 0.14),
    rgb(var(--brand-violet) / 0.04)
  );
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  color: var(--brand-silver);
}
.capability-item:nth-child(even) .feature-icon {
  border-color: rgb(var(--brand-pink) / 0.2);
  background: linear-gradient(
    140deg,
    rgb(var(--brand-pink) / 0.12),
    rgb(var(--brand-violet) / 0.04)
  );
  color: var(--brand-rose);
}
.feature-icon svg {
  width: 1rem;
  height: 1rem;
}
.capability-item h3 {
  color: var(--secondary-text);
  font-size: 0.95rem;
  font-weight: 580;
}
.capability-item p {
  margin-top: 0.5rem;
  color: var(--nova-text-faint);
  font-size: 0.8rem;
  line-height: 1.75;
}

.story-shell {
  width: min(100% - 2rem, 78rem);
}
.product-story {
  border-top: 1px solid var(--section-line);
  padding-block: 3.25rem;
}
.product-story-world {
  background:
    radial-gradient(ellipse at 85% 45%, rgb(var(--brand-blue) / 0.045), transparent 55%), var(--story-background);
}
.narrative-section {
  background:
    radial-gradient(ellipse at 28% 55%, rgb(var(--brand-violet) / 0.12), transparent 55%),
    radial-gradient(ellipse at 72% 55%, rgb(var(--brand-pink) / 0.075), transparent 55%), var(--story-background);
}
.product-story-agent {
  background:
    radial-gradient(ellipse at 80% 50%, rgb(var(--brand-pink) / 0.045), transparent 55%), var(--story-agent-background);
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 3rem;
}
.story-chapter {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--nova-text-faint);
  font-size: 0.75rem;
  line-height: 1.5;
}
.story-description > p {
  margin-top: 0.9rem;
  color: var(--body-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.story-description > .runtime-note {
  color: var(--nova-text-faint);
  font-size: 0.78rem;
  line-height: 1.75;
}
.story-description ul {
  display: grid;
  margin-top: 1.15rem;
  border-top: 1px solid var(--nova-border);
}
.story-description li {
  display: grid;
  grid-template-columns: 0.5rem 1fr;
  gap: 0.5rem;
  border-bottom: 1px solid var(--nova-border);
  padding-block: 0.7rem;
  color: var(--body-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}
.story-description li::before {
  width: 0.25rem;
  height: 0.25rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--body-muted);
  content: "";
}
.story-window {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(var(--brand-blue) / 0.2);
  border-radius: 0.6rem;
  background: var(--story-agent-background);
  box-shadow:
    0 16px 48px rgb(0 0 0 / 0.5),
    -12px -6px 40px rgb(var(--brand-blue) / 0.04),
    12px 6px 40px rgb(var(--brand-pink) / 0.035);
}
.story-window img {
  display: block;
  width: 100%;
  height: auto;
}
.story-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.story-heading .story-description > p {
  margin-top: 0;
}

.narrative-gallery {
  --gallery-height: clamp(14rem, 39vw, 28rem);
  margin-top: 1.25rem;
}
.gallery-stage {
  position: relative;
  height: calc(var(--gallery-height) + 3rem);
  isolation: isolate;
  overflow: clip;
  border-radius: 0.75rem;
}
.gallery-slide {
  --gallery-card-width: min(70%, calc(var(--gallery-height) * var(--image-ratio)));
  --gallery-side-width: calc(
    (var(--gallery-card-width) * cos(5deg) + var(--gallery-height) * sin(5deg)) * 0.82
  );
  --gallery-offset: min(34%, calc((100% - var(--gallery-side-width)) / 2 - 1rem));
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gallery-card {
  display: block;
  width: var(--gallery-card-width);
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--input-border);
  border-radius: 0.6rem;
  background: var(--story-agent-background);
  box-shadow: 0 1rem 3rem #0009;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: pointer;
  user-select: none;
}
.gallery-slide[data-active="true"] .gallery-card {
  border-color: rgb(var(--brand-blue) / 0.5);
  cursor: grab;
}
.gallery-slide[data-active="true"] .gallery-card:active {
  cursor: grabbing;
}
.gallery-card:focus-visible {
  outline: 2px solid rgb(var(--brand-blue));
  outline-offset: 4px;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.gallery-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
}
.gallery-caption {
  max-width: 42rem;
  min-height: 5rem;
}
.gallery-caption h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--secondary-text);
  font-size: 0.95rem;
  font-weight: 580;
  line-height: 1.5;
}
.gallery-caption h3 span {
  color: var(--nova-text-faint);
  font-family: var(--denova-font-mono);
  font-size: 0.7rem;
  font-weight: 400;
}
.gallery-caption p {
  margin-top: 0.4rem;
  color: var(--nova-text-faint);
  font-size: 0.8rem;
  line-height: 1.8;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-caption-content {
    animation: gallery-caption-in 200ms ease-out;
  }
  @keyframes gallery-caption-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  }
}
.gallery-navigation {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}
.gallery-hint {
  margin-right: 0.5rem;
  color: var(--nova-text-faint);
  font-size: 0.7rem;
}
.gallery-navigation button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
  padding-block: 3.25rem;
}
.community-intro > span {
  display: block;
}
.community-intro > p {
  margin-top: 0.85rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--input-border);
  padding-bottom: 0.2rem;
  color: var(--secondary-text);
  font-size: 0.8rem;
}
.text-link svg {
  width: 0.9rem;
  height: 0.9rem;
}
.community-portal {
  min-width: 0;
}
.discord-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--input-border);
  border-radius: 0.6rem;
  background:
    radial-gradient(ellipse at top right, rgb(var(--brand-pink) / 0.08), transparent 60%),
    linear-gradient(120deg, var(--community-highlight), var(--community-background) 60%);
  color: var(--nova-text);
}
.discord-card:hover,
.discord-card:focus-visible {
  border-color: rgb(var(--brand-blue) / 0.6);
  box-shadow: 0 0 28px rgb(var(--brand-violet) / 0.1);
}
.discord-card:focus-visible {
  outline: 2px solid rgb(var(--brand-blue));
  outline-offset: 4px;
}
.discord-card-mark {
  display: grid;
  align-content: center;
  justify-content: center;
  border-right: 1px solid var(--nova-border);
  color: var(--brand-silver);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}
.discord-card-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.5rem;
}
.discord-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-silver);
  font-size: 0.7rem;
}
.discord-card-kicker > span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgb(var(--brand-pink));
  box-shadow: 0 0 8px rgb(var(--brand-pink) / 0.4);
}
.discord-card-content > strong {
  font-size: 1.25rem;
  font-weight: 580;
  line-height: 1.4;
}
.discord-card-body {
  color: var(--body-muted);
  font-size: 0.8rem;
  line-height: 1.75;
}
.discord-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.discord-card-topics > span {
  border: 1px solid var(--nova-border);
  border-radius: 0.3rem;
  padding: 0.25rem 0.5rem;
  color: var(--body-muted);
  font-size: 0.7rem;
}
.discord-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nova-text);
  font-size: 0.8rem;
  font-weight: 550;
}
.discord-card-action svg {
  width: 0.9rem;
  height: 0.9rem;
}

.home-closing {
  border-top: 1px solid var(--section-line);
  background:
    radial-gradient(ellipse at 50% 0, rgb(var(--brand-violet) / 0.09), transparent 65%), var(--closing-background);
}
.home-closing-inner {
  display: grid;
  justify-items: center;
  padding-block: 3rem;
  text-align: center;
}
.home-closing-inner > span {
  color: var(--nova-text-faint);
  font-size: 0.7rem;
}
.home-closing-inner h2 {
  margin-top: 0.75rem;
  color: var(--nova-text);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 580;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.home-closing-inner > p {
  margin-top: 0.75rem;
  color: var(--body-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.home-closing-inner .hero-actions {
  margin-top: 1.1rem;
}
.home-closing-inner > .release-note {
  max-width: 42rem;
  font-size: 0.75rem;
  color: var(--nova-text-faint);
}
.release-note a {
  color: var(--action-background);
  text-decoration: underline;
}

.gallery-slide {
  transform: translateX(calc(var(--position) * var(--gallery-offset))) rotate(calc(var(--position) * 5deg)) scale(0.82);
  opacity: 0.55;
  z-index: 1;
}
.gallery-slide[data-active="true"] { transform: none; opacity: 1; z-index: 2; }
.gallery-card { transform: translateX(var(--drag-offset, 0px)); }
.gallery-navigation .site-button { padding: 0; }
.hero-primary:hover, .hero-primary:focus-visible { background: var(--inverse-hover); transform: translateY(-1px); }
@media (prefers-reduced-motion: no-preference) {
  .gallery-slide { transition: transform 310ms cubic-bezier(0.2, 0.7, 0.3, 1), opacity 240ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-primary, .hero-secondary { transition: none; }
}

@media (max-width: 980px) {
  .capability-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capability-item:nth-child(3) {
    border-left: 0;
  }
  .capability-item:nth-child(n + 3) {
    border-top: 1px solid var(--nova-border);
  }
  .story-layout {
    gap: 2rem;
  }
  .story-heading {
    gap: 2rem;
  }
  .gallery-hint {
    display: none;
  }
}
@media (max-width: 900px) {
  .section-heading,
  .story-layout,
  .story-heading,
  .community-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading {
    gap: 0.6rem;
  }
  .section-heading > span {
    margin-bottom: 0;
  }
  .story-layout,
  .community-section {
    gap: 1.5rem;
  }
  .story-heading {
    gap: 0.8rem;
  }
  .story-heading .story-description > p {
    max-width: 42rem;
  }
}
@media (max-width: 680px) {
  .home-hero {
    padding-top: 1.75rem;
  }
  .hero-copy h1 {
    font-size: 1.8rem;
  }
  .hero-copy > p {
    font-size: 0.9rem;
  }
  .hero-primary,
  .hero-secondary {
    min-width: 8.5rem;
    font-size: 0.8rem;
  }
  .home-proof,
  .home-tools,
  .product-story,
  .community-section {
    padding-block: 2.25rem;
  }
  .capability-rail {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.2rem;
  }
  .capability-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem 0.5rem;
  }
  .capability-item + .capability-item {
    border-top: 1px solid var(--nova-border);
    border-left: 0;
  }
  .narrative-gallery {
    --gallery-height: 16rem;
  }
  .gallery-slide {
    --gallery-card-width: min(76%, calc(var(--gallery-height) * var(--image-ratio)));
  }
  .gallery-details {
    position: relative;
    display: block;
  }
  .gallery-caption {
    min-height: 8rem;
  }
  .gallery-caption h3 {
    min-height: 2.75rem;
    padding-right: 6.5rem;
    align-items: center;
  }
  .gallery-navigation {
    position: absolute;
    top: 0;
    right: 0;
  }
  .discord-card {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
  .discord-card-mark {
    font-size: 2rem;
  }
  .discord-card-content {
    padding: 1.1rem;
  }
  .home-closing-inner {
    padding-block: 2.25rem;
  }
}
