/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@325;425;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');

/* Animations */
@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CSS Variables - Matching Rerun.io */
:root {
  --header-height: 56px;
  --page-max-width: 1260px;
  --body-background: #101010;
  --body-text-color: #b2b2bb;
  --page-padding-y: 3rem;
  --padding-x: 3rem;
  --color-link: #5179ff;
  --docs-sidebar-width: 280px;
  --docs-content-max-width: 65ch;
  --code-block-background: #0c0c0c;
  --font-family-code: "JetBrains Mono", monospace;
  --font-family-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius-round: 10000px;
  --radius-600: 32px;
  --radius-500: 24px;
  --radius-400: 16px;
  --radius-300: 8px;
  --radius-200: 4px;
  --radius-100: 2px;
  --nav-selection-gradient: linear-gradient(to right, #405fdb, #5179ff);
  color-scheme: dark;
}

@media screen and (max-width: 1000px) {
  :root {
    --padding-x: 1.25rem;
  }
}

.max-width {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: calc(var(--page-max-width) + var(--padding-x) * 2);
  padding: 0 var(--padding-x);
}

.max-width.landing {
  max-width: 60rem;
}

/* Reset */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  list-style-type: none;
  font-family: inherit;
  color: inherit;
}

html {
  font-family: var(--font-family-sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 425;
  scroll-padding-top: 5rem;
  scrollbar-gutter: stable;
}

@media screen and (max-width: 1078px) {
  html {
    font-size: 15px;
  }
}

body {
  position: relative;
  isolation: isolate;
  background: var(--body-background);
  color: var(--body-text-color);
  overflow: hidden;
  overflow-y: auto;
}

.graph-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

html.graph-background-off .graph-background {
  display: none !important;
}

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

h1, h2, h3, h4 {
  color: #fff;
}

strong {
  font-weight: 1000;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* Buttons - Matching Rerun.io */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem 0.35rem;
  font-weight: 450;
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  background-color: #0f0f0f;
  border: 2px solid #262b2e;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.125s ease;
}

.button:hover {
  background-color: #191a1b;
}

.button.button-primary {
  border: none;
  color: #111;
  text-shadow: 0 1px rgba(255, 255, 255, 0.33);
  box-shadow: inset 0 1px #fff, 0 0 30px rgba(255, 255, 255, 0.2);
  background: #fff;
}

.button.button-primary:hover {
  box-shadow: inset 0 1px #fff, 0 0 30px rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 700px) {
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Typography */
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025rem;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
  animation: fade-up 0.3s 0.35s ease-out both;
}

@media screen and (max-width: 1078px) {
  .section-heading {
    font-size: 2rem;
  }
}

@media screen and (max-width: 700px) {
  .section-heading {
    text-align: left;
  }
}

.hero-heading {
  margin-bottom: 1.25rem;
  font-size: calc(2rem + 1vw);
  font-weight: 700;
  letter-spacing: -0.015em;
  word-spacing: 0.03em;
  white-space: balance;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  animation: fade-up 0.3s 0.35s ease-out both;
}

@media screen and (max-width: 1078px) {
  .hero-heading {
    font-size: 3rem;
  }
}

@media screen and (max-width: 700px) {
  .hero-heading {
    font-size: 2.25rem;
    letter-spacing: -0.025rem;
    text-align: left;
  }
}

.section-subheading {
  max-width: 38rem;
  text-align: center;
  margin: 0 auto 1.7rem;
  font-weight: 300;
  color: var(--body-text-color);
  animation: fade-up 0.3s 0.35s ease-out both;
}

@media screen and (max-width: 700px) {
  .section-subheading {
    text-align: left;
    font-size: 1rem;
  }
}

.section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  animation: fade-up 0.3s 0.35s ease-out both;
}

@media screen and (max-width: 700px) {
  .section-cta {
    flex-direction: column;
    width: 100%;
  }
}

/* Navigation */
.rerun-nav {
  position: sticky;
  top: 0;
  background: rgba(16, 16, 16, 0.8);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  height: var(--header-height);
  box-shadow: 0 1px rgba(255, 255, 255, 0.08);
}

.rerun-nav__container {
  max-width: calc(var(--page-max-width) + var(--padding-x) * 2);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.rerun-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-version {
  display: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-200);
}

body.page-docs .nav-version {
  display: inline-block;
}

.rerun-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rerun-nav__logo:hover {
  opacity: 0.8;
}

.prorok-logo__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.prorok-logo__text {
  font: normal 800 0.9rem/1.1 "Funnel Display", sans-serif;
  font-size: 0.9rem;
  letter-spacing: normal;
  color: #fff;
  text-transform: uppercase;
}

.rerun-nav__controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Desktop (≥769px): primary nav links in the bar; hamburger = language only */
.nav-inline-desktop {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media screen and (min-width: 769px) {
  .nav-inline-desktop {
    display: flex;
  }

  .nav-menu-mobile-links {
    display: none;
  }

  .nav-menu-divider--mobile-only {
    display: none;
  }
}

/* Smaller button styles */
.rerun-nav__controls .btn {
  height: 2.5rem;
  line-height: 2.5rem;
  gap: 0.4rem;
  padding: 0 0.75rem;
  -moz-border-radius: 1.25rem;
  border-radius: 1.25rem;
  border-width: 2px;
  font: normal 600 0.9rem/1.5 "Funnel Display", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, background-image 0.2s ease;
}

.rerun-nav__controls .btn .btn-caption,
.rerun-nav__controls .btn i {
  display: -webkit-inline-box;
  display: -moz-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  position: relative;
}

.rerun-nav__controls .btn i {
  font-size: 1rem;
  overflow: hidden;
}

.rerun-nav__controls .btn-base {
  background-color: transparent;
  border-style: solid;
  border-color: transparent;
  color: #fff;
}

.rerun-nav__controls .mxd-header-nav-btn:not(.active) {
  transition: transform 0.2s ease, background-color 0.2s ease, background-image 0.2s ease;
}

.rerun-nav__controls .mxd-header-nav-btn:not(.active):not(.button-primary):hover {
  transform: scale(1.05);
  background-color: #0a0a0a;
}

.rerun-nav__controls .mxd-header-nav-btn.active,
.rerun-nav__controls .nav-menu-toggle[aria-expanded="true"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  transform: scale(1.05);
  transition: background-color 0.2s ease, background-image 0.2s ease;
  /* Keep 2px border (same as default .btn) so width doesn’t shift when selected */
  border-width: 2px;
  border-style: solid;
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

.rerun-nav__controls .mxd-header-nav-btn.active::before,
.rerun-nav__controls .nav-menu-toggle[aria-expanded="true"]::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--nav-selection-gradient);
  pointer-events: none;
  z-index: 0;
}

.rerun-nav__controls .mxd-header-nav-btn.active:hover,
.rerun-nav__controls .nav-menu-toggle[aria-expanded="true"]:hover {
  transform: scale(1.05);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Menu toggle: same hover as siblings; “open” uses the same look as .active (no icon swap) */
.rerun-nav__controls .nav-menu-toggle {
  padding: 0 0.75rem;
  min-width: 2.5rem;
}

/* Launch button - primary style matching landing page */
.rerun-nav__controls .button.button-primary {
  height: 2.5rem;
  line-height: 2.5rem;
  gap: 0.4rem;
  padding: 0 0.75rem;
  border-radius: 1.25rem;
  border: none;
  font: normal 600 0.9rem/1.5 "Funnel Display", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: #111;
  text-shadow: 0 1px rgba(255, 255, 255, 0.33);
  box-shadow: inset 0 1px #fff, 0 0 30px rgba(255, 255, 255, 0.2);
}

.rerun-nav__controls .button.button-primary:hover {
  transform: scale(1.05);
  background: #fff;
  box-shadow: inset 0 1px #fff, 0 0 30px rgba(255, 255, 255, 0.3);
}

.rerun-nav__controls .button.button-primary .btn-caption,
.rerun-nav__controls .button.button-primary i {
  display: -webkit-inline-box;
  display: -moz-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  position: relative;
}

.rerun-nav__controls .button.button-primary i {
  font-size: 1rem;
  overflow: hidden;
}

/* Launch button: one label at a time (overrides generic .btn-caption rule below) */
.rerun-nav__controls .button.button-primary.btn-mobile-launch .btn-caption--desktop {
  display: inline-flex;
}

.rerun-nav__controls .button.button-primary.btn-mobile-launch .btn-caption--mobile {
  display: none;
}

/* Site nav menu (all viewports) */
.nav-site-menu {
  display: block;
  position: relative;
}

.nav-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: max(17rem, min(92vw, 22rem));
  padding: 0.4rem;
  background: rgba(16, 16, 16, 0.97);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 1001;
}

@media screen and (min-width: 769px) {
  .nav-menu-dropdown {
    width: max(14rem, min(90vw, 18rem));
  }
}

.nav-menu-scroll {
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem;
  scrollbar-gutter: stable;
}

.nav-menu-dropdown[hidden] {
  display: none;
}

.nav-menu-divider {
  height: 1px;
  margin: 0.45rem 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.1);
}

.nav-lang-options {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: calc(100% + 0.3rem);
  margin-left: -0.15rem;
  margin-right: -0.15rem;
  gap: 0;
  padding: 0;
}

.nav-lang-pick {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0;
  line-height: 1;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
  font-style: normal;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.nav-lang-flag {
  display: block;
  width: 1.75rem;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.nav-lang-options > .nav-lang-pick:first-child {
  border-top-left-radius: 0.55rem;
  border-bottom-left-radius: 0.55rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-lang-options > .nav-lang-pick:last-child {
  border-top-right-radius: 0.55rem;
  border-bottom-right-radius: 0.55rem;
  border-left: none;
}

a.nav-lang-pick:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-lang-pick--current {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}

.nav-lang-pick--current::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--nav-selection-gradient);
  pointer-events: none;
  z-index: 0;
}

.nav-lang-pick--current .nav-lang-flag {
  position: relative;
  z-index: 1;
}

.nav-menu-divider--settings {
  margin-top: 0.65rem;
}

.nav-mesh-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin-top: 0.1rem;
  border-radius: 0.55rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.nav-mesh-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-mesh-toggle__label {
  font: normal 600 0.9rem/1.5 "Funnel Display", sans-serif;
  color: #fff;
}

.nav-mesh-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.nav-mesh-toggle__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nav-mesh-switch__track {
  display: block;
  width: 2.35rem;
  height: 1.35rem;
  border-radius: 10000px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-mesh-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.35rem - 6px);
  height: calc(1.35rem - 6px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.nav-mesh-toggle__input:checked + .nav-mesh-switch__track {
  background: var(--nav-selection-gradient);
  border-color: transparent;
}

.nav-mesh-toggle__input:checked + .nav-mesh-switch__track::after {
  transform: translateX(1rem);
}

.nav-mesh-toggle__input:focus-visible + .nav-mesh-switch__track {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.78rem;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
  font: normal 600 0.9rem/1.5 "Funnel Display", sans-serif;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.nav-menu-item:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-menu-item.active {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.nav-menu-item.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-selection-gradient);
  pointer-events: none;
  z-index: 0;
}

.nav-menu-item.active i,
.nav-menu-item.active span {
  position: relative;
  z-index: 1;
}

.nav-menu-item i {
  font-size: 1rem;
  opacity: 0.85;
}

@media screen and (max-width: 768px) {
  .rerun-nav__controls .button.button-primary.btn-mobile-launch .btn-caption--desktop {
    display: none;
  }

  .rerun-nav__controls .button.button-primary.btn-mobile-launch .btn-caption--mobile {
    display: inline-flex;
  }

  .rerun-nav__controls .button.button-primary.btn-mobile-launch {
    padding: 0 0.75rem;
    min-width: auto;
  }
}

.rerun-nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.rerun-nav__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 1rem 0.5rem;
  position: relative;
  white-space: pre;
  transition: opacity 0.3s ease;
}

.rerun-nav__links a:before {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-round);
  transform: scale(0.5);
  opacity: 0;
  transition: opacity 0.3s 0.1s ease, transform 0.3s 0.1s ease;
}

.rerun-nav__links a:hover {
  opacity: 0.8;
}

.rerun-nav__links a:hover:before {
  opacity: 1;
  transform: scale(1);
}

.nav-icon-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-label {
  display: block;
}

@media screen and (max-width: 700px) {
  .nav-icon-label {
    display: none;
  }
}

/* Banner */
.banner {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.banner a {
  padding: 0.2rem 0.75rem 0.33rem;
  border-radius: var(--radius-round);
  background: var(--nav-selection-gradient);
  font-weight: 500;
  font-size: 13px;
  transform: translateY(1.25rem);
  position: relative;
  transition: all 0.2s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.banner a:hover {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 10px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(1.25rem) scale(1.025);
}

.banner a span {
  margin-right: 0.2rem;
}

@media screen and (max-width: 700px) {
  .banner {
    margin: 0 1.25rem;
  }
  .banner a {
    border-radius: var(--radius-round);
    padding: 0.66rem 0.75rem;
    text-align: center;
    line-height: 1.5;
    width: 100%;
  }
  .banner a p {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 0.5rem;
  }
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 0;
}

@media screen and (max-width: 700px) {
  .hero {
    padding-top: 3.5rem;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (max-width: 700px) {
  .hero-inner {
    align-items: flex-start;
  }
}

.hero-heading {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 100%;
  animation: fade-up 0.3s 0.3s ease-out both;
}

.hero-heading h1 {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  word-spacing: 0.03em;
  white-space: balance;
  line-height: 1.1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-title-visual {
  display: inline-flex;
  align-items: center;
}

.hero-title-logo {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  display: block;
  margin-right: 0.28em;
}

.hero-title-suffix {
  margin-left: 0.38em;
}

.hero-word-prism {
  display: inline-block;
  vertical-align: top;
  font-family: var(--font-family-sans);
  font-weight: 800;
  font-synthesis: none;
  perspective: 900px;
  perspective-origin: center center;
  --face-count: 4;
  --face-angle: calc(360deg / var(--face-count));
  --prism-width: 8ch;
  --prism-height: 1.1em;
  --prism-radius: calc(var(--prism-height) / (2 * tan(45deg)));
}

.hero-word-prism__slot {
  display: inline-block;
  position: relative;
  width: var(--w-0, var(--prism-width));
  height: var(--prism-height);
  transform-style: preserve-3d;
  vertical-align: top;
  overflow: visible;
  animation: hero-word-prism-width 12s infinite cubic-bezier(0.45, 0.05, 0.2, 1);
}

.hero-word-prism__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: center center;
  animation: hero-word-prism-spin 12s infinite cubic-bezier(0.45, 0.05, 0.2, 1);
  will-change: transform;
}

.hero-word-prism__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  white-space: nowrap;
  transform: rotateX(calc(var(--i) * var(--face-angle))) translateZ(var(--prism-radius));
}

@keyframes hero-word-prism-width {
  0%,
  18% {
    width: var(--w-0, var(--prism-width));
  }
  22%,
  43% {
    width: var(--w-1, var(--prism-width));
  }
  47%,
  68% {
    width: var(--w-2, var(--prism-width));
  }
  72%,
  93% {
    width: var(--w-3, var(--prism-width));
  }
  97%,
  100% {
    width: var(--w-0, var(--prism-width));
  }
}

@keyframes hero-word-prism-spin {
  0%,
  18% {
    transform: rotateX(0deg);
  }
  22%,
  43% {
    transform: rotateX(-90deg);
  }
  47%,
  68% {
    transform: rotateX(-180deg);
  }
  72%,
  93% {
    transform: rotateX(-270deg);
  }
  97%,
  100% {
    transform: rotateX(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word-prism__slot {
    animation: none;
    width: var(--w-0, var(--prism-width));
  }

  .hero-word-prism__inner {
    animation: none;
    transform: rotateX(0deg);
  }

  .hero-word-prism__face:not(:first-child) {
    visibility: hidden;
  }
}

@media screen and (max-width: 1078px) {
  .hero-heading h1 {
    font-size: 3rem;
  }
}

@media screen and (max-width: 700px) {
  .hero-heading {
    text-align: left;
    justify-items: start;
  }

  .hero-heading h1 {
    justify-content: flex-start;
    font-size: 2.25rem;
    letter-spacing: -0.025rem;
  }
}

.hero-heading + .ai-prompt-window {
  animation: fade-up 0.3s 0.35s ease-out both;
  margin-bottom: 1.25rem;
}

.hero .cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fade-up 0.3s 0.4s ease-out both;
}

@media screen and (max-width: 700px) {
  .hero .cta {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
  }

  .hero .cta .button {
    width: auto;
  }
}

.hero .open-source {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hero .open-source .label {
  font-size: 0.8rem;
  white-space: nowrap;
}

.hero .open-source .github-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.2rem 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  margin-left: 8px;
}

.hero .open-source .github-count > svg {
  min-width: 16px;
  max-width: 16px;
  height: auto;
  transform: translateY(-1px);
}

.hero .videos {
  margin: 4rem auto 0;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: auto;
}

@media screen and (min-width: 1000px) {
  .hero .videos {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .hero .videos::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  .hero .videos {
    padding: 0 1.25rem;
    justify-content: flex-start;
    max-width: 100%;
  }
}

.hero .videos .video {
  aspect-ratio: 1440/1080;
  display: block;
  width: 100%;
  min-width: 250px;
  max-width: 300px;
  overflow: hidden;
  border-radius: 4px;
  background: #151515;
}

.hero .videos .video-border:after {
  content: "";
  display: block;
  aspect-ratio: 1440/1080;
  border-radius: 4px;
  box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.33), inset 0 1px #000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero .videos .video {
  position: relative;
}

.hero .videos video {
  display: block;
  aspect-ratio: 1440/1080;
  border-radius: var(--radius-200);
  width: 100%;
  height: 100%;
  animation: fade-in 0.5s 0.75s cubic-bezier(0.87, 0, 0.13, 1) both;
}

/* AI Prompt */
.ai-prompt-window {
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-prompt-window:focus-within {
  border-color: #4d4d4d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.055);
}

.ai-prompt-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #e8e8e8;
  font-family: var(--font-family-sans);
  font-size: 0.85rem;
  line-height: 1.6;
  resize: none;
  overflow-y: auto;
  padding: 0.125rem 0.125rem;
}

.ai-prompt-textarea::placeholder {
  color: #5c5c5c;
}

.ai-prompt-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

@keyframes suggestions-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ai-prompt-suggestions {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.ai-suggestions-track {
  display: flex;
  gap: 0.35rem;
  width: max-content;
  --suggestions-scroll-duration: 85s;
  animation: suggestions-scroll var(--suggestions-scroll-duration) linear infinite;
}

.ai-prompt-suggestions:hover .ai-suggestions-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ai-suggestions-track {
    animation: none;
  }
}

.ai-suggestion {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem 0.22rem;
  font-size: 0.72rem;
  color: #6e6e6e;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  font-family: var(--font-family-sans);
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-suggestion:hover {
  color: #c8c8c8;
  border-color: #525252;
  background: rgba(255, 255, 255, 0.06);
}

.ai-prompt-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: transparent;
  color: #707070;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
}

.ai-prompt-send:hover {
  color: #ddd;
  border-color: #5c5c5c;
  background: rgba(255, 255, 255, 0.07);
}

@media screen and (min-width: 1079px) {
  .ai-prompt-window {
    max-width: 560px;
  }
}

@media screen and (max-width: 700px) {
  .ai-prompt-window {
    max-width: 100%;
  }
}

.hero .source-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 100%;
  animation: fade-in 1.5s 0.25s linear both;
}

.hero .source-lines > canvas {
  display: block;
  width: 100%;
  height: 125px;
}

@media screen and (max-width: 700px) {
  .hero .source-lines > canvas {
    height: 100px;
  }
}

.hero .source-lines .prorok-icon,
.hero .source-lines .rerun-icon {
  width: 75%;
  max-width: 1300px;
  margin-top: -1.5rem;
}

.hero .prorok-icon-mobile,
.hero .rerun-icon-mobile {
  display: none;
  height: 800px;
  margin-top: 4rem;
  padding: 0 1rem;
}

@media screen and (max-width: 700px) {
  .hero .source-lines {
    display: none;
  }
  .hero .prorok-icon-mobile,
  .hero .rerun-icon-mobile {
    display: block;
  }
}

.rerun-hero__announcement {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(81, 121, 255, 0.1);
  border: 1px solid rgba(81, 121, 255, 0.2);
  border-radius: var(--radius-200);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-link);
  animation: fade-up 0.3s 0.2s ease-out both;
}

.rerun-hero__announcement a {
  color: var(--color-link);
  text-decoration: none;
}

.rerun-hero__title {
  margin-bottom: 1.25rem;
}

.rerun-hero__subtitle {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.rerun-hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rerun-hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--body-text-color);
  font-size: 0.875rem;
}

.rerun-hero__badge a {
  color: var(--color-link);
  text-decoration: none;
}

.github-stars {
  font-weight: 600;
  color: #fff;
}

.rerun-hero__illustration {
  margin-top: 3rem;
  animation: fade-up 0.3s 0.5s ease-out both;
}

.rerun-hero__illustration img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.hero-mobile {
  display: none;
}

@media screen and (max-width: 700px) {
  .hero-desktop {
    display: none;
  }
  .hero-mobile {
    display: block;
  }
}

/* Data Stack Section */
.data-stack {
  --ds-icon: 120px;
  --ds-gap: 3.5rem;
  margin-top: 9rem;
}

.data-stack .max-width.landing {
  max-width: 46rem;
}

@media screen and (max-width: 700px) {
  .data-stack {
    margin-top: 5.5rem;
  }
}

.data-stack .blocks {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 10.5rem;
}

@media screen and (max-width: 700px) {
  .data-stack .blocks {
    gap: 6.5rem;
    margin-top: 2.5rem;
  }
}

/* Every block: fixed icon column + stretching text column */
.data-stack .block {
  display: grid;
  grid-template-columns: var(--ds-icon) minmax(0, 1fr);
  gap: var(--ds-gap);
  align-items: center;
}

/* reverse: text LEFT, icon RIGHT */
.data-stack .block.reverse {
  grid-template-columns: minmax(0, 1fr) var(--ds-icon);
}

.data-stack .block.reverse .svg-column {
  order: 2;
}

.data-stack .block.reverse .content-column {
  order: 1;
}

@media screen and (max-width: 700px) {
  .data-stack .block,
  .data-stack .block.reverse {
    grid-template-columns: var(--ds-icon) minmax(0, 1fr);
  }

  .data-stack .block.reverse .svg-column,
  .data-stack .block.reverse .content-column {
    order: unset;
  }
}

.data-stack .svg-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Portal-style sidebar tiles (rounded square outline, Phosphor bold icon) */
.data-stack .feature-tile {
  --feature-tile-size: var(--ds-icon);
  --feature-tile-radius: 36px;
  width: var(--feature-tile-size);
  height: var(--feature-tile-size);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--feature-tile-radius);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.data-stack .feature-tile i {
  font-size: calc(var(--feature-tile-size) * 0.72);
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}

@media screen and (max-width: 700px) {
  .data-stack {
    --ds-icon: 90px;
  }

  .data-stack .feature-tile {
    --feature-tile-radius: 27px;
  }
}

.data-stack .content-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.data-stack .content-column h3 {
  margin-bottom: 1rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.33;
  margin: 0;
}

@media screen and (max-width: 1078px) {
  .data-stack .content-column h3 {
    font-size: 1.4rem;
  }
}

.data-stack .content-column .description {
  margin: 0;
  line-height: 1.6;
  color: var(--body-text-color);
}

.data-stack .content-column .description strong {
  font-weight: 600;
  color: #fff;
}

.data-stack .videos {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

@media screen and (min-width: 700px) {
  .data-stack .videos {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .data-stack .videos::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  .data-stack .videos {
    margin-left: calc(-1 * var(--padding-x));
    margin-right: calc(-1 * var(--padding-x));
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
    scroll-padding-left: var(--padding-x);
    scroll-padding-right: var(--padding-x);
  }
}

.data-stack .videos .video {
  flex-shrink: 0;
  width: calc((100% - 1.5rem) / 3);
  aspect-ratio: 1440/1080;
  border-radius: 4px;
  overflow: hidden;
  background: #151515;
  scroll-snap-align: start;
}

@media screen and (max-width: 700px) {
  .data-stack .videos .video {
    width: 60%;
  }
}

.data-stack .videos .video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.data-stack .image {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

@media screen and (min-width: 700px) {
  .data-stack .image {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .data-stack .image::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  .data-stack .image {
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

.data-stack .image img {
  display: block;
  width: auto;
  border-radius: 4px;
}

.data-stack .block:nth-child(2) .image img {
  height: 160px;
  min-width: max-content;
}

.data-stack .block:nth-child(3) .image img {
  height: 180px;
  min-width: max-content;
}

@media screen and (max-width: 700px) {
  .data-stack .block:nth-child(2) .image img,
  .data-stack .block:nth-child(3) .image img {
    height: auto;
    width: 100%;
    min-width: unset;
  }
}

.data-stack .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media screen and (max-width: 700px) {
  .data-stack .button {
    width: 100%;
  }
}

/* Get Started Section */
.get-started {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  .get-started {
    margin-top: 6rem;
  }
}

.get-started-code {
  margin: 0 auto 0.5rem;
  max-width: 600px;
  flex: 1;
  width: 100%;
}

@media screen and (max-width: 700px) {
  .get-started-code {
    max-width: 100%;
  }
}

.get-started-code {
  background: var(--code-block-background);
  border: 1px solid rgba(255, 255, 255, 0.125);
  border-radius: var(--radius-300);
  padding: 1.5rem;
  text-align: left;
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.code-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-200);
  color: var(--body-text-color);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font-family-code);
  transition: all 0.2s;
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.get-started-code pre {
  color: #e2e8f0;
  font-family: var(--font-family-code);
  font-size: 0.875rem;
  line-height: 1.66;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}

/* Community Section */
.community {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  .community {
    margin: 6rem 0;
  }
}

.community .section-heading {
  margin-bottom: 2.5rem;
}

.community .desktop {
  display: block;
}

.community .mobile {
  display: none;
}

@media screen and (max-width: 700px) {
  .community .desktop {
    display: none;
  }
  .community .mobile {
    display: block;
  }
}

.community .tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 34.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.community .tabs .tab {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 39px;
  padding: 12.75px 0;
  background: none;
  border: none;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
  color: #616165;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.community .tabs .tab:hover,
.community .tabs .tab:active {
  color: #b5b5b7;
}

.community .tabs .tab.selected {
  color: #ededed;
  border-bottom-color: #ededed;
}

.community .tabs .tab .tab-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.community .tabs .tab .tab-content .tab-logo {
  height: 30px;
  width: auto;
  max-width: 36px;
  display: block;
  filter: brightness(0) saturate(100%) invert(38%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(88%);
  transition: filter 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.community .tabs .tab .tab-content .tab-logo[data-tab="lerobot"] {
  filter: none;
  opacity: 0.3;
}

.community .tabs .tab:hover .tab-content .tab-logo,
.community .tabs .tab:active .tab-content .tab-logo {
  filter: brightness(0) saturate(100%) invert(75%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(92%) contrast(86%);
}

.community .tabs .tab:hover .tab-content .tab-logo[data-tab="lerobot"],
.community .tabs .tab:active .tab-content .tab-logo[data-tab="lerobot"] {
  filter: none;
  opacity: 0.75;
}

.community .tabs .tab.selected .tab-content .tab-logo {
  filter: none;
  opacity: 1;
}

.community .content {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.community .content .thumbnail {
  width: 50%;
}

.community .content .thumbnail img {
  width: 100%;
  border-radius: var(--radius-300);
}

.community .content .text {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-left: 42px;
  width: calc(50% - 42px);
  text-align: left;
  font-size: 17px;
}

.community .content .text h3 {
  font-size: 26px;
  font-weight: 700;
  color: #ededed;
  margin: 0;
}

.community .content .text p {
  color: var(--body-text-color);
  line-height: 1.6;
  margin: 0;
}

.community .content .text a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.community .drawer > .item {
  padding: 11.25px 15px;
  background-color: transparent;
  transition: background-color 0.2s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.community .drawer > .item summary {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #b2b2bb;
  font-size: 17px;
  transition: margin-bottom 0.2s ease-in-out;
  cursor: pointer;
  list-style: none;
}

.community .drawer > .item summary::-webkit-details-marker {
  display: none;
}

.community .drawer > .item summary .summary-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community .drawer > .item summary .summary-content .tab-logo {
  height: auto;
  width: auto;
  max-height: 18px;
  display: block;
}

.community .drawer > .item > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 800px;
  transition: max-height 0.2s ease-in-out, color 0.2s ease-in-out;
  margin-top: 10px;
}

.community .drawer > .item > div > img {
  border: none;
  border-radius: 8px;
  width: 100%;
}

.community .drawer > .item > div > a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.community .drawer > .item.open {
  background-color: #171717;
}

.community .drawer > .item.open summary {
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.community .drawer > .item:not(.open) > div {
  color: transparent;
  max-height: 0;
  margin-top: 0;
}

/* What/Workflow Section */
.what {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  .what {
    margin: 6rem 0;
  }
}

.what .inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.what .cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  overflow: auto;
}

@media screen and (min-width: 1078px) {
  .what .cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .what .cards::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (max-width: 1078px) {
  .what .cards {
    margin-top: 0;
    justify-content: flex-start;
    margin-left: calc(-1 * var(--padding-x));
    margin-right: calc(-1 * var(--padding-x));
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
    scroll-padding-left: var(--padding-x);
    scroll-padding-right: var(--padding-x);
  }
}

.what .card {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 24px;
  background: #171717;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1078px) {
  .what .card {
    flex: 0 0 auto;
    min-width: 326px;
    max-width: 326px;
  }
}

.what .card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.33;
}

@media screen and (max-width: 1078px) {
  .what .card h4 {
    font-size: 1.4rem;
  }
}

.what .card p {
  font-size: 15px;
  margin-bottom: 0.5rem;
  color: var(--body-text-color);
  line-height: 1.6;
}

.what .card p:last-child {
  margin-bottom: 0;
}

.what .card .snippet-container {
  width: 100%;
  height: 180px;
  margin-top: 1rem;
}

.what .card .snippet-container .snippet {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--code-block-background);
  border-radius: var(--radius-300);
  overflow: hidden;
}

.what .card .snippet-container pre {
  font-size: 0.65rem;
  padding: 0.5rem;
  height: 100%;
  overflow: auto;
  margin: 0;
  color: #e2e8f0;
  font-family: var(--font-family-code);
}

.what .card .snippet-container code {
  font-size: 0.65rem;
  white-space: pre;
}


/* Footer: multi-column layout (Rerun / SaaS pattern) */
.rerun-footer {
  margin-top: 10rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rerun-footer__content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 2.5rem;
}

.rerun-footer__section h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rerun-footer__section ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rerun-footer__section a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--body-text-color);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.rerun-footer__section a:hover {
  color: #fff;
}

.rerun-footer__section a i {
  font-size: 0.75rem;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

.rerun-footer__section a:hover i {
  opacity: 0.75;
}

.rerun-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rerun-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
}

.rerun-footer__copyright a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.rerun-footer__copyright a:hover {
  color: #fff;
}

.rerun-footer__legal {
  margin: 0;
  font-size: 0.8125rem;
}

.rerun-footer__legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.rerun-footer__legal a:hover {
  color: #fff;
}

.rerun-footer__legal-sep {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 900px) {
  .rerun-footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .rerun-footer {
    margin-top: 6rem;
    padding: 2.5rem 0 1.5rem;
  }

  .rerun-footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rerun-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.oss-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14rem;
}

.oss-cloud.cloud {
  margin-top: 8rem;
}

@media screen and (max-width: 700px) {
  .oss-cloud {
    margin: 6rem 0;
  }
}

.oss-cloud .blocks {
  margin-top: 4rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

@media screen and (max-width: 700px) {
  .oss-cloud .blocks {
    gap: 3rem;
    margin-top: 3rem;
  }
}

.oss-cloud .block {
  display: flex;
  justify-content: center;
}

.oss-cloud .block .text {
  width: 50%;
  padding-right: 2rem;
}

.oss-cloud .block .text h3 {
  margin-bottom: 1rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.33;
}

@media screen and (max-width: 1078px) {
  .oss-cloud .block .text h3 {
    font-size: 1.4rem;
  }
}

.oss-cloud .block .text .text-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.oss-cloud .block .text .text-content li {
  margin-left: -1.25rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--body-text-color);
  line-height: 1.6;
}

.oss-cloud .block .text .text-content li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.6;
}

@media screen and (max-width: 700px) {
  .oss-cloud .block .text .text-content li:before {
    display: none;
  }
}

.oss-cloud .block .text .text-content p {
  color: var(--body-text-color);
  line-height: 1.6;
  margin: 0;
}

@media screen and (max-width: 700px) {
  .oss-cloud .block {
    flex-direction: column;
    gap: 1.5rem;
  }
  .oss-cloud .block .text,
  .oss-cloud .block .image,
  .oss-cloud .block .code,
  .oss-cloud .block .video {
    width: 100%;
  }
  .oss-cloud .block .text {
    padding-right: 0;
  }
  .oss-cloud .block .text h3 {
    margin-bottom: 0.5rem;
  }
}

.oss-cloud .code,
.oss-cloud .video,
.oss-cloud .image {
  width: 50%;
}

.oss-cloud .code video,
.oss-cloud .video video,
.oss-cloud .image video {
  display: block;
  border-radius: 4px;
  aspect-ratio: 1440/1080;
  width: 100%;
}

.oss-cloud .code img,
.oss-cloud .video img,
.oss-cloud .image img,
.oss-cloud .image svg {
  display: block;
  border-radius: 4px;
  width: 100%;
  height: auto;
}

.oss-cloud .platform-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2;
  border-radius: 20px;
  border: 1px solid #222;
  background: #141414;
}

.oss-cloud .platform-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.oss-cloud .platform-image-frame--rocket img {
  object-position: 70% 35%;
}

.oss-cloud .platform-image-frame__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.oss-cloud .code > div {
  margin: 0;
}

.oss-cloud .code-wrapper {
  height: 330px;
  background: var(--code-block-background);
  border: 1px solid rgba(255, 255, 255, 0.125);
  border-radius: var(--radius-300);
  padding: 1rem;
  overflow: auto;
}

.oss-cloud .code-wrapper pre {
  color: #e2e8f0;
  font-family: var(--font-family-code);
  font-size: 0.875rem;
  line-height: 1.66;
  white-space: pre;
  margin: 0;
}


/* Enhanced Animations */
@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media screen and (max-width: 700px) {
  .rerun-nav__container {
    padding: 0 var(--padding-x);
  }

  .rerun-nav__links {
    gap: 1rem;
    font-size: 0.8125rem;
  }

  .rerun-hero {
    padding: 2rem 1rem;
  }

}

/* Code Syntax Highlighting */
.token.comment { color: #8e8e98; }
.token.rr-function,
.token.rr-class,
.token.function,
.token.class-name,
.token.builtin,
.property { color: #ffdf89; }
.token.punctuation,
.token.operator { color: #8e8e98; }
.token.keyword,
.token.boolean { color: #e283ff; }
.token.string,
.token.number { color: #5dfdb7; }

/* Section spacing */
section:not(.hero) {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  section:not(.hero) {
    margin: 6rem 0;
  }
}

section.data-stack {
  margin-top: 9rem;
}

@media screen and (max-width: 700px) {
  section.data-stack {
    margin-top: 5.5rem;
    margin-bottom: 0;
  }
}

section.get-started {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  section.get-started {
    margin-top: 6rem;
  }
}

section.oss-cloud.cloud {
  margin-top: 8rem;
}

section.landing-video {
  margin-top: 10rem;
}

section.landing-video.landing-video--after-hero {
  margin-top: 5.5rem;
}

@media screen and (max-width: 700px) {
  section.landing-video {
    margin-top: 5rem;
  }

  section.landing-video.landing-video--after-hero {
    margin-top: 3.5rem;
  }
}

.landing-video .section-heading {
  margin-bottom: 1.5rem;
}

.landing-video .video-border {
  border-radius: 12px;
}

.landing-video .video-border:after {
  border-radius: 12px;
}

.landing-video-frame {
  max-width: 44rem;
  margin-inline: auto;
  background: #0c0c0c;
  overflow: hidden;
}

.landing-video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.landing-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Waitlist */
.page-waitlist .waitlist-hero {
  padding: 4rem 0 0;
}

.waitlist-heading {
  text-align: center;
  max-width: 36rem;
  animation: fade-up 0.3s 0.15s ease-out both;
}

.waitlist-heading h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.waitlist-subheading {
  margin: 0;
  color: var(--body-text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.waitlist-notify {
  width: 100%;
  max-width: 560px;
  margin-top: 2rem;
  animation: fade-up 0.3s 0.25s ease-out both;
}

.waitlist-reply {
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.waitlist-reply--ok {
  background: rgba(80, 200, 120, 0.12);
  color: #8fd4a8;
}

.waitlist-reply--error {
  background: rgba(220, 80, 80, 0.12);
  color: #e89898;
}

.waitlist-reply p {
  margin: 0;
}

.waitlist-form-window {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form-window:focus-within {
  border-color: #4d4d4d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.055);
}

.waitlist-form-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #e8e8e8;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.25rem 0.125rem;
}

.waitlist-form-input::placeholder {
  color: #5c5c5c;
}

.waitlist-form-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid #4a4a4a;
  border-radius: 10px;
  background: transparent;
  color: #707070;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
}

.waitlist-form-send:hover:not(:disabled) {
  color: #ddd;
  border-color: #5c5c5c;
  background: rgba(255, 255, 255, 0.07);
}

.waitlist-form-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-waitlist .oss-cloud.cloud {
  margin-top: 6rem;
}

@media screen and (min-width: 1079px) {
  .waitlist-notify {
    max-width: 640px;
  }

  .waitlist-heading {
    max-width: 52rem;
  }
}

@media screen and (max-width: 700px) {
  .page-waitlist .waitlist-hero {
    padding-top: 2.5rem;
  }

  .waitlist-heading {
    text-align: left;
  }

  .waitlist-notify {
    max-width: 100%;
  }
}

/* Video border effect */
.video-border {
  position: relative;
  border-radius: 6px;
}

.video-border:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgba(100, 100, 100, 0.5), inset 0 1px rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
}

/* Pricing/Comparison Section */
.pricing {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  .pricing {
    margin-top: 6rem;
  }
}

/* Mobile Cards for Pricing */
.mobile-cards {
  display: none;
}

@media screen and (max-width: 1000px) {
  .mobile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .comparison-table {
    display: none;
  }
}

.mobile-cards > div {
  padding: 2rem;
  border-radius: var(--radius-400);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cards .dark {
  background: rgba(255, 255, 255, 0.02);
}

.mobile-cards .light {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-cards h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.mobile-cards .summary {
  color: var(--body-text-color);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.mobile-cards .price {
  color: var(--color-link);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.mobile-cards ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.mobile-cards li {
  padding: 0.5rem 0;
  color: var(--body-text-color);
  position: relative;
  padding-left: 1.5rem;
}

.mobile-cards li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-link);
}

.mobile-cards .button {
  margin-top: 1.5rem;
}

/* Desktop Comparison Table */
.comparison-table {
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-400);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .feature-column {
  /* Empty column for feature names */
}

.comparison-table .oss-column,
.comparison-table .cloud-column {
  text-align: center;
}

.comparison-table .oss-column h3,
.comparison-table .cloud-column h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.comparison-table .subtitle {
  font-size: 0.875rem;
  color: var(--body-text-color);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.comparison-table .license {
  font-size: 0.875rem;
  color: var(--color-link);
  font-weight: 600;
  margin-bottom: 1rem;
}

.comparison-table .table-header .button {
  margin-top: 1rem;
}

.comparison-table .feature-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.comparison-table .feature-row:last-child {
  border-bottom: none;
}

.comparison-table .feature-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .feature-name {
  color: var(--body-text-color);
  font-size: 0.9375rem;
}

.comparison-table .feature-cell {
  text-align: center;
  color: var(--body-text-color);
  font-size: 0.9375rem;
}

.comparison-table .checkmark {
  color: var(--color-link);
  font-size: 1.25rem;
  font-weight: 700;
}

.comparison-table .cross {
  color: #666;
  font-size: 1.25rem;
}

.comparison-table .table-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .footer-cell {
  text-align: center;
}

@media screen and (max-width: 1000px) {
  .comparison-table {
    display: none;
  }
}

/* Blog Posts on Landing Page */
.our-blog {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  .our-blog {
    margin-top: 6rem;
  }
}

.our-blog .blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.our-blog .blog-post {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-400);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.our-blog .blog-post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-400);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(67, 56, 202, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.our-blog .blog-post:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(74, 158, 255, 0.1);
}

.our-blog .blog-post:hover::after {
  opacity: 1;
}

.our-blog .blog-post article {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  position: relative;
  z-index: 1;
}

.our-blog .blog-post .image {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.our-blog .blog-post .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.our-blog .blog-post:hover .image img {
  transform: scale(1.05);
}

.our-blog .blog-post .text {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.our-blog .blog-post h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.our-blog .blog-post p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body-text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (max-width: 700px) {
  .our-blog .blog-posts {
    grid-template-columns: 1fr;
  }
}

/* Blog Listing Page */
.blog-listing {
  margin-top: 1rem;
  padding: 1.5rem 0;
}

@media screen and (max-width: 700px) {
  .blog-listing {
    margin-top: 1rem;
    padding: 1rem 0;
  }
}

.blog-listing .desktop {
  display: block;
}

.blog-listing .mobile {
  display: none;
}

@media screen and (max-width: 700px) {
  .blog-listing .desktop {
    display: none;
  }
  .blog-listing .mobile {
    display: block;
  }
}

.blog-listing .featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 1000px) {
  .blog-listing .featured {
    grid-template-columns: 1fr;
  }
}

.blog-listing .featured .main {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-400);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-listing .featured .main::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-400);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(67, 56, 202, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.blog-listing .featured .main:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(74, 158, 255, 0.1);
}

.blog-listing .featured .main:hover::after {
  opacity: 1;
}

.blog-listing .featured .main .image {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.blog-listing .featured .main .image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-listing .featured .main:hover .image img {
  transform: scale(1.03);
}

.blog-listing .featured .main .truncated-text {
  padding: 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.blog-listing .featured .main h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025rem;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
}

@media screen and (max-width: 1078px) {
  .blog-listing .featured .main h1 {
    font-size: 2rem;
    margin-bottom: 0.875rem;
  }
}

.blog-listing .featured .main p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--body-text-color);
  margin: 0;
}

.blog-listing .featured .side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-listing .featured .side .card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-400);
  padding: 0;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-listing .featured .side .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-400);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(67, 56, 202, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.blog-listing .featured .side .card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(74, 158, 255, 0.08);
}

.blog-listing .featured .side .card:hover::after {
  opacity: 1;
}

.blog-listing .featured .side .card .image {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.blog-listing .featured .side .card .image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-listing .featured .side .card:hover .image img {
  transform: scale(1.04);
}

.blog-listing .featured .side .card .truncated-text {
  padding: 0 1.25rem 1.25rem;
  position: relative;
  z-index: 1;
}

.blog-listing .featured .side .card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.blog-listing .featured .side .card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body-text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-listing .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-listing .grid .card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-400);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-listing .grid .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-400);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(67, 56, 202, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.blog-listing .grid .card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(74, 158, 255, 0.1);
}

.blog-listing .grid .card:hover::after {
  opacity: 1;
}

.blog-listing .grid .card .image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.blog-listing .grid .card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-listing .grid .card:hover .image img {
  transform: scale(1.05);
}

.blog-listing .grid .card .truncated-text {
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.blog-listing .grid .card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

.blog-listing .grid .card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body-text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-listing a {
  color: inherit;
  text-decoration: none;
}

.blog-listing .mobile .blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-listing .mobile .blog-post {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-400);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-listing .mobile .blog-post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-400);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(67, 56, 202, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.blog-listing .mobile .blog-post:active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.blog-listing .mobile .blog-post:active::after {
  opacity: 1;
}

.blog-listing .mobile .blog-post > article {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.blog-listing .mobile .blog-post .image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.blog-listing .mobile .blog-post .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-listing .mobile .blog-post:active .image img {
  transform: scale(1.03);
}

.blog-listing .mobile .blog-post .text {
  padding: 1.25rem 1.5rem 1.5rem;
}

.blog-listing .mobile .blog-post .text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.3;
}

.blog-listing .mobile .blog-post .text p {
  color: var(--body-text-color);
  line-height: 1.6;
}

/* Blog Post Page */
.blog-post-page {
  padding: 2rem 0 3rem;
}

@media screen and (max-width: 700px) {
  .blog-post-page {
    padding: 1.5rem 0 2rem;
  }
}

.blog-article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.blog-article-header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
}

.blog-hero {
  position: relative;
  height: 11rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-400);
  overflow: hidden;
}

.blog-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 16, 16, 0.65) 0%,
    rgba(16, 16, 16, 0.3) 50%,
    rgba(16, 16, 16, 0.12) 100%
  );
}

.blog-hero h1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 1.25rem 1.5rem;
  z-index: 1;
  font-size: 2.25rem;
}

@media screen and (max-width: 700px) {
  .blog-article-header {
    margin-bottom: 2rem;
  }

  .blog-article-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .blog-hero {
    height: 9rem;
    margin-bottom: 2rem;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
    padding: 1rem 1.25rem;
  }
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article-header .meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-article-header .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.blog-article-header .meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.25;
}

.blog-article-header .meta-text .author {
  color: #fff;
  font-weight: 500;
}

.blog-article-header .meta-text .date {
  color: #888;
  font-size: 0.875rem;
}

.blog-article .content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--body-text-color);
}

.blog-article .content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.blog-article .content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.blog-article .content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.blog-article .content p {
  margin-bottom: 1.5rem;
}

.blog-article .content code {
  background: var(--code-block-background);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-200);
  font-family: var(--font-family-code);
  font-size: 0.9em;
}

.blog-article .content pre {
  background: var(--code-block-background);
  border: 1px solid rgba(255, 255, 255, 0.125);
  border-radius: var(--radius-300);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-article .content pre code {
  background: none;
  padding: 0;
}

.blog-article .content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-300);
  margin: 2rem 0;
}

/* Docs Page */
.docs-page {
  margin-top: 1rem;
  padding: 1.5rem 0;
  min-height: calc(100vh - var(--header-height));
}

@media screen and (max-width: 700px) {
  .docs-page {
    margin-top: 1rem;
    padding: 1.5rem 0;
  }
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.docs-layout--no-sidebar {
  grid-template-columns: 1fr;
  gap: 0;
}

/* Wrapper for content + toc; swapped by HTMX so sidebar stays in place */
.docs-dynamic {
  display: flex;
  gap: 4rem;
  min-width: 0;
}

@media screen and (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .docs-dynamic {
    flex-direction: column;
  }
  .docs-sidebar {
    display: none;
  }
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section header with dropdown toggle (like rerun.io) */
.docs-nav .nav-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0 0 0.5rem 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #888;
  font-family: inherit;
  text-align: left;
  transition: color 0.15s ease;
}

.docs-nav .nav-section-header:hover {
  color: var(--body-text-color);
}

.docs-nav .nav-section-header .nav-chevron {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -0.15rem;
}

.docs-nav .nav-section.collapsed .nav-section-header .nav-chevron {
  transform: rotate(-45deg);
  margin-top: 0;
}

.docs-nav .nav-section h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  margin: 0;
  padding: 0;
}

/* Nested subsection header (Ontology / Logic): same typography as top-level sections */
.docs-nav .nav-section-heading-inline {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  margin: 0;
  padding: 0;
}

.docs-nav .nav-section-header.nav-section-header--nested {
  margin-top: 0.5rem;
  /* Less than top-level section headers (0.5rem bottom); enough air before child links */
  padding-bottom: 0.25rem;
}

.docs-nav .nav-section-items > .nav-group:first-child .nav-section-header.nav-section-header--nested {
  margin-top: 0;
}

/* Indent everything under a top-level section (CONCEPTS, etc.) so nested subsections read as children */
.docs-nav .nav-section-items {
  padding-inline-start: 0.875rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
  margin-inline-start: 0.125rem;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.docs-nav .nav-section.collapsed .nav-section-items {
  display: none;
}

.docs-nav .nav-item {
  padding: 0.5rem 0.75rem;
  color: var(--body-text-color);
  text-decoration: none;
  border-radius: var(--radius-200);
  transition: background 0.15s ease, color 0.15s ease;
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
}

.docs-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.docs-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

/* Nested collapsible under a section: same control as .nav-section-header, indented content */
.docs-nav .nav-group .nav-section-header--nested .nav-chevron {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.15rem;
}

.docs-nav .nav-group.collapsed .nav-section-header--nested .nav-chevron {
  transform: rotate(-45deg);
  margin-top: 0;
}

.docs-nav .nav-group-items {
  margin-inline-start: 0;
  margin-top: 0.25rem;
  padding-inline-start: 0.875rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.docs-nav .nav-group.collapsed .nav-group-items {
  display: none;
}

.docs-content {
  flex: 1;
  max-width: 65ch;
  min-width: 0; /* Allow flex shrinking */
}

@media screen and (max-width: 1024px) {
  .docs-content {
    max-width: 100%;
  }
}

.docs-article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: #fff;
}

@media screen and (max-width: 700px) {
  .docs-article h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
}

.docs-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body-text-color);
}

.docs-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  scroll-margin-top: 6rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.docs-body h2:first-of-type {
  margin-top: 0;
}

.docs-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
  scroll-margin-top: 6rem;
  line-height: 1.4;
}

.docs-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1.5;
}

.docs-body p {
  margin-bottom: 1.25rem;
}

.docs-body p:last-child {
  margin-bottom: 0;
}

.docs-body strong {
  font-weight: 600;
  color: #fff;
}

.docs-body a {
  color: #4a9eff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  font-weight: 500;
}

.docs-body a:hover {
  border-bottom-color: #4a9eff;
  color: #6bb0ff;
}

.docs-body code {
  background: rgba(74, 158, 255, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-family-code);
  font-size: 0.875em;
  color: #4a9eff;
  border: 1px solid rgba(74, 158, 255, 0.2);
}

.docs-body pre {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.docs-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e0e0e0;
  font-size: 0.875rem;
}

.docs-body ul,
.docs-body ol {
  margin: 1.25rem 0;
}

.docs-body ul {
  padding-left: 0;
  list-style: none;
}

.docs-body ol {
  padding-left: 1.75rem;
  list-style-type: decimal;
}

.docs-body ul ul {
  margin: 0.5rem 0;
}

.docs-body li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.docs-body ul > li {
  position: relative;
  padding-left: 1.5rem;
}

.docs-body ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: calc(0.5lh - 0.2rem);
  width: 0.35rem;
  height: 0.35rem;
  flex-shrink: 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: rotate(-45deg);
}

.docs-body ul ul > li::before {
  width: 0.3rem;
  height: 0.3rem;
  top: calc(0.5lh - 0.175rem);
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-color: rgba(255, 255, 255, 0.48);
}

.docs-body li p {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.docs-body ol > li::marker {
  color: rgba(255, 255, 255, 0.5);
}

.docs-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-body picture {
  display: block;
  margin: 2rem 0;
}

.docs-body picture img {
  margin: 0;
  border: none;
}

.docs-body blockquote {
  border-left: 3px solid rgba(74, 158, 255, 0.3);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: rgba(178, 178, 187, 0.8);
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.docs-body table th,
.docs-body table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-body table th {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-body table tr:last-child td {
  border-bottom: none;
}

.docs-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

/* Table of Contents */
.docs-toc {
  flex: 0 0 240px;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  padding-left: 2rem;
}

.docs-toc::-webkit-scrollbar {
  width: 6px;
}

.docs-toc::-webkit-scrollbar-track {
  background: transparent;
}

.docs-toc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.docs-toc::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.toc-nav h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 1rem;
  padding: 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-item a {
  color: var(--body-text-color);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.toc-item a:hover {
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.3);
}

.toc-item a.active {
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.toc-level-3 {
  margin-left: 1rem;
  font-size: 0.75rem;
}

.toc-level-3 a {
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

/* Demos Page - Refined styling inspired by rerun.io examples */
.demos-page {
  margin-top: 1rem;
  padding: 1.5rem 0 4rem;
  min-height: calc(100vh - var(--header-height));
}

.demos-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) 1fr;
  gap: 4rem;
  align-items: start;
}

.demos-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  min-width: 0;
  width: 100%;
}

.demos-nav {
  gap: 0.25rem;
}

.demo-category {
  margin-bottom: 0;
  margin-top: 0 !important;
  width: 100%;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.demo-category-header {
  margin-bottom: 1.25rem;
}

.demo-category-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo-category-prelude {
  margin: 0;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media screen and (max-width: 1024px) {
  .demos-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .demos-sidebar {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  .demos-page {
    margin-top: 1rem;
    padding: 1rem 0 3rem;
  }

  .demos-content {
    gap: 1.5rem;
  }
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media screen and (max-width: 1100px) {
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-400);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Subtle highlighting animation on hover */
.demo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-400);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(67, 56, 202, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.demo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(74, 158, 255, 0.1);
}

.demo-card:hover::after {
  opacity: 1;
}

.demo-card--mock {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.05);
  transition: none;
}

.demo-card--mock .demo-link {
  cursor: default;
}

.demo-card--mock .demo-image img {
  filter: saturate(0.75) brightness(0.88);
  transition: none;
}

.demo-image-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 1;
}

.demo-coming-soon-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  background: rgb(88, 48, 16);
  color: rgb(253, 186, 116);
  pointer-events: none;
  white-space: nowrap;
}

.demo-card--mock .demo-content h3 {
  color: rgba(255, 255, 255, 0.72);
}

.demo-card--mock .demo-description {
  color: rgba(178, 178, 187, 0.72);
}

.demo-card--mock .demo-source {
  opacity: 0.7;
  transition: none;
}

.demo-card--mock .demo-source:hover {
  color: var(--color-link);
  gap: 0.375rem;
}

.demo-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.demo-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0;
}

.demo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:hover .demo-image img {
  transform: scale(1.05);
}

.demo-card.demo-card--mock:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.05);
}

.demo-card.demo-card--mock:hover::after {
  opacity: 0;
}

.demo-card.demo-card--mock:hover .demo-image img {
  transform: none;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(1px);
}

.demo-card:hover .demo-overlay {
  opacity: 1;
}

/* Geo locale notice */
.locale-notice {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.locale-notice[hidden] {
  display: none;
}

body.locale-notice-open {
  overflow: hidden;
}

.locale-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.locale-notice__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.75rem;
  border-radius: var(--radius-400);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #181818;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: fade-up 0.25s ease;
}

.locale-notice__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.locale-notice__body {
  color: var(--body-text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.locale-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.locale-notice__actions .button {
  flex: 1 1 auto;
  min-width: 8rem;
  justify-content: center;
  cursor: pointer;
  border: none;
  font: inherit;
}

.locale-notice__btn-dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--radius-round);
  padding: 0.625rem 1.25rem;
}

.locale-notice__btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

.demo-view-label {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-300);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.demo-card:hover .demo-view-label {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.demo-content {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.demo-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  margin-bottom: 0.125rem;
}

.demo-description {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body-text-color);
  margin: 0;
  flex: 1;
}

.demo-source {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  padding: 0.25rem 0;
}

.demo-source:hover {
  color: #8aabff;
  gap: 0.5rem;
}

.demo-source i {
  font-size: 0.8125rem;
  transition: transform 0.2s ease;
}

.demo-source:hover i {
  transform: translate(2px, -2px);
}

/* Innovation Stack Section */
.innovation-stack {
  margin-top: 14rem;
}

@media screen and (max-width: 700px) {
  .innovation-stack {
    margin: 6rem 0;
  }
}

.innovation-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.innovation-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-400);
  transition: transform 0.2s, border-color 0.2s;
}

.innovation-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.innovation-icon {
  margin-bottom: 1rem;
}

.innovation-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.innovation-item p {
  color: var(--body-text-color);
  line-height: 1.6;
  margin: 0;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-400);
  transition: transform 0.2s, border-color 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #fff;
}

.testimonial-author p {
  font-size: 0.875rem;
  color: #888;
  margin: 0;
}

.testimonial-text {
  color: var(--body-text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-card .button {
  margin-top: auto;
}

/* Responsive */
@media screen and (max-width: 700px) {
  .rerun-nav__container {
    padding: 0 var(--padding-x);
  }

  .rerun-nav__links {
    gap: 1rem;
    font-size: 0.8125rem;
  }
  
  .innovation-items {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
