/* =========================================================================
   ZYNTARA HOMEPAGE EXTENSIONS — 16 CMS SECTIONS
   ========================================================================= */

/* Common Section Padding */
.home-cms-section {
  padding: var(--section-y-padding) 0;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────
   3. HUMAN TOUCH ADVANTAGE
   ───────────────────────────────────────────────────────────── */
.human-touch-section {
  background: radial-gradient(circle at 80% 20%, rgba(0, 85, 255, 0.04) 0%, transparent 60%);
}
body[data-mode="night"] .human-touch-section {
  background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.05) 0%, transparent 60%);
}

.human-touch-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .human-touch-split {
    grid-template-columns: 1.1fr 1fr;
  }
}

.human-touch-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.human-pillar-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.human-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: var(--card-shadow-hover);
}
body[data-mode="night"] .human-pillar-card:hover {
  border-color: var(--brand-cyan);
}

.human-pillar-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
body[data-mode="night"] .human-pillar-badge {
  color: var(--brand-cyan);
}

.human-pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.human-pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.human-closing-box {
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  border-radius: 16px;
  background: rgba(0, 85, 255, 0.05);
  border-left: 3px solid var(--brand-blue);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
}
body[data-mode="night"] .human-closing-box {
  background: rgba(0, 210, 255, 0.05);
  border-left-color: var(--brand-cyan);
}

/* ─────────────────────────────────────────────────────────────
   6. INDUSTRIES
   ───────────────────────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--card-shadow-hover);
}
body[data-mode="night"] .industry-card:hover {
  border-color: var(--brand-cyan);
}

.industry-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 85, 255, 0.08);
  border: 1px solid rgba(0, 85, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}
body[data-mode="night"] .industry-icon-box {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.25);
  color: var(--brand-cyan);
}

.industry-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

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

.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: auto;
}
body[data-mode="night"] .industry-link {
  color: var(--brand-cyan);
}
.industry-card:hover .industry-link {
  gap: 0.7rem;
}

/* ─────────────────────────────────────────────────────────────
   7. TRUSTED BY / CLIENT LOGOS (INFINITE AUTO-SCROLLING RIBBON CAPSULE)
   ───────────────────────────────────────────────────────────── */
.trusted-strip-section {
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.trusted-strip-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  padding-inline: 1rem;
}

/* Contained Floating Capsule Strip with Left & Right Page Margins */
.trusted-strip-capsule {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 22px;
  background: rgba(11, 19, 41, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

body[data-mode="day"] .trusted-strip-capsule {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 85, 255, 0.18);
  box-shadow: 0 16px 40px -10px rgba(0, 85, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Deep, Gradual Masking - Slowly Fades In from One Side & Fades Out into the Other */
.trusted-strip-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 3%,
    rgba(0, 0, 0, 0.25) 8%,
    rgba(0, 0, 0, 0.65) 15%,
    rgba(0, 0, 0, 0.92) 22%,
    rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0.92) 78%,
    rgba(0, 0, 0, 0.65) 85%,
    rgba(0, 0, 0, 0.25) 92%,
    rgba(0, 0, 0, 0.05) 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 3%,
    rgba(0, 0, 0, 0.25) 8%,
    rgba(0, 0, 0, 0.65) 15%,
    rgba(0, 0, 0, 0.92) 22%,
    rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0.92) 78%,
    rgba(0, 0, 0, 0.65) 85%,
    rgba(0, 0, 0, 0.25) 92%,
    rgba(0, 0, 0, 0.05) 97%,
    transparent 100%
  );
}

/* Gradient Curtains for Layered Atmosphere & Smooth Dissolve */
.trusted-strip-fade-left,
.trusted-strip-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(90px, 18%, 200px);
  z-index: 4;
  pointer-events: none;
}
.trusted-strip-fade-left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(11, 19, 41, 0.95) 0%,
    rgba(11, 19, 41, 0.7) 35%,
    rgba(11, 19, 41, 0.25) 70%,
    transparent 100%
  );
}
.trusted-strip-fade-right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(11, 19, 41, 0.95) 0%,
    rgba(11, 19, 41, 0.7) 35%,
    rgba(11, 19, 41, 0.25) 70%,
    transparent 100%
  );
}

body[data-mode="day"] .trusted-strip-fade-left {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 35%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent 100%
  );
}
body[data-mode="day"] .trusted-strip-fade-right {
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 35%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent 100%
  );
}

/* Marquee Track */
.trusted-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: trustedMarqueeScroll 36s linear infinite;
}

.trusted-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes trustedMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Single Strip Item With Vertical Line Separator */
.trusted-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.25rem;
  min-width: 190px;
  height: 88px;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Precision Hairline Vertical Divider Tapered at Ends */
.trusted-strip-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 25%,
    rgba(255, 255, 255, 0.16) 75%,
    transparent 100%
  );
}

body[data-mode="day"] .trusted-strip-item::after {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 85, 255, 0.18) 25%,
    rgba(0, 85, 255, 0.18) 75%,
    transparent 100%
  );
}

.trusted-strip-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.trusted-strip-logo {
  max-height: 42px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(12%);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.trusted-strip-item:hover .trusted-strip-logo {
  opacity: 1;
  filter: grayscale(0%) brightness(1.08);
  transform: scale(1.08);
}

body[data-mode="day"] .trusted-strip-item:hover .trusted-strip-logo {
  filter: grayscale(0%) contrast(1.15);
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .trusted-strip-capsule {
    border-radius: 18px;
  }
  .trusted-strip-item {
    padding: 0 2.5rem;
    min-width: 160px;
    height: 78px;
  }
  .trusted-strip-logo {
    max-height: 38px;
    max-width: 135px;
  }
}

@media (max-width: 768px) {
  .trusted-strip-section {
    padding: 3.5rem 0 4rem 0;
  }
  .trusted-strip-capsule {
    border-radius: 16px;
    margin-inline: 0.5rem;
  }
  .trusted-strip-item {
    padding: 0 1.85rem;
    min-width: 135px;
    height: 68px;
  }
  .trusted-strip-logo {
    max-height: 32px;
    max-width: 115px;
  }
  .trusted-marquee-track {
    animation-duration: 26s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trusted-marquee-track {
    animation-duration: 90s;
  }
}

/* ─────────────────────────────────────────────────────────────
   9. ENGINEERING ADVANTAGE
   ───────────────────────────────────────────────────────────── */
.eng-principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .eng-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .eng-principles-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.eng-principle-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.eng-principle-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  box-shadow: var(--card-shadow-hover);
}
body[data-mode="night"] .eng-principle-card:hover {
  border-color: var(--brand-cyan);
}

.eng-principle-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}
body[data-mode="night"] .eng-principle-num {
  color: var(--brand-cyan);
}

.eng-principle-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

/* ─────────────────────────────────────────────────────────────
   11. TECHNOLOGY RADAR
   ───────────────────────────────────────────────────────────── */
.tech-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .tech-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tech-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .tech-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tech-cat-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}
.tech-cat-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
body[data-mode="night"] .tech-cat-card:hover {
  border-color: var(--brand-cyan);
}

.tech-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-cat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tech-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tech-cat-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
}
body[data-mode="night"] .tech-cat-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────
   14. INSIGHTS
   ───────────────────────────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insight-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--card-shadow-hover);
}
body[data-mode="night"] .insight-card:hover {
  border-color: var(--brand-cyan);
}

.insight-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.insight-tag {
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body[data-mode="night"] .insight-tag {
  color: var(--brand-cyan);
}

.insight-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.insight-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.insight-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  margin-top: auto;
}

.insight-author {
  color: var(--text-secondary);
  font-weight: 500;
}

.insight-read-link {
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
body[data-mode="night"] .insight-read-link {
  color: var(--brand-cyan);
}

/* ─────────────────────────────────────────────────────────────
   15. FAQ ACCORDION
   ───────────────────────────────────────────────────────────── */
.faq-accordion {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.faq-item:hover {
  border-color: var(--border-highlight);
}
.faq-item.is-open {
  border-color: var(--brand-blue);
}
body[data-mode="night"] .faq-item.is-open {
  border-color: var(--brand-cyan);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: pointer;
  gap: 1.5rem;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--brand-blue);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
body[data-mode="night"] .faq-chevron {
  color: var(--brand-cyan);
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-panel {
  display: none;
  padding: 0 1.75rem 1.75rem 1.75rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer-panel {
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL SVG SIZING & UTILITY SAFEGUARDS
   ───────────────────────────────────────────────────────────── */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
svg:not([width]) {
  width: 1rem;
  height: 1rem;
}
.w-3 { width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }

