/* ═══════════════════════════════════════════════════════════════
   PLUGZO PAYTECH — common.css
   Shared by ALL pages: variables, reset, navbar, drawer,
   footer, particles, containers, section-title, button
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   CSS VARIABLES  (exact Figma design tokens)
───────────────────────────────────────────── */
:root {
  /* ── Brand / Teal ── */
  --clr-teal: #0fa884;
  --clr-teal-btn: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
  --clr-teal-dark: #0b8f6f;
  --clr-teal-light: rgba(15, 168, 132, 0.12);

  /* ── Text ── */
  --clr-text: #0d1117;
  --clr-text-mid: #2d3748;
  --clr-text-muted: #718096;

  /* ── Backgrounds ── */
  --clr-bg: #ffffff;
  --clr-bg-alt: #f7f8fa;
  --clr-border: #e2e8f0;
  --clr-footer: #111827;

  /* ── Hero gradient (mint→sky→lavender, very light) ── */
  --hero-gradient: linear-gradient(
    135deg,
    #d4f0e8 0%,
    #cce8f4 35%,
    #dde3f5 65%,
    #e9e4f7 100%
  );

  /* ── Elevation ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 36px rgba(0, 0, 0, 0.12);

  /* ── Misc ── */
  --radius: 12px;
  --radius-sm: 8px;
  --ease: 0.22s ease;

  /* ── Typography — Plus Jakarta Sans for headings (matches Figma exactly) ── */
  --ff-head:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  --ff-body:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ─────────────────────────────────────────────
   LAYOUT CONTAINERS
───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─────────────────────────────────────────────
   SECTION HEADING (shared)
───────────────────────────────────────────── */
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 2vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-text);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   BUTTON
───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 10px 30px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
  letter-spacing: 0.01em;
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(15, 168, 132, 0.28);
}

/* ─────────────────────────────────────────────
   PARTICLES
───────────────────────────────────────────── */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.particle {
  position: absolute;
  animation: pFloat linear infinite;
  will-change: transform, opacity;
}
@keyframes pFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(-520px) translateX(var(--drift, 0px))
      rotate(var(--spin, 360deg)) scale(var(--sc, 1));
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────
   GLOW BLOBS (hero sections)
───────────────────────────────────────────── */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-glow--left {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(134, 239, 172, 0.28) 0%,
    transparent 65%
  );
}
.hero-glow--right {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -120px;
  background: radial-gradient(
    circle,
    rgba(196, 181, 253, 0.22) 0%,
    transparent 65%
  );
}

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
}
.navbar__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--clr-teal-btn);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.navbar__nav {
  display: flex;
  gap: 5px;
  align-items: center;
}
.navbar__link {
  font-family: var(--ff-head);
  font-weight: 500;
  color: #323540;
  transition: color var(--ease);
  padding: 7px 15px;
  font-size: 0.775rem;
}
.navbar__link:hover {
  color: var(--clr-text);
  background: #e5e7eb;
  border-radius: 5px;
}
.navbar__link--active {
  color: var(--clr-text);
  font-weight: 600;
  background: #e5e7eb;
  border-radius: 5px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

/* ─────────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────────── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-visible {
  display: block;
}
.drawer-overlay.is-active {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 28px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--clr-border);
}
.drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--ease);
}
.drawer__close:hover {
  background: var(--clr-bg-alt);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.drawer__link {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  padding: 15px 24px;
  transition:
    color var(--ease),
    background var(--ease);
}
.drawer__link:hover {
  color: var(--clr-text);
  background: var(--clr-bg-alt);
}
.drawer__link--active {
  color: #3b82f6;
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--clr-footer);
  color: #fff;
}
.footer__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 80px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
}
.footer__top:after {
  content: "";
  position: absolute;
  width: 87%;
  height: 0.1px;
  background: #ffffff21;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  z-index: 9999;
  color: #ffffff00;
}
.footer .navbar__logo {
  color: #fff;
}
.footer .navbar__logo-icon {
  background: var(--clr-teal-btn);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__link {
  font-family: var(--ff-head);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--ease);
}
.footer__link:hover {
  color: #fff;
}
.footer__sep {
  color: rgba(255, 255, 255, 0.25);
}
.footer__li {
  display: flex;
  align-items: center;
  transition: opacity var(--ease);
}
.footer__li:hover {
  opacity: 0.75;
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px 40px 40px;
  text-align: center;
}
.footer__copy {
  font-size: 0.8rem;
  color: color-mix(in oklab, #fff 60%, transparent);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — common
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .navbar__nav {
    display: none;
  }
  .navbar__inner {
    padding: 0 20px;
  }

  .container,
  .container--narrow {
    padding: 0;
  }

  .footer__top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 28px 20px 24px;
  }
  .footer__bottom {
    padding: 14px 20px;
  }
}
