/* ============================================================
   Flink Manager Product Page — Light Theme (matches site)
   ============================================================ */

/* --- Variables (shared with style.css) --- */
:root {
  --fm-primary: #4d7cff;
  --fm-primary-dark: #3b6aee;
  --fm-accent: #8b5cf6;
  --fm-accent-cyan: #06b6d4;
  --fm-bg-primary: #ffffff;
  --fm-bg-secondary: #f8fafc;
  --fm-bg-card: #ffffff;
  --fm-bg-card-hover: #f1f5f9;
  --fm-text-primary: #0f172a;
  --fm-text-secondary: #475569;
  --fm-text-muted: #94a3b8;
  --fm-border-subtle: rgba(0, 0, 0, 0.06);
  --fm-border-medium: rgba(0, 0, 0, 0.10);
  --fm-gradient: linear-gradient(135deg, #4d7cff 0%, #8b5cf6 50%, #06b6d4 100%);
  --fm-gradient-subtle: linear-gradient(135deg, rgba(77, 124, 255, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
  --fm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --fm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --fm-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --fm-shadow-glow: 0 0 0 4px rgba(77, 124, 255, 0.12);
  --fm-radius-sm: 8px;
  --fm-radius-md: 12px;
  --fm-radius-lg: 20px;
  --fm-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base --- */
.flink-manager-page {
  background: var(--fm-bg-primary);
  color: var(--fm-text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Hero --- */
.fm-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--fm-bg-primary);
  overflow: hidden;
}
.fm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}
.fm-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.fm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0 80px;
}
.fm-badge {
  display: inline-block;
  background: var(--fm-gradient-subtle);
  color: var(--fm-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.fm-hero-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -1.5px;
  color: var(--fm-text-primary);
}
.fm-hero-content h1 span {
  background: var(--fm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fm-hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fm-text-secondary);
  margin: 0 0 36px;
  max-width: 540px;
}
.fm-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Centered hero (Kafka Governance style) --- */
.fm-hero-centered .fm-hero-content {
  text-align: center;
  margin: 0 auto;
}
.fm-hero-centered .fm-hero-subtitle {
  margin: 0 auto 36px;
}
.fm-hero-centered .fm-hero-cta {
  justify-content: center;
}

/* --- Buttons --- */
.fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--fm-radius-lg);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--fm-transition);
  border: 0;
  position: relative;
  overflow: hidden;
}
.fm-btn-primary {
  background: var(--fm-gradient);
  color: #fff;
}
.fm-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.fm-btn-primary:hover {
  color: #fff;
  box-shadow: var(--fm-shadow-glow), var(--fm-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.fm-btn-outline {
  background: transparent;
  color: var(--fm-text-primary);
  border: 1px solid var(--fm-border-medium);
}
.fm-btn-outline:hover {
  background: var(--fm-bg-card-hover);
  border-color: var(--fm-primary);
  color: var(--fm-primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.fm-btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}
.fm-btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* --- Sections --- */
.fm-section {
  padding: 100px 0;
}
.fm-section-header {
  text-align: center;
  margin-bottom: 60px;
}
.fm-section-header h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 15px;
  padding-bottom: 15px;
  color: var(--fm-text-primary);
  position: relative;
}
.fm-section-header h2::after {
  position: absolute;
  content: "";
  background: var(--fm-gradient);
  height: 3px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
  border-radius: 2px;
}
.fm-section-desc {
  font-size: 17px;
  color: var(--fm-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- What Is Section --- */
.fm-what-is {
  background: var(--fm-bg-secondary);
  position: relative;
}
.fm-what-is::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fm-gradient);
  opacity: 0.2;
}
.fm-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.fm-feature-card {
  background: var(--fm-bg-card);
  border: 1px solid var(--fm-border-subtle);
  border-radius: var(--fm-radius-md);
  padding: 36px 28px;
  transition: all var(--fm-transition);
  box-shadow: var(--fm-shadow-sm);
}
.fm-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--fm-shadow-md);
}
.fm-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--fm-radius-sm);
  background: var(--fm-gradient-subtle);
  border: 1px solid var(--fm-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.fm-feature-icon i {
  font-size: 24px;
  color: var(--fm-primary);
}
.fm-feature-card h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--fm-text-primary);
}
.fm-feature-card p {
  font-size: 14px;
  color: var(--fm-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Demo Section --- */
.fm-demo {
  background: var(--fm-bg-primary);
}
.fm-demo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--fm-bg-card);
  border: 1px solid var(--fm-border-subtle);
  border-radius: var(--fm-radius-md);
  padding: 60px;
  box-shadow: var(--fm-shadow-sm);
}
/* Demo section now carries only text + CTA (image moved to media section) */
.fm-demo-card-centered {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.fm-demo-card-centered .fm-demo-text {
  text-align: center;
}
.fm-demo-card-centered .fm-demo-text p {
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
}
.fm-demo-text h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--fm-text-primary);
}
.fm-demo-text p {
  font-size: 16px;
  color: var(--fm-text-secondary);
  line-height: 1.7;
  margin: 0 0 28px;
}
.fm-demo-visual {
  display: flex;
  justify-content: center;
}
.fm-demo-image {
  width: 100%;
  max-width: 420px;
  border-radius: var(--fm-radius-md);
  border: 1px solid var(--fm-border-subtle);
  box-shadow: var(--fm-shadow-md);
}

/* --- Dedicated Media Section (all product screenshots) --- */
.fm-media-section {
  margin-bottom: 60px;
}
.fm-media-header {
  margin-bottom: 32px;
}
.fm-media-header h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fm-text-primary);
  margin: 0 0 8px;
}
.fm-images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Showcase Grid --- */
.fm-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.fm-showcase-item {
  border-radius: var(--fm-radius-md);
  border: 1px solid var(--fm-border-subtle);
  box-shadow: var(--fm-shadow-sm);
  overflow: hidden;
  transition: all var(--fm-transition);
  background: var(--fm-bg-card);
}
.fm-showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--fm-shadow-lg);
  border-color: rgba(139, 92, 246, 0.25);
}
.fm-showcase-item img {
  display: block;
  width: 100%;
  height: auto;
}
.fm-demo-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 10;
  background: var(--fm-gradient-subtle);
  border: 2px dashed var(--fm-border-medium);
  border-radius: var(--fm-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--fm-transition);
}
.fm-demo-placeholder:hover {
  border-color: var(--fm-primary);
}
.fm-demo-placeholder i {
  font-size: 48px;
  color: var(--fm-primary);
  opacity: 0.7;
}
.fm-demo-placeholder span {
  font-size: 14px;
  color: var(--fm-text-muted);
  font-weight: 500;
}

/* --- Trial Section --- */
.fm-trial {
  background: var(--fm-bg-secondary);
  position: relative;
}
.fm-trial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fm-gradient);
  opacity: 0.2;
}
.fm-trial-card {
  text-align: center;
  background: var(--fm-gradient-subtle);
  border: 1px solid var(--fm-border-subtle);
  border-radius: var(--fm-radius-md);
  padding: 60px 40px;
}
.fm-trial-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fm-text-primary);
}
.fm-trial-card > p {
  font-size: 16px;
  color: var(--fm-text-secondary);
  margin: 0 0 48px;
}
.fm-trial-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.fm-step {
  background: var(--fm-bg-card);
  border: 1px solid var(--fm-border-subtle);
  border-radius: var(--fm-radius-md);
  padding: 28px 24px;
  text-align: center;
  width: 200px;
  transition: all var(--fm-transition);
  box-shadow: var(--fm-shadow-sm);
}
.fm-step:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--fm-shadow-md);
}
.fm-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fm-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.fm-step h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--fm-text-primary);
}
.fm-step p {
  font-size: 13px;
  color: var(--fm-text-muted);
  margin: 0;
  line-height: 1.5;
}
.fm-step-arrow {
  color: var(--fm-text-muted);
  font-size: 20px;
}

/* --- Pricing Section --- */
.fm-pricing {
  background: var(--fm-bg-primary);
}
.fm-pricing-cta {
  text-align: center;
  padding: 24px 0 16px;
}
.fm-pricing-cta .fm-btn {
  padding: 16px 48px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fm-pricing-cta .fm-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-md);
}

/* --- Footer CTA --- */
.fm-footer-cta {
  background: var(--fm-gradient-subtle);
  text-align: center;
  padding: 80px 0;
  position: relative;
}
.fm-footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fm-gradient);
  opacity: 0.2;
}
.fm-footer-cta h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fm-text-primary);
}
.fm-footer-cta p {
  font-size: 16px;
  color: var(--fm-text-secondary);
  margin: 0 0 32px;
}

/* --- Footer --- */
.fm-footer {
  background: var(--fm-bg-primary);
  border-top: 1px solid var(--fm-border-subtle);
  padding: 24px 0;
  text-align: center;
}
.fm-footer p {
  font-size: 13px;
  color: var(--fm-text-muted);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .fm-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .fm-hero-content {
    padding: 100px 0 60px;
  }
  .fm-demo-card,
  .fm-demo-card-centered {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
  .fm-trial-steps {
    flex-direction: column;
  }
  .fm-step-arrow {
    transform: rotate(90deg);
  }
  .fm-step {
    width: 100%;
    max-width: 280px;
    }
  }

  /* ============================================================
     Flink Manager — Showcase & Demo: cinematic zoomable cards
     ============================================================ */
  .fm-showcase-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--fm-border-subtle);
    border-radius: var(--fm-radius-md);
    background: var(--fm-bg-card);
    box-shadow: var(--fm-shadow-sm);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all var(--fm-transition);
  }

  .fm-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fm-shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
  }

  .fm-showcase-card:focus-visible {
    outline: none;
    box-shadow: var(--fm-shadow-glow);
  }

  .fm-showcase-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--fm-bg-secondary);
  }

  .fm-showcase-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fm-showcase-card:hover .fm-showcase-media img {
    transform: scale(1.06);
  }

  .fm-showcase-lens {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all var(--fm-transition);
  }

  .fm-showcase-card:hover .fm-showcase-lens {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .fm-showcase-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid var(--fm-border-subtle);
    background: var(--fm-bg-card);
  }

  .fm-showcase-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--fm-text-primary);
  }

  .fm-showcase-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fm-primary);
  }

  .fm-showcase-action .fa {
    transition: transform var(--fm-transition);
  }

  .fm-showcase-card:hover .fm-showcase-action .fa {
    transform: translateX(3px);
  }

  /* Demo visual button */
  .fm-demo-btn {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    font-family: inherit;
  }

  .fm-demo-btn:focus-visible {
    outline: none;
    box-shadow: var(--fm-shadow-glow);
    border-radius: var(--fm-radius-md);
  }

  .fm-demo-frame {
    position: relative;
    display: block;
    border-radius: var(--fm-radius-md);
    overflow: hidden;
    border: 1px solid var(--fm-border-subtle);
    box-shadow: var(--fm-shadow-md);
  }

  .fm-demo-frame:hover {
    border-color: rgba(139, 92, 246, 0.3);
  }

  .fm-demo-image {
    width: 100%;
    max-width: 420px;
    border-radius: 0;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fm-demo-btn:hover .fm-demo-image {
    transform: scale(1.03);
  }

  .fm-demo-lens {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    transition: all var(--fm-transition);
  }

  .fm-demo-btn:hover .fm-demo-lens {
    background: rgba(77, 124, 255, 0.9);
    border-color: rgba(77, 124, 255, 0.9);
  }

/* Very small screens: single column for the screenshot grid */
@media (max-width: 480px) {
  .fm-images-grid {
    grid-template-columns: 1fr;
  }
}
