/* Articles Page Styles */
.container {
  padding-top: 40px !important;
}

/* ==================== ARTICLES HEADER ==================== */
.articles-header {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Listing header — Figma 444:1245: left-aligned, blurred purple glow on the right */
.articles-header {
  box-sizing: border-box;
  align-items: stretch;
  text-align: left;
  overflow: visible;
  background-color: transparent;
  padding: 195px 2rem 139px; /* fixed navbar (~92px) - container offset (40px) + 143px Figma spacing */
  z-index: 0;
}

.articles-header-bg-wrapper {
  position: absolute;
  top: 0;
  left: 23.3%;
  width: 67.7%;
  max-width: 1170px;
  height: 784px;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  opacity: 0.7;
}

.articles-header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.articles-header-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 1409px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.articles-title {
  max-width: 1046px;
  font-size: 96px;
  font-weight: 700;
  line-height: 100px;
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  background: linear-gradient(130.91deg, #ffffff 7.11%, #999999 228.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.articles-subtitle {
  max-width: 621px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: #b4b4b4;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ==================== ARTICLE DETAIL HEADER (Figma 444:1362) ==================== */
.articles-header--detail {
  padding: 104px 2rem 273px;
}

.article-detail-eyebrow {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: #bfaeff;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  white-space: pre-wrap;
  margin: 0;
}

.article-title {
  max-width: 536px;
  font-size: 40px;
  font-weight: 500;
  line-height: 50px;
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  background: linear-gradient(131.6deg, #ffffff 7.11%, #999999 228.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-excerpt {
  max-width: 621px;
  font-size: 24px;
  line-height: 1.2;
  color: #b4b4b4;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* ==================== SHARED LABELS ==================== */
.articles-eyebrow-label,
.explore-services-label {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.article-card-eyebrow {
  display: flex;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  white-space: pre-wrap;
  margin: 0;
}

.article-card-link {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: #bfaeff;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* ==================== FEATURED ARTICLE ==================== */
.articles-featured-section,
.articles-latest-section,
.explore-services-section {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1409px + 4rem);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.articles-featured-section {
  padding-top: 0;
  padding-bottom: 128px;
}

.featured-article-card {
  display: flex;
  align-items: center;
  gap: 128px;
  background: #060606;
  border: 1px solid rgba(184, 184, 184, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.featured-article-card:hover {
  border-color: rgba(191, 174, 255, 0.5);
}

.featured-article-image {
  flex: 0 1 623px;
  height: 443px;
  min-width: 0;
  align-self: stretch;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-article-content,
.article-card-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-article-excerpt,
.article-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.featured-article-excerpt {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.featured-article-content {
  flex: 0 1 528px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  padding: 2rem 2rem 2rem 0;
  min-width: 0;
}

.featured-article-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.featured-article-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 41px;
  color: #ffffff;
  font-family: 'Satoshi', sans-serif;
  margin: 0;
}

.featured-article-excerpt {
  font-size: 20px;
  line-height: normal;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* ==================== LATEST ARTICLES GRID ==================== */
.articles-latest-section {
  padding-top: 0;
  padding-bottom: 64px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 65px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.article-card:hover {
  border-color: rgba(191, 174, 255, 0.5);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 366 / 255;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 12px 24px;
  flex: 1;
}

.article-card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.article-card-title {
  font-size: 32px;
  font-weight: 500;
  line-height: normal;
  color: #ffffff;
  font-family: 'Satoshi', sans-serif;
  margin: 0;
}

.article-card-excerpt {
  font-size: 20px;
  line-height: normal;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.article-card .article-card-link {
  margin-top: auto;
}

/* ==================== EMPTY STATE ==================== */
.articles-empty-state {
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.articles-empty-state svg {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.articles-empty-state h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  font-family: 'Satoshi', sans-serif;
}

.articles-empty-state p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ==================== EXPLORE SERVICES CHIPS ==================== */
.explore-services-section {
  padding-top: 0;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.explore-services-label {
  flex: 0 0 auto;
  width: 221px;
  margin: 0;
}

.explore-services-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.explore-service-chip {
  position: relative;
  isolation: isolate;
  background: #0d0d0d;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px;
  color: #ffffff;
  font-size: 20px;
  line-height: normal;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient border — same mask technique as .solution-item */
.explore-service-chip::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(191, 174, 255, 0.9) 0%,
    rgba(150, 120, 180, 0.45) 55%,
    rgba(107, 75, 138, 0.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.explore-service-chip:hover {
  background: rgba(80, 55, 105, 0.4);
  box-shadow: 0 10px 30px rgba(107, 75, 138, 0.4);
}

/* ==================== ARTICLE BODY CONTENT (Figma 444:1387) ==================== */
.article-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1417px + 4rem);
  margin: 0 auto;
  padding: 0 2rem;
  font-family: 'Inter', sans-serif;
  text-align: left;
}

.article-block {
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.article-block-row {
  display: flex;
  align-items: center;
  gap: 72px;
}

.article-block-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-wrap: anywhere;
}

.article-block.has-image .article-block-text {
  flex: 0 1 626px;
}

.article-block-heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.article-block-description {
  font-size: 20px;
  line-height: normal;
  color: rgba(255, 255, 255, 0.5);
}

.article-block-description p {
  margin: 0 0 24px 0;
}

.article-block-description p:last-child,
.article-block-description ul:last-child,
.article-block-description ol:last-child {
  margin-bottom: 0;
}

.article-block-description ul,
.article-block-description ol {
  margin: 0 0 24px 1.5rem;
  padding: 0;
}

.article-block-description ul {
  list-style: disc;
}

.article-block-description ol {
  list-style: decimal;
}

.article-block-description li {
  margin-bottom: 8px;
}

.article-block-description a {
  color: #bfaeff;
  text-decoration: underline;
}

.article-block-image-wrap {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4000 / 2250;
  border-radius: 20px;
  overflow: hidden;
}

.article-block-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================== ARTICLE CTA ====================
   Same component as the homepage (PrintBottomCtaSection + index.css). The article page
   loads services.css, whose CTA variant is wider/taller — restore the homepage values. */
.article-cta .bottom-cta-section {
  width: 40%;
  max-width: none;
  height: fit-content;
  padding: 2rem;
  border-radius: 0;
}

.article-cta .bottom-cta-glow {
  width: 800px;
  height: 800px;
}

.article-cta .bottom-cta-title {
  font-size: 3rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1440px) {
  .articles-title {
    font-size: 80px;
    line-height: 84px;
  }

  .featured-article-card {
    gap: 64px;
  }

  .articles-grid {
    gap: 32px;
  }

  .article-card-title {
    font-size: 28px;
  }

  .explore-services-chips {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .articles-header {
    padding: 96px 2rem 96px;
  }

  .articles-header-bg-wrapper {
    left: 10%;
    width: 90%;
    height: 560px;
  }

  .articles-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .articles-subtitle {
    font-size: 20px;
  }

  .featured-article-card {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .featured-article-image {
    flex: none;
    height: 320px;
    border-radius: 10px 10px 0 0;
  }

  .featured-article-content {
    flex: none;
    gap: 32px;
    padding: 0 2rem 2rem;
  }

  .featured-article-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .articles-featured-section {
    padding-bottom: 80px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-services-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .explore-services-label {
    width: auto;
  }

  .articles-header--detail {
    padding: 96px 2rem 120px;
  }

  .article-block-row {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .article-block.has-image .article-block-text {
    flex: 1 1 auto;
  }

  .article-block-image-wrap {
    flex: 1 1 auto;
  }

}

@media (max-width: 768px) {
  /* Article detail — Figma mobile 444:1626 */
  .articles-header.articles-header--detail {
    padding: 60px 28px 69px;
  }

  .article-detail-eyebrow {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
  }

  .article-title {
    max-width: 302px;
    font-size: 24px;
    line-height: 30px;
  }

  .article-excerpt {
    max-width: 273px;
    font-size: 12px;
    line-height: 20px;
  }

  .article-content {
    padding: 0 28px;
  }

  .article-block {
    margin-bottom: 32px;
  }

  .article-block-row {
    gap: 16px;
  }

  .article-block-text {
    gap: 16px;
  }

  .article-block-heading {
    font-family: 'Satoshi', sans-serif;
  }

  .article-block-description {
    font-size: 12px;
    line-height: 20px;
  }

  .article-block-description p,
  .article-block-description ul,
  .article-block-description ol {
    margin-bottom: 20px;
  }

  /* Homepage CTA mobile values (index.css) */
  .article-cta .bottom-cta-section {
    width: 90%;
    padding: 3rem;
    min-height: 50vh;
    overflow-x: hidden;
  }

  .article-cta .bottom-cta-badge {
    flex-direction: row;
  }

  .article-cta .bottom-cta-badge h2 {
    font-size: 1.3em;
  }

  .article-cta .bottom-cta-title {
    font-size: 2.6em;
  }

  .article-cta .bottom-cta-subtitle {
    font-size: 1.2rem;
  }

  .article-cta .bottom-cta-button {
    padding: 0.875rem 2rem;
  }

  .article-cta .bottom-cta-button span {
    font-size: 1.1rem;
  }

  .article-cta .bottom-cta-glow {
    width: 500px;
    height: 500px;
  }

  /* Listing — Figma mobile 444:1426 (402px frame, 345px content) */
  .articles-header {
    padding: 45px 28px 52px;
  }

  .articles-header-bg-wrapper {
    top: -56px;
    left: 15px;
    width: 606px;
    max-width: none;
    height: 406px;
  }

  .articles-header-content {
    max-width: 354px;
    margin: 0;
    gap: 24px;
  }

  .articles-title {
    font-size: 32px;
    line-height: 32px;
    background-image: linear-gradient(131.69deg, #ffffff 7.11%, #999999 228.75%);
  }

  .articles-subtitle {
    max-width: 328px;
    font-size: 12px;
    line-height: 20px;
  }

  .articles-featured-section,
  .articles-latest-section,
  .explore-services-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .articles-featured-section {
    padding-bottom: 28px;
  }

  .articles-latest-section {
    padding-bottom: 32px;
  }

  .articles-eyebrow-label {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 12px;
  }

  .featured-article-card,
  .article-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-color: rgba(184, 184, 184, 0.3);
  }

  .featured-article-image,
  .article-card-image {
    flex: none;
    height: 245px;
    aspect-ratio: auto;
    border-radius: 10px 10px 0 0;
  }

  .featured-article-content,
  .article-card-content {
    flex: none;
    gap: 32px;
    padding: 24px;
  }

  .featured-article-text,
  .article-card-text {
    gap: 16px;
  }

  .article-card-eyebrow,
  .article-card-link {
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
  }

  .featured-article-title,
  .article-card-title {
    font-size: 24px;
    line-height: 30px;
  }

  .featured-article-excerpt,
  .article-card-excerpt {
    font-size: 12px;
    line-height: 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .explore-services-section {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 23px;
    padding-bottom: 64px;
  }

  .explore-services-label {
    width: 144px;
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
  }

  .explore-services-chips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
  }

  .explore-service-chip {
    padding: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
  }
}

@media (max-width: 480px) {
  .article-cta .bottom-cta-subtitle {
    font-size: 1rem;
  }

  .article-cta .bottom-cta-button {
    padding: 0.75rem 1.75rem;
  }

  .article-cta .bottom-cta-button span {
    font-size: 1rem;
  }
}
