/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@325;425;500;600;700&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: #70f2b7;
  --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;
  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 {
  background: var(--body-background);
  color: var(--body-text-color);
  overflow: hidden;
  overflow-y: auto;
}

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 600 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;
}

/* 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;
}

.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:hover {
  transform: scale(1.05);
  background-color: #0a0a0a;
}

.rerun-nav__controls .mxd-header-nav-btn.active {
  background: linear-gradient(135deg, rgba(61, 138, 122, 0.2) 0%, rgba(30, 64, 175, 0.2) 50%, rgba(67, 56, 202, 0.2) 100%);
  border: 1px solid rgba(61, 138, 122, 0.3);
  color: #fff;
  box-shadow: 0 0 16px rgba(61, 138, 122, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rerun-nav__controls .mxd-header-nav-btn.active:hover {
  background: linear-gradient(135deg, rgba(61, 138, 122, 0.25) 0%, rgba(30, 64, 175, 0.25) 50%, rgba(67, 56, 202, 0.25) 100%);
  border-color: rgba(61, 138, 122, 0.4);
  box-shadow: 0 0 20px rgba(61, 138, 122, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 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);
  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;
}

@media screen and (max-width: 768px) {
  .rerun-nav__controls .btn-mobile-icon .btn-caption {
    display: none;
  }
  
  .rerun-nav__controls .btn-mobile-icon {
    padding: 0 0.5rem;
    min-width: 2.5rem;
  }
  
  .rerun-nav__controls .button.button-primary.btn-mobile-icon {
    padding: 0 0.5rem;
    min-width: 2.5rem;
  }
}

.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: linear-gradient(135deg, #5eead4 0%, #3b82f6 50%, #6366f1 100%);
  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: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  display: inline-block;
}

.banner a:hover {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 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-300);
    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: 3rem 0 0;
}

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

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

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  word-spacing: 0.03em;
  white-space: balance;
  line-height: 1.1;
  text-align: center;
  animation: fade-up 0.3s 0.3s ease-out both;
}

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

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

.hero h1 + p {
  max-width: 38rem;
  text-align: center;
  margin-bottom: 1.7rem;
  font-weight: 400;
  animation: fade-up 0.3s 0.35s ease-out both;
}

@media screen and (max-width: 700px) {
  .hero h1 + p {
    text-align: left;
    font-size: 1rem;
  }
}

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

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

.hero .open-source {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  animation: fade-up 0.3s 0.45s ease-out both;
  text-decoration: none;
  color: inherit;
}

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

.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;
}

.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(112, 242, 183, 0.1);
  border: 1px solid rgba(112, 242, 183, 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 {
  margin-top: 10rem;
}

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

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

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

.data-stack .block {
  display: grid;
  grid-template-columns: 2fr 5fr;
  gap: 3rem;
  align-items: start;
}

.data-stack .block.reverse {
  grid-template-columns: 5fr 2fr;
}

.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 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .data-stack .block.reverse {
    grid-template-columns: 1fr;
  }
  .data-stack .block.reverse .svg-column,
  .data-stack .block.reverse .content-column {
    order: 0;
  }
}

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

@media screen and (max-width: 700px) {
  .data-stack .svg-column {
    width: 33%;
  }
}

.data-stack .stack-wrapper {
  position: relative;
  display: block;
  width: 99%;
}

.data-stack .stack-wrapper path {
  fill: #111;
  stroke: #fff;
  stroke-width: 1;
}

.data-stack .stack-wrapper .stack-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 99%;
  pointer-events: none;
}

.data-stack .stack-wrapper .stack-video video {
  width: 100%;
  position: relative;
  top: -20px;
}

.data-stack .content-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.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: 34px 1rem;
  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 */
.rerun-footer {
  padding: 4rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rerun-footer__container {
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.rerun-footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.rerun-footer__section h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.rerun-footer__section a {
  display: block;
  color: var(--body-text-color);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.rerun-footer__section a:hover {
  color: var(--color-link);
}

.rerun-footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--body-text-color);
  font-size: 0.875rem;
}

/* OSS/Cloud Sections */
.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: 4rem;
}

@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 {
  display: block;
  border-radius: 4px;
  width: 100%;
  height: auto;
}

.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);
  }
}

/* Footer */
.rerun-footer {
  padding: 3rem 0;
  text-align: center;
  color: #444;
  font-size: 11px;
  margin-top: 14rem;
}

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

.rerun-footer .icons {
  margin-bottom: 2rem;
}

.rerun-footer a {
  color: inherit;
  text-decoration: none;
}

.rerun-footer .links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  font-size: 17px;
}

.rerun-footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.rerun-footer__section h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.rerun-footer__section a {
  display: block;
  color: var(--body-text-color);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.rerun-footer__section a:hover {
  color: var(--color-link);
}

.rerun-footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--body-text-color);
  font-size: 0.875rem;
}

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

/* 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: 10rem;
}

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;
}

/* 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: 900px;
  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 {
  margin-top: 1rem;
  padding: 1.5rem 0;
}

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

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

.blog-article header {
  margin-bottom: 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;
}

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

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

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

.blog-article .meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.blog-article .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 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;
}

/* 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;
}

.docs-nav .nav-section-items {
  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;
}

/* Nav group: title row with chevron + link, then collapsible children */
.docs-nav .nav-group-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.docs-nav .nav-group-toggle {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--body-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-200);
  transition: background 0.15s ease, color 0.15s ease;
}

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

.docs-nav .nav-group-toggle .nav-chevron {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.docs-nav .nav-group.collapsed .nav-group-toggle .nav-chevron {
  transform: rotate(-45deg);
}

.docs-nav .nav-group-title {
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

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

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

.docs-nav .nav-group-item {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
}

.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;
  padding-left: 1.75rem;
  list-style-type: disc;
}

.docs-body ol {
  list-style-type: decimal;
}

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

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

.docs-body 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;
}

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

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

@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-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-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;
}

.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-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.demo-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-200);
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.demo-card:hover .demo-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.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: #8ff5c7;
  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;
  }
}
