/* =======================================================
   About page (about/index.html)
   Loaded after ../style.css and ../product/product.css, so it
   reuses the product-page hero, chips, headings, CTA band,
   footer and scroll-reveal. Everything new is prefixed au-.
   ======================================================= */

/* small uppercase label above section headings */
.au-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--px-purple);
}

/* ---------- Hero ---------- */
.au-title {
  font-weight: 600;
  letter-spacing: -1.5px;
}

/* aboutus.png has wide transparent margins (products fill ~55% of it),
   so draw it larger than its column; the hero clips any overflow */
.au-product {
  width: min(880px, 165%);
  max-width: none;
}

/* ---------- Vision: purple panel, centred quote, glass cards ---------- */
.au-vision {
  padding: 100px var(--gutter);
}

.au-vision-panel {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px);
  text-align: center;
  color: #ffffff;
  background: linear-gradient(125deg, #7a52c8 0%, #5d30a4 52%, #3d1d80 100%);
}

/* two slow drifting rings for depth */
.au-vision-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.au-vision-ring-a {
  width: 520px;
  height: 520px;
  left: -180px;
  top: -220px;
  animation: au-drift 14s ease-in-out infinite;
}

.au-vision-ring-b {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -170px;
  background: rgba(255, 255, 255, 0.05);
  animation: au-drift 16s ease-in-out infinite reverse;
}

@keyframes au-drift {
  50% { transform: translate(30px, 24px); }
}

.au-kicker-light {
  position: relative;
  color: #d9ccff;
}

.au-quote {
  position: relative;
  max-width: 980px;
  margin: 0 auto 56px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.au-quote em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(90deg, #ffffff, #e5d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.au-pillars {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.au-pillars li {
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.au-pillars li:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.au-pillar-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #6a42d8;
}

.au-pillars h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.au-pillars p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Industries ---------- */
.au-ind {
  background: var(--px-bg);
}

/* ---------- Why choose ---------- */
.au-why {
  background: var(--px-bg);
}

.au-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.au-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 40px;
  background: #ffffff;
  border: 1px solid var(--px-line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* purple line grows along the top on hover */
.au-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--px-purple), #b49bff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.au-card:hover {
  transform: translateY(-6px);
  border-color: #d9ccf6;
  box-shadow: 0 26px 46px -28px rgba(74, 38, 184, 0.45);
}

.au-card:hover::before {
  transform: scaleX(1);
}

.au-card-ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  color: var(--px-purple);
  background: #f1eafc;
  transition: background 0.35s ease, color 0.35s ease;
}

.au-card:hover .au-card-ic {
  background: var(--px-purple);
  color: #ffffff;
}

.au-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--px-ink);
}

.au-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--px-text);
}

/* big faint number in the corner */
.au-card-num {
  position: absolute;
  right: 18px;
  bottom: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: rgba(106, 66, 216, 0.07);
  pointer-events: none;
}

/* ---------- Product family ---------- */
.au-family-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.au-prod {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 22px;
  border: 1px solid var(--px-line);
  background: #ffffff;
  color: var(--px-ink);
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.au-prod-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  background: radial-gradient(circle at 50% 55%, #faf7ff 0%, #f1eafc 75%);
  overflow: hidden;
}

/* pinned inside the box, so tall images (Alarm Gateway) stay centred too */
.au-prod-img img {
  position: absolute;
  inset: 11%;
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.au-prod b {
  font-size: 16px;
  font-weight: 600;
}

.au-prod small {
  font-size: 13px;
  color: #6b6676;
}

.au-prod:hover {
  transform: translateY(-4px);
  border-color: #d9ccf6;
  box-shadow: 0 22px 40px -28px rgba(74, 38, 184, 0.45);
}

.au-prod:hover .au-prod-img img {
  transform: scale(1.07);
}

.au-prod:focus-visible {
  outline: 2px solid var(--px-purple);
  outline-offset: 3px;
}

/* ---------- Contact ---------- */
.au-contact {
  scroll-margin-top: 80px;
}

/* =======================================================
   Responsive
   ======================================================= */
@media (max-width: 1100px) {
  .au-why-grid,
  .au-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .au-pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .au-vision {
    padding: 64px var(--gutter);
  }

  .au-why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .au-family-grid {
    gap: 12px;
  }

  .au-prod {
    padding: 12px 12px 16px;
  }

  .au-prod b {
    font-size: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .au-card,
  .au-prod,
  .au-prod-img img {
    transition: none;
  }

  .au-vision-ring {
    animation: none;
  }
}
