/* ==========================================================================
   FB Contact Pro — site-05: Pastel Glassmorphism
   Nền gradient pastel xoay chậm + card kính mờ (backdrop-filter) + blob bồng bềnh
   ========================================================================== */

:root {
  --pastel-pink: #ffd6e8;
  --pastel-purple: #e0d4ff;
  --pastel-blue: #d4f0ff;
  --pastel-mint: #d4ffe8;
  --pastel-yellow: #fff6d4;

  --accent: #a855f7;
  --accent-2: #ec4899;
  --text-main: #2d1b3d;
  --text-muted: #5b4a6b;

  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(120, 80, 160, 0.18);

  /* Override buy-modal palette cho hợp tông pastel/kính mờ */
  --buy-modal-accent: #a855f7;
  --buy-modal-accent-text: #ffffff;
  --buy-modal-bg: rgba(255, 255, 255, 0.9);
  --buy-modal-text: #2d1b3d;
  --buy-modal-muted: #6b5b7a;
  --buy-modal-border: rgba(168, 85, 247, 0.25);
  --buy-modal-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;

  background: linear-gradient(
    120deg,
    var(--pastel-pink),
    var(--pastel-purple),
    var(--pastel-blue),
    var(--pastel-mint),
    var(--pastel-yellow),
    var(--pastel-pink)
  );
  background-size: 400% 400%;
  animation: gradient-shift 22s ease infinite;
}

/* Fallback trình duyệt không hỗ trợ backdrop-filter: nền đặc hơn */
@supports not (backdrop-filter: blur(1px)) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.88);
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Blobs trang trí ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: var(--accent-2);
  animation-delay: 0s;
}

.blob-2 {
  width: 260px;
  height: 260px;
  top: 30%;
  right: -80px;
  background: var(--accent);
  animation-delay: 2s;
}

.blob-3 {
  width: 240px;
  height: 240px;
  bottom: 10%;
  left: 8%;
  background: #60d9c9;
  animation-delay: 4s;
}

.blob-4 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: 15%;
  background: #ffd166;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

/* ---------- Glass card base ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-small {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-large {
  padding: 16px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 24px 40px;
}

.hero-copy {
  padding: 40px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.badge-accent {
  background: rgba(236, 72, 153, 0.18);
  color: var(--accent-2);
}

.hero-copy h1 {
  font-size: 42px;
  margin: 0 0 16px;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--text-main), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ---------- Browser mock ---------- */
.hero-mock {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.browser-mock {
  overflow: hidden;
  animation: float-mock 6s ease-in-out infinite;
}

@keyframes float-mock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.browser-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  min-width: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.address-bar {
  margin-left: 12px;
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-body {
  padding: 20px;
}

.ext-popup {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 16px;
}

.ext-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ext-icon {
  font-size: 18px;
}

.ext-popup-title {
  font-weight: 700;
  font-size: 14px;
  flex: 1;
}

.ext-status {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}

.ext-popup-progress {
  margin-bottom: 14px;
}

.ext-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  overflow: hidden;
  margin-bottom: 6px;
}

.ext-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
}

.ext-progress-label {
  font-size: 11px;
  color: var(--text-muted);
}

.ext-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 12px;
}

.ext-result-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.ext-result-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.ext-popup-actions {
  display: flex;
  gap: 8px;
}

.ext-mini-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}

.section-title {
  font-size: 30px;
  text-align: center;
  margin: 0 0 8px;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 15px;
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(120, 80, 160, 0.25);
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  padding: 28px 22px;
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Use cases ---------- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase-card {
  padding: 24px;
}

.usecase-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--accent-2);
}

.usecase-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}

.price-value {
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0 24px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  font-size: 14px;
  color: var(--text-main);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  padding: 4px 24px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question .faq-toggle-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item[data-open="true"] .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 40px 24px 80px;
}

.final-cta-inner {
  padding: 48px;
  text-align: center;
}

.final-cta-inner h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.final-cta-inner p {
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-inner .hero-actions {
  justify-content: center;
  margin-bottom: 24px;
}

.contact-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-channels a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-channels a:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px 40px;
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .final-cta-inner {
    padding: 28px;
  }

  .section {
    padding: 44px 16px;
  }
}
