/* Extracted from ai-seo.html */

/* Hero Carousel Animation */
    .hero-carousel {
      display: inline-flex;
      flex-direction: column;
      height: 1.1em;
      overflow: hidden;
      vertical-align: top;
      position: relative;
      color: var(--flame);
    }

    .hero-carousel__inner {
      display: flex;
      flex-direction: column;
      animation: scroll-words 6s cubic-bezier(0.8, 0, 0.2, 1) infinite;
    }

    .hero-carousel__word {
      height: 1.1em;
      display: flex;
      align-items: center;
    }

    @keyframes scroll-words {

      0%,
      22% {
        transform: translateY(0);
      }

      33%,
      55% {
        transform: translateY(-1.1em);
      }

      66%,
      88% {
        transform: translateY(-2.2em);
      }

      100% {
        transform: translateY(-3.3em);
      }
    }

    /* Contrast Fixes for Light Mode */
    body:not(.dark) .pillar-grid .card.pillar h3 {
      color: var(--text, #1a1a1a) !important;
    }

    body:not(.dark) .pillar-grid .card.pillar p,
    body:not(.dark) .pillar-grid .card.pillar ul li {
      color: rgba(0, 0, 0, 0.75) !important;
    }

    body:not(.dark) .industry-card .industry-title {
      color: var(--text, #1a1a1a) !important;
    }

    body:not(.dark) .industry-card .industry-desc {
      color: rgba(0, 0, 0, 0.75) !important;
    }

    body:not(.dark) .service-panel h3 {
      color: var(--text, #1a1a1a) !important;
    }

    body:not(.dark) .service-check-list li,
    body:not(.dark) .service-panel p {
      color: rgba(0, 0, 0, 0.75) !important;
    }

    body:not(.dark) .timeline-content h4 {
      color: var(--text, #1a1a1a) !important;
    }

    body:not(.dark) .timeline-content p {
      color: rgba(0, 0, 0, 0.75) !important;
    }

    body:not(.dark) .kpi-card h4,
    body:not(.dark) .case-title {
      color: var(--text, #1a1a1a) !important;
    }

.llm-prompt {
                    align-self: flex-end;
                    background: #f0f0f0;
                    color: #1f2937;
                    padding: 10px 14px;
                    border-radius: 16px 16px 4px 16px;
                    font-size: 12.5px;
                    max-width: 85%;
                    font-family: Inter, sans-serif;
                  }

                  .llm-response-box {
                    align-self: flex-start;
                    background: #fff;
                    border: 1px solid rgba(0, 0, 0, 0.05);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
                    color: #374151;
                    padding: 12px 14px;
                    border-radius: 16px 16px 16px 4px;
                    max-width: 95%;
                    font-family: Inter, sans-serif;
                    position: relative;
                    overflow: hidden;
                    animation: slide-up-fade 0.5s ease-out forwards;
                  }

                  .llm-title {
                    font-weight: 600;
                    color: #111827;
                    font-size: 13px;
                  }

                  .citation-badge {
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                    background: rgba(16, 185, 129, 0.1);
                    color: #10b981;
                    padding: 3px 8px;
                    border-radius: 12px;
                    font-size: 10.5px;
                    font-weight: 600;
                    margin-top: 10px;
                    opacity: 0;
                    animation: fade-in 0.5s ease-out 1.5s forwards;
                    border: 1px solid rgba(16, 185, 129, 0.2);
                  }

                  .text-fade-in {
                    opacity: 0;
                    animation: fade-in 0.5s ease-out 0.5s forwards;
                  }

                  body.dark .llm-prompt {
                    background: rgba(255, 255, 255, 0.1);
                    color: #e5e7eb;
                  }

                  body.dark .llm-response-box {
                    background: rgba(0, 0, 0, 0.2);
                    border-color: rgba(255, 255, 255, 0.05);
                    color: #d1d5db;
                    box-shadow: none;
                  }

                  body.dark .llm-title {
                    color: #f3f4f6;
                  }

                  @keyframes slide-up-fade {
                    from {
                      opacity: 0;
                      transform: translateY(10px);
                    }

                    to {
                      opacity: 1;
                      transform: translateY(0);
                    }
                  }

                  @keyframes fade-in {
                    to {
                      opacity: 1;
                    }
                  }

.ai-overview-anim {
                  animation: float-subtle 4s ease-in-out infinite;
                  background: #fff;
                }

                body.dark .ai-overview-anim {
                  background: #1e1e1e;
                  border-color: rgba(255, 255, 255, 0.1) !important;
                }

                body.dark .ai-overview-anim .ai-title,
                body.dark .ai-overview-anim .ai-text-typing,
                body.dark .ai-overview-anim .ai-brand-title {
                  color: rgba(255, 255, 255, 0.9) !important;
                }

                body.dark .ai-overview-anim .ai-source-card {
                  background: rgba(255, 255, 255, 0.05) !important;
                  border-color: rgba(255, 255, 255, 0.1) !important;
                }

                .ai-text-typing {
                  animation: fade-in-up 1s ease-out forwards;
                }

                .sparkle-icon {
                  animation: pulse-sparkle 2s infinite;
                }

                @keyframes float-subtle {

                  0%,
                  100% {
                    transform: translateY(0);
                  }

                  50% {
                    transform: translateY(-4px);
                  }
                }

                @keyframes fade-in-up {
                  0% {
                    opacity: 0;
                    transform: translateY(5px);
                  }

                  100% {
                    opacity: 1;
                    transform: translateY(0);
                  }
                }

                @keyframes pulse-sparkle {

                  0%,
                  100% {
                    transform: scale(1);
                    opacity: 1;
                  }

                  50% {
                    transform: scale(1.1);
                    opacity: 0.8;
                  }
                }

.industry-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
          }

          .industry-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            transition: all 0.3s ease;
          }

          body.dark .industry-card {
            border-color: rgba(255, 255, 255, 0.05);
            background: rgba(255, 255, 255, 0.01);
          }

          .industry-card:hover {
            transform: translateY(-4px);
            border-color: var(--flame);
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
          }

          body.dark .industry-card:hover {
            background: rgba(255, 255, 255, 0.03);
          }

          .industry-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.03);
            color: var(--flame);
            margin-bottom: 16px;
          }

          body.dark .industry-icon {
            background: rgba(255, 255, 255, 0.05);
          }

          .industry-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 8px;
          }

          .industry-desc {
            font-size: 0.875rem;
            color: rgba(0, 0, 0, 0.6);
          }

          body.dark .industry-desc {
            color: rgba(255, 255, 255, 0.6);
          }

.services-tab-container {
            display: flex;
            gap: 40px;
            max-width: 1100px;
            margin: 0 auto;
            background: var(--bg);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.05);
          }

          body.dark .services-tab-container {
            border-color: rgba(255, 255, 255, 0.05);
          }

          .services-tabs {
            flex: 0 0 280px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-right: 1px solid rgba(0, 0, 0, 0.05);
            padding-right: 24px;
            max-height: 600px;
            overflow-y: auto;
          }

          body.dark .services-tabs {
            border-right-color: rgba(255, 255, 255, 0.05);
          }

          /* Custom scrollbar for tabs */
          .services-tabs::-webkit-scrollbar {
            width: 4px;
          }

          .services-tabs::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
          }

          body.dark .services-tabs::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
          }

          .service-tab {
            padding: 12px 16px;
            text-align: left;
            background: none;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            color: rgba(0, 0, 0, 0.6);
            cursor: pointer;
            transition: all 0.2s ease;
          }

          body.dark .service-tab {
            color: rgba(255, 255, 255, 0.6);
          }

          .service-tab:hover {
            color: var(--text);
            background: rgba(0, 0, 0, 0.03);
          }

          body.dark .service-tab:hover {
            background: rgba(255, 255, 255, 0.03);
          }

          .service-tab.active {
            color: #fff;
            background: var(--flame);
            font-weight: 600;
          }

          body.dark .service-tab.active {
            color: #fff;
          }

          .services-content-panels {
            flex: 1;
            position: relative;
            min-height: 400px;
          }

          .service-panel {
            display: none;
            animation: fadeInPanel 0.4s ease forwards;
          }

          .service-panel.active {
            display: block;
          }

          @keyframes fadeInPanel {
            from {
              opacity: 0;
              transform: translateY(10px);
            }

            to {
              opacity: 1;
              transform: translateY(0);
            }
          }

          .service-panel h3 {
            font-size: 1.75rem;
            margin-bottom: 16px;
            color: var(--text);
          }

          .service-panel p {
            font-size: 1.1rem;
            color: rgba(0, 0, 0, 0.65);
            margin-bottom: 32px;
            line-height: 1.6;
          }

          body.dark .service-panel p {
            color: rgba(255, 255, 255, 0.65);
          }

          .service-check-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
          }

          .service-check-list li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 1rem;
            line-height: 1.5;
            padding: 16px;
            background: rgba(0, 0, 0, 0.02);
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.03);
          }

          body.dark .service-check-list li {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.03);
          }

          .service-check-list svg {
            flex-shrink: 0;
            color: var(--flame);
            margin-top: 2px;
          }

          @media (max-width: 768px) {
            .services-tab-container {
              flex-direction: column;
              padding: 24px;
            }

            .services-tabs {
              flex: none;
              border-right: none;
              border-bottom: 1px solid rgba(0, 0, 0, 0.05);
              padding-right: 0;
              padding-bottom: 24px;
              max-height: 300px;
            }
          }

.timeline {
              display: flex;
              flex-direction: column;
              gap: 24px;
              position: relative;
              max-width: 800px;
            }

            .timeline::before {
              content: '';
              position: absolute;
              left: 24px;
              top: 12px;
              bottom: 12px;
              width: 2px;
              background: rgba(0, 0, 0, 0.05);
            }

            body.dark .timeline::before {
              background: rgba(255, 255, 255, 0.05);
            }

            .timeline-item {
              display: flex;
              gap: 24px;
              position: relative;
            }

            .timeline-dot {
              width: 50px;
              height: 50px;
              border-radius: 50%;
              background: var(--bg);
              border: 2px solid var(--flame);
              display: flex;
              align-items: center;
              justify-content: center;
              font-weight: 700;
              color: var(--flame);
              flex-shrink: 0;
              z-index: 2;
            }

            .timeline-content {
              background: rgba(0, 0, 0, 0.02);
              border: 1px solid rgba(0, 0, 0, 0.03);
              padding: 24px;
              border-radius: 16px;
              flex: 1;
            }

            body.dark .timeline-content {
              background: rgba(255, 255, 255, 0.02);
              border-color: rgba(255, 255, 255, 0.03);
            }

            .timeline-content h4 {
              font-size: 1.25rem;
              margin-bottom: 8px;
            }

            .timeline-content p {
              color: rgba(0, 0, 0, 0.6);
              margin: 0;
            }

            body.dark .timeline-content p {
              color: rgba(255, 255, 255, 0.6);
            }

            /* KPIs Grid */
            .kpi-grid {
              display: grid;
              grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
              gap: 16px;
              margin-top: 48px;
            }

            .kpi-card {
              padding: 24px;
              border-radius: 16px;
              background: var(--bg-alt);
              border: 1px solid rgba(0, 0, 0, 0.05);
              text-align: center;
            }

            body.dark .kpi-card {
              border-color: rgba(255, 255, 255, 0.05);
            }

            .kpi-card svg {
              color: var(--flame);
              margin-bottom: 12px;
            }

            .kpi-card h4 {
              font-size: 1.1rem;
              font-weight: 600;
            }

.tools-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 16px;
          }

          .tool-badge {
            background: var(--bg);
            border: 1px solid rgba(0, 0, 0, 0.05);
            padding: 12px 24px;
            border-radius: 30px;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.7);
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
          }

          body.dark .tool-badge {
            border-color: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
          }

          .tool-badge:hover {
            border-color: var(--flame);
            color: var(--flame);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
          }

.cases-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
          }

          @media (min-width: 768px) {
            .cases-grid {
              grid-template-columns: repeat(3, 1fr);
            }
          }

          .case-card {
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 16px;
            padding: 32px;
            transition: all 0.3s ease;
          }

          body.dark .case-card {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.05);
          }

          .case-card:hover {
            transform: translateY(-5px);
            border-color: var(--flame);
            background: var(--bg);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
          }

          .case-metric {
            font-size: 3rem;
            font-weight: 700;
            color: var(--flame);
            line-height: 1;
            letter-spacing: -0.05em;
            margin-bottom: 8px;
          }

          .case-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 16px;
          }

          .case-desc {
            color: rgba(0, 0, 0, 0.65);
            line-height: 1.6;
            margin-bottom: 24px;
          }

          body.dark .case-desc {
            color: rgba(255, 255, 255, 0.65);
          }

.blog-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
          }

          @media (min-width: 768px) {
            .blog-grid {
              grid-template-columns: repeat(3, 1fr);
            }
          }

          .blog-card {
            background: var(--bg-alt);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 20px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
          }

          .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
          }

          .blog-img {
            width: 100%;
            height: 200px;
            background-color: #f1f5f9;
            object-fit: cover;
          }

          .blog-content {
            padding: 30px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
          }

          .blog-meta {
            font-size: 0.85rem;
            color: var(--flame);
            font-weight: 600;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
          }

          .blog-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 16px;
            line-height: 1.4;
          }

          .blog-desc {
            color: rgba(0, 0, 0, 0.65);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 24px;
            flex-grow: 1;
          }

          .blog-readmore {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            color: var(--text);
            font-size: 0.95rem;
            transition: color 0.2s ease;
          }

          .blog-card:hover .blog-readmore {
            color: var(--flame);
          }

          /* Dark mode overrides if body is dark */
          body.dark .blog-card {
            border-color: rgba(255, 255, 255, 0.05);
          }

          body.dark .blog-desc {
            color: rgba(255, 255, 255, 0.65);
          }

