html {
  scroll-behavior: smooth;
}

html.dark {
  color-scheme: dark;
}

body {
  font-family: "Inter", sans-serif;
}

.grecaptcha-badge {
  visibility: hidden;
}

::-webkit-scrollbar {
  display: none;
}

.transit-grid {
  background-image:
    linear-gradient(to right, rgba(201, 202, 207, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 202, 207, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
}

.hero-grid-overlay {
  animation: gridPulse 8s ease-in-out infinite;
}

.hero-fit {
  min-height: calc(100vh - 4rem);
  min-height: calc(100svh - 4rem);
}

@supports (height: 100dvh) {
  .hero-fit {
    min-height: calc(100dvh - 4rem);
  }
}

.reveal-up {
  opacity: 1;
  transform: none;
}

.bg-orb-a,
.bg-orb-b,
.bg-orb-c {
  opacity: 0.42;
  filter: blur(46px) saturate(85%);
  animation: drift 14s ease-in-out infinite;
}

.bg-orb-a {
  background: radial-gradient(
    circle,
    rgba(147, 197, 253, 0.55) 0%,
    rgba(147, 197, 253, 0.12) 42%,
    transparent 72%
  );
}

.bg-orb-b {
  background: radial-gradient(
    circle,
    rgba(186, 230, 253, 0.42) 0%,
    rgba(186, 230, 253, 0.1) 40%,
    transparent 70%
  );
}

.bg-orb-c {
  background: radial-gradient(
    circle,
    rgba(165, 180, 252, 0.28) 0%,
    rgba(165, 180, 252, 0.08) 38%,
    transparent 68%
  );
}

.bg-orb-b {
  animation-delay: -4s;
}

.bg-orb-c {
  animation-delay: -8s;
}

.floating-card {
  animation: floatY 5.5s ease-in-out infinite;
}

.floating-card.delay-a {
  animation-delay: -1.5s;
}

.floating-card.delay-b {
  animation-delay: -3s;
}

.mockup-frame {
  animation: softLift 7s ease-in-out infinite;
}

.route-line {
  position: absolute;
  inset: auto;
  pointer-events: none;
  opacity: 0.7;
}

.route-path {
  stroke-dasharray: 10 12;
  animation: dashMove 16s linear infinite;
}

.route-stop {
  animation: stopPulse 2.8s ease-in-out infinite;
}

.route-stop.delay-a {
  animation-delay: -0.9s;
}

.route-stop.delay-b {
  animation-delay: -1.8s;
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 80%
  );
  animation: sweep 10s ease-in-out infinite;
}

.section-fade {
  position: relative;
}

.section-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top right,
    rgba(26, 86, 219, 0.05),
    transparent 30%
  );
}

.section-divider {
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.18),
    transparent
  );
  pointer-events: none;
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(26, 86, 219, 0.18);
  animation: ringPulse 2.8s ease-out infinite;
}

.module-preview-frame {
  overflow: hidden;
  position: relative;
}

.module-preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.lift-card:hover .module-preview-frame::after {
  transform: translateX(130%);
  transition: transform 0.6s ease;
}

.module-preview-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  transform: none;
  transition: transform 380ms ease;
}

.lift-card:hover .module-preview-image {
  transform: scale(1.02) translateY(-2px);
}

.form-field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

html.dark .form-field-invalid {
  border-color: rgba(248, 113, 113, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

/* ─── Native Scroll-Triggered Animations ───────────────────────────────── */

[data-scroll],
.reveal-up {
  --reveal-from: translateY(24px);
  --reveal-start-range: entry;
  --reveal-end-range: entry;
  --reveal-start: 0%;
  --reveal-end: 70%;
}

[data-scroll] {
  opacity: 1;
  transform: none;
}

[data-scroll-delay="1"] {
  --reveal-start: 4%;
  --reveal-end: 82%;
}

[data-scroll-delay="2"] {
  --reveal-start: 8%;
  --reveal-end: 86%;
}

[data-scroll-delay="3"] {
  --reveal-start: 12%;
  --reveal-end: 90%;
}

[data-scroll-delay="4"] {
  --reveal-start: 16%;
  --reveal-end: 94%;
}

.reveal-up {
  --reveal-from: translateY(18px);
  --reveal-start: 0%;
  --reveal-end: 70%;
}

.reveal-up.delay-1 {
  --reveal-start: 4%;
  --reveal-end: 74%;
}

.reveal-up.delay-2 {
  --reveal-start: 8%;
  --reveal-end: 78%;
}

.reveal-up.delay-3 {
  --reveal-start: 12%;
  --reveal-end: 82%;
}

.reveal-up.delay-4 {
  --reveal-start: 16%;
  --reveal-end: 86%;
}

@supports (animation-timeline: view()) {
  .reveal-up,
  [data-scroll] {
    animation-name: revealTriggered;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: var(--reveal-start-range) var(--reveal-start)
      var(--reveal-end-range) var(--reveal-end);
  }

  .reveal-up {
    animation-duration: 1.15s;
  }

  [data-scroll="fade-left"] {
    --reveal-from: translateX(-40px);
  }

  [data-scroll="fade-right"] {
    --reveal-from: translateX(40px);
  }

  #cta [data-scroll] {
    animation-timeline: --cta-section;
    --reveal-start-range: cover;
    --reveal-end-range: cover;
    --reveal-start: 4%;
    --reveal-end: 28%;
  }

  #cta [data-scroll="fade-right"] {
    --reveal-start: 8%;
    --reveal-end: 32%;
  }

  /* Widget cards use a JS-driven stagger pop — suppress the scroll timeline */
  #modules .lift-card[data-scroll] {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */

.lift-card {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease;
}

[data-scroll].lift-card {
  transform: none;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease;
}

/* Widget cards: hidden until JS triggers the stagger pop */
#modules .lift-card {
  opacity: 0;
  transform: translateY(36px) scale(0.92);
}

#modules .lift-card.card-visible {
  animation: cardPop 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Feature-list items slide in after their card pops */
#modules .lift-card.card-visible ul li {
  opacity: 0;
  --reveal-from: translateX(-12px);
  animation: revealTriggered 0.32s ease both;
}

#modules .lift-card.card-visible ul li:nth-child(1) {
  animation-delay: 0.28s;
}
#modules .lift-card.card-visible ul li:nth-child(2) {
  animation-delay: 0.4s;
}
#modules .lift-card.card-visible ul li:nth-child(3) {
  animation-delay: 0.52s;
}

.lift-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border-color: rgba(26, 86, 219, 0.18);
}

.icon-bob {
  transition:
    transform 260ms ease,
    background-color 260ms ease;
}

.lift-card:hover .icon-bob {
  transform: translateY(-4px) scale(1.14) rotate(-5deg);
}

.glow-surface {
  position: relative;
}

.glow-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(26, 86, 219, 0.08),
    transparent 40%
  );
  pointer-events: none;
}

html.dark #modules .module-preview-frame {
  border-radius: 1rem 1rem 0 0;
}

html.dark #modules .module-preview-image {
  border-radius: 1rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon {
  position: absolute;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.theme-toggle .theme-icon-sun {
  opacity: 0;
  transform: scale(0.8) rotate(-18deg);
}

.theme-toggle .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html.dark .theme-toggle .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html.dark .theme-toggle .theme-icon-moon {
  opacity: 0;
  transform: scale(0.8) rotate(18deg);
}

html.dark .transit-grid {
  background-image:
    linear-gradient(to right, rgba(51, 65, 85, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.35) 1px, transparent 1px);
}

html.dark .cta-grid {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  opacity: 0.45;
}

html.dark .section-fade::before {
  background: radial-gradient(
    circle at top right,
    rgba(59, 130, 246, 0.05),
    transparent 34%
  );
}

html.dark .theme-toggle {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e5eef8;
}

html.dark .glow-surface::before {
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.07),
    transparent 40%
  );
}

html.dark .bg-orb-a,
html.dark .bg-orb-b,
html.dark .bg-orb-c {
  opacity: 0.2;
  filter: blur(56px) saturate(70%);
}

html.dark .section-divider::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.12),
    transparent
  );
}

/* ─── AI Chat scroll-reveal ─────────────────────────────────────────────── */

.ai-demo-scroll-area {
  view-timeline-name: --ai-demo;
  view-timeline-axis: block;
}

#cta {
  view-timeline-name: --cta-section;
  view-timeline-axis: block;
}

.chat-messages-scroll {
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-messages-scroll::-webkit-scrollbar {
  display: none;
}

.chat-thread {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chat-msg {
  opacity: 1;
  transform: none;
  max-height: none;
  margin-top: 0.5rem;
}

.chat-msg:first-child {
  margin-top: 0;
}

.chat-bubble-user,
.chat-bubble-ai {
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.625rem 0.875rem;
}

@supports (animation-timeline: view()) {
  .chat-messages-scroll {
    overflow: hidden;
    scroll-behavior: auto;
  }

  #ai-demo-left {
    animation-name: aiDemoParallax;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --ai-demo;
    animation-range: cover 8% cover 73%;
  }

  .chat-msg {
    --chat-start: cover 10%;
    --chat-end: cover 17%;
    --chat-gap: 0.5rem;
    --chat-max-height: 132px;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transform: translateY(10px);
    animation-name: chatRevealTimeline;
    animation-duration: auto;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    animation-timeline: --ai-demo;
    animation-range-start: var(--chat-start);
    animation-range-end: var(--chat-end);
  }

  .chat-msg:first-child {
    --chat-gap: 0rem;
  }

  /* Left-column bullet points slide in from the left, one per pair of messages. */
  #ai-demo-left ul li {
    opacity: 0;
    transform: translateX(-28px);
    animation-name: demoListReveal;
    animation-duration: auto;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    animation-timeline: --ai-demo;
  }

  #ai-demo-left ul li:nth-child(1) {
    animation-range: cover 28% cover 38%;
  }

  #ai-demo-left ul li:nth-child(2) {
    animation-range: cover 42% cover 52%;
  }

  #ai-demo-left ul li:nth-child(3) {
    animation-range: cover 56% cover 66%;
  }

  /* Sticky frame exits at ~cover 71% with a 250vh scroll area.
     All messages must complete by then. Schedule: 7-9% windows, 3% gaps.
     Each 1% ≈ 3.5vh of scroll, so each message gets ~25-31vh to reveal. */
  .chat-msg[data-chat-index="0"] {
    --chat-start: cover 10%;
    --chat-end: cover 17%;
    --chat-max-height: 64px;
  }

  .chat-msg[data-chat-index="1"] {
    --chat-start: cover 20%;
    --chat-end: cover 28%;
    --chat-max-height: 104px;
  }

  .chat-msg[data-chat-index="2"] {
    --chat-start: cover 31%;
    --chat-end: cover 38%;
    --chat-max-height: 64px;
  }

  .chat-msg[data-chat-index="3"] {
    --chat-start: cover 41%;
    --chat-end: cover 50%;
    --chat-max-height: 104px;
  }

  .chat-msg[data-chat-index="4"] {
    --chat-start: cover 53%;
    --chat-end: cover 59%;
    --chat-max-height: 64px;
  }

  .chat-msg[data-chat-index="5"] {
    --chat-start: cover 62%;
    --chat-end: cover 70%;
    --chat-max-height: 128px;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(10px, -16px, 0) scale(1.06);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealTriggered {
  from {
    opacity: 0;
    transform: var(--reveal-from, translateY(28px));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dashMove {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -180;
  }
}

@keyframes stopPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(-120%);
  }

  45%,
  60% {
    transform: translateX(120%);
  }
}

@keyframes softLift {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(-0.4deg);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.08);
    opacity: 0;
  }

  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes aiDemoParallax {
  from {
    transform: translateY(160px);
  }

  to {
    transform: translateY(-160px);
  }
}

@keyframes demoListReveal {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes chatArrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes chatRevealTimeline {
  from {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    max-height: var(--chat-max-height, 132px);
    margin-top: var(--chat-gap, 0.5rem);
    transform: none;
  }
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.detail-hero {
  position: relative;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 86, 219, 0.12);
  background: rgba(239, 246, 255, 0.9);
  color: #1a56db;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.detail-stage {
  position: relative;
}

.detail-stage::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 32px;
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.14),
      transparent 42%
    ),
    linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.22)
    );
  filter: blur(14px);
}

.detail-panel,
.detail-card,
.image-placeholder-card,
.interactive-sample-shell,
.widget-link-card {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.98)
  );
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.detail-panel {
  border-radius: 28px;
  padding: 1.4rem;
}

.detail-panel-header,
.interactive-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-panel-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-panel-pill-red {
  background: #fee2e2;
  color: #b91c1c;
}

.detail-panel-pill-green {
  background: #dcfce7;
  color: #166534;
}

.detail-panel-meta {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-stat-card {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-stat-value {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.detail-stat-label {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.45;
}

.mock-chat-shell {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.95);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mock-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mock-chat-header strong,
.mock-board-head strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.mock-chat-header p,
.mock-board-head p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
}

.mock-status-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.mock-chat-body {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.mock-bubble {
  max-width: 88%;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mock-bubble.agent {
  background: #eff6ff;
  color: #1f2937;
  border-bottom-left-radius: 6px;
}

.mock-bubble.user {
  margin-left: auto;
  background: #0f172a;
  color: #f8fafc;
  border-bottom-right-radius: 6px;
}

.mock-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}

.mock-suggestion {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}

.interactive-sample-shell {
  border-radius: 28px;
  padding: 1.2rem;
}

.interactive-demo-output {
  display: grid;
  gap: 0.9rem;
}

.sample-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.sample-chat-row.user {
  justify-content: flex-end;
}

.sample-chat-row.no-avatar {
  gap: 0;
}

.sample-chat-row.user .sample-chat-avatar {
  order: 2;
  background: #0f172a;
  color: #ffffff;
}

.sample-chat-row.user .sample-chat-message {
  order: 1;
  background: #0f172a;
  color: #f8fafc;
  border-bottom-right-radius: 8px;
}

.sample-chat-avatar {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
}

.sample-chat-avatar.icon-avatar {
  background: #dcfce7;
  color: #059669;
  font-size: 0.9rem;
}

.sample-chat-message {
  max-width: min(85%, 40rem);
  background: #eff6ff;
  color: #1f2937;
  border-radius: 18px;
  border-bottom-left-radius: 8px;
  padding: 0.95rem 1rem;
  font-size: 0.93rem;
  line-height: 1.6;
}

.sample-chat-message p {
  margin: 0;
}

.sample-chat-message p + p {
  margin-top: 0.65rem;
}

.sample-answer-list {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
}

.sample-answer-list li + li {
  margin-top: 0.4rem;
}

.sample-conversation-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.34),
    transparent
  );
}

.detail-card,
.widget-link-card,
.image-placeholder-card {
  border-radius: 24px;
  padding: 1.45rem;
}

.detail-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.detail-icon-red {
  color: #b91c1c;
  background: #fee2e2;
}

.detail-icon-green {
  color: #166534;
  background: #dcfce7;
}

.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.detail-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.detail-list-item i {
  margin-top: 0.18rem;
}

.mock-alert-stack {
  display: grid;
  gap: 0.9rem;
}

.mock-alert {
  border-radius: 22px;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.mock-alert.high {
  background: linear-gradient(180deg, #fff1f2, #ffffff);
  border-color: rgba(252, 165, 165, 0.65);
}

.mock-alert.medium {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  border-color: rgba(253, 186, 116, 0.65);
}

.mock-alert.neutral {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.mock-alert-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.mock-alert-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 700;
}

.mock-alert-time {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-alert h3 {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.mock-alert p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.mock-board {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.mock-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mock-board-sync {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-board-row {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 0.6fr 0.8fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(241, 245, 249, 1);
  color: #1f2937;
  font-size: 0.88rem;
}

.mock-board-row.header {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mock-board-route {
  font-weight: 800;
  color: #0f172a;
}

.mock-board-eta {
  justify-self: end;
  font-weight: 800;
  color: #0f172a;
}

.mock-board-eta.soon {
  color: #166534;
}

.mock-board-eta.delayed {
  color: #b91c1c;
}

.mock-board-note {
  margin: 0.85rem 1rem 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.84rem;
  line-height: 1.5;
}

.image-placeholder-card h4,
.widget-link-card strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 0.45rem;
}

.image-placeholder-card p,
.widget-link-copy {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

.image-placeholder-window {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
}

.image-placeholder-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
  background: #f8fafc;
}

.image-placeholder-toolbar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.image-placeholder-body {
  padding: 1rem;
}

.image-placeholder-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.image-placeholder-line {
  height: 0.7rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.image-placeholder-line + .image-placeholder-line {
  margin-top: 0.55rem;
}

.image-placeholder-block {
  height: 8.75rem;
  border-radius: 16px;
  margin-top: 0.9rem;
  background: linear-gradient(
    135deg,
    rgba(219, 234, 254, 0.9),
    rgba(241, 245, 249, 0.95)
  );
  border: 1px dashed rgba(59, 130, 246, 0.35);
}

.widget-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.widget-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.26);
}

.widget-link-label {
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.dark .detail-kicker {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(96, 165, 250, 0.24);
  color: #93c5fd;
}

html.dark .detail-stage::before {
  background:
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.16),
      transparent 42%
    ),
    linear-gradient(140deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.25));
}

html.dark .detail-panel,
html.dark .detail-card,
html.dark .image-placeholder-card,
html.dark .interactive-sample-shell,
html.dark .widget-link-card,
html.dark .widget-link-card {
  border-color: rgba(51, 65, 85, 0.92);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.98),
    rgba(17, 24, 39, 0.98)
  );
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
}

html.dark .detail-panel-pill {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

html.dark .detail-panel-pill-red {
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
}

html.dark .detail-panel-pill-green {
  background: rgba(22, 163, 74, 0.18);
  color: #86efac;
}

html.dark .detail-panel-meta,
html.dark .detail-stat-label,
html.dark .image-placeholder-card p,
html.dark .widget-link-copy {
  color: #94a3b8;
}

html.dark .detail-stat-card,
html.dark .mock-alert,
html.dark .mock-board,
html.dark .image-placeholder-window,
html.dark .mock-chat-shell {
  border-color: rgba(51, 65, 85, 0.92);
  background: rgba(15, 23, 42, 0.88);
}

html.dark .detail-stat-value,
html.dark .mock-chat-header strong,
html.dark .mock-board-head strong,
html.dark .mock-alert h3,
html.dark .image-placeholder-card h4,
html.dark .widget-link-card strong,
html.dark .mock-board-row,
html.dark .sample-chat-message {
  color: #f8fafc;
}

html.dark .mock-chat-header p,
html.dark .mock-board-head p,
html.dark .mock-alert p,
html.dark .mock-alert-time,
html.dark .mock-board-row.header {
  color: #94a3b8;
}

html.dark .detail-eyebrow {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

html.dark .mock-bubble.agent,
html.dark .sample-chat-row.agent .sample-chat-message {
  background: rgba(30, 41, 59, 0.95);
  color: #e2e8f0;
}

html.dark .mock-suggestion {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(51, 65, 85, 0.92);
  color: #cbd5e1;
}

html.dark .image-placeholder-toolbar {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(51, 65, 85, 0.92);
}

html.dark .image-placeholder-toolbar span,
html.dark .image-placeholder-line {
  background: rgba(100, 116, 139, 0.62);
}

html.dark .image-placeholder-badge {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

html.dark .image-placeholder-block {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.95),
    rgba(17, 24, 39, 0.95)
  );
  border-color: rgba(96, 165, 250, 0.32);
}

html.dark .mock-board-row.header {
  background: rgba(15, 23, 42, 0.95);
}

html.dark .mock-board-note {
  background: rgba(124, 45, 18, 0.24);
  color: #fdba74;
}

html.dark .mock-alert.high {
  background: linear-gradient(
    180deg,
    rgba(127, 29, 29, 0.36),
    rgba(15, 23, 42, 0.98)
  );
  border-color: rgba(248, 113, 113, 0.22);
}

html.dark .mock-alert.medium {
  background: linear-gradient(
    180deg,
    rgba(124, 45, 18, 0.32),
    rgba(15, 23, 42, 0.98)
  );
  border-color: rgba(251, 146, 60, 0.22);
}

html.dark .mock-alert.neutral {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.95),
    rgba(15, 23, 42, 0.98)
  );
}

html.dark .mock-alert-chip {
  background: rgba(15, 23, 42, 0.8);
  color: #fecaca;
}

html.dark .sample-chat-avatar.icon-avatar {
  background: rgba(5, 150, 105, 0.18);
  color: #6ee7b7;
}

html.dark .sample-conversation-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(71, 85, 105, 0.62),
    transparent
  );
}

@media (max-width: 1023px) {
  .detail-stat-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .hero-grid-overlay,
  .bg-orb-a,
  .bg-orb-b,
  .bg-orb-c,
  .floating-card,
  .mockup-frame,
  .shine::after,
  .route-path,
  .route-stop,
  .pulse-ring::after,
  #ai-demo-left,
  #chat-scroll-hint,
  .chat-msg,
  #ai-demo-left ul li {
    animation: none !important;
  }

  #ai-demo-left ul li {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-scroll] {
    opacity: 1 !important;
    transform: none !important;
  }

  #modules .lift-card,
  #modules .lift-card ul li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .module-preview-image {
    transition: none !important;
  }

  .chat-msg {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
    transform: none !important;
  }

  .chat-msg:first-child {
    margin-top: 0 !important;
  }

  .chat-scroll-hint-arrow {
    animation: none !important;
  }
}

/* ─── Mobile: disable AI chat scroll animation ──────────────────────────── */
@media (max-width: 767px) {
  .detail-panel-header,
  .interactive-demo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-chat-row,
  .sample-chat-row.user {
    justify-content: flex-start;
  }

  .sample-chat-row.user .sample-chat-avatar {
    order: 0;
  }

  .sample-chat-row.user .sample-chat-message {
    order: 0;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 8px;
  }

  .sample-chat-message,
  .mock-bubble {
    max-width: 100%;
  }

  .mock-board-row {
    grid-template-columns: 0.8fr 1.5fr 0.5fr 0.8fr;
    font-size: 0.82rem;
  }

  #modules .lift-card,
  #modules .lift-card ul li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  #ai-demo {
    padding-top: 2.5rem;
  }

  .ai-demo-scroll-area {
    height: auto !important;
  }

  .ai-demo-scroll-area > div {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  .chat-messages-scroll {
    overflow: visible !important;
  }

  #chat-messages {
    overflow: visible !important;
    max-height: none !important;
  }

  #chat-scroll-hint,
  .chat-msg,
  #ai-demo-left ul li {
    animation: none !important;
  }

  #ai-demo-left ul li {
    opacity: 1 !important;
    transform: none !important;
  }

  @supports (animation-timeline: view()) {
    #ai-demo-left {
      animation-name: revealTriggered;
      animation-duration: 1s;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }

  .chat-msg {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
    transform: none !important;
  }

  .chat-msg:first-child {
    margin-top: 0 !important;
  }
}

.chat-scroll-hint-arrow {
  animation: chatArrowBounce 1.5s ease-in-out infinite;
}
