/* ═══════════════════════════════════════════════════════════════
   MAREANA — DEMO VIDEO PAGES
   Uses the live site design system (blogs.html / videos.html /
   video-detail.html): same tokens, same navbar, same footer,
   same blog-style cards.

   Header/footer/nav CSS (skip link, hamburger, mobile drawer, and
   the header/footer responsive overrides) is intentionally NOT in
   this file — the site's common header and footer already carry
   their own styles, and this file only loads on a single product
   demo page (see mareana_product_demo_enqueue_assets()), so it
   only needs to style what's specific to that content.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ─── Brand Core ─── */
  --mareana-primary: #4361ee;
  --mareana-primary-2: #5a1aee;
  --mareana-secondary: #8ea0f5;
  --mareana-cyan: #4cc9f0;

  /* ─── Brand Gradient ─── */
  --bg-gradient: linear-gradient(225deg, var(--mareana-primary) 0%, var(--mareana-secondary) 100%);

  /* ─── Text Gradient ─── */
  --text-gradient: linear-gradient(90deg, var(--mareana-cyan) 0%, var(--mareana-primary) 100%);

  /* ─── Foregrounds ─── */
  --foreground-primary: #1a181b;
  --foreground-secondary: #505050;
  --foreground-white: #ffffff;

  /* ─── Semantic Accents ─── */
  --accent-danger: #f94e9b;
  --accent-success: #42ead4;

  /* ─── Borders ─── */
  --mareana-border: #e7e7e7;
  --mareana-border-strong: rgba(80, 80, 80, 0.2);

  /* ─── Surfaces ─── */
  --surface-black: #1a181b;
  --surface-white: #ffffff;
  --surface-muted: #fafafa;
  --surface-muted-2: #f6f6f6;
  --black: #000000;

  /* ─── Layout ─── */
  --gutter: 80px;          /* section side padding, stepped down per breakpoint */
  --section-y: 100px;      /* section vertical rhythm */
  --nav-clear: 160px;      /* first section clears the floating navbar */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1024px) { :root { --gutter: 40px; --section-y: 72px;  --nav-clear: 140px; } }
@media (max-width: 768px)  { :root { --gutter: 20px; --section-y: 56px;  --nav-clear: 110px; } }
@media (max-width: 480px)  { :root { --gutter: 16px; --section-y: 48px;  --nav-clear: 100px; } }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--foreground-primary);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--foreground-primary); outline-offset: 3px; }

/* ═══════════════════════════════════════════════════
   PILL BUTTON
   ═══════════════════════════════════════════════════ */
.btn-pill {
  border: none;
  border-radius: 100px;
  padding: 8px 8px 8px 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 15px;
  display: inline-flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
}
.btn-text-inner {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.btn-text-main,
.btn-text-hover {
  display: block;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-pill:hover .btn-text-main,
.btn-pill:hover .btn-text-hover { transform: translateY(-100%); }

.btn-pill .arrow-circle {
  width: 44px; height: 44px; border-radius: 50%;
  transition: all 0.3s; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.arrow-inner-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
  transform: translateX(-22px);
}
.arrow-inner-wrapper svg { flex-shrink: 0; }
.btn-pill:hover .arrow-inner-wrapper { transform: translateX(22px); }

.btn-primary {
  background: var(--bg-gradient);
  color: var(--foreground-white);
}
.btn-primary .arrow-circle { background: var(--surface-white); }
.btn-primary .arrow-circle svg path { stroke: var(--foreground-primary); }

/* Light pill — used on the dark CTA bands */
.btn-light-pill {
  background: var(--surface-white);
  color: var(--foreground-primary);
}
.btn-light-pill .arrow-circle { background: var(--bg-gradient); }
.btn-light-pill .arrow-circle svg path { stroke: #fff; }

/* ═══════════════════════════════════════════════════
   SECTION BADGE
   ═══════════════════════════════════════════════════ */
.section-badge {
  border-radius: 100px;
  border: 1px solid var(--mareana-border);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  display: inline-block;
  margin-bottom: 1rem;
  background:
    url("../images/product-demo/badge-bg.svg") center top / 100% auto no-repeat,
    linear-gradient(0deg, #1a181b 0%, #6c6c6c 100%);
}

/* ═══════════════════════════════════════════════════
   VIDEO LIBRARY — hero, toolbar, grids
   ═══════════════════════════════════════════════════ */
.blogs-hero {
  background: var(--surface-muted);
  padding: var(--nav-clear) var(--gutter) 64px;
  text-align: center;
}

.blogs-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.blogs-hero-text {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.blogs-hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 52px; font-weight: 500; line-height: 1.2;
  letter-spacing: -2.4px; color: var(--foreground-primary);
  max-width: 700px; margin: 0;
}
.blogs-hero-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 16px; font-weight: 400; line-height: 2;
  color: var(--foreground-secondary); max-width: none; margin: 0;
}

.blogs-main {
  background: var(--surface-muted);
  padding: 0 var(--gutter) var(--section-y);
}
.blogs-main-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 72px;
}

/* Toolbar */
.blogs-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: -24px;
}
.blogs-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 100px; padding: 8px;
  box-shadow: 7px 82px 49px 0 rgba(0,0,0,0.01), 3px 36px 36px 0 rgba(0,0,0,0.02), 1px 9px 20px 0 rgba(0,0,0,0.02);
}
.blogs-tab {
  font-family: "Poppins", sans-serif;
  font-size: 16px; font-weight: 400;
  color: var(--foreground-primary);
  background: transparent; border: none; border-radius: 100px;
  padding: 12px 20px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s; line-height: 1.3;
}
.blogs-tab:hover { background: var(--surface-muted); }
.blogs-tab.active { background: #1a181b; color: #fff; font-weight: 500; }
.blogs-tab-count {
  font-size: 12px; font-weight: 500; opacity: 0.55;
  margin-left: 8px; font-variant-numeric: tabular-nums;
}

.blogs-search {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 100px; padding: 12px 24px;
  box-shadow: 7px 82px 49px 0 rgba(0,0,0,0.01), 3px 36px 36px 0 rgba(0,0,0,0.02), 1px 9px 20px 0 rgba(0,0,0,0.02);
  backdrop-filter: blur(12px);
  min-width: 260px;
}
.blogs-search-icon { flex-shrink: 0; opacity: 0.5; }
.blogs-search-input {
  border: none; outline: none; background: transparent;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 400;
  color: var(--foreground-secondary); width: 100%;
}
.blogs-search-input::placeholder { color: var(--foreground-secondary); opacity: 0.7; }

.blogs-filter-select-wrap { display: none; position: relative; width: 100%; }
.blogs-filter-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: #fff; border: 1px solid var(--mareana-border);
  border-radius: 100px; padding: 12px 44px 12px 24px;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 400;
  color: var(--foreground-primary); cursor: pointer; outline: none;
}
.blogs-filter-chevron {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); pointer-events: none; opacity: 0.5;
}

/* ─── Featured video ─── */
.video-featured {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--mareana-border);
  border-radius: 20px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  align-items: stretch;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.32s var(--ease-out);
}
.video-featured::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 12px 48px rgba(9, 10, 23, 0.12);
  opacity: 0; transition: opacity 0.32s var(--ease-out);
}
.video-featured:hover::after { opacity: 1; }
.video-featured:hover { transform: translateY(-4px); }
.video-featured:focus-visible { outline: 2px solid var(--foreground-primary); outline-offset: 3px; }
.video-featured-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(180deg, #e1e5ff 0%, #ffffff 67%);
}
.video-featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-featured-body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 28px 32px 28px 20px; gap: 14px;
}
.video-featured-badge {
  display: inline-block;
  background: rgba(67, 97, 238, 0.1);
  color: var(--mareana-primary);
  font-family: "Poppins", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 8px 16px; border-radius: 100px;
}
.video-featured-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.3;
  color: var(--foreground-primary); margin: 0;
}
.video-featured-desc {
  font-family: "Poppins", sans-serif;
  font-size: 16px; line-height: 1.75;
  color: var(--foreground-secondary); margin: 0;
}
.video-watch-btn { margin-top: 8px; }
@media (max-width: 900px) {
  .video-featured { grid-template-columns: 1fr; gap: 0; }
  .video-featured-media { min-height: 220px; }
  .video-featured-body { padding: 20px 8px 24px; }
  .video-featured-title { font-size: 20px; }
}

/* ─── Category block ─── */
.cat-block { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 120px; }
.cat-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cat-head-eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--mareana-primary);
  display: block; margin-bottom: 8px;
}
.cat-head-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px; font-weight: 500; line-height: 1.3;
  letter-spacing: -1.2px; color: var(--foreground-primary);
  margin: 0; max-width: 22ch;
}
.cat-head-desc {
  font-family: "Poppins", sans-serif;
  font-size: 14px; line-height: 1.9;
  color: var(--foreground-secondary); margin: 0; max-width: 52ch;
}
/* Carousel arrows */
.cat-arrows { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cat-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--mareana-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--foreground-primary); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.cat-arrow svg { width: 18px; height: 18px; }
.cat-arrow:hover:not(:disabled) {
  background: #1a181b; color: #fff; border-color: #1a181b;
}
.cat-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ─── Grid ─── */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Category carousel track ─── */
.cat-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 24px 32px;
  margin: -16px -24px -32px;
  scroll-padding-left: 24px;
}
.cat-track::-webkit-scrollbar { display: none; }
@media (pointer: fine) {
  /* Wheel must never be captured by the row — arrows and dragging move it */
  .cat-track { overflow-x: hidden; cursor: grab; }
  .cat-track:active { cursor: grabbing; }
}
/* While dragging: no snap fighting the pointer, no text/image selection */
.cat-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}
.cat-track.is-dragging .blog-card { pointer-events: none; }
.cat-track img { -webkit-user-drag: none; user-drag: none; }
.cat-track > .blog-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

/* ═══════════════════════════════════════════════════
   BLOG-STYLE CARD (used for videos)
   ═══════════════════════════════════════════════════ */
.blog-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--mareana-border);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.32s var(--ease-out);
}
/* The shadow sits on a pseudo-element and only its opacity animates — fading a
   painted layer is smooth, while animating box-shadow repaints the blur every frame. */
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(9, 10, 23, 0.12);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card:hover::after { opacity: 1; }
.blog-card:focus-visible,
.video-card:focus-visible { outline: 2px solid var(--foreground-primary); outline-offset: 3px; }

.blog-card-img-wrap {
  border-radius: 12px;
  border: 1px solid var(--mareana-border);
  overflow: hidden;
  background: linear-gradient(180deg, #e1e5ff 0%, #ffffff 67%);
  aspect-ratio: 16 / 9;
  width: 100%;
  flex-shrink: 0;
}
.blog-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* YouTube's stored thumbnail for this video carries ~13px of black bar on each
   side (the uploaded artwork is not full-bleed 16:9). A 2.5% zoom crops it.
   Delete this block once a true 16:9 thumbnail is uploaded. */
.blog-card-img,
.bd-player-poster,
.bd-rail-thumb img { transform: scale(1.025); }


.blog-card-body {
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px 16px 16px; flex: 1;
}
.blog-card-text { display: flex; flex-direction: column; gap: 6px; }
.blog-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px; font-weight: 500; line-height: 1.5;
  color: var(--foreground-primary); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-desc {
  font-family: "Poppins", sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.85;
  color: var(--foreground-secondary); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-divider { border: none; border-top: 1px solid var(--mareana-border); margin: auto 0 0; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blog-card-posted {
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 400;
  color: var(--foreground-secondary);
}
.blog-card-posted .meta-value { color: var(--foreground-primary); font-weight: 500; font-variant-numeric: tabular-nums; }
.blog-card-readtime {
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 400;
  color: var(--foreground-primary);
  background: var(--surface-muted);
  border: 1px solid var(--mareana-border);
  border-radius: 8px; padding: 4px 12px; white-space: nowrap;
}

/* ─── Video thumbnail treatment ─── */
.video-thumb-wrap { position: relative; }
.video-thumb-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(9, 10, 23, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  z-index: 2;
}
.video-thumb-play svg { width: 14px; height: 16px; margin-left: 4px; }
.blog-card:hover .video-thumb-play {
  background: rgba(9, 10, 23, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-thumb-duration {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(9, 10, 23, 0.75);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2px;
  padding: 4px 8px; border-radius: 8px; z-index: 2;
  font-variant-numeric: tabular-nums;
}
/* Empty state */
.roles-search-empty {
  display: none; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; padding: 56px 20px;
}
.roles-search-empty-illustration { width: 140px; }
.roles-search-empty-title {
  font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 500;
  color: var(--foreground-primary); margin: 8px 0 0;
}
.roles-search-empty-body {
  font-family: "Poppins", sans-serif; font-size: 14px;
  color: var(--foreground-secondary); margin: 0;
}

/* ═══════════════════════════════════════════════════
   SUBSCRIBE / CTA BAND
   ═══════════════════════════════════════════════════ */
.blogs-subscribe { background: var(--surface-muted); padding: 0 var(--gutter) var(--section-y); }
.blogs-subscribe-inner { max-width: 1280px; margin: 0 auto; }
.blogs-subscribe-card {
  background: #000000;
  border-radius: 16px;
  padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; overflow: hidden;
}
.blogs-subscribe-light-ray {
  position: absolute; top: 0; right: 0;
  height: 100%; width: auto;
  pointer-events: none; opacity: 0.55;
}
.blogs-subscribe-left {
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1; max-width: 620px;
}
.blogs-subscribe-title {
  font-family: "Poppins", sans-serif; font-size: 32px; font-weight: 500;
  color: #fff; letter-spacing: -1.28px; margin: 0; line-height: 1.3;
  white-space: nowrap;
}
.blogs-subscribe-desc {
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 400;
  color: rgba(255, 255, 255, 0.65); line-height: 2; margin: 0;
}
.blogs-subscribe-right { position: relative; z-index: 1; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   BOOK A DEMO MODAL (light)
   ═══════════════════════════════════════════════════ */
/* The navbar sits at z-index 9999, so the modal and its backdrop must clear it */
.demo-modal { z-index: 10050; }
.modal-backdrop { z-index: 10040; }
.demo-modal .modal-dialog { max-width: 520px; }
.demo-modal .modal-content {
  position: relative;
  background: #fff;
  border: 1px solid var(--mareana-border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.demo-modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-muted); border: 1px solid var(--mareana-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--foreground-primary); cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.demo-modal-close svg { width: 16px; height: 16px; }
.demo-modal-close:hover { background: #1a181b; border-color: #1a181b; color: #fff; }
.demo-modal-body { padding: 40px; }
.demo-modal-head { margin-bottom: 24px; }
.demo-modal-title {
  font-family: "Poppins", sans-serif; font-size: 24px; font-weight: 500;
  letter-spacing: -1.1px; color: var(--foreground-primary); margin: 0 0 8px;
}
.demo-modal-sub {
  font-family: "Poppins", sans-serif; font-size: 14px; line-height: 1.85;
  color: var(--foreground-secondary); margin: 0;
}
.demo-modal .form-label {
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: var(--foreground-secondary); margin-bottom: 8px;
}
.demo-modal .req { color: #d6336c; margin-left: 2px; }
.demo-modal .form-control {
  background: #fff;
  border: 1px solid var(--mareana-border);
  border-radius: 100px;
  padding: 16px 24px;
  font-family: "Poppins", sans-serif; font-size: 16px;
  color: var(--foreground-primary);
  transition: border-color 0.18s, background 0.18s;
}
.demo-modal .form-control::placeholder { color: var(--foreground-secondary); opacity: 0.55; }
.demo-modal .form-control:focus {
  background: var(--surface-muted);
  border-color: var(--mareana-border);
  box-shadow: none; outline: none;
  color: var(--foreground-primary);
}
.demo-modal .form-control:-webkit-autofill,
.demo-modal .form-control:-webkit-autofill:hover,
.demo-modal .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--foreground-primary);
  caret-color: var(--foreground-primary);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  border: 1px solid var(--mareana-border) !important;
}
.demo-modal-submit { margin-top: 24px; }
.demo-modal-btn {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  background: var(--bg-gradient); color: #fff;
  border: 1px solid transparent; border-radius: 100px;
  padding: 16px 32px;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 500;
  line-height: 1.5; cursor: pointer;
  transition: opacity 0.18s, box-shadow 0.18s;
}
.demo-modal-btn:hover { opacity: 0.92; box-shadow: 0 8px 24px rgba(67, 97, 238, 0.28); }
@media (max-width: 480px) {
  .demo-modal-body { padding: 32px 24px; }
  .demo-modal-title { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════
   LEAD FORM BAND (video detail)
   ═══════════════════════════════════════════════════ */
.lead-band { background: var(--black); color: #fff; padding: var(--section-y) var(--gutter); position: relative; overflow: hidden; }
.lead-band-inner {
  max-width: 1280px; margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px; align-items: start;
}
.lead-light-ray {
  position: absolute; top: 0; right: 0; height: 100%; width: auto;
  pointer-events: none; opacity: 0.45; z-index: 1;
}
.lead-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  background: #0a0a0a;
  font-family: "Poppins", sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  margin-bottom: 20px;
}
/* Border beam — mask-composite ring with a rotating conic sweep */
.eyebrow-beam {
  --beam-width: 1px;
  --beam-duration: 6s;
  --beam-from: #4cc9f0;
  --beam-to: #4361ee;
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: var(--beam-width);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
}
.eyebrow-beam::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 220%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 62%,
              var(--beam-to) 82%, var(--beam-from) 94%, transparent 100%);
  animation: eyebrowBeam var(--beam-duration) linear infinite;
}
@keyframes eyebrowBeam {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-beam::after { animation: none; }
}
.lead-title {
  font-family: "Poppins", sans-serif; font-size: 32px; font-weight: 500;
  line-height: 1.3; letter-spacing: -1.3px; color: #fff; margin: 0; max-width: 16ch;
}
.lead-points { list-style: none; margin: 28px 0 0; padding: 0; }
.lead-points li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-family: "Poppins", sans-serif; font-size: 14px; line-height: 1.8;
  color: rgba(255, 255, 255, 0.65); max-width: 42ch;
}
/* Glass form card */
.lead-form-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 32px;
}
.lead-band .req { color: #ff8fb1; margin-left: 2px; }
.lead-band .form-label {
  font-family: "Poppins", sans-serif;
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.lead-band .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 224, 224, 0.16);
  border-radius: 100px;
  padding: 16px 24px;
  font-family: "Poppins", sans-serif; font-size: 16px;
  color: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lead-band .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.lead-band .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(224, 224, 224, 0.16);
  box-shadow: none;
  outline: none;
  color: #fff;
}
.lead-band .form-control:-webkit-autofill,
.lead-band .form-control:-webkit-autofill:hover,
.lead-band .form-control:-webkit-autofill:focus,
.lead-band .form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #202020 inset;
  border: 1px solid rgba(224, 224, 224, 0.16) !important;
  outline: none !important;
  transition: background-color 9999s ease-out 0s;
}
.lead-submit { margin-top: 32px; }
.lead-btn {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  background: var(--surface-white); color: var(--foreground-primary);
  border: 1px solid var(--surface-white); border-radius: 100px;
  padding: 16px 32px;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 500;
  line-height: 1.5; cursor: pointer;
  transition: background 0.18s;
}
.lead-btn:hover { background: #f1f1f1; }

/* ═══════════════════════════════════════════════════
   VIDEO DETAIL PAGE
   ═══════════════════════════════════════════════════ */
.bd-main { background: #fff; padding: var(--nav-clear) var(--gutter) var(--section-y); }
.bd-container { max-width: 1280px; margin: 0 auto; }
.bd-layout {
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 56px; align-items: stretch;
}
.bd-layout > aside { min-width: 0; }
.bd-column { display: flex; flex-direction: column; gap: 40px; }

/* Breadcrumb */
.bd-crumbs {
  display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.bd-crumb-path {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: "Poppins", sans-serif; font-size: 14px; color: var(--foreground-secondary);
}
.bd-crumb-path a { color: var(--foreground-secondary); text-decoration: none; transition: color 0.15s; }
.bd-crumb-path a:hover { color: var(--foreground-primary); }
.bd-crumb-path [aria-current] { color: var(--foreground-primary); font-weight: 500; }
/* Header */
.bd-header { display: flex; flex-direction: column; gap: 18px; }
.bd-headrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--mareana-border);
}
.bd-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-pill {
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: var(--foreground-secondary);
  background: var(--surface-muted); border: 1px solid var(--mareana-border);
  border-radius: 100px; padding: 8px 16px;
}
.bd-pill--act { color: var(--foreground-primary); font-weight: 500; }
.bd-title {
  font-family: "Poppins", sans-serif; font-size: 28px; font-weight: 500;
  line-height: 1.4; letter-spacing: -1.1px;
  color: var(--foreground-primary); margin: 0;
}

/* Player */
.bd-player-wrap {
  background: #fff; border: 1px solid var(--mareana-border);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.bd-player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #e1e5ff 0%, #ffffff 67%);
}
.bd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bd-player-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; display: block;
}
.bd-player-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-player-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,10,23,0) 40%, rgba(9,10,23,0.55) 100%);
  transition: background 0.3s;
}
.bd-player-facade:hover .bd-player-scrim { background: linear-gradient(180deg, rgba(9,10,23,0.15) 40%, rgba(9,10,23,0.6) 100%); }
.bd-player-mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(9, 10, 23, 0.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 34px rgba(9, 10, 23, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.bd-player-facade:hover .bd-player-mark {
  background: rgba(9, 10, 23, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1.06);
}
.bd-player-mark svg { width: 18px; height: 21px; margin-left: 4px; }
.bd-player-badge {
  position: absolute; left: 16px; top: 16px;
  font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.2px; color: #fff;
  background: rgba(9, 10, 23, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px; padding: 8px 16px;
}

/* Summary */
.bd-summary {
  background: var(--surface-muted-2); border-radius: 16px;
  padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px;
}
.bd-summary-title {
  font-family: "Poppins", sans-serif; font-size: 24px; font-weight: 500;
  letter-spacing: -1.3px; color: var(--foreground-primary); margin: 0;
}
.bd-summary-text {
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 400;
  line-height: 2.1; color: var(--foreground-primary); margin: 0;
}

/* Chapters bar */
.video-chapters-bar { display: flex; align-items: center; gap: 16px; }
.video-chapters-label {
  flex-shrink: 0; font-family: "Poppins", sans-serif;
  font-size: 16px; font-weight: 500; color: var(--foreground-primary);
}
.video-chapters-track {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; padding: 2px;
}
.video-chapters-track::-webkit-scrollbar { display: none; }
.video-chapter-chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--mareana-border);
  border-radius: 100px; padding: 8px 16px 8px 8px;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: var(--foreground-secondary); white-space: nowrap; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.video-chapter-chip-time {
  background: var(--surface-muted); color: var(--foreground-primary);
  font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 100px;
  font-variant-numeric: tabular-nums;
}
.video-chapter-chip:hover { border-color: var(--mareana-primary); color: var(--foreground-primary); }
.video-chapter-chip.active {
  background: var(--mareana-primary); border-color: var(--mareana-primary); color: #fff;
}
.video-chapter-chip.active .video-chapter-chip-time { background: rgba(255, 255, 255, 0.2); color: #fff; }
.bd-play-status {
  font-family: "Poppins", sans-serif; font-size: 14px;
  color: var(--foreground-secondary); margin: 12px 0 0;
}

/* What's discussed */
.bd-block { display: flex; flex-direction: column; gap: 4px; }
.bd-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--mareana-border);
  margin-bottom: 4px;
}
.bd-block-title {
  font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 500;
  letter-spacing: -0.9px; color: var(--foreground-primary); margin: 0;
}
.bd-block-count { font-family: "Poppins", sans-serif; font-size: 14px; color: var(--foreground-secondary); }
.bd-about { display: flex; flex-direction: column; gap: 28px; }
.bd-lead {
  font-family: "Poppins", sans-serif; font-size: 16px; line-height: 2;
  color: var(--foreground-secondary); margin: 0; max-width: 70ch;
}
.bd-learn {
  background: var(--surface-muted); border: 1px solid var(--mareana-border);
  border-radius: 16px; padding: 28px 32px 24px;
}
.bd-learn-title {
  font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 500;
  letter-spacing: -0.5px; color: var(--foreground-primary);
  margin: 0 0 8px;
}
.bd-learn-list { list-style: none; margin: 0; padding: 0; }
.bd-learn-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--mareana-border);
}
.bd-learn-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bd-learn-n {
  font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--foreground-primary);
  font-variant-numeric: tabular-nums;
}
.bd-learn-list p {
  font-family: "Poppins", sans-serif; font-size: 14px; line-height: 1.75;
  color: var(--foreground-secondary); margin: 0;
}

/* ─── Chapters: progress timeline ─── */
.chapters { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.chapters::before {
  content: ""; position: absolute; left: 25px; top: 22px; bottom: 22px;
  width: 2px; background: var(--mareana-border);
}
.chapter {
  display: grid; grid-template-columns: 24px minmax(0, 1fr);
  align-items: center; gap: 18px;
  width: 100%; padding: 12px 16px;
  background: none; border: 0; border-radius: 12px;
  text-align: left; cursor: pointer; font: inherit;
  transition: background 0.18s;
}
.chapter-dot {
  position: relative; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--mareana-border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.18s, background 0.18s;
}
.chapter-dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mareana-border); transition: background 0.18s;
}
.chapter-body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-width: 0;
}
.chapter-title {
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 500;
  color: var(--foreground-primary); line-height: 1.5;
}
.chapter-time {
  flex-shrink: 0;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 600;
  color: var(--foreground-secondary); font-variant-numeric: tabular-nums;
  background: var(--surface-muted); border: 1px solid var(--mareana-border);
  border-radius: 100px; padding: 4px 12px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chapter:hover { background: var(--surface-muted); }
.chapter:hover .chapter-dot { border-color: var(--foreground-secondary); }

/* Already passed */
.chapter.done .chapter-dot { border-color: #1a181b; }
.chapter.done .chapter-dot::after { background: #1a181b; }

/* Playing now */
.chapter.active { background: var(--surface-muted-2); }
.chapter.active .chapter-dot { border-color: #1a181b; background: #1a181b; }
.chapter.active .chapter-dot::after { background: #fff; }
.chapter.active .chapter-time { background: #1a181b; color: #fff; border-color: #1a181b; }

/* Transcript */
.video-transcript-card {
  border: 1px solid var(--mareana-border-strong);
  border-radius: 16px; overflow: hidden; background: #fff;
}
.bd-toc-header {
  background: var(--surface-muted); padding: 16px 24px;
  font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 500;
  letter-spacing: -0.9px; color: var(--foreground-primary);
  border-bottom: 1px solid var(--mareana-border-strong);
}
.video-transcript-body { max-height: 340px; overflow-y: auto; padding: 8px 0; }
.video-transcript-line {
  display: flex; align-items: baseline; gap: 16px; width: 100%;
  background: none; border: none; border-left: 3px solid transparent;
  text-align: left; cursor: pointer; font: inherit;
  padding: 12px 24px; transition: background 0.15s, border-color 0.15s;
}
.video-transcript-line:hover { background: var(--surface-muted-2); }
.video-transcript-line.active { background: rgba(67, 97, 238, 0.06); border-left-color: var(--mareana-primary); }
.video-transcript-time {
  flex-shrink: 0; width: 42px;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 600;
  color: var(--foreground-secondary); font-variant-numeric: tabular-nums;
}
.video-transcript-line.active .video-transcript-time { color: var(--mareana-primary); }
.video-transcript-text {
  font-family: "Poppins", sans-serif; font-size: 14px; line-height: 1.7;
  color: var(--foreground-secondary);
}
.video-transcript-line.active .video-transcript-text { color: var(--foreground-primary); }

/* Sticky related rail */
.bd-rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 0; }
.bd-rail-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--mareana-border);
}
.bd-rail-title {
  font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 500;
  letter-spacing: -0.9px; color: var(--foreground-primary); margin: 0;
}
.bd-rail-count {
  font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500;
  color: var(--foreground-secondary); background: var(--surface-muted-2);
  border: 1px solid var(--mareana-border);
  border-radius: 100px; padding: 4px 8px;
}
.bd-rail-list {
  /* three rows tall — the rest scrolls, keeping the demo card above the fold */
  max-height: 282px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #d9d9d9 transparent;
}
.bd-rail-list::-webkit-scrollbar { width: 4px; }
.bd-rail-list::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 4px; }
.bd-rail-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px;
  padding: 16px 8px; margin: 0;
  border-bottom: 1px solid var(--mareana-border); align-items: start;
  text-decoration: none; color: inherit; border-radius: 12px;
  transition: background 0.2s;
}
.bd-rail-item:hover { background: var(--surface-muted); }
.bd-rail-item:hover .bd-rail-item-title { color: var(--foreground-primary); }
.bd-rail-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--mareana-border);
  background: linear-gradient(180deg, #e1e5ff 0%, #ffffff 67%);
}
.bd-rail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-rail-item-title {
  display: block; font-family: "Poppins", sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--foreground-primary);
  transition: color 0.15s;
}
.bd-rail-item-dur {
  display: block; margin-top: 8px;
  font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500;
  color: var(--foreground-secondary); font-variant-numeric: tabular-nums;
}
.bd-rail-item--current { background: var(--surface-muted-2); }
.bd-rail-item--current .bd-rail-item-title { color: var(--foreground-primary); }
.bd-rail-item--current .bd-rail-item-dur { color: var(--foreground-primary); font-weight: 600; }

/* ─── Rail: now-playing indicator ─── */
.bd-rail-playing {
  position: absolute; inset: 0;
  background: rgba(9, 10, 23, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.bd-rail-playing i {
  display: block; width: 3px; height: 14px; border-radius: 4px; background: #fff;
  animation: bd-eq 1s ease-in-out infinite;
}
.bd-rail-playing i:nth-child(2) { animation-delay: 0.18s; height: 18px; }
.bd-rail-playing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bd-eq {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .bd-rail-playing i { animation: none; } }

/* ─── Unmute affordance (autoplayed arrivals start muted) ─── */
.player-unmute {
  position: absolute; left: 16px; bottom: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(9, 10, 23, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px; padding: 8px 16px;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: #fff; cursor: pointer;
  transition: background 0.18s;
}
.player-unmute svg { width: 15px; height: 15px; }
.player-unmute:hover { background: rgba(9, 10, 23, 0.85); }

/* ─── Rail: compact conversion card ─── */
.rail-cta {
  margin-top: 24px; padding: 24px;
  background: #1a181b; border-radius: 16px;
  position: relative; overflow: hidden;
}
.rail-cta::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: #ffffff; opacity: 0.14; filter: blur(24px);
}
.rail-cta-title {
  position: relative; z-index: 1;
  font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 500;
  line-height: 1.45; color: #fff; margin: 0 0 8px;
}
.rail-cta-text {
  position: relative; z-index: 1;
  font-family: "Poppins", sans-serif; font-size: 14px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.65); margin: 0 0 16px;
}
.rail-cta .btn-pill { position: relative; z-index: 1; font-size: 16px; }

/* Secondary pill — white body, gradient arrow circle (careers.html) */
.btn-pill.btn-secondary {
  background: var(--surface-white);
  color: var(--foreground-primary);
  border: none;
  transition: background 0.18s;
}
.btn-pill.btn-secondary:hover { background: #f1f1f1; }
.btn-pill.btn-secondary .arrow-circle { background: var(--bg-gradient); }
.btn-pill.btn-secondary .arrow-circle svg path { stroke: var(--foreground-white); }

/* ─── Keep watching: MagicCard treatment ported from the careers page ─── */
.acts-band { background: var(--surface-muted); padding: var(--section-y) var(--gutter); }
.acts-inner { max-width: 1280px; margin: 0 auto; }
.acts-head { margin-bottom: 32px; }
.acts-title {
  font-family: "Poppins", sans-serif; font-size: 28px; font-weight: 500;
  letter-spacing: -1.2px; color: var(--foreground-primary); margin: 0 0 8px;
}
.acts-sub {
  font-family: "Poppins", sans-serif; font-size: 16px; line-height: 1.8;
  color: var(--foreground-secondary); margin: 0;
}
.acts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Pointer-tracking gradient border + spotlight; --mx/--my written by site.js */
.act-card {
  --magic-size: 200px;
  --magic-from: var(--mareana-primary);
  --magic-to: var(--mareana-cyan);
  --magic-glow: rgba(76, 201, 240, 0.16);
  --mx: -200px;
  --my: -200px;
  position: relative;
  isolation: isolate;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(#1a181b 0 0) padding-box,
    radial-gradient(
      var(--magic-size) circle at var(--mx) var(--my),
      var(--magic-from),
      var(--magic-to),
      rgba(255, 255, 255, 0.14) 100%
    ) border-box;
  will-change: transform;
  transition: transform 0.32s var(--ease-out);
}
.act-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 18px 44px rgba(9, 10, 23, 0.32);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}
.act-card:hover::after { opacity: 1; }
.act-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    var(--magic-size) circle at var(--mx) var(--my),
    var(--magic-glow),
    transparent 100%
  );
}
.act-card:hover { transform: translateY(-4px); }
.act-card:hover::before { opacity: 0.8; }
.act-card > * { position: relative; z-index: 2; }

.act-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.25rem;
}
.act-card-index {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums;
}
.act-card-count {
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.act-card-name {
  font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 500;
  letter-spacing: -0.04em; color: #ffffff; margin: 0 0 0.625rem;
}
.act-card-desc {
  font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, 0.62);
  margin: 0 0 1.5rem;
}
.act-card-arrow { width: 18px; height: 18px; flex-shrink: 0; }
.act-card-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: #ffffff;
  transition: gap 0.2s;
}
.act-card:hover .act-card-go { gap: 14px; }
.act-card--current { background: linear-gradient(#0d0d0f 0 0) padding-box, linear-gradient(#fff 0 0) border-box; }
.act-card--current .act-card-index { color: #ffffff; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .bd-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 1024px) {
  .blogs-hero-title { font-size: 40px; letter-spacing: -1.8px; }
  .blogs-toolbar { gap: 12px; }
  .blogs-search { min-width: 200px; }
  .blogs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cat-track { gap: 20px; }
  .cat-track > .blog-card { flex: 0 0 calc((100% - 20px) / 2); }
  .bd-layout { grid-template-columns: 1fr; gap: 56px; }
  .bd-rail { position: static; }
  .bd-rail-list { max-height: none; }
  .acts-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .rail-cta { margin-top: 20px; }
  .lead-band-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .blogs-hero { padding: 112px 16px 40px; }
  .blogs-hero-title { font-size: 28px; letter-spacing: -1px; max-width: 100%; }
  .blogs-hero-subtitle { font-size: 14px; max-width: 100%; }
  .blogs-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .blogs-tabs { display: none; }
  .blogs-filter-select-wrap { display: block; }
  .blogs-search { width: 100%; min-width: 0; }
  .blogs-search-input { font-size: 14px; }
  .blogs-grid { grid-template-columns: 1fr; gap: 16px; }
  /* No sideways paging on small screens — one card per row, plain flow */
  .cat-track {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    overflow: visible; scroll-snap-type: none;
    padding: 0; margin: 0;
  }
  .cat-track > .blog-card { flex: none; }
  .cat-arrows { display: none; }
  .blog-card-title { font-size: 16px; }
  .blog-card-desc { font-size: 14px; }
  .blog-card-posted { font-size: 14px; }
  .blog-card-readtime { font-size: 14px; padding: 4px 8px; }
  .blog-card-body { padding: 16px 16px 12px; gap: 12px; }
  .cat-head-title { font-size: 20px; letter-spacing: -0.9px; }
  .blogs-subscribe-card {
    flex-direction: column; align-items: flex-start;
    padding: 32px 24px 36px; gap: 28px; border-radius: 16px;
  }
  .blogs-subscribe-light-ray { height: 60%; opacity: 0.35; }
  .blogs-subscribe-left { max-width: 100%; }
  .blogs-subscribe-title { font-size: 24px; letter-spacing: -0.72px; white-space: normal; }
  .blogs-subscribe-desc { font-size: 14px; line-height: 1.8; }
  .bd-column { gap: 32px; }
  .bd-title { font-size: 20px; letter-spacing: -0.8px; }
  .bd-summary { padding: 20px 20px 24px; }
  .bd-summary-title { font-size: 20px; }
  .bd-player-mark { width: 58px; height: 58px; }
  .bd-player-mark svg { width: 14px; height: 16px; }
  .video-chapters-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .acts-grid { grid-template-columns: 1fr; gap: 14px; }
  .acts-title { font-size: 20px; }
  .bd-learn { padding: 24px; }
  .bd-headrow { flex-direction: column; align-items: flex-start; gap: 14px; }
  .chapter { padding: 8px 8px; gap: 14px; }
  .chapters::before { left: 19px; }
  .chapter-body { flex-direction: column; align-items: flex-start; gap: 6px; }
  .chapter-title { font-size: 14px; }
  .bd-rail-list { max-height: none; overscroll-behavior: auto;}
  .lead-title { font-size: 24px; letter-spacing: -1px; }
  .lead-form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .blogs-hero-title { font-size: 24px; letter-spacing: -0.8px; }
  .blogs-hero-subtitle { font-size: 14px; line-height: 1.8; }
  .section-badge { font-size: 14px; padding: 8px 16px; }
  .blogs-main-inner { gap: 44px; }
  .blogs-search { padding: 12px 16px; }
  .blog-card { padding: 4px; }
  .blog-card-body { padding: 12px 12px 8px; }
  .blog-card-title { font-size: 16px; }
  .bd-rail-item { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ─── HubSpot embedded form — matched to the .form-label / .form-control
   look above, since HubSpot renders its own markup/classes, not ours ─── */
.lead-form-card .hs-form-field { margin-bottom: 20px; }
.lead-form-card .hs-form-field > label {
  display: block;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.lead-form-card .hs-form-field .hs-form-required { color: #ff8fb1; margin-left: 2px; }
.lead-form-card .hs-form-field .input { margin: 0; }
.lead-form-card .hs-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 224, 224, 0.16);
  border-radius: 100px;
  padding: 16px 24px;
  font-family: "Poppins", sans-serif; font-size: 16px;
  color: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lead-form-card textarea.hs-input { border-radius: 20px; resize: vertical; }
.lead-form-card select.hs-input { cursor: pointer; }
.lead-form-card .hs-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.lead-form-card .hs-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(224, 224, 224, 0.16);
  box-shadow: none;
  outline: none;
  color: #fff;
}
.lead-form-card .hs-input:-webkit-autofill,
.lead-form-card .hs-input:-webkit-autofill:hover,
.lead-form-card .hs-input:-webkit-autofill:focus,
.lead-form-card .hs-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #202020 inset;
  border: 1px solid rgba(224, 224, 224, 0.16) !important;
  outline: none !important;
  transition: background-color 9999s ease-out 0s;
}

/* Checkbox / consent fields (only render if the HubSpot form has them) */
.lead-form-card .hs-form-booleancheckbox-display {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: "Poppins", sans-serif; font-size: 13px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.lead-form-card .hs-form-booleancheckbox-display input { margin-top: 4px; }
.lead-form-card .legal-consent-container {
  margin-top: 4px;
}
.lead-form-card .legal-consent-container,
.lead-form-card .hs-richtext {
  font-family: "Poppins", sans-serif; font-size: 12px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}
.lead-form-card .legal-consent-container a,
.lead-form-card .hs-richtext a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; }

/* Validation messages */
.lead-form-card .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #ff8fb1;}
.lead-form-card .hs-error-msg {
  font-family: "Poppins", sans-serif; font-size: 12px; color: #ff8fb1;
}
.lead-form-card .hs-input.error,
.lead-form-card .hs-input.invalid { border-color: #ff8fb1; }

/* Submit button — same pill as .lead-btn */
.lead-form-card .hs_submit { margin-top: 32px; }
.lead-form-card .hs-button {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  background: var(--surface-white); color: var(--foreground-primary);
  border: 1px solid var(--surface-white); border-radius: 100px;
  padding: 16px 32px;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 500;
  line-height: 1.5; cursor: pointer;
  transition: background 0.18s;
}
.lead-form-card .hs-button:hover { background: #f1f1f1; }

/* Strip HubSpot's own spacing/width assumptions so ours apply cleanly */
.lead-form-card .hs-form-html,
.lead-form-card form.hs-form { margin: 0; }
.lead-form-card fieldset.form-columns-1,
.lead-form-card fieldset.form-columns-2,
.lead-form-card fieldset.form-columns-3 { max-width: none; }
.lead-form-card .hs-form-field .hs-field-desc { display: none; }

/* ─── HubSpot embedded form (modal) — same treatment as the modal's own
   .form-label / .form-control above, light theme to match the modal ─── */
.demo-modal .hs-form-field { margin-bottom: 20px; }
.demo-modal .hs-form-field > label {
  display: block;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  color: var(--foreground-secondary);
  margin-bottom: 8px;
}
.demo-modal .hs-form-field .hs-form-required { color: #d6336c; margin-left: 2px; }
.demo-modal .hs-form-field .input { margin: 0; }
.demo-modal .hs-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--mareana-border);
  border-radius: 100px;
  padding: 16px 24px;
  font-family: "Poppins", sans-serif; font-size: 16px;
  color: var(--foreground-primary);
  transition: border-color 0.18s, background 0.18s;
}
.demo-modal textarea.hs-input { border-radius: 20px; resize: vertical; }
.demo-modal select.hs-input { cursor: pointer; }
.demo-modal .hs-input::placeholder { color: var(--foreground-secondary); opacity: 0.55; }
.demo-modal .hs-input:focus {
  background: var(--surface-muted);
  border-color: var(--mareana-border);
  box-shadow: none; outline: none;
  color: var(--foreground-primary);
}
.demo-modal .hs-input:-webkit-autofill,
.demo-modal .hs-input:-webkit-autofill:hover,
.demo-modal .hs-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--foreground-primary);
  caret-color: var(--foreground-primary);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  border: 1px solid var(--mareana-border) !important;
}
 
.demo-modal .hs-form-booleancheckbox-display {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: "Poppins", sans-serif; font-size: 13px; line-height: 1.6;
  color: var(--foreground-secondary);
}
.demo-modal .hs-form-booleancheckbox-display input { margin-top: 4px; }
.demo-modal .legal-consent-container { margin-top: 4px; }
.demo-modal .legal-consent-container,
.demo-modal .hs-richtext {
  font-family: "Poppins", sans-serif; font-size: 12px; line-height: 1.7;
  color: var(--foreground-secondary);
}
.demo-modal .legal-consent-container a,
.demo-modal .hs-richtext a { color: var(--foreground-primary); text-decoration: underline; }
 
.demo-modal .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #d6336c;}
.demo-modal .hs-error-msg {
  font-family: "Poppins", sans-serif; font-size: 12px; color: #d6336c;
}
.demo-modal .hs-input.error,
.demo-modal .hs-input.invalid { border-color: #d6336c; }
 
.demo-modal .hs_submit { margin-top: 24px; }
.demo-modal .hs-button {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  background: var(--bg-gradient); color: #fff;
  border: 1px solid transparent; border-radius: 100px;
  padding: 16px 32px;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 500;
  line-height: 1.5; cursor: pointer;
  transition: opacity 0.18s, box-shadow 0.18s;
}
.demo-modal .hs-button:hover { opacity: 0.92; box-shadow: 0 8px 24px rgba(67, 97, 238, 0.28); }
 
.demo-modal .hs-form-html,
.demo-modal form.hs-form { margin: 0; }
.demo-modal fieldset.form-columns-1,
.demo-modal fieldset.form-columns-2,
.demo-modal fieldset.form-columns-3 { max-width: none; }
.demo-modal .hs-form-field .hs-field-desc { display: none; }