/* ===================================================
   Semantyr Landing — Styles
   Dark theme, Apple-inspired, fully responsive
   =================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --bg-tertiary: #111111;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --accent: #2997ff;
  --accent-hover: #0a84ff;
  --border: rgba(255, 255, 255, 0.08);
  --nav-height: 56px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Top Nav ---------- */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-top__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-top__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-top__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-top__logo-text {
  font-size: 18px;
}

.nav-top__links {
  display: flex;
  gap: 28px;
}

.nav-top__links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-top__links a:hover {
  color: var(--text-primary);
}

.nav-top__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-top__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav-top__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-top__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-top__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-top__mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  flex-direction: column;
  gap: 8px;
}

.nav-top__mobile.open {
  display: flex;
}

.nav-top__mobile a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-top__mobile a:hover {
  color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

.hero__content {
  max-width: 780px;
}

.hero__title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 21px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.01em;
}

.hero__tag--purple {
  border-color: rgba(192, 132, 252, 0.25);
  color: #c084fc;
}

.hero__tag--rose {
  border-color: rgba(251, 113, 133, 0.25);
  color: #fb7185;
}

.hero__tag--teal {
  border-color: rgba(45, 212, 191, 0.25);
  color: #2dd4bf;
}

.hero__tag--more {
  font-style: italic;
  border-color: transparent;
  color: var(--text-tertiary);
}

.hero__cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero__cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

/* ---------- Bottom Strip ---------- */
.strip {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-primary);
}

.strip__inner {
  max-width: 780px;
  margin: 0 auto;
}

.strip__tagline {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 4px;
}

.strip__name {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strip__cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.strip__cta:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.02);
}

/* ---------- Video Section ---------- */
.video-section {
  padding: 0;
  background: var(--bg-primary);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-section__wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  overflow: hidden;
  border-radius: 0;
}

.video-section__wrapper video {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: var(--bg-secondary);
}


/* ---------- Carousel ---------- */
.carousel-section {
  padding: 40px 0 100px;
  background: var(--bg-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-section__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding: 0 24px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-section__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 0 24px;
}

.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__card {
  flex: 0 0 auto;
  width: calc(33.333% - 14px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.carousel__card-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

.carousel__arrow--left {
  left: 6px;
}

.carousel__arrow--right {
  right: 6px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 24px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel__dot.active {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 80px 24px;
  background: var(--bg-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonials.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonials__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonials__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonials__card {
  position: relative;
  padding: 28px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
  margin: 0;
}

.testimonials__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* ---------- Sign Up ---------- */
.signup {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.signup__inner {
  max-width: 640px;
  margin: 0 auto;
}

.signup__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.signup__text {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 36px;
}

.signup__cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.signup__cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

/* ---------- Contact Form ---------- */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.contact-form__optional {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 12px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--accent);
  background: rgba(41, 151, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 4px;
}

.contact-form__submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form__submit-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-form__submit:hover .contact-form__submit-icon {
  transform: translateX(4px);
}

.contact-form__alt {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-align: center;
}

.contact-form__email-link {
  color: var(--accent);
  text-decoration: none;
}

.contact-form__email-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Success state */
.contact-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  animation: fadeInUp 0.5s ease forwards;
}

.contact-form__success svg {
  color: #30d158;
}

.contact-form__success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-form__success p {
  font-size: 15px;
  color: var(--text-secondary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- About Hero ---------- */
.about-hero {
  padding-top: calc(var(--nav-height) + 60px);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
}

.about-hero__inner {
  max-width: 640px;
}

.about-hero__logo {
  width: 180px;
  height: auto;
  margin-bottom: 32px;
}

.about-hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero__tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Sample Reports ---------- */
.reports {
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  background: var(--bg-primary);
  min-height: 80vh;
}

.reports__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.reports__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reports__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 48px;
}

.reports__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reports__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reports__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.reports__card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.reports__card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.reports__card-type {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 980px;
  border: 1px solid rgba(41, 151, 255, 0.25);
  background: rgba(41, 151, 255, 0.06);
  display: inline-block;
  width: fit-content;
}

.reports__card-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.reports__card-download:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

.reports__empty {
  font-size: 15px;
  color: var(--text-tertiary);
  padding: 40px 0;
}

.reports__empty {
  font-size: 15px;
  color: var(--text-tertiary);
  padding: 40px 0;
}

/* ---------- Reports Card Gate ---------- */
.reports__card-gate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  animation: fadeIn 0.4s ease;
}

.reports__card-gate-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2px;
}

.reports__card-gate-form {
  display: flex;
  gap: 8px;
}

.reports__card-gate-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.reports__card-gate-input:focus {
  border-color: var(--accent);
}

.reports__card-gate-submit {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reports__card-gate-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .reports__card-gate {
    max-width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--text-secondary);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  background: var(--bg-primary);
  min-height: 80vh;
}

.legal-page__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page__date {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.legal-page__content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.legal-page__content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-page__content ul {
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.legal-page__content li {
  margin-bottom: 8px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .carousel__card {
    width: calc(50% - 10px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  .nav-top__links {
    display: none;
  }

  .nav-top__hamburger {
    display: flex;
  }

  .hero__tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero {
    min-height: 65vh;
  }

  .hero__title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .hero__subtitle {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 28px;
  }

  .hero__cta {
    padding: 10px 24px;
    font-size: 15px;
  }

  .strip {
    padding: 32px 24px;
  }

  .strip__cta {
    padding: 10px 24px;
    font-size: 15px;
  }

  .video-section__wrapper {
    padding: 40px 16px 16px;
  }

  .carousel-section {
    padding: 60px 0 80px;
  }

  .carousel {
    padding: 0 16px;
  }

  .carousel__card {
    width: calc(85% - 10px);
  }

  .carousel__arrow {
    display: none;
  }

  .testimonials {
    padding: 60px 24px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials__card {
    padding: 28px 24px 24px;
  }

  .testimonials__text {
    font-size: 15px;
  }

  .signup {
    padding: 80px 24px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
  }

  .about-hero__logo {
    width: 140px;
  }

  .reports__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .reports__card-download {
    width: 100%;
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .nav-top__logo-text {
    font-size: 15px;
  }
}

/* ---------- Reports Explainer ---------- */
.reports__explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0 60px;
}

.explainer-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.explainer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.3);
}

.explainer-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.explainer-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Responsiveness for Reports */
@media (max-width: 768px) {
  .reports__explainer {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- About Content ---------- */
.about-content {
  padding: 80px 24px;
  background: var(--bg-primary);
}

.about-content__inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  text-align: center;
  margin-bottom: 80px;
}

.about-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
}

.about-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-section h2 {
    font-size: 28px;
  }
}
/* ---------- Custom Alert Modal ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.modal__content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(0);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal__submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal__submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================
   Module Showcase — Scroll-Driven Capability Sections
   ========================================================== */

.modules-showcase {
  background: var(--bg-primary);
}

.modules-showcase__intro {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
}

.modules-showcase__heading {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modules-showcase__sub {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Pipeline flowchart: Data → Analytics Models → AI → Insights ── */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto 96px;
  padding: 96px 24px 0;
}

/* Compact end nodes (Data, AI, Insights) */
.flow__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(12px);
}
.flow.is-active .flow__node { animation: flowFadeUp 0.6s ease both; }
.flow.is-active .flow__node--data     { animation-delay: 0.1s; }
.flow.is-active .flow__node--ai       { animation-delay: 0.9s; }
.flow.is-active .flow__node--insights { animation-delay: 1.2s; }

.flow__node--data     { width: 132px; }
.flow__node--ai       { width: 132px; border-color: rgba(168,85,247,0.35); }
.flow__node--insights { width: 132px; border-color: rgba(45,212,191,0.3); }

.flow__node-icon { width: 40px; height: 38px; }
.flow__node--ai .flow__node-icon,
.flow__node--insights .flow__node-icon { width: 34px; height: 34px; }

.flow__node-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.flow__node--ai .flow__node-label { color: #c084fc; font-size: 13px; }
.flow__node-sub {
  font-size: 9.5px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Wrapper so the human figure can sit above the engine */
.flow__engine-wrap {
  position: relative;
  flex: 0 0 auto;
}

/* Human controller — absolutely above the engine, doesn't affect layout height */
.flow__human {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  white-space: nowrap;
}
.flow.is-active .flow__human {
  animation: flowHumanIn 0.6s ease 0.2s both;
}
@keyframes flowHumanIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.flow__human-icon {
  width: 28px;
  height: 36px;
}

.flow__human-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45,212,191,0.7);
  white-space: nowrap;
}

.flow__human-line {
  width: 1px;
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    #2dd4bf 0px, #2dd4bf 4px,
    transparent 4px, transparent 8px
  );
  opacity: 0.6;
  margin-top: 2px;
}

/* The hero engine — visually dominant */
.flow__engine {
  position: relative;
  width: 304px;
  padding: 20px 20px 18px;
  border: 1.5px solid rgba(45,212,191,0.45);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(45,212,191,0.08) 0%, rgba(45,212,191,0.02) 60%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(45,212,191,0.08), 0 8px 40px rgba(45,212,191,0.12);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
}
.flow.is-active .flow__engine { animation: flowEnginePop 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s both; }

.flow__engine-label {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2dd4bf;
  letter-spacing: -0.01em;
}
.flow__engine-tag {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(45,212,191,0.6);
  margin-top: 2px;
  margin-bottom: 14px;
}

.flow__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.flow__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  opacity: 0;
  transform: scale(0.9);
}
.flow__tile svg { width: 56px; height: 44px; }
.flow.is-active .flow__tile { animation: flowTileIn 0.5s ease both; }
.flow.is-active .flow__tile[data-tile="0"] { animation-delay: 0.55s; }
.flow.is-active .flow__tile[data-tile="1"] { animation-delay: 0.70s; }
.flow.is-active .flow__tile[data-tile="2"] { animation-delay: 0.85s; }
.flow.is-active .flow__tile[data-tile="3"] { animation-delay: 1.00s; }

/* Connectors with flowing particles */
.flow__connector {
  position: relative;
  flex: 1 1 28px;
  min-width: 28px;
  max-width: 60px;
  height: 22px;
  display: flex;
  align-items: center;
}
.flow__line {
  position: absolute;
  left: 0; right: 6px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(45,212,191,0.15), rgba(45,212,191,0.45));
}
.flow__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  width: 0; height: 0;
  transform: translateY(-50%);
  border-left: 6px solid rgba(45,212,191,0.7);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.flow__particle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 6px rgba(45,212,191,0.9);
  opacity: 0;
}
.flow.is-active .flow__particle { animation: flowParticle 1.8s linear infinite; }
.flow.is-active .flow__connector .flow__particle:nth-child(3) { animation-delay: 0.9s; }

@keyframes flowFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes flowEnginePop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flowTileIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes flowParticle {
  0%   { opacity: 0; left: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; left: calc(100% - 8px); }
}
@keyframes flowParticleV {
  0%   { opacity: 0; top: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 8px); }
}

/* Module block — one viewport per module */
.module-block {
  position: relative;
}

/* Inner panel */
.module-block__sticky {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
  overflow: hidden;
}

/* Left info panel */
.module-block__info {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-block__number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6366f1;
  text-transform: uppercase;
}

.module-block__name {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module-block__tagline {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* Capabilities list */
.module-block__caps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.module-block__cap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  opacity: 0.3;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.module-block__cap:hover { opacity: 0.65; }

.module-block__cap.is-active,
.module-block__cap.is-active:hover {
  opacity: 1;
}

.module-block__cap.is-done {
  opacity: 0.5;
}

.module-block__cap-bar {
  flex-shrink: 0;
  width: 3px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 2px;
  position: relative;
  overflow: hidden;
}

.module-block__cap.is-active .module-block__cap-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #6366f1;
  border-radius: 2px;
  animation: capBarFill 4s linear forwards;
}

.module-block__cap.is-done .module-block__cap-bar {
  background: rgba(99, 102, 241, 0.45);
}

@keyframes capBarFill {
  from { transform: scaleY(0); transform-origin: top; }
  to { transform: scaleY(1); transform-origin: top; }
}

.module-block__cap-body {
  flex: 1;
}

.module-block__cap-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.module-block__cap-desc {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-weight: 300;
  line-height: 1.5;
}

/* Right animation panel */
.module-block__anim-panel {
  flex: 1;
  position: relative;
  height: 360px;
  max-width: 520px;
}

.module-anim {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 18px 16px;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.module-anim.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.anim-caption {
  font-size: 10.5px;
  font-weight: 600;
  color: #6366f1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.anim-svg {
  width: 100%;
  height: auto;
}

/* ── Animation Keyframes ── */

@keyframes elFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cap 0 — scan beam */
@keyframes scanBeam {
  0% { transform: translateX(0px); }
  100% { transform: translateX(490px); }
}

.module-anim.is-active .scan-beam {
  animation: scanBeam 2.8s linear infinite;
}

/* Cap 0 — cluster ring pulse */
@keyframes clRingPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.module-anim.is-active .cl-ring {
  animation: clRingPulse 3s ease-in-out infinite;
}

/* Cap 0 — dot pulse (staggered) */
@keyframes dotPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.module-anim.is-active .cl-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.module-anim.is-active .cd-m1 { animation-delay: 0.00s; }
.module-anim.is-active .cd-m2 { animation-delay: 0.30s; }
.module-anim.is-active .cd-m3 { animation-delay: 0.60s; }
.module-anim.is-active .cd-m4 { animation-delay: 0.15s; }
.module-anim.is-active .cd-m5 { animation-delay: 0.80s; }
.module-anim.is-active .cd-m6 { animation-delay: 0.45s; }
.module-anim.is-active .cd-m7 { animation-delay: 0.70s; }
.module-anim.is-active .cd-e1 { animation-delay: 0.20s; }
.module-anim.is-active .cd-e2 { animation-delay: 0.50s; }
.module-anim.is-active .cd-e3 { animation-delay: 0.05s; }
.module-anim.is-active .cd-e4 { animation-delay: 0.90s; }
.module-anim.is-active .cd-e5 { animation-delay: 0.35s; }
.module-anim.is-active .cd-e6 { animation-delay: 0.65s; }
.module-anim.is-active .cd-n1 { animation-delay: 0.10s; }
.module-anim.is-active .cd-n2 { animation-delay: 0.40s; }
.module-anim.is-active .cd-n3 { animation-delay: 0.75s; }
.module-anim.is-active .cd-n4 { animation-delay: 0.25s; }
.module-anim.is-active .cd-n5 { animation-delay: 0.55s; }
.module-anim.is-active .cd-n6 { animation-delay: 0.85s; }

/* Cap 0 — labels & badges fade in */
.module-anim.is-active .cl-label {
  transform-box: fill-box;
  animation: elFadeIn 0.6s ease 0.2s both;
}

.module-anim.is-active .cl-badge,
.module-anim.is-active .cl-badge-text {
  animation: elFadeIn 0.6s ease 0.5s both;
}

/* Cap 1 — zones staggered fade in */
@keyframes zoneFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.module-anim.is-active .zone-emerging { animation: zoneFadeIn 0.7s ease 0.10s both; }
.module-anim.is-active .zone-niche    { animation: zoneFadeIn 0.7s ease 0.40s both; }
.module-anim.is-active .zone-mature   { animation: zoneFadeIn 0.7s ease 0.70s both; }

/* Cap 1 — trend line draw */
@keyframes trendDraw {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}

.module-anim.is-active .trend-line {
  animation: trendDraw 1.2s ease 0.9s both;
}

.module-anim.is-active .trend-dot,
.module-anim.is-active .z-badge,
.module-anim.is-active .z-badge-text {
  animation: elFadeIn 0.5s ease 1.8s both;
}

.module-anim.is-active .niche-dot {
  animation: elFadeIn 0.5s ease 0.6s both;
}

/* Cap 1 — bar chart grow */
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.module-anim.is-active .z-bar {
  transform-box: fill-box;
  transform-origin: bottom center;
}

.module-anim.is-active .zb1 { animation: barGrow 0.45s ease 1.0s both; }
.module-anim.is-active .zb2 { animation: barGrow 0.45s ease 1.1s both; }
.module-anim.is-active .zb3 { animation: barGrow 0.45s ease 1.2s both; }
.module-anim.is-active .zb4 { animation: barGrow 0.45s ease 1.3s both; }
.module-anim.is-active .zb5 { animation: barGrow 0.45s ease 1.2s both; }
.module-anim.is-active .zb6 { animation: barGrow 0.45s ease 1.1s both; }
.module-anim.is-active .zb7 { animation: barGrow 0.45s ease 1.0s both; }

.module-anim.is-active .mature-info,
.module-anim.is-active .mature-info-text {
  animation: elFadeIn 0.6s ease 1.6s both;
}

/* Cap 1 — zone pulse ring */
@keyframes zonePulseRing {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

.module-anim.is-active .zone-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: zonePulseRing 2s ease-out 1.2s infinite;
}

/* Cap 2 — center node halo pulse */
@keyframes centerHalo {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.08); opacity: 1; }
}

.module-anim.is-active .center-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: centerHalo 2.5s ease-in-out infinite;
}

/* Cap 2 — insight lines draw */
@keyframes lineDraw130 {
  from { stroke-dashoffset: 130; }
  to   { stroke-dashoffset: 0; }
}

@keyframes lineDraw50 {
  from { stroke-dashoffset: 50; }
  to   { stroke-dashoffset: 0; }
}

.module-anim.is-active .il1 { animation: lineDraw130 0.55s ease 0.35s both; }
.module-anim.is-active .il2 { animation: lineDraw130 0.55s ease 0.55s both; }
.module-anim.is-active .il3 { animation: lineDraw50  0.40s ease 0.75s both; }

/* Cap 2 — insight cards & text */
.module-anim.is-active .ic1      { animation: elFadeIn 0.45s ease 0.85s both; }
.module-anim.is-active .ic1-el   { animation: elFadeIn 0.45s ease 0.95s both; }
.module-anim.is-active .ic2      { animation: elFadeIn 0.45s ease 1.05s both; }
.module-anim.is-active .ic2-el   { animation: elFadeIn 0.45s ease 1.15s both; }
.module-anim.is-active .ic3      { animation: elFadeIn 0.45s ease 1.25s both; }
.module-anim.is-active .ic3-el   { animation: elFadeIn 0.45s ease 1.35s both; }

/* Cap 2 — spark badge */
@keyframes sparkIn {
  0%   { opacity: 0; transform: scale(0.88); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.module-anim.is-active .spark-badge {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkIn 0.5s ease 1.55s both;
}

.module-anim.is-active .spark-text {
  animation: elFadeIn 0.45s ease 1.65s both;
}

/* ── Module 02: Portfolio Analysis — color overrides ── */

.module-block__number--purple { color: #a855f7; }

.module-block__cap-bar--purple { background: rgba(168,85,247,0.1) !important; }

#module-portfolio .module-block__cap.is-active .module-block__cap-bar--purple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #a855f7;
  border-radius: 2px;
  animation: capBarFill 4s linear forwards;
}

#module-portfolio .module-block__cap.is-done .module-block__cap-bar--purple {
  background: rgba(168,85,247,0.4) !important;
}

.anim-caption--purple { color: #a855f7; }

/* Cap 0: SWOT quadrants fade in */
@keyframes swotFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.module-anim.is-active .swot-s { animation: swotFadeIn 0.5s ease 0.10s both; }
.module-anim.is-active .swot-w { animation: swotFadeIn 0.5s ease 0.35s both; }
.module-anim.is-active .swot-o { animation: swotFadeIn 0.5s ease 0.60s both; }
.module-anim.is-active .swot-t { animation: swotFadeIn 0.5s ease 0.85s both; }

.module-anim.is-active .swot-s-l1 { animation: elFadeIn 0.4s ease 0.40s both; }
.module-anim.is-active .swot-s-l2 { animation: elFadeIn 0.4s ease 0.50s both; }
.module-anim.is-active .swot-s-l3 { animation: elFadeIn 0.4s ease 0.60s both; }
.module-anim.is-active .swot-w-l1 { animation: elFadeIn 0.4s ease 0.65s both; }
.module-anim.is-active .swot-w-l2 { animation: elFadeIn 0.4s ease 0.75s both; }
.module-anim.is-active .swot-w-l3 { animation: elFadeIn 0.4s ease 0.85s both; }
.module-anim.is-active .swot-o-l1 { animation: elFadeIn 0.4s ease 0.90s both; }
.module-anim.is-active .swot-o-l2 { animation: elFadeIn 0.4s ease 1.00s both; }
.module-anim.is-active .swot-o-l3 { animation: elFadeIn 0.4s ease 1.10s both; }
.module-anim.is-active .swot-t-l1 { animation: elFadeIn 0.4s ease 1.15s both; }
.module-anim.is-active .swot-t-l2 { animation: elFadeIn 0.4s ease 1.25s both; }
.module-anim.is-active .swot-t-l3 { animation: elFadeIn 0.4s ease 1.35s both; }

/* Cap 1: Portfolio bars grow from respective sides */
.module-anim.is-active .port-title { animation: elFadeIn 0.4s ease 0s both; }

.module-anim.is-active .port-bar { transform-box: fill-box; }

.module-anim.is-active .pb-y1 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.10s both; }
.module-anim.is-active .pb-y2 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.20s both; }
.module-anim.is-active .pb-y3 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.30s both; }
.module-anim.is-active .pb-y4 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.40s both; }
.module-anim.is-active .pb-y5 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.50s both; }
.module-anim.is-active .pb-y6 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.60s both; }
.module-anim.is-active .pb-y7 { transform-origin: left center; animation: barGrowLeft 0.35s ease 0.70s both; }

.module-anim.is-active .pb-c1 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.15s both; }
.module-anim.is-active .pb-c2 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.25s both; }
.module-anim.is-active .pb-c3 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.35s both; }
.module-anim.is-active .pb-c4 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.45s both; }
.module-anim.is-active .pb-c5 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.55s both; }
.module-anim.is-active .pb-c6 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.65s both; }
.module-anim.is-active .pb-c7 { transform-origin: right center; animation: barGrowLeft 0.35s ease 0.75s both; }

@keyframes barGrowLeft {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.module-anim.is-active .overlap-zone,
.module-anim.is-active .overlap-label { animation: elFadeIn 0.5s ease 0.9s both; }

@keyframes lineDraw14 {
  from { stroke-dashoffset: 14; }
  to   { stroke-dashoffset: 0; }
}

.module-anim.is-active .sl1 { animation: lineDraw14 0.3s ease 1.1s both; }
.module-anim.is-active .sl2 { animation: lineDraw14 0.3s ease 1.1s both; }
.module-anim.is-active .st1  { animation: elFadeIn 0.4s ease 1.3s both; }
.module-anim.is-active .st1t { animation: elFadeIn 0.4s ease 1.4s both; }
.module-anim.is-active .st2  { animation: elFadeIn 0.4s ease 1.3s both; }
.module-anim.is-active .st2t { animation: elFadeIn 0.4s ease 1.4s both; }

/* Cap 2: Lasso dots pulse */
.module-anim.is-active .pa-dot,
.module-anim.is-active .pb-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.module-anim.is-active .pad1 { animation-delay: 0.00s; }
.module-anim.is-active .pad2 { animation-delay: 0.30s; }
.module-anim.is-active .pad3 { animation-delay: 0.60s; }
.module-anim.is-active .pad4 { animation-delay: 0.15s; }
.module-anim.is-active .pad5 { animation-delay: 0.80s; }
.module-anim.is-active .pad6 { animation-delay: 0.45s; }
.module-anim.is-active .pad7 { animation-delay: 0.70s; }
.module-anim.is-active .pad8 { animation-delay: 0.20s; }
.module-anim.is-active .pad9 { animation-delay: 0.55s; }
.module-anim.is-active .pbc1 { animation-delay: 0.10s; }
.module-anim.is-active .pbc2 { animation-delay: 0.40s; }
.module-anim.is-active .pbc3 { animation-delay: 0.75s; }
.module-anim.is-active .pbc4 { animation-delay: 0.25s; }
.module-anim.is-active .pbc5 { animation-delay: 0.50s; }
.module-anim.is-active .pbc6 { animation-delay: 0.85s; }
.module-anim.is-active .pbc7 { animation-delay: 0.35s; }
.module-anim.is-active .pbc8 { animation-delay: 0.65s; }
.module-anim.is-active .pbc9 { animation-delay: 0.90s; }

/* Cap 2: Lasso draw */
@keyframes lassoDraw {
  from { stroke-dashoffset: 1400; }
  to   { stroke-dashoffset: 0; }
}

.module-anim.is-active .lasso-path  { animation: lassoDraw 2.4s ease-in-out 0.4s both; }
.module-anim.is-active .lasso-fill  { animation: elFadeIn 0.6s ease 2.8s both; }
.module-anim.is-active .overlap-hl  { animation: elFadeIn 0.5s ease 3.0s both; }
.module-anim.is-active .prox-overlap { animation: elFadeIn 0.5s ease 3.1s both; }
.module-anim.is-active .pot         { animation: elFadeIn 0.5s ease 3.2s both; }
.module-anim.is-active .gap-a       { animation: elFadeIn 0.5s ease 3.3s both; }
.module-anim.is-active .ga          { animation: elFadeIn 0.5s ease 3.4s both; }
.module-anim.is-active .gap-b       { animation: elFadeIn 0.5s ease 3.3s both; }
.module-anim.is-active .gb          { animation: elFadeIn 0.5s ease 3.4s both; }

/* ── Module 03: Risk Analysis — color overrides ── */

.module-block__number--orange { color: #f97316; }

.module-block__cap-bar--orange { background: rgba(249,115,22,0.1) !important; }

#module-risk .module-block__cap.is-active .module-block__cap-bar--orange::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f97316;
  border-radius: 2px;
  animation: capBarFill 4s linear forwards;
}

#module-risk .module-block__cap.is-done .module-block__cap-bar--orange {
  background: rgba(249,115,22,0.4) !important;
}

.anim-caption--orange { color: #f97316; }

/* Cap 0: Document scan beam (vertical) */
@keyframes scanDocV {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(294px); }
}

.module-anim.is-active .scan-doc {
  animation: scanDocV 2.6s linear infinite;
}

/* Cap 0: Feature lines draw */
@keyframes lineDraw18 {
  from { stroke-dashoffset: 18; }
  to   { stroke-dashoffset: 0; }
}

.module-anim.is-active .fl1 { animation: lineDraw18 0.25s ease 0.8s  both; }
.module-anim.is-active .fl2 { animation: lineDraw18 0.25s ease 1.35s both; }
.module-anim.is-active .fl3 { animation: lineDraw18 0.25s ease 1.9s  both; }
.module-anim.is-active .fl4 { animation: lineDraw18 0.25s ease 2.45s both; }
.module-anim.is-active .fl5 { animation: lineDraw18 0.25s ease 3.0s  both; }

/* Cap 0: Feature chips fade in after lines */
.module-anim.is-active .fc1 { animation: elFadeIn 0.3s ease 0.95s both; }
.module-anim.is-active .fc2 { animation: elFadeIn 0.3s ease 1.50s both; }
.module-anim.is-active .fc3 { animation: elFadeIn 0.3s ease 2.05s both; }
.module-anim.is-active .fc4 { animation: elFadeIn 0.3s ease 2.60s both; }
.module-anim.is-active .fc5 { animation: elFadeIn 0.3s ease 3.15s both; }

/* Cap 1: Design-Around */
.module-anim.is-active .da-risk-zone  { animation: elFadeIn 0.5s ease 0.1s both; }
.module-anim.is-active .da-risk-label { animation: elFadeIn 0.4s ease 0.4s both; }
.module-anim.is-active .da-safe-zone  { animation: elFadeIn 0.5s ease 0.2s both; }
.module-anim.is-active .da-safe-label { animation: elFadeIn 0.4s ease 0.5s both; }
.module-anim.is-active .da-node-risk  { animation: elFadeIn 0.4s ease 0.7s both; }

@keyframes riskPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.6); opacity: 0; }
}

.module-anim.is-active .da-node-risk-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: riskPulse 1.5s ease-out 0.9s infinite;
}

@keyframes daPathDraw {
  from { stroke-dashoffset: 320; }
  to   { stroke-dashoffset: 0; }
}

.module-anim.is-active .da-path  { animation: daPathDraw 1.2s ease 1.4s both; }
.module-anim.is-active .da-arrow { animation: elFadeIn 0.3s ease 2.5s both; }
.module-anim.is-active .da-node-safe { animation: elFadeIn 0.4s ease 2.6s both; }
.module-anim.is-active .da-clear     { animation: elFadeIn 0.4s ease 2.8s both; }

/* Cap 2: Claim chart */
.module-anim.is-active .chart-grid { animation: elFadeIn 0.4s ease 0.1s both; }
.module-anim.is-active .chart-hdr  { animation: elFadeIn 0.4s ease 0.3s both; }

.module-anim.is-active .cc-1a,   .module-anim.is-active .cc-1a-t   { animation: elFadeIn 0.35s ease 0.50s both; }
.module-anim.is-active .cc-1b,   .module-anim.is-active .cc-1b-t   { animation: elFadeIn 0.35s ease 0.65s both; }
.module-anim.is-active .cc-1c-amb, .module-anim.is-active .cc-1c-amb-t { animation: elFadeIn 0.35s ease 0.80s both; }
.module-anim.is-active .cc-2a,   .module-anim.is-active .cc-2a-t   { animation: elFadeIn 0.35s ease 0.95s both; }
.module-anim.is-active .cc-2b,   .module-anim.is-active .cc-2b-t   { animation: elFadeIn 0.35s ease 1.10s both; }
.module-anim.is-active .cc-3a,   .module-anim.is-active .cc-3a-t   { animation: elFadeIn 0.35s ease 1.25s both; }
.module-anim.is-active .cc-3c,   .module-anim.is-active .cc-3c-t   { animation: elFadeIn 0.35s ease 1.40s both; }

/* Strengthen badge pulses, then amber cell upgrades to green */
@keyframes strengthenPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.module-anim.is-active .strengthen-badge,
.module-anim.is-active .strengthen-text {
  animation: elFadeIn 0.4s ease 1.6s both;
}

.module-anim.is-active .strengthen-badge {
  animation: elFadeIn 0.4s ease 1.6s both, strengthenPulse 0.7s ease 2.0s 2;
}

.module-anim.is-active .cc-1c-grn,
.module-anim.is-active .cc-1c-grn-t { animation: elFadeIn 0.5s ease 3.4s both; }

/* ── Module 04: Prosecution Assist ── */

.module-block__number--blue { color: #3b82f6; }
.anim-caption--blue { color: #3b82f6; }

.module-block__cap-bar--blue { background: rgba(59,130,246,0.1) !important; }

#module-prosecution .module-block__cap.is-active .module-block__cap-bar--blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #3b82f6;
  border-radius: 2px;
  animation: capBarFill 4s linear forwards;
}

#module-prosecution .module-block__cap.is-done .module-block__cap-bar--blue {
  background: rgba(59,130,246,0.4) !important;
}

.module-block__release {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: #3b82f6;
  letter-spacing: 0.06em;
  border: 1px solid rgba(59,130,246,0.35);
  padding: 3px 10px;
  margin-top: -8px;
}

/* Cap 0: Ontology */
@keyframes lineDraw42 { from { stroke-dashoffset: 42; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw55 { from { stroke-dashoffset: 55; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw76 { from { stroke-dashoffset: 76; } to { stroke-dashoffset: 0; } }

.module-anim.is-active .onto-claim     { animation: elFadeIn 0.4s ease 0.1s both; }
.module-anim.is-active .onto-highlight { animation: elFadeIn 0.4s ease 0.3s both; }
.module-anim.is-active .onto-center    { animation: elFadeIn 0.5s ease 0.5s both; }
.module-anim.is-active .onto-conn      { animation: lineDraw55 0.4s ease 0.4s both; }

.module-anim.is-active .ol-broad { animation: lineDraw42 0.35s ease 0.8s  both; }
.module-anim.is-active .ol-n1    { animation: lineDraw76 0.35s ease 1.0s  both; }
.module-anim.is-active .ol-n2    { animation: lineDraw76 0.35s ease 1.15s both; }
.module-anim.is-active .ol-rel   { animation: lineDraw50 0.35s ease 1.3s  both; }

.module-anim.is-active .on-broad { animation: elFadeIn 0.35s ease 1.0s  both; }
.module-anim.is-active .on-n1    { animation: elFadeIn 0.35s ease 1.2s  both; }
.module-anim.is-active .on-n2    { animation: elFadeIn 0.35s ease 1.35s both; }
.module-anim.is-active .on-rel   { animation: elFadeIn 0.35s ease 1.5s  both; }

.module-anim.is-active .onto-amend { animation: elFadeIn 0.5s ease 1.7s both; }
.module-anim.is-active .onto-conf  { animation: elFadeIn 0.4s ease 1.9s both; }

/* Cap 1: Prosecution timeline — App → OA → Response (no Allowance) */
@keyframes lineDraw284 { from { stroke-dashoffset: 284; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw54  { from { stroke-dashoffset: 54;  } to { stroke-dashoffset: 0; } }
@keyframes lineDraw56  { from { stroke-dashoffset: 56;  } to { stroke-dashoffset: 0; } }

.module-anim.is-active .pt-line    { animation: lineDraw284 0.7s ease 0.1s both; }
.module-anim.is-active .ptn-app    { animation: elFadeIn 0.35s ease 0.5s  both; }
.module-anim.is-active .ptn-app-l  { animation: elFadeIn 0.35s ease 0.6s  both; }
.module-anim.is-active .ptn-oa     { animation: elFadeIn 0.35s ease 0.8s  both; }
.module-anim.is-active .ptn-oa-l   { animation: elFadeIn 0.35s ease 0.9s  both; }
.module-anim.is-active .oa-rejection { animation: elFadeIn 0.35s ease 1.0s both; }
.module-anim.is-active .oa-rej-line  { animation: lineDraw14 0.2s ease 1.2s both; }
.module-anim.is-active .ptn-res    { animation: elFadeIn 0.35s ease 1.2s  both; }
.module-anim.is-active .ptn-res-l  { animation: elFadeIn 0.35s ease 1.3s  both; }

@keyframes resHaloPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.4); opacity: 0; }
}

.module-anim.is-active .ptn-res-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: elFadeIn 0.1s ease 1.2s both, resHaloPulse 1.5s ease 1.5s infinite;
}

.module-anim.is-active .surr-line { animation: lineDraw56 0.4s ease 1.5s both; }
.module-anim.is-active .surr-card { animation: elFadeIn 0.5s ease 1.8s both; }
.module-anim.is-active .surr-risk { animation: elFadeIn 0.4s ease 2.2s both; }

/* Cap 2: Family harmonization */
@keyframes lineDraw172 { from { stroke-dashoffset: 172; } to { stroke-dashoffset: 0; } }

.module-anim.is-active .fam-us       { animation: elFadeIn 0.5s ease 0.1s both; }
.module-anim.is-active .fam-us-claim { animation: elFadeIn 0.5s ease 0.4s both; }
.module-anim.is-active .fam-in       { animation: elFadeIn 0.5s ease 0.6s both; }
.module-anim.is-active .hl1          { animation: lineDraw172 0.55s ease 0.9s  both; }
.module-anim.is-active .hl2          { animation: lineDraw172 0.55s ease 1.0s  both; }
.module-anim.is-active .hl3          { animation: lineDraw172 0.55s ease 1.1s  both; }
.module-anim.is-active .harm-arrow   { animation: elFadeIn 0.3s ease 1.4s both; }
.module-anim.is-active .harm-badge   { animation: elFadeIn 0.5s ease 1.2s both; }
.module-anim.is-active .harm-result  { animation: elFadeIn 0.5s ease 1.6s both; }

/* ── Module 05: Agentic Infringement ── */

.module-block__number--amber { color: #f59e0b; }
.anim-caption--amber { color: #f59e0b; }
.module-block__release--amber { border-color: rgba(245,158,11,0.35); color: #f59e0b; }

.module-block__cap-bar--amber { background: rgba(245,158,11,0.1) !important; }

#module-infringement .module-block__cap.is-active .module-block__cap-bar--amber::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f59e0b;
  border-radius: 2px;
  animation: capBarFill 4s linear forwards;
}

#module-infringement .module-block__cap.is-done .module-block__cap-bar--amber {
  background: rgba(245,158,11,0.4) !important;
}

/* Cap 0: Claim element analysis */
@keyframes lineDraw18b { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }

.module-anim.is-active .ea1,  .module-anim.is-active .eac1 { animation: elFadeIn 0.35s ease 0.15s both; }
.module-anim.is-active .eal1 { animation: lineDraw18b 0.2s ease 0.45s both; }
.module-anim.is-active .ea2,  .module-anim.is-active .eac2 { animation: elFadeIn 0.35s ease 0.6s  both; }
.module-anim.is-active .eal2 { animation: lineDraw18b 0.2s ease 0.9s  both; }
.module-anim.is-active .ea3,  .module-anim.is-active .eac3 { animation: elFadeIn 0.35s ease 1.05s both; }
.module-anim.is-active .eal3 { animation: lineDraw18b 0.2s ease 1.35s both; }
.module-anim.is-active .ea4,  .module-anim.is-active .eac4 { animation: elFadeIn 0.35s ease 1.5s  both; }
.module-anim.is-active .eal4 { animation: lineDraw18b 0.2s ease 1.8s  both; }
.module-anim.is-active .ea5,  .module-anim.is-active .eac5 { animation: elFadeIn 0.35s ease 1.95s both; }
.module-anim.is-active .eal5 { animation: lineDraw18b 0.2s ease 2.25s both; }
.module-anim.is-active .ea-summary { animation: elFadeIn 0.5s ease 2.5s both; }

/* Cap 1: Search plan tree */
@keyframes lineDraw85  { from { stroke-dashoffset: 85;  } to { stroke-dashoffset: 0; } }
@keyframes lineDraw34  { from { stroke-dashoffset: 34;  } to { stroke-dashoffset: 0; } }
@keyframes lineDraw35  { from { stroke-dashoffset: 35;  } to { stroke-dashoffset: 0; } }

.module-anim.is-active .sp-root  { animation: elFadeIn 0.4s ease 0.1s  both; }
.module-anim.is-active .spl-q1   { animation: lineDraw85 0.5s ease 0.4s  both; }
.module-anim.is-active .spl-q2   { animation: lineDraw34 0.3s ease 0.55s both; }
.module-anim.is-active .spl-q3   { animation: lineDraw85 0.5s ease 0.7s  both; }
.module-anim.is-active .sq1      { animation: elFadeIn 0.35s ease 0.8s  both; }
.module-anim.is-active .sq2      { animation: elFadeIn 0.35s ease 0.95s both; }
.module-anim.is-active .sq3      { animation: elFadeIn 0.35s ease 1.1s  both; }
.module-anim.is-active .sp-edit  { animation: elFadeIn 0.3s ease 1.2s  both; }
.module-anim.is-active .spl-r1,
.module-anim.is-active .spl-r2   { animation: lineDraw35 0.3s ease 1.3s both; }
.module-anim.is-active .spl-r3,
.module-anim.is-active .spl-r4   { animation: lineDraw35 0.3s ease 1.45s both; }
.module-anim.is-active .spl-r5,
.module-anim.is-active .spl-r6   { animation: lineDraw35 0.3s ease 1.6s both; }
.module-anim.is-active .sr1, .module-anim.is-active .sr2 { animation: elFadeIn 0.3s ease 1.5s both; }
.module-anim.is-active .sr3, .module-anim.is-active .sr4 { animation: elFadeIn 0.3s ease 1.65s both; }
.module-anim.is-active .sr5, .module-anim.is-active .sr6 { animation: elFadeIn 0.3s ease 1.8s both; }
.module-anim.is-active .sp-ready { animation: elFadeIn 0.5s ease 2.0s both; }

/* Cap 2: Knowledge graph */
@keyframes lineDraw100 { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw54b { from { stroke-dashoffset: 54; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw44  { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw48  { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }

@keyframes kgPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.module-anim.is-active .kg-claim   { animation: elFadeIn 0.5s ease 0.1s both; }
.module-anim.is-active .kgl-tc     { animation: lineDraw100 0.5s ease 0.4s both; }
.module-anim.is-active .kgl-nx     { animation: lineDraw100 0.5s ease 0.55s both; }
.module-anim.is-active .kgl-il     { animation: lineDraw54b 0.4s ease 0.7s both; }
.module-anim.is-active .kg-tc      { animation: elFadeIn 0.4s ease 0.8s both; }
.module-anim.is-active .kg-nx      { animation: elFadeIn 0.4s ease 0.95s both; }
.module-anim.is-active .kg-il      { animation: elFadeIn 0.4s ease 1.1s both; }

.module-anim.is-active .kg-tc-pulse,
.module-anim.is-active .kg-nx-pulse,
.module-anim.is-active .kg-il-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: elFadeIn 0.1s ease 1.0s both, kgPulse 1.8s ease-out 1.2s infinite;
}

.module-anim.is-active .kgp-tc1 { animation: lineDraw44 0.35s ease 1.2s both; }
.module-anim.is-active .kgp-tc2 { animation: lineDraw48 0.35s ease 1.3s both; }
.module-anim.is-active .kgp-nx1 { animation: lineDraw44 0.35s ease 1.35s both; }
.module-anim.is-active .kgp-nx2 { animation: lineDraw48 0.35s ease 1.45s both; }
.module-anim.is-active .kgp-il1 { animation: lineDraw48 0.35s ease 1.5s both; }
.module-anim.is-active .kgp-il2 { animation: lineDraw48 0.35s ease 1.6s both; }

.module-anim.is-active .kgpn-tc1 { animation: elFadeIn 0.3s ease 1.5s both; }
.module-anim.is-active .kgpn-tc2 { animation: elFadeIn 0.3s ease 1.6s both; }
.module-anim.is-active .kgpn-nx1 { animation: elFadeIn 0.3s ease 1.65s both; }
.module-anim.is-active .kgpn-nx2 { animation: elFadeIn 0.3s ease 1.75s both; }
.module-anim.is-active .kgpn-il1 { animation: elFadeIn 0.3s ease 1.8s both; }
.module-anim.is-active .kgpn-il2 { animation: elFadeIn 0.3s ease 1.9s both; }

.module-anim.is-active .kge1 { animation: elFadeIn 0.3s ease 1.8s  both; }
.module-anim.is-active .kge2 { animation: elFadeIn 0.3s ease 1.95s both; }
.module-anim.is-active .kge3 { animation: elFadeIn 0.3s ease 2.0s  both; }
.module-anim.is-active .kge4 { animation: elFadeIn 0.3s ease 2.15s both; }
.module-anim.is-active .kge5 { animation: elFadeIn 0.3s ease 2.1s  both; }
.module-anim.is-active .kge6 { animation: elFadeIn 0.3s ease 2.25s both; }

/* ── Module 06: IdeaHat ── */

.module-block__number--teal { color: #2dd4bf; }
.anim-caption--teal { color: #2dd4bf; }
.module-block__release--teal { border-color: rgba(45,212,191,0.35); color: #2dd4bf; }
.module-block__cap-bar--teal { background: rgba(45,212,191,0.1) !important; }

#module-ideahat .module-block__cap.is-active .module-block__cap-bar--teal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #2dd4bf;
  border-radius: 2px;
  animation: capBarFill 4s linear forwards;
}

#module-ideahat .module-block__cap.is-done .module-block__cap-bar--teal {
  background: rgba(45,212,191,0.4) !important;
}

/* Cap 0: Radar chart */
@keyframes radarDraw { from { stroke-dashoffset: 370; } to { stroke-dashoffset: 0; } }
@keyframes typeLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes connDraw { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
@keyframes cursorBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.12; } }

/* Typing disclosure panel → drives coverage */
.module-anim.is-active .idh-doc   { animation: elFadeIn 0.4s ease 0.1s both; }
.module-anim.is-active .idh-title { animation: elFadeIn 0.4s ease 0.2s both; }
.module-anim.is-active .idh-note  { animation: elFadeIn 0.4s ease 1.1s both; }
.module-anim.is-active .idh-line {
  transform-box: fill-box;
  transform-origin: left center;
}
.module-anim.is-active .idl1 { animation: typeLine 0.22s ease 0.30s both; }
.module-anim.is-active .idl2 { animation: typeLine 0.22s ease 0.45s both; }
.module-anim.is-active .idl3 { animation: typeLine 0.22s ease 0.60s both; }
.module-anim.is-active .idl4 { animation: typeLine 0.22s ease 0.75s both; }
.module-anim.is-active .idl5 { animation: typeLine 0.22s ease 0.90s both; }
.module-anim.is-active .idl6 { animation: typeLine 0.22s ease 1.05s both; }
.module-anim.is-active .idh-cursor { animation: elFadeIn 0.2s ease 0.3s both, cursorBlink 0.7s step-end 0.5s infinite; }
.module-anim.is-active .idh-conn  { animation: connDraw 0.45s ease 1.2s both; }
.module-anim.is-active .idh-arrow { animation: elFadeIn 0.3s ease 1.55s both; }
@keyframes scorePop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.module-anim.is-active .radar-grid   { animation: elFadeIn 0.5s ease 0.1s both; }
.module-anim.is-active .radar-axis   { animation: elFadeIn 0.5s ease 0.2s both; }
.module-anim.is-active .radar-label  { animation: elFadeIn 0.5s ease 0.3s both; }
.module-anim.is-active .radar-stroke { animation: radarDraw 1.2s ease 0.5s both; }
.module-anim.is-active .radar-fill   { animation: elFadeIn 0.8s ease 1.0s both; }

.module-anim.is-active .score-dot,
.module-anim.is-active .score-num {
  transform-box: fill-box;
  transform-origin: center;
}
.module-anim.is-active .sd1, .module-anim.is-active .sn1 { animation: scorePop 0.4s ease 1.5s both; }
.module-anim.is-active .sd2, .module-anim.is-active .sn2 { animation: scorePop 0.4s ease 1.7s both; }
.module-anim.is-active .sd3, .module-anim.is-active .sn3 { animation: scorePop 0.4s ease 1.9s both; }
.module-anim.is-active .sd4, .module-anim.is-active .sn4 { animation: scorePop 0.4s ease 2.1s both; }
.module-anim.is-active .sd5, .module-anim.is-active .sn5 { animation: scorePop 0.4s ease 2.3s both; }
.module-anim.is-active .sd6, .module-anim.is-active .sn6 { animation: scorePop 0.4s ease 2.5s both; }

.module-anim.is-active .radar-total       { animation: scorePop 0.5s ease 2.8s both; }
.module-anim.is-active .radar-score-num   { animation: elFadeIn 0.4s ease 2.9s both; }
.module-anim.is-active .radar-score-label { animation: elFadeIn 0.4s ease 3.0s both; }

/* Cap 1: Embodiment builder */
@keyframes lineDraw93 { from { stroke-dashoffset: 93; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw73 { from { stroke-dashoffset: 73; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw40 { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw37 { from { stroke-dashoffset: 37; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw43 { from { stroke-dashoffset: 43; } to { stroke-dashoffset: 0; } }

.module-anim.is-active .eb-root  { animation: elFadeIn 0.5s ease 0.1s both; }
.module-anim.is-active .el-uc    { animation: lineDraw93 0.5s ease 0.4s  both; }
.module-anim.is-active .el-im    { animation: lineDraw73 0.4s ease 0.6s  both; }
.module-anim.is-active .el-ad    { animation: lineDraw93 0.5s ease 0.8s  both; }
.module-anim.is-active .eb-uc    { animation: elFadeIn 0.35s ease 0.8s   both; }
.module-anim.is-active .eb-im    { animation: elFadeIn 0.35s ease 0.95s  both; }
.module-anim.is-active .eb-ad    { animation: elFadeIn 0.35s ease 1.2s   both; }
.module-anim.is-active .el-uc1   { animation: lineDraw43 0.35s ease 1.0s  both; }
.module-anim.is-active .el-uc2   { animation: lineDraw43 0.35s ease 1.1s  both; }
.module-anim.is-active .el-im1   { animation: lineDraw37 0.35s ease 1.15s both; }
.module-anim.is-active .el-im2   { animation: lineDraw37 0.35s ease 1.25s both; }
.module-anim.is-active .el-ad1   { animation: lineDraw40 0.35s ease 1.35s both; }
.module-anim.is-active .el-ad2   { animation: lineDraw40 0.35s ease 1.45s both; }
.module-anim.is-active .ebl-uc1  { animation: elFadeIn 0.3s ease 1.2s   both; }
.module-anim.is-active .ebl-uc2  { animation: elFadeIn 0.3s ease 1.3s   both; }
.module-anim.is-active .ebl-im1  { animation: elFadeIn 0.3s ease 1.35s  both; }
.module-anim.is-active .ebl-im2  { animation: elFadeIn 0.3s ease 1.45s  both; }
.module-anim.is-active .ebl-ad1  { animation: elFadeIn 0.3s ease 1.55s  both; }
.module-anim.is-active .ebl-ad2  { animation: elFadeIn 0.3s ease 1.65s  both; }

/* Cap 2: Invention QC */
@keyframes lineDraw57 { from { stroke-dashoffset: 57; } to { stroke-dashoffset: 0; } }
@keyframes lineDraw38 { from { stroke-dashoffset: 38; } to { stroke-dashoffset: 0; } }
@keyframes progressBarFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.module-anim.is-active .iqc-root       { animation: elFadeIn 0.4s ease 0.1s  both; }
.module-anim.is-active .ib1            { animation: lineDraw57 0.4s ease 0.3s  both; }
.module-anim.is-active .iqcb1          { animation: elFadeIn 0.35s ease 0.65s both; }
.module-anim.is-active .ib2            { animation: lineDraw38 0.3s ease 0.5s  both; }
.module-anim.is-active .iqcb2          { animation: elFadeIn 0.35s ease 0.75s both; }
.module-anim.is-active .ib3-broken     { animation: elFadeIn 0.5s ease 1.0s   both; }
.module-anim.is-active .iqcb3          { animation: elFadeIn 0.35s ease 1.3s  both; }
.module-anim.is-active .iqc-warning    { animation: elFadeIn 0.4s ease 1.5s   both; }
.module-anim.is-active .iqc-title      { animation: elFadeIn 0.4s ease 1.6s   both; }
.module-anim.is-active .ic1            { animation: elFadeIn 0.35s ease 1.8s  both; }
.module-anim.is-active .ic2            { animation: elFadeIn 0.35s ease 2.1s  both; }
.module-anim.is-active .ic3            { animation: elFadeIn 0.35s ease 2.4s  both; }
.module-anim.is-active .ic4            { animation: elFadeIn 0.35s ease 2.7s  both; }
.module-anim.is-active .ic5-fail       { animation: elFadeIn 0.35s ease 3.0s  both; }
.module-anim.is-active .iqc-progress-bg,
.module-anim.is-active .iqc-progress-label { animation: elFadeIn 0.35s ease 3.2s both; }

.module-anim.is-active .iqc-progress-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: elFadeIn 0.1s ease 3.3s both, progressBarFill 1.2s ease 3.3s both;
}

.module-anim.is-active .ic5-pass       { animation: elFadeIn 0.4s ease 3.8s  both; }
.module-anim.is-active .iqc-repair-line,
.module-anim.is-active .iqc-repair-node { animation: elFadeIn 0.5s ease 4.0s both; }
.module-anim.is-active .iqc-score      { animation: elFadeIn 0.4s ease 4.2s  both; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 64px);
    padding-bottom: 64px;
  }

  /* Human figure: switch from absolute to static so it sits above engine in column flow */
  .flow__engine-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .flow__human {
    position: static;
    transform: none;
    margin-bottom: 8px;
  }
  .flow__human-line {
    display: none;
  }

  /* Pipeline flips to vertical */
  .flow {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 64px;
    padding-top: 24px;
  }
  .flow__node,
  .flow__engine-wrap,
  .flow__engine { width: 100%; max-width: 320px; }
  .flow__connector {
    width: 22px;
    min-width: 0;
    max-width: none;
    height: 30px;
    flex: 0 0 auto;
  }
  .flow__line {
    left: 50%; right: auto;
    top: 0; bottom: 6px;
    width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(45,212,191,0.15), rgba(45,212,191,0.45));
  }
  .flow__arrow {
    right: auto; top: auto;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(45,212,191,0.7);
    border-bottom: 0;
  }
  .flow__particle { left: 50%; margin-left: -2px; }
  .flow.is-active .flow__particle { animation: flowParticleV 1.8s linear infinite; }
}

@media (max-width: 900px) {
  .module-block__sticky {
    flex-direction: column;
    gap: 28px;
    padding: 40px 24px;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
  }

  .module-block__info {
    flex: none;
    width: 100%;
  }

  .module-block__anim-panel {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 600px) {
  .module-block {
    height: auto;
  }

  .module-block__sticky {
    position: static;
    height: auto;
    min-height: auto;
    padding: 48px 20px 64px;
    gap: 32px;
  }

  .module-block__anim-panel {
    flex: none;
    height: 280px;
  }

  .module-anim {
    transition: opacity 0.4s ease;
    transform: none !important;
  }
}
