/* =====================================================================
   connect.css — QR-code landing page (/connect.html)
   Every class is namespaced `cn-` and scoped under `.cn-page` so nothing
   here collides with the shared navbar/footer styles in styles.css.
   ===================================================================== */

.cn-page {
  --cn-amber: #f0a020;
  --cn-amber-deep: #d98a00;

  min-height: 100vh;
  background: var(--light-bg);
  padding-top: 82px; /* fixed navbar clearance */
}

/* ------------------------------ hero ------------------------------ */
.cn-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--dark-bg) 0%,
    var(--primary-color) 75%,
    var(--accent-blue) 100%
  );
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1.25rem 5.5rem;
}

.cn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='62' viewBox='0 0 72 62'%3E%3Cpolygon points='36,2 66,19.2 66,52.8 36,70 6,52.8 6,19.2' fill='none' stroke='%237ba3e0' stroke-opacity='.18' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cn-hero > * {
  position: relative;
}

.cn-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  box-shadow:
    0 0 0 6px rgba(123, 163, 224, 0.35),
    0 10px 35px rgba(0, 0, 0, 0.35);
  animation: cn-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cn-hero h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.2px;
  animation: cn-rise 0.55s ease 0.1s both;
}

.cn-tag {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  animation: cn-rise 0.55s ease 0.18s both;
}

.cn-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border-radius: 99px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  animation: cn-rise 0.55s ease 0.26s both;
}

.cn-loc i {
  color: var(--cn-amber);
}

/* ------------------------------ card ------------------------------ */
.cn-card {
  max-width: 480px;
  margin: -3.5rem auto 0;
  padding: 0 1.25rem 4rem;
}

/* save-contact CTA */
.cn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  background: linear-gradient(135deg, var(--cn-amber), var(--cn-amber-deep));
  color: var(--dark-bg);
  text-decoration: none;
  text-align: center;
  border-radius: 18px;
  padding: 1.05rem 1.25rem;
  box-shadow: 0 10px 30px rgba(240, 160, 32, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  animation: cn-rise 0.55s ease 0.34s both;
}

.cn-save:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(240, 160, 32, 0.45);
}

.cn-save:active {
  transform: scale(0.97);
}

.cn-save i {
  font-size: 1.5rem;
}

.cn-save b {
  font-size: 1.1rem;
  font-weight: 800;
}

/* link buttons */
.cn-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.cn-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(60, 101, 167, 0.14);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  animation: cn-rise 0.55s ease both;
}

.cn-links .cn-btn:nth-child(1) {
  animation-delay: 0.42s;
}

.cn-links .cn-btn:nth-child(2) {
  animation-delay: 0.5s;
}

.cn-links .cn-btn:nth-child(3) {
  animation-delay: 0.58s;
}

.cn-links .cn-btn:nth-child(4) {
  animation-delay: 0.66s;
}

.cn-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.cn-btn:active {
  transform: scale(0.98);
}

.cn-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
}

.cn-ic.cn-wa {
  background: #25d366;
}

.cn-ic.cn-ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.cn-ic.cn-tk {
  background: #111111;
}

.cn-ic.cn-web {
  background: var(--gradient-1);
}

.cn-btn b {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.cn-arrow {
  margin-inline-start: auto;
  color: var(--accent-blue);
  opacity: 0.55;
  font-size: 0.9rem;
}

body[dir='ltr'] .cn-arrow {
  transform: scaleX(-1);
}

/* ------------------------------ motion ------------------------------ */
@keyframes cn-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cn-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-page * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .cn-hero {
    padding: 2.25rem 1rem 5rem;
  }

  .cn-logo {
    width: 84px;
    height: 84px;
  }
}
