/* ==========================================================================
   Website Cloner — Public pages dark theme
   Loaded ONLY by the public layout (layouts.public) after app.css.
   Overrides the shared light styles so the public site wears a dark,
   animated, modern look without touching the admin panel.
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-soft: #0b1222;
  --surface: #101a33;
  --surface-2: #162340;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #e8eef9;
  --text-soft: #94a5c4;
  --primary: #4da3ff;
  --primary-deep: #2f7ce0;
  --primary-glow: rgba(77, 163, 255, .38);
  --green: #34d399;
  --green-deep: #10b981;
  --amber: #fbbf24;
  --red: #f87171;
  --violet: #a78bfa;
  --teal: #2dd4bf;
  --rose: #fb7185;
  --radius: 18px;
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.public-body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 124, 224, .22), transparent 60%),
    radial-gradient(1000px 600px at -10% 15%, rgba(16, 185, 129, .12), transparent 60%),
    var(--bg);
  color: var(--text);
}

/* Public navigation — dark glass */
.public-nav {
  background: rgba(9, 15, 29, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.public-brand {
  color: var(--text);
  letter-spacing: .01em;
}

.public-brand .logo {
  background: linear-gradient(135deg, var(--primary-deep), #6db7ff);
  box-shadow: 0 6px 18px rgba(47, 124, 224, .35);
}

.public-links > a:not(.btn) {
  color: var(--text-soft);
}

.public-links > a:not(.btn):hover,
.public-links > a.active {
  color: #fff;
  background: rgba(77, 163, 255, .14);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-hero {
  color: #fff;
  background: linear-gradient(135deg, #2f7ce0 0%, #4da3ff 55%, #7c6ff0 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(47, 124, 224, .35);
  overflow: hidden;
  position: relative;
  animation: btnGradient 6s ease-in-out infinite;
}

.btn-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4.5s ease-in-out infinite;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(47, 124, 224, .45);
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShine {
  0%, 55% { left: -120%; }
  100% { left: 130%; }
}

.btn-ghost-light {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .05);
}

.btn-ghost-light:hover {
  background: rgba(77, 163, 255, .16);
  border-color: rgba(77, 163, 255, .55);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f7ce0, #4da3ff);
  box-shadow: 0 8px 22px rgba(47, 124, 224, .3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1f6bd0, #4da3ff);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text-soft);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: rgba(77, 163, 255, .12);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.landing-hero {
  background:
    radial-gradient(900px 520px at 50% -20%, rgba(47, 124, 224, .28), transparent 60%),
    linear-gradient(180deg, #0b1222 0%, #070b16 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.landing-hero::before {
  display: none;
}

.hero-blob-1 {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -120px;
  left: auto;
  background: radial-gradient(circle at center, rgba(77, 163, 255, .35), transparent 65%);
  filter: blur(10px);
  animation: blobFloat 14s ease-in-out infinite;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -140px;
  right: auto;
  background: radial-gradient(circle at center, rgba(16, 185, 129, .28), transparent 65%);
  filter: blur(10px);
  animation: blobFloat 18s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}

.hero-chip {
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  color: var(--text-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.landing-badge {
  border: 1px solid rgba(77, 163, 255, .4);
  background: rgba(77, 163, 255, .14);
  color: #cfe6ff;
  box-shadow: 0 0 24px rgba(77, 163, 255, .25);
}

.landing-hero h1 {
  color: var(--text);
  text-shadow: 0 2px 40px rgba(77, 163, 255, .25);
}

.landing-hero h1 span {
  background: linear-gradient(90deg, #6db7ff, #a5f3ae, #6db7ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.landing-hero p {
  color: rgba(216, 228, 245, .85);
}

.landing-stats div {
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}

.landing-stats div strong {
  color: var(--text);
  font-weight: 600;
}

.landing-stats div span {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.landing-section-head h1,
.landing-section-head h2 {
  color: var(--text);
}

.landing-section-head h1,
.landing-section-head h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  position: relative;
}

.landing-section-head h1::after,
.landing-section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-deep), var(--green), var(--violet));
  background-size: 200% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

.landing-section-head p {
  color: var(--text-soft);
}

/* How it works */
.howto-card {
  background:
    linear-gradient(160deg, rgba(22, 35, 64, .85), rgba(16, 26, 51, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.howto-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 163, 255, .5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .4), 0 0 0 1px rgba(77, 163, 255, .18), 0 0 40px rgba(77, 163, 255, .15);
}

.howto-card h3 {
  color: var(--text);
}

.howto-card p {
  color: var(--text-soft);
}

.howto-step {
  background: linear-gradient(135deg, var(--primary-deep), #7c6ff0);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 124, 224, .35);
}

.howto-icon {
  border: 1px solid var(--line);
  background: rgba(77, 163, 255, .1);
  color: var(--primary);
  box-shadow: inset 0 0 24px rgba(77, 163, 255, .08);
}

.howto-icon.mirror { color: var(--green); background: rgba(16, 185, 129, .1); }
.howto-icon.zip   { color: var(--violet); background: rgba(167, 139, 250, .1); }

/* --------------------------------------------------------------------------
   Pricing cards
   -------------------------------------------------------------------------- */

.price-card {
  background:
    linear-gradient(170deg, rgba(22, 35, 64, .9), rgba(13, 21, 41, .95));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 163, 255, .4);
  box-shadow: 0 26px 54px rgba(0, 0, 0, .45), 0 0 44px rgba(77, 163, 255, .12);
}

.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(22, 35, 64, .95), rgba(13, 21, 41, .98)) padding-box,
    linear-gradient(135deg, #2f7ce0, #34d399, #a78bfa) border-box;
  box-shadow: 0 14px 40px rgba(47, 124, 224, .25), 0 0 50px rgba(77, 163, 255, .12);
}

.price-card .price-tag {
  background: linear-gradient(135deg, #2f7ce0, #7c6ff0);
  box-shadow: 0 8px 20px rgba(47, 124, 224, .4);
  text-transform: uppercase;
}

.price-card h3 {
  color: var(--text);
  font-weight: 600;
}

.price-card .price {
  color: var(--text);
}

.price-card .price .currency {
  color: var(--green);
}

.price-card .price small {
  color: var(--text-soft);
}

.price-card .clone-limit {
  color: var(--green);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: 10px;
  padding: 8px 12px;
}

.price-features li {
  color: var(--text-soft);
}

.price-features svg {
  color: var(--green);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, .5));
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  background:
    linear-gradient(165deg, rgba(22, 35, 64, .7), rgba(16, 26, 51, .8));
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 163, 255, .45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 30px rgba(77, 163, 255, .12);
}

.feature h3 {
  color: var(--text);
}

.feature p {
  color: var(--text-soft);
}

.feature-icon {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.feature-icon.blue   { background: rgba(77, 163, 255, .14); color: #6db7ff; }
.feature-icon.green  { background: rgba(16, 185, 129, .14); color: var(--green); }
.feature-icon.violet { background: rgba(167, 139, 250, .14); color: var(--violet); }
.feature-icon.amber  { background: rgba(251, 191, 36, .14); color: var(--amber); }
.feature-icon.teal   { background: rgba(45, 212, 191, .14); color: var(--teal); }
.feature-icon.rose   { background: rgba(251, 113, 133, .14); color: var(--rose); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 26, 51, .75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover {
  border-color: rgba(77, 163, 255, .4);
}

.faq-item summary {
  color: var(--text);
  font-weight: 500;
}

.faq-item summary svg {
  color: var(--primary);
  transition: transform .25s ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(47, 124, 224, .25), rgba(16, 185, 129, .18), rgba(124, 111, 240, .22));
  background-size: 200% 200%;
  animation: gradientShift 9s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.cta-band h2 {
  color: #fff;
  text-shadow: 0 2px 30px rgba(77, 163, 255, .35);
}

.cta-band p {
  color: rgba(216, 228, 245, .9);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.public-footer {
  background: #0a0f1d;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Pricing page + checkout + payment result
   -------------------------------------------------------------------------- */

.landing-section.pricing-page {
  padding-top: 44px;
}

.empty {
  background: rgba(16, 26, 51, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
}

/* White `.card` shells on public pages → dark glass */
.card.checkout-summary,
.card.payment-result,
.card.empty {
  background: linear-gradient(170deg, rgba(22, 35, 64, .92), rgba(13, 21, 41, .96));
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  color: var(--text);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.card-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 1.35rem;
}

.empty .empty-icon {
  background: rgba(77, 163, 255, .14);
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.checkout-page input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
}

.checkout-page input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, .18);
}

.checkout-page input::placeholder {
  color: rgba(148, 163, 184, .6);
}

.checkout-summary .checkout-plan {
  background: rgba(22, 35, 64, .7);
  border: 1px solid var(--line);
}

.checkout-plan h3 {
  color: var(--text);
}

.checkout-plan p {
  color: var(--text-soft);
}

.checkout-plan-price {
  color: var(--green);
}

.checkout-line {
  color: var(--text-soft);
}

.checkout-line.discount {
  color: var(--green);
}

.checkout-line.total {
  color: var(--text);
}

.bkash-btn {
  background: linear-gradient(135deg, #e2136e, #b80d59);
  color: #fff;
  box-shadow: 0 10px 26px rgba(226, 19, 110, .3);
}

.bkash-btn:hover {
  background: linear-gradient(135deg, #c00f5e, #a50c50);
  transform: translateY(-1px);
}

.checkout-secure {
  color: var(--text-soft);
}

.payment-result h1 {
  color: var(--text);
}

.payment-result > p {
  color: var(--text-soft);
}

.payment-result-details {
  border: 1px solid var(--line);
  background: rgba(16, 26, 51, .7);
}

.payment-result-details div {
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.payment-result-details span {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Alerts on public pages
   -------------------------------------------------------------------------- */

.alert.success {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(52, 211, 153, .3);
  color: #a7f3d0;
}

.alert.error {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(248, 113, 113, .3);
  color: #fecaca;
}

.alert.info {
  background: rgba(77, 163, 255, .12);
  border-color: rgba(77, 163, 255, .3);
  color: #bfdbfe;
}

/* --------------------------------------------------------------------------
   Announcement popup — dark glass
   -------------------------------------------------------------------------- */

.announcement-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, .6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.announcement-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.announcement-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background:
    linear-gradient(165deg, rgba(24, 39, 71, .98), rgba(13, 21, 41, .99));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(77, 163, 255, .1);
  padding: 30px 28px 28px;
  transform: translateY(16px) scale(.97);
  transition: transform .25s ease;
}

.announcement-popup.show .announcement-card {
  transform: none;
}

.announcement-heading {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-heading h4 {
  margin: 0;
}

.announcement-text {
  color: var(--text-soft);
  line-height: 1.65;
  margin: 12px 0 18px;
}

.announcement-close {
  background: transparent;
  border: 0;
  color: var(--text-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* --------------------------------------------------------------------------
   WhatsApp float — consistent with the dark theme
   -------------------------------------------------------------------------- */

.whatsapp-float {
  background: linear-gradient(135deg, #25d366, #128c4b);
  box-shadow: 0 10px 28px rgba(18, 140, 75, .4), 0 0 0 1px rgba(37, 211, 102, .2);
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #2ee074, #1a9f59);
}

/* --------------------------------------------------------------------------
   Scroll reveal (only runs when JS adds html.js)
   -------------------------------------------------------------------------- */

html.js .reveal,
html.js .feature-grid .feature,
html.js .howto-grid .howto-card,
html.js .pricing-grid .price-card,
html.js .faq-list .faq-item,
html.js .landing-stats > div {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

html.js .reveal.in-view,
html.js .feature-grid .feature.in-view,
html.js .howto-grid .howto-card.in-view,
html.js .pricing-grid .price-card.in-view,
html.js .faq-list .faq-item.in-view,
html.js .landing-stats > div.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger children of the grids when they enter */
.feature-grid .feature:nth-child(2),
.howto-grid .howto-card:nth-child(2) { transition-delay: .08s; }
.feature-grid .feature:nth-child(3),
.howto-grid .howto-card:nth-child(3) { transition-delay: .16s; }
.feature-grid .feature:nth-child(4) { transition-delay: .24s; }
.feature-grid .feature:nth-child(5) { transition-delay: .32s; }
.feature-grid .feature:nth-child(6) { transition-delay: .4s; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .feature-grid .feature,
  html.js .howto-grid .howto-card,
  html.js .pricing-grid .price-card,
  html.js .faq-list .faq-item,
  html.js .landing-stats > div {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}