/* ═══════════════════════════════════════════════════════
   USE-CASES.CSS — Industry Solutions & Key Benefits Page
   ═══════════════════════════════════════════════════════ */

.uc-page {
  min-height: 100vh;
  background: var(--z-bg);
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.uc-ph {
  background: white;
  border-bottom: 1px solid var(--z-border);
  position: relative;
  overflow: hidden;
}

.uc-ph::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--zr) 25%, var(--zg) 25% 50%, var(--zb) 50% 75%, var(--zy) 75%);
}

.uc-ph::before {
  content: '';
  position: absolute;
  top: 50%; right: 40px;
  transform: translateY(-50%);
  width: 220px; height: 180px;
  background: url('../img/zoho-logo.png') center/contain no-repeat;
  opacity: .04;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.uc-ph-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px 32px;
}

.uc-ph-label {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--zr); margin-bottom: 10px;
}

.uc-ph-title {
  font-size: 34px; font-weight: 800;
  color: var(--z-text); letter-spacing: -1px;
  line-height: 1.1; margin: 0 0 14px;
}

.uc-ph-title span { color: var(--zr); }

.uc-ph-desc {
  font-size: 14.5px; color: var(--z-body);
  line-height: 1.6; max-width: 620px;
  margin: 0 0 20px;
}

/* ── Sticky section nav bar ── */
.uc-sticky-nav {
  position: sticky;
  top: 62px;
  z-index: 500;
  background: white;
  border-bottom: 1px solid var(--z-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.uc-sticky-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
  height: 46px;
  align-items: stretch;
}

.uc-ph-nav-link {
  display: flex; align-items: center;
  padding: 0 20px;
  font-size: 12.5px; font-weight: 600;
  color: var(--z-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.uc-ph-nav-link:hover { color: var(--z-text); background: var(--z-bg); }

.uc-ph-nav-link.active {
  color: var(--zr);
  border-bottom-color: var(--zr);
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.uc-section { padding: 56px 0; }
.uc-section-alt { background: white; }

.uc-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.uc-section-header { text-align: center; margin-bottom: 40px; }

.uc-section-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  border-radius: 20px; padding: 4px 14px;
  border: 1px solid transparent;
  margin-bottom: 14px;
}

.uc-section-title {
  font-size: 28px; font-weight: 800;
  color: var(--z-text); letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.uc-section-sub {
  font-size: 14px; color: var(--z-body);
  line-height: 1.6; max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   INDUSTRY CARDS
══════════════════════════════════════ */
.uc-ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.uc-ind-card {
  background: white;
  border: 1px solid var(--z-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.uc-ind-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.uc-ind-view-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--zr);
  transition: gap 0.2s;
}
.uc-ind-card:hover .uc-ind-view-link { gap: 0.65rem; }

.uc-ind-card-top {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.uc-ind-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 19px;
  flex-shrink: 0;
}

.uc-ind-name {
  font-size: 16px; font-weight: 800;
  color: white; line-height: 1.2;
}

.uc-ind-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uc-ind-ch-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--z-muted); margin-bottom: 7px;
}

.uc-ind-challenges ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}

.uc-ind-challenges li {
  font-size: 12.5px; color: var(--z-body);
  padding-left: 16px; position: relative;
  line-height: 1.4;
}

.uc-ind-challenges li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--z-border);
  border: 1.5px solid var(--z-muted);
}

.uc-ind-apps-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--z-muted); margin-bottom: 7px;
}

.uc-ind-app-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.uc-ind-app-chips span {
  font-size: 11px; font-weight: 700;
  color: var(--z-body);
  background: var(--z-bg);
  border: 1px solid var(--z-border);
  border-radius: 6px;
  padding: 3px 9px;
}

.uc-ind-outcome {
  font-size: 12px; font-weight: 600;
  color: var(--zg);
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #c3f0cc;
  border-radius: 8px;
  line-height: 1.45;
}

.uc-ind-outcome i { font-size: 13px; margin-top: 1px; flex-shrink: 0; }

.uc-ind-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  font-size: 12.5px; font-weight: 700;
  color: var(--z-text);
  text-decoration: none;
  border-top: 1px solid var(--z-border);
  background: var(--z-bg);
  transition: background 0.15s, color 0.15s;
}

.uc-ind-cta:hover { background: var(--zr-bg); color: var(--zr); }
.uc-ind-cta i { font-size: 11px; }

/* ══════════════════════════════════════
   KEY APPLICATIONS GRID
══════════════════════════════════════ */
.uc-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.uc-app-card {
  background: white;
  border: 1px solid var(--z-border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.uc-app-card:hover {
  border-color: var(--zr);
  box-shadow: 0 6px 24px rgba(228,37,39,.1);
  transform: translateY(-3px);
}

.uc-app-header {
  display: flex; align-items: center;
  justify-content: space-between;
}

.uc-app-img-wrap {
  width: 44px; height: 44px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--z-border);
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.uc-app-img { width: 38px; height: 38px; object-fit: contain; }

.uc-app-tag {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 20px; padding: 3px 10px;
}

.uc-app-name {
  font-size: 16px; font-weight: 800;
  color: var(--z-text); letter-spacing: -0.2px;
}

.uc-app-desc {
  font-size: 12.5px; color: var(--z-body);
  line-height: 1.5; flex: 1;
}

.uc-app-features {
  display: flex; flex-wrap: wrap; gap: 5px;
}

.uc-app-features span {
  font-size: 10.5px; font-weight: 600;
  color: var(--z-body);
  background: var(--z-bg);
  border: 1px solid var(--z-border);
  border-radius: 5px; padding: 2px 8px;
}

.uc-app-industries {
  font-size: 11px; color: var(--z-muted);
  font-weight: 500;
}

.uc-app-link {
  font-size: 12.5px; font-weight: 700;
  color: var(--zr);
  display: flex; align-items: center; gap: 6px;
  margin-top: auto;
}

.uc-app-link i { font-size: 10px; transition: transform 0.15s; }
.uc-app-card:hover .uc-app-link i { transform: translateX(3px); }

/* ══════════════════════════════════════
   KEY BENEFITS — INFINITE SCROLL MARQUEE
══════════════════════════════════════ */
@keyframes uc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.uc-benefits-marquee {
  overflow: hidden;
  padding: 16px 0 24px;
  cursor: default;
  /* fade edges left & right */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.uc-benefits-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: uc-marquee 38s linear infinite;
}

/* Pause scrolling when cursor enters the marquee area */
.uc-benefits-marquee:hover .uc-benefits-track {
  animation-play-state: paused;
}

.uc-benefit-card {
  width: 256px;
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--z-border);
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.uc-benefit-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--zr));
  opacity: 0;
  transition: opacity 0.2s;
}

/* Hovered card zooms; other cards in the paused row don't */
.uc-benefit-card:hover {
  border-color: var(--accent, var(--zr));
  box-shadow: 0 12px 36px rgba(0,0,0,.13);
  transform: scale(1.07);
  z-index: 10;
}

.uc-benefit-card:hover::after { opacity: 1; }

.uc-benefit-ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
  flex-shrink: 0;
}

.uc-benefit-title {
  font-size: 14.5px; font-weight: 800;
  color: var(--z-text); margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.uc-benefit-desc {
  font-size: 12.5px; color: var(--z-body);
  line-height: 1.55;
}

/* ══════════════════════════════════════
   CTA STRIP
══════════════════════════════════════ */
.uc-cta-strip {
  background: white;
  border-top: 1px solid var(--z-border);
  border-bottom: 1px solid var(--z-border);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.uc-cta-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--zr) 25%, var(--zg) 25% 50%, var(--zb) 50% 75%, var(--zy) 75%);
}

.uc-cta-strip::after {
  content: '';
  position: absolute;
  top: 50%; right: 60px;
  transform: translateY(-50%);
  width: 240px; height: 180px;
  background: url('../img/zoho-logo.png') center/contain no-repeat;
  opacity: .06;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.uc-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.uc-cta-text h3 {
  font-size: 22px; font-weight: 800;
  color: var(--z-text); margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.uc-cta-text p {
  font-size: 13.5px; color: var(--z-body);
  line-height: 1.55; max-width: 520px;
  margin: 0;
}

.uc-cta-actions {
  display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap;
}

.btn-uc-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--zr); color: white;
  font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-uc-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-uc-outline {
  display: inline-flex; align-items: center;
  background: white;
  color: var(--z-text); font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 10px;
  text-decoration: none; border: 1px solid var(--z-border);
  transition: background 0.15s, border-color 0.15s;
}

.btn-uc-outline:hover { background: var(--z-bg); border-color: var(--z-body); }

/* site-footer styles are in shared.css */

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1200px) {
  .uc-ind-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .uc-ph-inner  { padding: 24px 20px 24px; }
  .uc-ph-title  { font-size: 26px; }
  .uc-section-inner { padding: 0 20px; }
  .uc-sticky-nav-inner { padding: 0 20px; }
  .uc-ind-grid  { grid-template-columns: repeat(3, 1fr); }
  .uc-apps-grid { grid-template-columns: 1fr 1fr; }
  .uc-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .uc-ind-grid  { grid-template-columns: repeat(2, 1fr); }
  .uc-apps-grid { grid-template-columns: 1fr; }
  .uc-ph-nav-link { padding: 0 14px; font-size: 11.5px; }
}

@media (max-width: 420px) {
  .uc-ind-grid  { grid-template-columns: 1fr; }
  .uc-benefit-card { width: 200px; }
}
