:root {
  color-scheme: dark;
  --bwd-bg: #07001a;
  --bwd-surface: #0d0526;
  --bwd-surface-2: #130832;
  --bwd-purple: #5f2aff;
  --bwd-purple-light: #7b4fff;
  --bwd-purple-dim: rgba(95, 42, 255, 0.18);
  --bwd-text: #f0ebf8;
  --bwd-text-muted: #abb4bc;
  --bwd-border: rgba(95, 42, 255, 0.25);
  --bwd-radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #07001a;
}

/* Download page — match card radius to pricing summary cards */
[data-route="/download"] .wrapper-bg---download {
  border-radius: 20px;
}

.reminder-card {
  border-radius: 20px;
}

/* Download page — hero subtitle + divider */
[data-route="/download"] .dl-hero-subtitle,
[data-route="/pricing"] .dl-hero-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
  margin: 16px auto 0;
}

[data-route="/download"] .dl-hero-subtitle strong,
[data-route="/pricing"] .dl-hero-subtitle strong {
  color: #fff;
  font-weight: 700;
}

.dl-hero-divider {
  width: 48px;
  height: 3px;
  background: var(--bwd-purple);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Download page — pricing summary cards */
[data-route="/download"] .dl-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 16px;
}

[data-route="/download"] .dl-plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
}

[data-route="/download"] .dl-plan-card--pro {
  border-color: var(--bwd-purple);
}

[data-route="/download"] .dl-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

[data-route="/download"] .dl-plan-tier {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

[data-route="/download"] .dl-plan-card--pro .dl-plan-tier {
  font-size: 20px;
  color: var(--bwd-purple);
}

[data-route="/download"] .dl-plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

[data-route="/download"] .dl-plan-per {
  font-size: 15px;
  font-weight: 400;
}

[data-route="/download"] .dl-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-route="/download"] .dl-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

[data-route="/download"] .dl-plan-features li img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

[data-route="/download"] .dl-plans-footnote {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  margin-bottom: 24px;
}

[data-route="/download"] .dl-plans-footnote a {
  color: var(--bwd-purple);
  text-decoration: none;
}

[data-route="/download"] .dl-plans-footnote a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  [data-route="/download"] .dl-plans {
    grid-template-columns: 1fr;
  }
}

/* Team photo grid */
.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}
.team-photo-item {
  text-align: center;
}
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.team-photo-name {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #999;
}
.team-photo-role {
  font-size: 12px;
  color: #777;
}

#root {
  min-height: 100vh;
}

.rich-text-block figcaption {
  margin-bottom: 40px;
}

.content-narrow {
  padding-bottom: 48px;
}

.link-post-thumbnail:hover {
  border-color: var(--dark-gray) !important;
}

.block-post {
  transition: box-shadow 0.3s ease;
}

.block-post:hover {
  box-shadow: 0 0 24px 4px rgba(95, 42, 255, 0.45);
}

.collection-list-wrapper-faq {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.answer-wrapper {
  overflow: visible !important;
  height: auto !important;
  display: block !important;
}

.faq-heading,
.collection-item-faq,
.collection-item-faq * {
  cursor: default;
}

/* Mobile nav: Webflow's [data-nav-menu-open] provides display:block !important
   which overrides the collapse=medium display:none. But its generic rule also
   sets background:#c8c8c8 and text-align:center. Override those to keep the
   dark-purple gradient already defined for .nav-menu in devswarm-webflow.css. */
@media screen and (max-width: 991px) {
  .w-nav .nav-menu.w-nav-menu[data-nav-menu-open] {
    display: flex !important;
    flex-direction: column;
    background-color: var(--dark-purple);
    background-image: linear-gradient(
      130deg,
      var(--dark-purple),
      var(--medium-purple)
    );
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    text-align: left;
  }
}

/* Eliminate white flash on Vimeo iframe initial paint. The cross-origin
   iframe document renders its own white canvas before Vimeo's HTML loads.
   color-scheme alone doesn't catch it (Vimeo's document sets its own), so we
   hide the iframe until its load event fires — the wrapper's dark background
   shows through in the meantime. marketing-runtime.js adds the `vimeo-loaded`
   class on each iframe's load event (with a fallback timer). */
iframe[src*="player.vimeo.com"] {
  color-scheme: dark;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

iframe[src*="player.vimeo.com"].vimeo-loaded {
  opacity: 1;
}

/* Vimeo hero parity: force dark pillarbox area/background layers. */
.video-wrapper-block,
.video-wrapper-block [id^="hero-video"],
.video-wrapper-block iframe {
  background-color: #000000;
}

/* The hero video file has 5% black pillarbox bars baked into each side
   (16:10 content on a 16:9 canvas). The pages size the box to 16:10 and
   oversize the player horizontally to crop the bars — these rules clip the
   overhang on both the welcome-video div and the homepage wrapper (Webflow
   sets overflow:visible on .homepage at min-width:1920px). */
/* Webflow fixes the homepage hero video container's height per breakpoint
   (452/410/330/224px), all sized for the old 16:9 box — they clip the
   bottom of the taller 16:10 box. Let it follow the video height. */
.content-container.video {
  height: auto;
}

.video-wrapper-block [data-video-id="hero-video"],
.video-wrapper-block.homepage {
  overflow: hidden;
}

.video-wrapper-block [data-video-id="hero-video"] iframe {
  max-width: none;
}

/* Pricing page parity: keep the three-card grid centered like production. */
[data-route="/pricing"] .pricing-section {
  width: 95%;
  max-width: 1080px;
  display: flex;
  justify-content: center;
  margin-left: auto !important;
  margin-right: auto !important;
}

[data-route="/pricing"] .pricing-grid {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

[data-route="/pricing"] .options-banner.pricing {
  width: calc(100% - 48px) !important;
  margin-left: 24px !important;
  margin-right: 24px !important;
}

[data-route="/pricing"] .pricing-banner-card .button {
  min-width: 180px;
}

@media screen and (max-width: 991px) {
  [data-route="/pricing"] .options-banner.pricing {
    width: 75% !important;
  }
}

@media screen and (max-width: 767px) {
  [data-route="/pricing"] .options-banner.pricing {
    width: 90% !important;
  }
}

@media screen and (max-width: 479px) {
  [data-route="/pricing"] .options-banner.pricing {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Download page parity: keep both OS cards centered like production. */
[data-route="/download"] .section---download.download {
  width: 100%;
  display: flex;
  justify-content: center;
}

[data-route="/download"] .download-grid {
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

/* Footer: second group heading stacked in the same column (e.g. Community under Social). */
.subtitle-footer.stacked {
  margin-top: 24px;
}

/* Student page: single centered product card below the hero. */
[data-route="/student"] .pricing-section.student {
  width: 95%;
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex;
  justify-content: center;
  padding-top: 3em;
  padding-bottom: 5em;
}

[data-route="/student"] .pricing-grid.student {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

[data-route="/student"] .wrapper-bg.student {
  max-width: 560px;
}

/* Legal pages: extra breathing room below the nav. */
[data-route="/privacy-policy"] .section-main,
[data-route="/terms-of-service"] .section-main {
  padding-top: 4em;
}

@media screen and (min-width: 992px) {
  [data-route="/privacy-policy"] .section-main,
  [data-route="/terms-of-service"] .section-main {
    padding-top: 7em;
  }
}

/* Blog post social-share links: center horizontally. */
.social-share-block {
  justify-content: center;
}

/* Supported Agents page: agent card grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid #332e45;
  border-radius: 16px;
  background: rgba(14, 12, 22, 0.88);
}

.agent-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}

.agent-card-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
  font-weight: 700;
  color: #cbb6ff;
}

.agent-card-name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #f4f2fb;
}

.agent-card-description {
  margin: 0;
  font-size: 0.88rem;
  color: #d2cbdf;
  line-height: 1.45;
}

/* Changelog page styles live in src/pages/changelog/[...page].astro
   as a scoped <style> block so markup + CSS always ship and reload in
   lockstep (avoids HTML/static-CSS cache mismatches). */

/* Features page: normalize radii to 20px */
.multiagent-card,
.features-image.stroke-purple {
  border-radius: 20px;
}

/* Blog listing: normalize card and thumbnail radii */
.block-post {
  border-radius: 20px;
}

.image-post-thumbnail {
  border-radius: 12px;
}

/* Features page videos: blend pillarbox with section dark-purple background */
.vimeo-features,
.vimeo-features.w-embed,
.vimeo-features.w-iframe,
.vimeo-features > div,
.vimeo-features iframe {
  background-color: #200b5f;
}

.vimeo-features {
  overflow: hidden;
  border-radius: 4px;
}

.vimeo-features iframe {
  transform: scale(1.07);
  transform-origin: center center;
}

/* Homepage video tabs: self-hosted native <video>. Dark fallback behind the
   poster covers any letterbox edge; no Vimeo chrome to crop, so the old
   scale() hacks are gone — object-fit:cover (set on the element) fills the box. */
.feature-tab-image,
.feature-tab-image.w-embed,
.feature-tab-image.w-iframe,
.feature-tab-image > div,
.feature-tab-image video {
  background-color: #000000;
}

.feature-tab-image {
  border-radius: 4px;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  aspect-ratio: unset;
  height: auto;
}

.feature-tab-image > div {
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

/* object-fit: cover is set inline on the <video> in SelfHostedVideo.astro so the
   component is self-contained; no duplicate rule needed here. */

.tabs-content.w-tab-content,
.tabs-content {
  border-radius: 4px;
  overflow: hidden;
  background-color: transparent;
  position: relative;
}

.w-tab-pane {
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

/* Homepage: HiVE section image — normalize to 20px panel radius */
.built-for-hive-image {
  border-radius: 20px;
}

/* Company page: override leadership image to match live site */
.leadership-image {
  background-image: url(/images/698fcbb01708c44e37bfc0fe_company-leadership.jpg) !important;
  border-radius: 20px;
}

.guarantee-card {
  border-radius: 20px;
}

.value-block {
  border-radius: 20px 20px 4px 4px;
}

@media screen and (max-width: 767px) {
  .agent-grid {
    grid-template-columns: 1fr;
  }
}

/* Security page: scale down section H2s — these are informational labels, not marketing headlines */
[data-route="/security"] .heading-2a {
  font-size: 36px;
}

[data-route="/security"] .heading-4 {
  font-weight: 400;
}

/* Built with DevSwarm: prevent subheading from wrapping too early */
[data-route="/built-with-devswarm"] .subheading-hero {
  width: 100%;
  max-width: 800px;
}

/* Get Featured: prevent subheading from wrapping too early */
[data-route="/get-featured"] .subheading-hero {
  width: 100%;
  max-width: 700px;
}

/* Get Featured + Contact: reduce hero top padding */
[data-route="/get-featured"] .section-hero,
[data-route="/contact-us"] .section-hero {
  padding-top: 64px;
}

/* The hero glow image (hero-take-5.avif) reads as a funky band that gets cut
   off behind the heading at this scale. Drop it site-wide so each hero flows
   seamlessly into the rest of the page. */
.section-hero.with-background {
  background-image: none;
}

/* Features is the exception: keep an ambient glow, but large and centered
   behind the demo video, matching the homepage hero, instead of a small
   band behind the heading. */
[data-route="/features"] .section-hero.with-background {
  background-image: url(/images/6903da33d8cc01d0d7a20c9f_hero-take-5.avif);
  background-position: 50% 100%;
  background-size: contain;
}

/* Security page: reduced section padding */
[data-route="/security"] .section-main {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Security page: wider list items */
[data-route="/security"] .features-content {
  width: 100% !important;
}

[data-route="/security"] .features-list-block {
  width: 100% !important;
  max-width: 800px !important;
}

/* Security page: smaller, centered card titles */
[data-route="/security"] .multiagent-card .heading-3 {
  font-size: 32px;
  text-align: center;
}

[data-route="/security"] .multiagent-card .text-card-body {
  text-align: center;
}

/* ============================================================
   Homepage hex grid canvas (replaces static AVIF hero bg)
   ============================================================ */

.section-hero.homepage {
  position: relative;
}

.section-hero.homepage.hex-grid-active {
  background-image: none !important;
}

.section-hero.homepage.hex-grid-hybrid #hex-grid-canvas {
  background: transparent;
}

#hex-grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}

.section-hero.homepage > .w-layout-blockcontainer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #hex-grid-canvas {
    display: none;
  }
}

/* ============================================================
   Homepage ambient particles
   ============================================================ */

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  #particle-canvas {
    display: none;
  }
}

/* ============================================================
   Homepage scroll-reveal animations
   ============================================================ */

/* Base: fade up from 30px */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays via data-delay attribute */
.scroll-reveal[data-delay="1"],
.scroll-reveal-left[data-delay="1"],
.scroll-reveal-right[data-delay="1"] {
  transition-delay: 0.1s;
}

.scroll-reveal[data-delay="2"],
.scroll-reveal-left[data-delay="2"],
.scroll-reveal-right[data-delay="2"] {
  transition-delay: 0.2s;
}

.scroll-reveal[data-delay="3"],
.scroll-reveal-left[data-delay="3"],
.scroll-reveal-right[data-delay="3"] {
  transition-delay: 0.3s;
}

/* ── CTA glow pulse ──────────────────────────────────────────── */

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
      0 0 40px rgba(139, 92, 246, 0.2);
  }
}

.banner-section .block-banner.revealed .download-button {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ============================================================
   Hero bracket entrance animation
   Brackets start at center (touching), slide apart while headline fades in.
   Gated on .hero-anim class added by sync inline script.
   ============================================================ */

/* Initial hidden states */
.hero-anim .chevron-left,
.hero-anim .chevron-right {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-anim .chevron-left {
  transform: translateX(var(--bracket-offset-left, 40px)) scale(0.9);
}

.hero-anim .chevron-right {
  transform: translateX(var(--bracket-offset-right, -40px)) scale(0.9);
}

.hero-anim #homepage-headline {
  opacity: 0;
  transition: opacity 0.5s ease-out 0.1s;
}

/* Revealed state */
.hero-anim .chevron-left.hero-revealed,
.hero-anim .chevron-right.hero-revealed {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-anim #homepage-headline.hero-revealed {
  opacity: 1;
}

/* ── Homepage agent logo marquee ─────────────────────────────── */

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

.block-clients {
  overflow: hidden;
}

.clients.scrolling {
  animation: marquee-scroll 20s linear infinite;
}

/* ── Reduced motion: disable all scroll animations ───────────── */

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .banner-section .block-banner.revealed .download-button {
    animation: none;
  }

  .clients.scrolling {
    animation: none;
  }

  /* Hero brackets: no animation */
  .hero-anim .chevron-left,
  .hero-anim .chevron-right,
  .hero-anim #homepage-headline {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Hive promo banner (shared: built-with-devswarm + homepage)
   ============================================================ */

.bwd-hive-banner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.bwd-hive-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: #07001a;
  border: 1px solid var(--bwd-border);
  border-radius: 20px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 48px 0 rgba(95, 42, 255, 0.18),
    0 0 120px 0 rgba(95, 42, 255, 0.08);
}

.bwd-hive-bg-graphic {
  position: absolute;
  width: 986px;
  height: 616px;
  bottom: -61px;
  left: calc(50% + 261px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.bwd-hive-bg-graphic img {
  width: 100%;
  height: 100%;
  display: block;
}

.bwd-hive-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bwd-hive-left .heading-3,
.bwd-hive-left .text-body-medium {
  margin-bottom: 0;
}

.bwd-hive-right {
  position: relative;
  z-index: 1;
}

.bwd-hive-card {
  background: var(--bwd-surface);
  border: 1px solid var(--bwd-border);
  border-radius: 12px;
  overflow: hidden;
}

.bwd-hive-card-screen {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #130832 0%, #1a0850 50%, #0d0526 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.bwd-hive-ui {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bwd-hive-ui-row {
  display: flex;
  gap: 8px;
}

.bwd-hive-ui-block {
  background: rgba(95, 42, 255, 0.18);
  border: 1px solid rgba(95, 42, 255, 0.25);
  border-radius: 6px;
  flex-shrink: 0;
}

.bwd-hive-ui-block.header {
  height: 28px;
  flex: 1;
}
.bwd-hive-ui-block.sidebar {
  width: 28%;
  height: 120px;
}
.bwd-hive-ui-block.main {
  flex: 1;
  height: 120px;
}
.bwd-hive-ui-block.stat {
  flex: 1;
  height: 52px;
}
.bwd-hive-ui-block.wide {
  flex: 2;
  height: 36px;
}
.bwd-hive-ui-block.narrow {
  flex: 1;
  height: 36px;
}

.bwd-hive-ui-accent {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--bwd-purple), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.bwd-hive-card-footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bwd-hive-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bwd-hive-featured-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bwd-purple-light);
}

.bwd-hive-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bwd-text);
}

.bwd-hive-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bwd-purple-dim);
  border: 1px solid var(--bwd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bwd-purple-light);
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* The hive card is an anchor to /built-with-devswarm/ — give it link affordances. */
a.bwd-hive-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

a.bwd-hive-card:hover,
a.bwd-hive-card:focus-visible {
  border-color: var(--bwd-purple);
  box-shadow: 0 14px 44px rgba(95, 42, 255, 0.28);
}

a.bwd-hive-card:focus-visible {
  outline: 2px solid var(--bwd-purple-light);
  outline-offset: 2px;
}

a.bwd-hive-card:hover .bwd-hive-card-arrow {
  background: var(--bwd-purple);
  color: #fff;
}

/* Real featured-project covers, stacked over the skeleton mockup once the
   projects feed resolves. They crossfade as the showcase rotates. */
.bwd-hive-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 6s ease;
}

.bwd-hive-cover.is-active {
  opacity: 1;
  /* Slow Ken Burns drift while a cover is showing. */
  transform: scale(1.06);
}

.bwd-hive-card.has-project .bwd-hive-ui,
.bwd-hive-card.has-project .bwd-hive-ui-accent {
  display: none;
}

/* Keep real (variable-length) titles/bylines to a single tidy line. */
.bwd-hive-card.has-project .bwd-hive-card-meta {
  flex: 1;
  min-width: 0;
}

.bwd-hive-card.has-project .bwd-hive-card-name,
.bwd-hive-card.has-project .bwd-hive-featured-badge {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vignette for depth + legibility behind the position dots. */
.bwd-hive-card.has-project .bwd-hive-card-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 0, 26, 0) 55%,
    rgba(7, 0, 26, 0.55) 100%
  );
}

/* Position dots: indicative only (the card is a link), bottom-left. */
.bwd-hive-dots {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.bwd-hive-dot-ind {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.35s ease, background-color 0.35s ease;
}

.bwd-hive-dot-ind.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--bwd-purple-light);
}

@media (prefers-reduced-motion: reduce) {
  .bwd-hive-cover {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .bwd-hive-cover.is-active {
    transform: none;
  }
}

.bwd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bwd-purple);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94em;
  padding: 0.65em 1.4em;
  border: 1px solid var(--bwd-purple);
  border-radius: 50em;
  white-space: nowrap;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  box-shadow: inset 0 0 transparent, inset 0 0 transparent,
    0 10px 10px -5px rgba(0, 0, 0, 0.05);
}

.bwd-btn-primary:hover {
  box-shadow: inset -15px 13px 30px 0 #2c1080, inset 20px -55px 30px 0 #5f2aff,
    0 10px 10px -5px rgba(0, 0, 0, 0.05);
}

/* ── Case Study — purple em accent words ── */
em.cs-accent {
  font-style: normal !important;
  color: #5f2aff !important;
  -webkit-text-fill-color: #5f2aff !important;
}

@media (max-width: 860px) {
  .bwd-hive-banner {
    padding: 0 24px;
  }

  .bwd-hive-banner-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px;
  }

  .bwd-hive-right {
    max-width: 100%;
  }

  .bwd-hive-bg-graphic {
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
  }
}

/* ============================================================
   Blog listing — Magazine layout
   ============================================================ */

[data-route="/blog"] .section-secondary.blog-page {
  padding-top: 24px;
}

[data-route="/blog"] .blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Hero card ── */

.blog-hero {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s;
}

.blog-hero:hover {
  box-shadow: 0 0 40px rgba(95, 42, 255, 0.25);
}

.blog-hero-image {
  width: 100%;
  height: 420px;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 0, 26, 0.95) 0%,
    rgba(7, 0, 26, 0.6) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.blog-hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-hero-overlay h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.blog-hero-desc {
  font-size: 1.05rem;
  color: #c0b8d8;
  max-width: 700px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.blog-hero-meta {
  display: flex;
  gap: 20px;
  color: #9a8fc2;
  font-size: 0.85rem;
}

/* ── Tag pills (shared) ── */

.blog-tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

/* ── Card grid ── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ── */

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(95, 42, 255, 0.18);
  border-color: rgba(95, 42, 255, 0.4);
}

.blog-card-image {
  height: 180px;
  flex-shrink: 0;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card-desc {
  font-size: 0.88rem;
  color: #a099b8;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin: 0;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: #7a7194;
}

/* ── Blog responsive ── */

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-image {
    height: 260px;
  }

  .blog-hero-overlay {
    padding: 24px;
  }

  .blog-hero-overlay h2 {
    font-size: 1.4rem;
  }
}

/* ============================================================
   Scrollbar styling — dark theme, visible only on hover
   ============================================================ */

html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.2s ease;
}

html:hover {
  scrollbar-color: #3a1f5c #07001a;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #07001a;
}

html::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

html:hover::-webkit-scrollbar-thumb {
  background-color: #3a1f5c;
}

/* ============================================================
   Footer composition
   All selectors scoped under .section-footer so generic Webflow
   class names (.div-block-36, .form-block, .container-28) used
   elsewhere on the site are untouched. Webflow base CSS is
   read-only; every fix lives here.

   Layout, top to bottom:
   - a newsletter band (copy left, signup right) divided off;
   - the brand + four link columns;
   - a slim legal bar, divided off, left-aligned.
   Everything shares one 1200px content column so all edges and
   both dividers line up. The newsletter node lives at the top of
   Footer.astro as .footer-newsletter-band.
   ============================================================ */

/* Shared 1200px content column for every footer row. */
.section-footer .footer-newsletter-band,
.section-footer .div-block-36,
.section-footer .footer-content {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

/* --- Newsletter band ------------------------------------------ */
/* Copy on the left, signup on the right; wraps to stacked on
   narrow widths. Hairline divider sets it off from the columns. */
.section-footer .footer-newsletter-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-footer .footer-newsletter-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.section-footer .footer-newsletter-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.section-footer .footer-newsletter-sub {
  color: var(--paragraphs-light, #abb4bc);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 6px;
  max-width: 48ch;
  text-wrap: pretty;
}

/* Signup form: a fixed-ish module on the right of the band. */
.section-footer .form-block {
  flex: 0 1 540px;
  width: 100%;
  max-width: 540px;
  margin: 0;
  padding-top: 0;
}

.section-footer .footer-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

/* Input + button row; wraps the button below if it ever gets too
   tight so the placeholder never clips. */
.section-footer .div-block-15 {
  flex-wrap: wrap;
}

/* Pill the email input to match the pill Subscribe button, so the
   two read as one control rather than two mismatched shapes. */
.section-footer .text-field.footer {
  border-radius: 999px;
  padding-inline: 1.25em;
  flex: 1 1 180px;
  min-width: 180px;
}

/* --- Link columns --------------------------------------------- */
/* Webflow's tablet link grid uses a zero column-gap, so columns
   can touch when space is tight. Guarantee separation. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .section-footer .grid-footer {
    column-gap: 24px;
  }
}

/* --- Legal bar ------------------------------------------------- */
/* Hairline divider, then disclaimer + copyright left-aligned on
   the shared content axis. */
.section-footer .footer-content {
  align-items: flex-start;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-footer .container-28 {
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.section-footer .text-block-16,
.section-footer .text-footer-down {
  text-align: left;
}

/* Free the copyright line from the Webflow width:150px cage so the
   full trademark sentence reads naturally; the redundant © image
   was removed in Footer.astro (the text already carries a © glyph). */
.section-footer .block-footer-down {
  width: auto;
  max-width: none;
  margin-inline: 0;
  margin-bottom: 0;
}

/* Balanced bottom padding (replaces the original ~112px void). */
.section-footer {
  padding-bottom: 3.5em;
}

/* Accessible-only label: the band shows a visible title, but the
   input keeps its programmatic label for screen readers. */
.section-footer .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;
}

/* ============================================================
   For Teams (/devswarm-for-teams/) + homepage team sections
   ============================================================ */

/* Homepage: team benefit checklist */
.teams-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  margin-top: 40px;
}

.teams-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
}

.teams-checklist-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}

.teams-checklist-title {
  font-weight: 700;
  color: var(--header);
  margin: 0 0 4px;
}

.teams-checklist-sub {
  margin: 0;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .teams-checklist {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Teams page: hero CTA wrapper */
.ft-hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Teams page: workflow steps narrow container */
.ft-workflow-container {
  max-width: 900px;
}

/* Shared: section subheading below a heading-2a */
.ft-section-subheading {
  font-size: 18px;
  color: var(--paragraphs-light);
  max-width: 860px;
  margin: 14px auto 0;
  line-height: 1.65;
  text-align: center;
}

/* Teams page: before/after compare */
.ft-compare-section {
  padding-top: 0;
}

.ft-compare-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--header);
  line-height: 1.4;
  text-align: left;
  margin: 0 0 40px;
}

.ft-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}

.ft-compare-card {
  padding: 0 40px;
}

.ft-compare-card--without {
  padding-left: 0;
  border-right: 1px solid var(--primary);
}

.ft-compare-card--with {
  padding-right: 0;
}

.ft-compare-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--paragraphs-light);
}

.ft-compare-card--with .ft-compare-label {
  color: var(--primary);
}

.ft-compare-card-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--header);
  line-height: 1.4;
  margin: 0 0 16px;
}

.ft-compare-body {
  font-size: 18px;
  color: var(--paragraphs-light);
  line-height: 1.7;
  margin: 0;
}

.ft-compare-image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 32px auto 0;
}

.ft-compare-card--with .ft-compare-image {
  margin-top: 8px;
}

/* Teams page: problem section two-column layout */
.ft-problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.ft-problem-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.ft-problem-header .heading-3 {
  margin: 0;
  color: var(--header);
}

/* Teams page: problem block */
.ft-problem-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 36px;
  margin-top: 0;
}

.ft-bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ft-bullet-list .icon-list {
  margin-top: -1px;
}

/* Teams page: role cards (Section C) */
.ft-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.ft-role-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 30px;
}

.ft-role-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 0 0 8px;
}

.ft-role-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--header);
  margin: 0 0 8px;
}

.ft-role-desc {
  font-size: 15px;
  color: var(--paragraphs-light);
  margin: 0 0 18px;
  line-height: 1.55;
}

.ft-role-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-role-benefits li {
  font-size: 15px;
  color: var(--paragraphs-light);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ft-role-benefits li .icon-list {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Teams page: comparison grid (Section D) */
.ft-comp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  padding: 16px 24px 16px 16px;
}

.ft-comp-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.4fr;
  grid-template-rows: repeat(6, auto);
  position: relative;
  min-width: 700px;
}

.ft-comp-ds-bg {
  position: absolute;
  grid-column: 4 / 5;
  grid-row: 1 / 7;
  inset: 0;
  box-shadow: 0 0 16px 6px rgba(95, 42, 255, 0.55);
  border: 1px solid rgba(95, 42, 255, 0.4);
  z-index: 0;
  pointer-events: none;
}

.ft-comp-cell {
  padding: 24px 16px;
  font-size: 15px;
  color: var(--paragraphs-light);
  line-height: 1.5;
  border-bottom: 1px solid #1f1e20;
  background: transparent;
  position: relative;
  z-index: 1;
}

.ft-comp-cell.ft-comp-header {
  font-size: 16px;
  font-weight: 800;
  color: var(--header);
  border-bottom: 1px solid #4c4b4f;
  text-transform: none;
  letter-spacing: 0;
}

.ft-comp-cell.ft-comp-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--header);
  border-right: 1px solid #1f1e20;
}

.ft-comp-cell.ft-comp-ds {
  color: var(--header);
  font-weight: 500;
}

.ft-comp-cell.ft-comp-ds.ft-comp-header {
  font-weight: 800;
}

.ft-comp-cell.ft-comp-last {
  border-bottom: none;
}

/* Teams page: integrations section (videos) */
.ft-integration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 56px;
}

.ft-integration-row--reverse .ft-integration-media {
  order: 2;
}

.ft-integration-media {
  width: 100%;
}

.ft-integration-content .tag {
  margin-bottom: 16px;
  display: inline-block;
  width: auto;
  align-self: flex-start;
}

.ft-integration-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--header);
  line-height: 1.25;
  margin: 0 0 16px;
}

.ft-integration-body {
  font-size: 18px;
  color: var(--paragraphs-light);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .ft-integration-row,
  .ft-integration-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ft-integration-row--reverse .ft-integration-media {
    order: 0;
  }
}

/* Teams page: workflow steps (Section E) */
.ft-workflow {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.ft-workflow-step {
  display: flex;
  gap: 20px;
  padding: 0 0 28px;
  align-items: flex-start;
  position: relative;
}

.ft-workflow-step:last-child {
  padding-bottom: 0;
}

.ft-workflow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(95, 42, 255, 0.1);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--header);
  flex-shrink: 0;
  margin-top: -4px;
  position: relative;
  z-index: 1;
}

.ft-workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 8px;
  left: 18px;
  transform: translateX(-50%);
  width: 1px;
  background: var(--primary);
}

.ft-workflow-content {
  flex: 1;
}

.ft-workflow-content strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--header);
  margin-bottom: 4px;
}

.ft-workflow-content span {
  font-size: 15px;
  color: var(--paragraphs-light);
  line-height: 1.55;
}

/* Workflow chain label */
.ft-workflow-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(95, 42, 255, 0.08);
  border: 1px solid var(--bwd-border);
  border-radius: 14px;
}

.ft-chain-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--header);
  background: rgba(95, 42, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.ft-chain-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Teams page: CTA section (Section G) */
.ft-cta-section .content-container {
  width: 100%;
}

.ft-cta-block {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  text-align: center;
  padding: 72px 48px;
  background-image: linear-gradient(#07001a99, #07001a99),
    url(/images/68533f57d5fb75bc87877d3c_slider-background.png);
  background-position: 0 0, 50%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  border-radius: 48px;
  border: 1px solid var(--primary);
  box-shadow: inset 0 0 10px 0 var(--primary);
  margin-top: 16px;
}

.ft-cta-block .tag {
  display: inline-block;
  margin-bottom: 16px;
}

.ft-cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--paragraphs-light);
  opacity: 0.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.ft-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ft-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--paragraphs-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50em;
  transition: border-color 0.2s, color 0.2s;
}

.ft-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--header);
}

@media (max-width: 767px) {
  .ft-role-grid {
    grid-template-columns: 1fr;
  }

  .ft-compare-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ft-compare-card--without {
    border-right: none;
    padding-right: 0;
  }

  .ft-problem-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ft-problem-block {
    padding: 28px 20px;
  }
}

/* ============================================
   Events page — minimal "date leaf" list
   ============================================ */

[data-route="/events"] .events-section {
  padding: 24px 24px 140px;
}

/* Matches .bwd-project-section so /events and /built-with-devswarm share
   the same content width. */
[data-route="/events"] .events-list {
  max-width: 1100px;
  margin: 0 auto;
}

[data-route="/events"] .events-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 88px 0 8px;
  font-family: var(--code-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paragraphs-light);
}

[data-route="/events"] .events-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--white-transparent);
}

[data-route="/events"] .events-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: events-pulse 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes events-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 173, 104, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(14, 173, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 173, 104, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-route="/events"] .events-label-dot {
    animation: none;
  }
}

[data-route="/events"] .event-row {
  display: grid;
  grid-template-columns: 96px 1fr 340px;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--white-transparent);
}

/* Every row keeps the same layout (date on the left, image on the right) so
   the dates stay aligned in a single column and the list is easy to skim. */
[data-route="/events"] .event-row:last-child {
  border-bottom: none;
}

[data-route="/events"] .event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 4px;
  font-family: var(--code-font);
}

[data-route="/events"] .event-date-month {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
}

[data-route="/events"] .event-date-day {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
}

[data-route="/events"] .event-date-year {
  font-size: 15px;
  font-weight: 700;
  color: var(--paragraphs-light);
}

[data-route="/events"] .event-body {
  align-self: center;
}

[data-route="/events"] .event-location {
  margin: 0 0 8px;
  font-family: var(--code-font);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

[data-route="/events"] .event-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

[data-route="/events"] .event-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--paragraphs-light);
}

/* Square image card. */
[data-route="/events"] .event-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

[data-route="/events"] .event-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--white-transparent);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

[data-route="/events"] .event-row:hover .event-media img {
  transform: scale(1.02);
  border-color: var(--primary);
}

[data-route="/events"] .event-row.is-past .event-date-month {
  color: var(--paragraphs-light);
}

[data-route="/events"] .event-row.is-past .event-date-day {
  color: var(--paragraphs-light);
}

[data-route="/events"] .event-row.is-past .event-location {
  color: var(--paragraphs-light);
}

[data-route="/events"] .event-link {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 24px;
  font-family: var(--code-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: 50em;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-route="/events"] .event-link:hover {
  background-color: var(--primary);
  box-shadow: 0 2px 10px 0 #5f2aff;
}

[data-route="/events"] .events-load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

[data-route="/events"] .events-load-more {
  padding: 12px 28px;
  font-family: var(--code-font);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white-transparent);
  border-radius: 50em;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

[data-route="/events"] .events-load-more:hover {
  border-color: var(--primary);
  background-color: rgba(95, 42, 255, 0.12);
}

@media screen and (max-width: 767px) {
  [data-route="/events"] .event-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 36px 0;
  }

  /* Stacked layout: back to a fixed-ratio image above the text. */
  [data-route="/events"] .event-media {
    order: -1;
    min-height: 0;
  }

  [data-route="/events"] .event-media img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  [data-route="/events"] .event-date {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  [data-route="/events"] .event-date-day {
    font-size: 28px;
  }

  [data-route="/events"] .events-label {
    margin-top: 56px;
  }
}

/* ============================================
   Feed loading skeletons (events + projects)
   ============================================ */

.ds-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.ds-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.09),
    transparent
  );
  animation: ds-skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes ds-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-skeleton::after {
    animation: none;
  }
}

/* Events page skeleton mirrors the event-row grid */
[data-route="/events"] .event-skeleton-label {
  width: 160px;
  height: 14px;
  margin: 88px 0 8px;
}

[data-route="/events"] .event-skeleton-row {
  display: grid;
  grid-template-columns: 96px 1fr 340px;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--white-transparent);
}

[data-route="/events"] .event-skeleton-row:last-child {
  border-bottom: none;
}

[data-route="/events"] .event-skeleton-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

[data-route="/events"] .event-skeleton-date-month {
  width: 44px;
  height: 14px;
}

[data-route="/events"] .event-skeleton-date-day {
  width: 56px;
  height: 40px;
}

[data-route="/events"] .event-skeleton-date-year {
  width: 38px;
  height: 12px;
}

[data-route="/events"] .event-skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-route="/events"] .event-skeleton-location {
  width: 140px;
  height: 12px;
}

[data-route="/events"] .event-skeleton-title {
  width: 60%;
  height: 24px;
}

[data-route="/events"] .event-skeleton-line {
  width: 90%;
  height: 14px;
}

[data-route="/events"] .event-skeleton-line.is-short {
  width: 55%;
}

[data-route="/events"] .event-skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

@media screen and (max-width: 767px) {
  [data-route="/events"] .event-skeleton-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  [data-route="/events"] .event-skeleton-date {
    flex-direction: row;
    align-items: center;
  }
}

/* Events page empty / error notice */
[data-route="/events"] .events-notice {
  max-width: 560px;
  margin: 96px auto 64px;
  text-align: center;
}

[data-route="/events"] .events-notice-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

[data-route="/events"] .events-notice-detail {
  margin: 0;
  font-size: 16px;
  line-height: 160%;
  color: var(--paragraphs-light);
}

/* Built with DevSwarm: gallery skeleton tile shapes live in the page's own
   style block (built-with-devswarm.astro); only the shared .ds-skeleton
   shimmer base is defined here. */
