<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <!-- Google Search Console Verification -->
    <meta name="google-site-verification" content="qRO0MwOivy2azLMP0R_2G-XtG8G3B4_S9G3j_wmKPIQ" />

    <!-- Primary Meta Tags -->
    <title>ConsultFlow – Expert Decision Infrastructure</title>
    <meta name="title" content="ConsultFlow – Expert Decision Infrastructure" />
    <meta
      name="description"
      content="ConsultFlow is the intelligent infrastructure platform that structures, validates, and continuously improves how experts make decisions in high-stakes domains."
    />
    <meta
      name="keywords"
      content="expert decision infrastructure, AI platform, validated workflows, specialist AI, veterinary medicine, decision intelligence"
    />
    <meta name="author" content="ConsultFlow" />
    <meta name="robots" content="index, follow" />
    <link rel="canonical" href="https://www.consult-flow.com/" />

    <!-- Open Graph Meta Tags -->
    <meta property="og:type" content="website" />
    <meta property="og:title" content="ConsultFlow – Expert Decision Infrastructure" />
    <meta
      property="og:description"
      content="Intelligent infrastructure that structures, validates, and continuously improves how experts make decisions."
    />
    <meta property="og:url" content="https://www.consult-flow.com/" />
    <meta property="og:site_name" content="ConsultFlow" />

    <!-- Twitter Meta Tags -->
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:title" content="ConsultFlow – Expert Decision Infrastructure" />
    <meta
      name="twitter:description"
      content="Intelligent infrastructure that structures, validates, and continuously improves how experts make decisions."
    />

    <!-- Favicon and Icons -->
    <link rel="icon" type="image/png" href="/consultflow_logo_transparent.png?v=3" />
    <link rel="apple-touch-icon" href="/consultflow_logo_transparent.png" />

    <style>
      :root {
        /* Palette */
        --primary: #1c1407; /* Dark ink */
        --primary-light: #3d2f10;
        --accent: #9b5523; /* Warm sienna — ink on paper */
        --accent-dark: #7a3e18;
        --accent-soft: rgba(155,85,35,0.1);

        --text-main: #1c1407;
        --text-muted: #7a6840;
        --text-light: #a08d6a;

        --bg-page: #F6F6EF;
        --bg-surface: #e8e8e2;
        --bg-highlight: #deded8;

        --border-subtle: rgba(120,95,50,0.18);
        --border-strong: rgba(120,95,50,0.35);

        /* Spacing & Radius */
        --radius-sm: 0.5rem;
        --radius-md: 0.75rem;
        --radius-lg: 1rem;
        --radius-xl: 1.5rem;

        --container-width: 1300px;
        --header-height: 72px;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        font-family: "Inter", sans-serif;
        font-weight: 400;
        line-height: 1.6;
        color: var(--text-main);
        background-color: #F6F6EF;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
      }

      h1, h2, h3, h4, h5, h6 {
        font-weight: 600;
        color: var(--primary);
        letter-spacing: -0.02em;
      }

      .font-mono {
        font-family: "Roboto Mono", monospace;
      }

      a {
        text-decoration: none;
        color: inherit;
        transition: color 0.2s ease;
      }

      .container {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 1.5rem;
      }

      /* Header */
      .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(246,246,239,0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-subtle);
        z-index: 1000;
        height: var(--header-height);
      }

      .header-inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .logo {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
      }

      .logo img {
        width: 28px;
        height: 28px;
      }

      .logo-text {
        font-family: "Roboto Mono", monospace;
        font-weight: 600;
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--primary);
      }

      .logo-text span.flow {
        opacity: 0.6;
      }

      .nav-cta {
        border-radius: 999px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #ffffff;
        background: #9b5523;
        transition: all 0.2s ease;
      }

      .nav-cta:hover {
        background: #7a3e18;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(155, 85, 35, 0.25);
      }

      /* Main */
      main {
        padding-top: var(--header-height);
      }

      /* Common Section Styles */
      .section {
        padding: 5rem 0;
      }

      .section-alt {
        background: rgba(0,0,0,0.04);
        border-top: 1px solid rgba(120,95,50,0.15);
        border-bottom: 1px solid rgba(120,95,50,0.15);
      }

      .section-header {
        margin-bottom: 3.5rem;
        max-width: 42rem;
      }

      .section-eyebrow {
        font-family: "Roboto Mono", monospace;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--accent);
        margin-bottom: 0.75rem;
        font-weight: 500;
      }

      .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
      }

      .section-subtitle {
        font-size: 1.05rem;
        color: var(--text-muted);
        line-height: 1.7;
      }

      /* Hero */
      .hero {
        padding: 4rem 0 5rem;
      }

      .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
        align-items: center;
      }

      .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
        letter-spacing: -0.03em;
      }

      .hero-highlight {
        color: var(--primary);
        position: relative;
        display: inline-block;
      }

      .hero-highlight::after {
        content: "";
        position: absolute;
        bottom: 0.1em;
        left: -0.1em;
        right: -0.1em;
        height: 0.3em;
        background: var(--accent-soft);
        z-index: -1;
        border-radius: 4px;
      }

      .hero-subtitle {
        font-size: 1.125rem;
        color: var(--text-muted);
        max-width: 32rem;
        margin-bottom: 2.5rem;
      }

      .btn-group {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 2rem;
      }

      .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.75rem;
        border-radius: 999px;
        background: #9b5523;
        color: white;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
      }

      .btn-primary:hover {
        background: #7a3e18;
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(155,85,35,0.3);
      }

      .btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.75rem;
        border-radius: 999px;
        background: rgba(255,252,240,0.8);
        border: 1px solid rgba(120,95,50,0.3);
        color: var(--text-main);
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
      }

      .btn-secondary:hover {
        background: rgba(255,252,240,1);
        border-color: rgba(120,95,50,0.5);
        transform: translateY(-1px);
      }

      /* Hero Card */
      .hero-card {
        background: rgba(255,252,240,0.9);
        border-radius: var(--radius-lg);
        padding: 2rem;
        box-shadow: 0 25px 50px -12px rgba(120,95,50,0.12);
        border: 1px solid rgba(120,95,50,0.2);
      }

      .hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px dashed var(--border-subtle);
      }

      .metric-value {
        font-family: "Roboto Mono", monospace;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary);
      }

      .metric-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-top: 0.25rem;
      }

      /* Feature Cards (Domains) */
      .grid-features {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
      }

      .card-feature {
        background: #ffffff;
        border: 1px solid rgba(120,95,50,0.18);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        transition: all 0.2s ease;
        box-shadow: 0 1px 4px rgba(120,95,50,0.08);
      }

      .card-feature:hover {
        border-color: rgba(155,85,35,0.4);
        box-shadow: 0 10px 30px rgba(155,85,35,0.1);
        transform: translateY(-2px);
      }

      .feature-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
      }

      .feature-name {
        font-weight: 600;
        font-size: 1.1rem;
      }

      .badge {
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.2rem 0.5rem;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      .badge.live {
        background: rgba(4,120,87,0.1);
        color: #065f46;
      }

      .badge.soon {
        background: rgba(120,95,50,0.1);
        color: #7a6840;
      }

      /* Videos Section */
      .videos-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 3rem;
      }

      /* Workflow: secondary videos row (2-up, text under video) */
      .workflow-secondary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
      }

      .workflow-mini-card {
        background: #ffffff;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid rgba(120,95,50,0.18);
        box-shadow: 0 10px 30px rgba(120,95,50,0.08);
        display: flex;
        flex-direction: column;
      }

      .workflow-mini-content {
        padding: 1.5rem 1.5rem 1.75rem;
      }

      .workflow-mini-content .video-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
      }

      .workflow-mini-content .video-desc {
        font-size: 0.95rem;
        margin-bottom: 0;
      }

      .video-card {
        background: #ffffff;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid rgba(120,95,50,0.18);
        box-shadow: 0 10px 30px rgba(120,95,50,0.08);
        display: grid;
        grid-template-columns: 0.75fr 2.4fr;
        align-items: center;
      }

      .video-frame {
        aspect-ratio: 16/9;
        background: #06101e;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

      .video-frame::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 100%);
      }

      .play-btn {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.4);
        color: white;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        cursor: pointer;
        z-index: 10;
      }

      .video-card:hover .play-btn {
        transform: scale(1.1);
        background: white;
        color: #1c1407;
      }

      .video-content {
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .video-tag {
        font-family: "Roboto Mono", monospace;
        font-size: 0.75rem;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.75rem;
        display: block;
        font-weight: 600;
      }

      .video-title {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        line-height: 1.2;
        color: var(--primary);
      }

      .video-desc {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        line-height: 1.5;
      }

      .video-divider {
        display: none;
      }

      .video-features {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
      }

      .video-feature-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.5;
      }

      .video-feature-icon {
        display: none;
      }

      .video-feature-text strong {
         font-weight: 600;
         font-size: 0.95rem;
         color: var(--primary);
         display: block;
         margin-bottom: 0.25rem;
      }


      /* Footer */
      .footer {
        padding: 4rem 0;
        background: rgba(0,0,0,0.06);
        border-top: 1px solid rgba(120,95,50,0.2);
        color: #7a6840;
        font-size: 0.9rem;
      }

      .footer a {
        color: #5a4a2a;
      }
      .footer a:hover {
        color: #1c1407;
      }

      .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
      }

      /* Partner Grid & Cards */
      .partner-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem; /* Space between cards */
        flex-wrap: wrap;
      }

      /* The clickable card container */
      .partner-card {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid rgba(120,95,50,0.2);
        border-radius: var(--radius-lg);
        padding: 1.5rem 2.5rem;
        transition: all 0.2s ease;
        cursor: pointer;
        text-decoration: none;
      }

      /* Hover Effects: Lift + Shadow + Border Color */
      .partner-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px -5px rgba(155,85,35,0.15);
        border-color: rgba(155,85,35,0.4); /* Turns blue on hover */
      }

      .partner-logo {
        height: 60px; /* Adjust this if the logo looks too big/small */
        width: auto;
        -o-object-fit: contain;
           object-fit: contain;
        display: block;
      }

      /* Banner Section (Transparent) */
      .banner-section {
        padding-top: 2rem;
        padding-bottom: 0.5rem; /* Reduced gap to the headline */
        text-align: center;      /* Ensures the image stays centered */
      }

      .banner-container {
        /* No background, no border, no shadow */
        background: transparent;
        width: 100%;
        max-width: 1200px; /* Limits width so it doesn't stretch too wide on huge screens */
        margin: 0 auto;   /* Centers the block */
        display: flex;
        justify-content: center;
      }

      .banner-img {
        width: 100%;
        height: auto;      /* Maintains aspect ratio */
        max-height: 350px; /* Prevents it from getting too tall */
        -o-object-fit: contain;
           object-fit: contain; /* Ensures the whole image is visible */
        display: block;
      }

      @media (max-width: 768px) {
        .banner-img {
          max-height: 200px;
        }
      }

      /* Responsive */
      @media (max-width: 900px) {
        .hero-grid {
          grid-template-columns: 1fr;
          text-align: center;
        }

        .workflow-secondary-grid {
          grid-template-columns: 1fr;
        }

        .video-card {
          grid-template-columns: 1fr;
        }

        .video-frame {
          order: -1;
        }

        .hero-subtitle, .btn-group {
          margin-left: auto;
          margin-right: auto;
          justify-content: center;
        }
      }

          .code-window {
            background: #1e293b;
            border-radius: var(--radius-md);
            padding: 1.25rem;
            font-family: "Roboto Mono", monospace;
            font-size: 0.8rem;
            color: #e2e8f0;
            overflow-x: auto;
            line-height: 1.5;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
          }
          .token-keyword { color: #c084fc; }
          .token-string { color: #86efac; }
          .token-comment { color: #64748b; }

    </style>
  </head>
  <body>
    <!-- Header -->
    <header class="header">
      <div class="container header-inner">
        <a href="/" class="logo">
          <img src="/consultflow_logo_transparent.png" alt="ConsultFlow Logo" />
          <span class="logo-text">CONSULT<span class="flow">FLOW</span></span>
        </a>
        <nav>
          <a href="/contact?type=sales" class="nav-cta">Contact Us</a>
        </nav>
      </div>
    </header>

    <main>

      <section class="banner-section">
        <div class="container banner-container">
          <img
            src="/banner_transparent.png"
            alt="ConsultFlow Platform"
            class="banner-img"
          />
        </div>
      </section>

      <!-- Hero Section -->
      <section class="hero" style="text-align: center; padding: 5rem 1rem 5.5rem; position: relative; overflow: hidden;">
        <div style="position:absolute;inset:0;background-image:radial-gradient(ellipse at 50% 0%, rgba(155,85,35,0.08) 0%, transparent 65%);pointer-events:none;"></div>
        <div class="container" style="max-width: 1000px; margin: 0 auto; position: relative; z-index: 1;">

          <div class="section-eyebrow" style="justify-content: center; margin-bottom: 1.5rem; color: #9b5523;">
            Expert Decision Infrastructure
          </div>

          <h1 class="hero-title" style="font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: #1c1407;">
            Intelligent infrastructure that
            <br>
            <span style="color: #9b5523;">structures, validates,</span> and <span style="color: #9b5523;">continuously improves</span>
            <br>
            how experts make decisions.
          </h1>

          <p class="hero-subtitle" style="font-size: 1.125rem; margin: 0 auto 2.5rem auto; max-width: 620px; color: #6b5a3a;">
            ConsultFlow is the platform specialist organizations deploy to bring structure to unstructured workflows, validate AI outputs against expert judgment, and build a decision engine that gets smarter with every case.
          </p>

          <div class="btn-group" style="justify-content: center; margin-bottom: 3.5rem;">
            <a href="/contact?type=demo&persona=enterprise" class="btn-primary" style="background: #9b5523; color: white;">Book a Demo</a>
            <a href="#workflow" class="btn-secondary" style="background: rgba(255,252,240,0.85); border-color: rgba(120,95,50,0.3); color: #1c1407;">See the Platform</a>
          </div>

          <div class="hero-features" style="display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; border-top: 1px solid rgba(120,95,50,0.2); padding-top: 2rem;">

            <div style="display: flex; align-items: center; gap: 0.5rem;">
              <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#9b5523" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 21V9"/></svg>
              <span style="font-weight: 500; color: #1c1407; font-size: 0.95rem;">Structured Workflows</span>
            </div>

            <div style="display: flex; align-items: center; gap: 0.5rem;">
              <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#9b5523" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>
              <span style="font-weight: 500; color: #1c1407; font-size: 0.95rem;">Expert Validation Layer</span>
            </div>

            <div style="display: flex; align-items: center; gap: 0.5rem;">
              <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#9b5523" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>
              <span style="font-weight: 500; color: #1c1407; font-size: 0.95rem;">Self-Improving Intelligence</span>
            </div>

          </div>

        </div>
      </section>



      <!-- Dual Experience Demo Section -->
      <section id="workflow" class="section">
        <div class="container">
          <div class="section-header" style="max-width: 100%;">
            <div class="section-eyebrow">The Platform in Action</div>
            <h2 class="section-title">Structure intake. Validate outputs. Improve with every case.</h2>
            <p class="section-subtitle" style="max-width: 50rem;">
              ConsultFlow sits between your experts and your clients—capturing, structuring, and validating every decision so the system gets measurably better over time. Watch how each layer of the platform works.
            </p>
          </div>

          <div class="videos-grid">
            <!-- Specialist Side Video -->
            <div class="video-card">
              <div class="video-content">
                <span class="video-tag">Validation Layer</span>
                <h3 class="video-title">The Expert Validation Interface</h3>
                <p class="video-desc">
                  The platform presents AI-drafted outputs directly to specialists for review. Experts refine, correct, and sign off—every edit feeds back into the infrastructure.
                </p>

                <ul class="video-features">
                  <li class="video-feature-item">
                    <span class="video-feature-text">
                      <strong>Structured Review</strong>
                      Cases arrive pre-organized by the platform so specialists focus on judgment, not formatting.
                    </span>
                  </li>
                  <li class="video-feature-item">
                    <span class="video-feature-text">
                      <strong>Auditable Reasoning</strong>
                      Every output is grounded in cited sources and expert-reviewed knowledge built into the platform.
                    </span>
                  </li>
                </ul>
              </div>
              <div class="video-frame">
                <video class="lazy-video" width="100%" height="100%" autoplay muted loop playsinline preload="none" poster="/banner.png" style="object-fit: cover; z-index: 10;">
                  <source data-src="/encoded/specialist_review_demo_1280_h264.mp4" type="video/mp4">
                  Your browser does not support the video tag.
                </video>
              </div>
            </div>

            <!-- Clinic Intake + Assistant (side-by-side) -->
            <div class="workflow-secondary-grid">
              <div class="workflow-mini-card">
                <div class="video-frame">
                  <video class="lazy-video" width="100%" height="100%" autoplay muted loop playsinline preload="none" poster="/banner.png" style="object-fit: cover; z-index: 10;">
                    <source data-src="/encoded/clinic_case_intake_demo_1280_h264.mp4" type="video/mp4">
                    Your browser does not support the video tag.
                  </video>
                </div>
                <div class="workflow-mini-content">
                  <span class="video-tag">Intake Layer</span>
                  <h3 class="video-title">Structured Case Intake</h3>
                  <p class="video-desc">
                    The platform ingests unstructured documents and auto-populates structured intake fields with rationale. Submitters verify rather than fill—cutting intake time dramatically.
                  </p>
                </div>
              </div>

              <div class="workflow-mini-card">
                <div class="video-frame">
                  <video class="lazy-video" width="100%" height="100%" autoplay muted loop playsinline preload="none" poster="/banner.png" style="object-fit: cover; z-index: 10;">
                    <source data-src="/encoded/vet_flow_assistant_demo_h264.mp4" type="video/mp4">
                    Your browser does not support the video tag.
                  </video>
                </div>
                <div class="workflow-mini-content">
                  <span class="video-tag">Client Layer</span>
                  <h3 class="video-title">The Client-Facing Interface</h3>
                  <p class="video-desc">
                    A platform-powered assistant handles routine requests end-to-end, escalating to the expert validation layer only when a specialist's judgment is truly needed.
                  </p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>



      <!-- Vision Section -->
      <section class="section" style="position: relative; overflow: hidden;">
        <div style="position:absolute;inset:0;background-image:radial-gradient(circle at 15% 50%, rgba(155,85,35,0.05) 0%, transparent 55%), radial-gradient(circle at 85% 20%, rgba(155,85,35,0.04) 0%, transparent 55%);pointer-events:none;"></div>
        <div class="container" style="position: relative; z-index: 1;">
          <div class="section-header" style="text-align: center; margin-left: auto; margin-right: auto; max-width: 50rem;">
            <div class="section-eyebrow" style="justify-content: center;">The Engine</div>
            <h2 class="section-title">Infrastructure That Gets Smarter With Every Decision</h2>
            <p class="section-subtitle">
              Every expert validation feeds back into the platform. The infrastructure compounds—not the model, but the institutional knowledge baked into it.
            </p>
          </div>

          <div style="display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 3rem;">

            <!-- Step 1 -->
            <div style="text-align: center; flex: 1 1 300px; max-width: 400px; background: rgba(255,252,240,0.85); border: 1px solid rgba(120,95,50,0.18); border-radius: var(--radius-md); padding: 1.5rem; transition: all 0.2s ease;">
              <div style="margin-bottom: 1rem; color: #9b5523; display: flex; justify-content: center;">
                <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline></svg>
              </div>
              <h3 style="font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; color: #1c1407;">1. Experts Validate the Platform</h3>
              <p style="font-size: 0.95rem; color: #6b5a3a; line-height: 1.6;">
                Specialists review and refine AI-drafted outputs. Every correction is a structured data point written back into the infrastructure.
              </p>
            </div>

            <!-- Step 2 -->
            <div style="text-align: center; flex: 1 1 300px; max-width: 400px; background: rgba(255,252,240,0.85); border: 1px solid rgba(120,95,50,0.18); border-radius: var(--radius-md); padding: 1.5rem; transition: all 0.2s ease;">
              <div style="margin-bottom: 1rem; color: #9b5523; display: flex; justify-content: center;">
                <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>
              </div>
              <h3 style="font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; color: #1c1407;">2. Decisions Become Structured Data</h3>
              <p style="font-size: 0.95rem; color: #6b5a3a; line-height: 1.6;">
                The platform captures expert reasoning in a structured format—building an institutional knowledge base owned by the organization.
              </p>
            </div>

            <!-- Step 3 -->
            <div style="text-align: center; flex: 1 1 300px; max-width: 400px; background: rgba(255,252,240,0.85); border: 1px solid rgba(120,95,50,0.18); border-radius: var(--radius-md); padding: 1.5rem; transition: all 0.2s ease;">
              <div style="margin-bottom: 1rem; color: #9b5523; display: flex; justify-content: center;">
                <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>
              </div>
              <h3 style="font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; color: #1c1407;">3. The Infrastructure Self-Improves</h3>
              <p style="font-size: 0.95rem; color: #6b5a3a; line-height: 1.6;">
                Accuracy compounds with every case—not by swapping models, but by the platform continuously learning from validated expert decisions.
              </p>
            </div>

          </div>

          <!-- The Vision Quote -->
          <div style="text-align: center; max-width: 800px; margin: 2rem auto 0 auto;">
            <p style="font-family: Georgia, serif; font-style: italic; font-size: 1.6rem; font-weight: 500; color: #1c1407; margin-bottom: 1.5rem; letter-spacing: -0.01em; line-height: 1.4;">
              "We give expert knowledge a structure, a memory, <br>and a feedback loop."
            </p>
            <div style="display: flex; justify-content: center; gap: 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9b5523; font-weight: 600;">
              <span>Structured</span>
              <span style="opacity: 0.5; color: #7a6840;">•</span>
              <span>Validated</span>
              <span style="opacity: 0.5; color: #7a6840;">•</span>
              <span>Self-Improving</span>
            </div>
          </div>

        </div>
      </section>

      <!-- Domain Solutions -->
      <section id="verticals" class="section section-alt">
        <div class="container">
          <div class="section-header">
            <div class="section-eyebrow">The Verticals</div>
            <h2 class="section-title">One platform, many domains.</h2>
            <p class="section-subtitle">
              We deploy the expert decision infrastructure into veterinary medicine first, then extend the same platform pattern to other regulated fields where expert judgment is mission-critical.
            </p>
          </div>

          <div class="grid-features">
            <a href="/vet-flow" class="card-feature">
              <div class="feature-header">
                <div class="feature-name">VetFlow</div>
                <span class="badge live">Live</span>
              </div>
              <p style="font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem;">
                The full expert decision platform deployed for veterinary oncology consults—live and in production.
              </p>
            </a>

            <div class="card-feature">
              <div class="feature-header">
                <div class="feature-name">DentFlow</div>
                <span class="badge soon">Soon</span>
              </div>
              <p style="font-size: 0.9rem; color: var(--text-muted);">
                Expert decision infrastructure for dental consultations and treatment planning.
              </p>
            </div>

            <div class="card-feature">
              <div class="feature-header">
                <div class="feature-name">LawFlow</div>
                <span class="badge soon">Soon</span>
              </div>
              <p style="font-size: 0.9rem; color: var(--text-muted);">
                Structured legal workflows with attorney validation built into every output.
              </p>
            </div>

            <div class="card-feature">
              <div class="feature-header">
                <div class="feature-name">MedFlow</div>
                <span class="badge soon">Soon</span>
              </div>
              <p style="font-size: 0.9rem; color: var(--text-muted);">
                The platform extended into human medicine, with physician validation at every decision point.
              </p>
            </div>
          </div>



        </div>
      </section>

      <!-- Delivery Services -->
      <section class="section" style="background: var(--bg-page);">
        <div class="container">
          <div class="section-header" style="max-width: 50rem; margin-left: auto; margin-right: auto; text-align: center;">
            <div class="section-eyebrow" style="justify-content: center;">The Deployment</div>
            <h2 class="section-title">Deploy the platform on your terms—from managed SaaS to sovereign infrastructure.</h2>
          </div>

          <div class="deployment-grid">

            <!-- Card 1: Expert Workspace -->
            <div class="deployment-card">
              <div class="card-icon">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="1" ry="1"/><path d="M3 9h18"/><path d="M9 21V9"/></svg>
              </div>
              <h3 class="card-title">The Expert Workspace</h3>
              <p class="card-desc">The platform's specialist interface. Structured cases, AI drafts, and a one-click validation layer—all in one place.</p>

              <div class="visual-anchor workspace-visual">
                <div class="workspace-window">
                  <div class="ws-col left">
                    <div class="skeleton"></div>
                    <div class="skeleton"></div>
                    <div class="skeleton w-3-4"></div>
                  </div>
                  <div class="ws-col right">
                    <div class="skeleton"></div>
                    <div class="skeleton highlight"></div>
                    <div class="skeleton w-1-2"></div>
                    <div class="verify-btn">Verify</div>
                  </div>
                </div>
              </div>

              <ul class="card-list">
                <li>Unified Case Command</li>
                <li>Rapid Verification</li>
                <li>Enterprise Security</li>
              </ul>
            </div>

            <!-- Card 2: Headless API -->
            <div class="deployment-card">
              <div class="card-icon">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" x2="20" y1="19" y2="19"/></svg>
              </div>
              <h3 class="card-title">The Headless API</h3>
              <p class="card-desc">Embed the expert decision infrastructure directly into your existing stack via a clean REST interface.</p>

              <div class="visual-anchor terminal-visual">
                <div class="terminal-window">
                  <div class="term-line"><span class="m">POST</span> /api/v1/analyze</div>
                  <div class="term-line">{</div>
                  <div class="term-line indent"><span class="k">"context"</span>: <span class="s">"veterinary_oncology"</span>,</div>
                  <div class="term-line indent"><span class="k">"controls"</span>: { <span class="k">"rigor"</span>: <span class="s">"strict"</span> }</div>
                  <div class="term-line">}</div>
                </div>
              </div>

              <ul class="card-list">
                <li>Standard REST</li>
                <li>Granular Control</li>
                <li>Event-Driven</li>
              </ul>
            </div>

            <!-- Card 3: Sovereign Cloud -->
            <div class="deployment-card premium">
              <div class="card-icon">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"/><path d="m9 12 2 2 4-4"/></svg>
              </div>
              <h3 class="card-title">Sovereign Cloud</h3>
              <p class="card-desc">A fully isolated deployment of the ConsultFlow platform inside your own infrastructure—your data, your models, your IP.</p>

              <div class="visual-anchor fortress-visual">
                <div class="fortress-grid-bg"></div>
                <div class="fortress-shield">
                  <div class="database-icon">
                    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"/><path d="m9 12 2 2 4-4"/></svg>
                  </div>
                </div>
              </div>

              <ul class="card-list">
                <li>Data Isolation</li>
                <li>Custom Models</li>
                <li>IP Protection</li>
              </ul>
            </div>

          </div>
        </div>
      </section>

      <style>
        .deployment-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
          gap: 2rem;
          margin-top: 2rem;
        }

        .deployment-card {
          background: #ffffff;
          border: 1px solid rgba(120,95,50,0.18);
          border-radius: var(--radius-lg);
          padding: 2rem;
          transition: all 0.3s ease;
          display: flex;
          flex-direction: column;
          position: relative;
          overflow: hidden;
          height: 100%;
        }

        .deployment-card:hover {
          transform: translateY(-4px);
          border-color: rgba(120,95,50,0.35);
          box-shadow: 0 20px 40px -10px rgba(120,95,50,0.12);
        }

        .deployment-card.premium {
          border-color: rgba(251, 191, 36, 0.4);
          box-shadow: 0 10px 30px -5px rgba(251, 191, 36, 0.05);
        }
        .deployment-card.premium:hover {
          border-color: #fbbf24;
          box-shadow: 0 20px 40px -10px rgba(251, 191, 36, 0.15);
        }

        .card-icon {
          width: 48px;
          height: 48px;
          border-radius: 12px;
          background: rgba(120,95,50,0.08);
          display: flex;
          align-items: center;
          justify-content: center;
          color: #3d2f10;
          margin-bottom: 1.5rem;
        }
        .premium .card-icon {
          color: #b45309;
          background: rgba(180,83,9,0.08);
        }

        .card-title {
          font-size: 1.25rem;
          font-weight: 600;
          color: var(--primary);
          margin-bottom: 0.5rem;
        }

        .card-desc {
          font-size: 0.95rem;
          color: var(--text-muted);
          margin-bottom: 1.5rem;
          line-height: 1.5;
          flex-grow: 1;
        }

        .card-list {
          list-style: none;
          padding: 0;
          margin: 0;
          border-top: 1px solid rgba(120,95,50,0.15);
          padding-top: 1.5rem;
          display: flex;
          flex-direction: column;
          gap: 0.75rem;
          margin-top: auto;
        }
        .card-list li {
          font-size: 0.85rem;
          color: var(--text-muted);
          display: flex;
          align-items: center;
          gap: 0.5rem;
          font-weight: 500;
        }
        .card-list li::before {
          content: "•";
          color: var(--accent);
          font-weight: bold;
        }
        .premium .card-list li::before { color: #b45309; }

        /* VISUAL ANCHORS */
        .visual-anchor {
          height: 140px;
          background: rgba(120,95,50,0.06);
          border-radius: 12px;
          margin-bottom: 1.5rem;
          display: flex;
          align-items: center;
          justify-content: center;
          overflow: hidden;
          position: relative;
          border: 1px solid rgba(120,95,50,0.15);
        }

        /* Workspace Visual */
        .workspace-window {
          width: 80%;
          height: 80%;
          background: white;
          border: 1px solid #cbd5e1;
          border-radius: 8px;
          box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
          display: flex;
          overflow: hidden;
        }
        .ws-col { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
        .ws-col.left { background: #f8fafc; border-right: 1px solid #e2e8f0; }
        .ws-col.right { background: white; align-items: center; }
        .skeleton { height: 4px; background: rgba(120,95,50,0.2); border-radius: 2px; width: 100%; }
        .skeleton.w-3-4 { width: 75%; }
        .skeleton.w-1-2 { width: 50%; }
        .skeleton.highlight { background: #dcfce7; height: 30px; width: 100%; border-radius: 4px; border: 1px solid #bbf7d0; }
        .verify-btn {
          margin-top: auto;
          background: var(--accent);
          color: white;
          font-size: 8px;
          padding: 3px 8px;
          border-radius: 4px;
          font-weight: 600;
        }

        /* Terminal Visual */
        .terminal-window {
          width: 90%;
          background: #1e293b;
          border-radius: 8px;
          padding: 12px;
          font-family: 'Roboto Mono', monospace;
          font-size: 10px;
          color: #e2e8f0;
          box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
        }
        .term-line { white-space: nowrap; margin-bottom: 4px; }
        .term-line.indent { padding-left: 12px; }
        .m { color: #c084fc; font-weight: 600; } /* Method */
        .k { color: #94a3b8; } /* Key */
        .s { color: #86efac; } /* String */

        /* Fortress Visual */
        .fortress-visual { background: #fffbeb; border-color: #fef3c7; }
        .fortress-grid-bg {
          position: absolute; inset: 0;
          background-image: linear-gradient(#fde68a 1px, transparent 1px), linear-gradient(90deg, #fde68a 1px, transparent 1px);
          background-size: 20px 20px;
          opacity: 0.3;
        }
        .fortress-shield {
          width: 60px; height: 60px;
          border-radius: 50%;
          border: 2px solid #fbbf24;
          background: rgba(255, 255, 255, 0.8);
          display: flex; align-items: center; justify-content: center;
          position: relative;
          box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
          z-index: 10;
        }
        .database-icon { color: #d97706; width: 24px; height: 24px; }
      </style>




      <!-- Partnerships -->
      <section class="section section-alt">
        <div class="container">
          <div class="section-header" style="margin-bottom: 2rem; text-align: center; max-width: 100%;">
            <p class="section-eyebrow">Trusted By</p>
            <h2 class="section-title" style="font-size: 1.75rem;">Leading institutions driving the future of care.</h2>
          </div>

          <div class="partner-grid">
            <a href="https://hospital.cvm.ncsu.edu" target="_blank" rel="noopener noreferrer" class="partner-card">
              <img
                src="/NC_State_Vet_Hospital_Vertical_Logo_WolfpackRed_RGB-2.png"
                alt="NCSU Veterinary Hospital"
                class="partner-logo"
              />
            </a>

          </div>
        </div>
      </section>

      <!-- Final CTA -->
      <section class="section" style="text-align: center; position: relative; overflow: hidden;">
        <div style="position:absolute;inset:0;background-image:radial-gradient(ellipse at 50% 50%, rgba(155,85,35,0.06) 0%, transparent 70%);pointer-events:none;"></div>
        <div class="container" style="max-width: 64rem; position: relative; z-index: 1;">
          <h2 class="section-title" style="font-size: 2.25rem;">Ready to build your decision infrastructure?</h2>
          <p style="font-size: 1.1rem; color: #6b5a3a; margin-bottom: 2.5rem; max-width: 42rem; margin-left: auto; margin-right: auto; line-height: 1.7;">
            If you lead a specialist organization, let's talk about deploying ConsultFlow as the operating layer for your expert workflows—structured, validated, and continuously improving.
          </p>
          <a href="/contact?type=sales" class="btn-primary" style="padding: 1rem 2.5rem; font-size: 1.05rem; background: #9b5523; display: inline-flex;">
            Contact Us
          </a>
        </div>
      </section>
    </main>

    <footer class="footer">
      <div class="container footer-content">
        <div>
          <div style="font-weight: 600; color: #1c1407; margin-bottom: 0.5rem;">ConsultFlow</div>
          <p>© 2026 ConsultFlow, LLC</p>
          <p>Based in North Carolina</p>
        </div>
        <div style="display: flex; gap: 2rem;">
          <a href="/contact">Contact</a>
          <a href="/privacy">Privacy Policy</a>
          <a href="/terms">Terms of Service</a>
        </div>
      </div>
    </footer>
    <script>
      (function () {
        const videos = Array.from(document.querySelectorAll("video.lazy-video"));
        if (!videos.length) return;

        const prefersReducedMotion =
          window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;

        function loadVideo(video) {
          if (video.dataset.loaded === "true") return;

          video.querySelectorAll("source[data-src]").forEach((source) => {
            source.src = source.dataset.src || "";
          });

          video.load();
          video.dataset.loaded = "true";

          // Try to honor autoplay once the source exists (safe no-op if blocked).
          if (!prefersReducedMotion && video.autoplay) {
            const p = video.play();
            if (p && typeof p.catch === "function") p.catch(() => {});
          }
        }

        if (!("IntersectionObserver" in window)) {
          videos.forEach(loadVideo);
          return;
        }

        const io = new IntersectionObserver(
          (entries) => {
            entries.forEach((entry) => {
              const video = entry.target;
              if (entry.isIntersecting) {
                loadVideo(video);
                io.unobserve(video);
              }
            });
          },
          { rootMargin: "250px 0px" }
        );

        videos.forEach((video) => io.observe(video));
      })();
    </script>
  </body>
</html>