/* =====================================================================
   CRI — INNER PAGE STYLES (brand & service landing pages)
   ===================================================================== */

/* -------- INNER HERO -------- */
.inner-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.inner-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.inner-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../building.avif') center / cover no-repeat;
  opacity: 0.08;
}
.inner-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.inner-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color .2s;
  align-self: flex-start;
}
.inner-back:hover { color: var(--white); }
.inner-hero-logo-box {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.inner-hero-logo-box img {
  max-height: 44px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}
.inner-hero-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--white);
  backdrop-filter: blur(8px);
}
.inner-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 700px;
  line-height: 1.1;
}
.inner-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: 1.7;
}
.inner-hero-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.inner-hero-brands span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

/* -------- BRAND HERO EXTRA -------- */
.brand-hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.brand-hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
}
.brand-hero-meta i { font-size: 12px; }

/* -------- TWO COL LAYOUT -------- */
.inner-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .inner-two-col { grid-template-columns: 1fr; gap: 40px; } }

/* -------- FEATURE LIST -------- */
.inner-feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.inner-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.inner-feature > i {
  font-size: 18px;
  color: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.inner-feature strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.inner-feature p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* -------- SCROLL REVEAL FOR INNER PAGE ELEMENTS -------- */
.inner-card, .product-card, .inner-app {
  opacity: 0;
  transform: translateY(18px);
}
.inner-card.is-visible, .product-card.is-visible, .inner-app.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.inner-cards .inner-card:nth-child(1) { transition-delay: 0ms; }
.inner-cards .inner-card:nth-child(2) { transition-delay: 80ms; }
.inner-cards .inner-card:nth-child(3) { transition-delay: 160ms; }
.inner-cards .inner-card:nth-child(4) { transition-delay: 240ms; }
.product-grid .product-card:nth-child(1) { transition-delay: 0ms; }
.product-grid .product-card:nth-child(2) { transition-delay: 70ms; }
.product-grid .product-card:nth-child(3) { transition-delay: 140ms; }
.product-grid .product-card:nth-child(4) { transition-delay: 210ms; }
.product-grid .product-card:nth-child(5) { transition-delay: 280ms; }
.product-grid .product-card:nth-child(6) { transition-delay: 350ms; }
.inner-app-grid .inner-app:nth-child(1) { transition-delay: 0ms; }
.inner-app-grid .inner-app:nth-child(2) { transition-delay: 60ms; }
.inner-app-grid .inner-app:nth-child(3) { transition-delay: 120ms; }
.inner-app-grid .inner-app:nth-child(4) { transition-delay: 180ms; }
.inner-app-grid .inner-app:nth-child(5) { transition-delay: 240ms; }
.inner-app-grid .inner-app:nth-child(6) { transition-delay: 300ms; }
.inner-app-grid .inner-app:nth-child(7) { transition-delay: 360ms; }
.inner-app-grid .inner-app:nth-child(8) { transition-delay: 420ms; }
@media (prefers-reduced-motion: reduce) {
  .inner-card, .product-card, .inner-app { opacity: 1; transform: none; transition: none; }
}

/* -------- CARDS GRID -------- */
.inner-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.inner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: opacity .72s cubic-bezier(0.16,1,0.3,1), transform .72s cubic-bezier(0.16,1,0.3,1), box-shadow .45s cubic-bezier(.4,0,.2,1);
}
.inner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.inner-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 10px;
}
.inner-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* -------- PRODUCT GRID (brand pages) -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: opacity .72s cubic-bezier(0.16,1,0.3,1), transform .72s cubic-bezier(0.16,1,0.3,1), box-shadow .45s cubic-bezier(.4,0,.2,1), border-color .3s cubic-bezier(.4,0,.2,1);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-accent); }
.product-card-img {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tinted);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}
.product-card-img img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.product-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand-blue-50);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.product-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

/* -------- APP GRID -------- */
.inner-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.inner-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: opacity .72s cubic-bezier(0.16,1,0.3,1), transform .72s cubic-bezier(0.16,1,0.3,1), box-shadow .4s cubic-bezier(.4,0,.2,1), border-color .28s cubic-bezier(.4,0,.2,1);
}
.inner-app:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--brand-accent); }
.inner-app i { font-size: 26px; color: var(--brand-accent); }

/* -------- CTA SECTION -------- */
.inner-cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.inner-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(26,58,138,0.5), transparent 70%);
  pointer-events: none;
}
.inner-cta-section .container { position: relative; z-index: 1; }

/* -------- BRAND STAT ROW -------- */
.brand-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 32px 0 0;
}
.brand-stat { text-align: center; }
.brand-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-accent);
}
.brand-stat .lbl { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* -------- BRAND VISIT LINK -------- */
.brand-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-accent);
  border-bottom: 1.5px solid var(--brand-accent);
  padding-bottom: 2px;
  transition: opacity .2s;
}
.brand-visit:hover { opacity: 0.75; }

/* -------- RESPONSIVE -------- */
@media (max-width: 720px) {
  .inner-hero { padding: 80px 0 50px; }
  .inner-hero h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
  .inner-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .inner-app-grid { grid-template-columns: repeat(2, 1fr); }
  .inner-card, .product-card { padding: 22px; }

  /* Prevent iOS zoom on inputs in inner pages */
  input, select, textarea { font-size: 16px !important; }

  /* Disable backdrop-filter for smooth scroll on mobile */
  .inner-card, .product-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .inner-app-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .inner-hero { padding: 64px 0 40px; }
}

/* Touch devices: disable stuck hover states */
@media (hover: none) {
  .inner-card:hover,
  .product-card:hover,
  .inner-app:hover { transform: none; box-shadow: none; }
}
