:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Webflow scripts do not run here; preserve accordion behavior locally. */
.answer-wrapper {
  overflow: hidden;
  transition: height 280ms ease;
}

.faq-heading {
  cursor: pointer;
}

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

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

/* Vimeo player occasionally renders light pillarbox edges; clip them for parity. */
.video-wrapper-block [data-video-id="hero-video"] {
  overflow: hidden;
}

/* Webflow sets overflow:visible on .video-wrapper-block.homepage at
   min-width:1920px, letting the Vimeo iframe bleed past the wrapper bounds
   where ::before/::after masks can't cover it. Force clipping so the dark
   masks fully contain the content. */
.video-wrapper-block.homepage {
  overflow: hidden;
}

.video-wrapper-block [data-video-id="hero-video"] iframe {
  width: calc(100% + 12px) !important;
  max-width: none;
  left: -6px !important;
}

.video-wrapper-block::before,
.video-wrapper-block::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #07001a;
  pointer-events: none;
  z-index: 2;
}

.video-wrapper-block::before {
  left: 0;
}

.video-wrapper-block::after {
  right: 0;
}

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

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

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

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

/* Student growth page: long-form layout and spacing under fixed nav. */
[data-route="/student-growth-program"] .section-top.pricing {
  padding-top: 7em;
}

[data-route="/student-growth-program"] .sg-page {
  padding: 22px 0 88px;
}

[data-route="/student-growth-program"] .sg-container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

[data-route="/student-growth-program"] .sg-hero {
  margin: 0 0 32px;
  padding: 40px 36px;
  border: 1px solid #2f2a3d;
  border-radius: 24px;
  background: radial-gradient(
      circle at 15% -10%,
      rgba(114, 62, 184, 0.42),
      rgba(13, 11, 23, 0.92) 55%
    ),
    rgba(13, 11, 23, 0.92);
}

[data-route="/student-growth-program"] .sg-hero-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: #d8d4e4;
  font-size: 1.05rem;
  line-height: 1.55;
}

[data-route="/student-growth-program"] .sg-section {
  margin: 0 0 24px;
  padding: 30px 32px;
  border: 1px solid #312b40;
  border-radius: 20px;
  background: rgba(11, 9, 18, 0.86);
}

[data-route="/student-growth-program"] .sg-section p {
  color: #d8d4e4;
  line-height: 1.6;
}

[data-route="/student-growth-program"] .sg-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #e5e0ef;
}

[data-route="/student-growth-program"] .sg-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

[data-route="/student-growth-program"] .sg-note {
  margin-top: 8px;
  color: #afa9c2;
  font-size: 0.95rem;
}

[data-route="/student-growth-program"] .sg-cta-row {
  margin-top: 20px;
}

[data-route="/student-growth-program"]
  .sg-cta-row
  .button-small.green.w-button {
  display: inline-flex;
  width: auto !important;
  max-width: max-content;
}

[data-route="/student-growth-program"] .sg-drawers {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

[data-route="/student-growth-program"] .sg-drawer {
  border: 1px solid #3a334b;
  border-radius: 14px;
  background: rgba(20, 16, 30, 0.75);
  overflow: hidden;
}

[data-route="/student-growth-program"] .sg-drawer > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #f1eef8;
  padding: 14px 16px;
}

[data-route="/student-growth-program"]
  .sg-drawer
  > summary::-webkit-details-marker {
  display: none;
}

[data-route="/student-growth-program"] .sg-drawer > summary::after {
  content: "+";
  float: right;
  color: #c9bbec;
  font-weight: 700;
}

[data-route="/student-growth-program"] .sg-drawer[open] > summary::after {
  content: "\2212";
}

[data-route="/student-growth-program"] .sg-drawer p {
  margin: 0;
  padding: 0 16px 14px;
  color: #cdc7dd;
}

[data-route="/student-growth-program"] .sg-placeholder {
  color: #a39eb6 !important;
  font-style: italic;
}

[data-route="/student-growth-program"] .sg-cta-band {
  margin-top: 28px;
  padding: 34px 30px;
  border: 1px solid #4c3f66;
  border-radius: 20px;
  background: linear-gradient(
    140deg,
    rgba(83, 47, 136, 0.5),
    rgba(18, 14, 30, 0.96)
  );
}

[data-route="/student-growth-program"] .sg-cta-band p {
  color: #e4def2;
  margin: 8px 0 20px;
}

@media screen and (max-width: 767px) {
  [data-route="/student-growth-program"] .sg-hero {
    padding: 30px 20px;
    border-radius: 18px;
  }

  [data-route="/student-growth-program"] .sg-section {
    padding: 22px 18px;
    border-radius: 16px;
  }

  [data-route="/student-growth-program"] .sg-cta-band {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

/* Shared marketing content primitives for schema-driven static pages. */
.mc-wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.mc-blog-index {
  padding: 10px 0 72px;
}

.mc-grid {
  display: grid;
  gap: 18px;
}

.mc-card {
  border: 1px solid #332e45;
  border-radius: 16px;
  background: rgba(14, 12, 22, 0.88);
}

.mc-card-link {
  display: block;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.mc-card-meta {
  color: #ac9fcf;
  font-size: 0.88rem;
}

.mc-card-title {
  margin: 8px 0 6px;
  color: #f4f2fb;
}

.mc-card-excerpt {
  margin: 0;
  color: #d2cbdf;
  line-height: 1.5;
}

.mc-card-cta {
  margin-top: 10px;
  color: #cbb6ff;
  font-weight: 600;
}

.mc-student {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 10px 0 76px;
}

.mc-student-body {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #342f47;
  background: rgba(12, 10, 20, 0.9);
}

.mc-student-body details {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #3a334e;
  border-radius: 12px;
  background: rgba(20, 16, 30, 0.74);
}

.mc-student-body summary {
  cursor: pointer;
  font-weight: 600;
}

.mc-student-cta {
  margin-top: 18px;
  text-align: left;
}

[data-route="/student-growth-program"] .section-top {
  padding-top: 7em;
}

@media screen and (max-width: 767px) {
  .mc-card-link {
    padding: 18px;
  }

  .mc-student-body {
    padding: 18px;
  }
}

/* Legal page parity: ensure title/content clear fixed header on desktop. */
@media screen and (min-width: 992px) {
  [data-route="/privacy-policy"] .section-top,
  [data-route="/terms-of-service"] .section-top {
    padding-top: 4em;
  }
}

/* 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 */
.changelog-entries {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 64px;
}

.changelog-entry {
  padding-bottom: 48px;
  border-bottom: 1px solid #2f2a3d;
}

.changelog-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.changelog-entry-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.changelog-date {
  color: #ac9fcf;
  font-size: 0.95rem;
}

.changelog-image {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2f2a3d;
}

.changelog-screenshot {
  width: 100%;
  display: block;
}

/* Homepage video tabs: force dark background on iframe containers to match live site */
.feature-tabs-container,
.tabs-content.w-tab-content,
.w-tab-pane {
  background-color: transparent;
}

.feature-tab-image,
.feature-tab-image > div,
.feature-tab-image iframe {
  background-color: #121212;
}

.feature-tab-image {
  border-radius: 12px;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

/* Clip iframe edges inward so Vimeo error pages (white background
   on localhost/CI) don't bleed through — reveals the dark #121212
   parent background at the edges instead. */
.feature-tab-image > div {
  clip-path: inset(4px 28px round 5px);
}

.tabs-content.w-tab-content {
  border-radius: 12px;
  overflow: hidden;
}

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

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

/* ============================================================
   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 [data-route="/"] .chevron-left,
.hero-anim [data-route="/"] .chevron-right {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-anim [data-route="/"] .chevron-left {
  transform: translateX(var(--bracket-offset-left, 200px)) scale(0.7);
}

.hero-anim [data-route="/"] .chevron-right {
  transform: translateX(var(--bracket-offset-right, -200px)) scale(0.7);
}

.hero-anim [data-route="/"] #homepage-headline {
  opacity: 0;
  transition: opacity 0.5s ease-out 0.1s;
}

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

.hero-anim [data-route="/"] #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 [data-route="/"] .chevron-left,
  .hero-anim [data-route="/"] .chevron-right,
  .hero-anim [data-route="/"] #homepage-headline {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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