*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #6b3fa0;
  --purple-dark: #3d1f6e;
  --purple-light: #9b6fd4;
  --purple-glow: rgba(107,63,160,0.3);
  --green: #22c55e;
  --yellow: #f9d84a;
  --white: #fff;
  --gray-bg: #f5f3ff;
  --gray-text: #666;
  --card-shadow: 0 4px 24px rgba(107,63,160,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ── */
.navbar {
  background: rgba(61,31,110,0.97);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: background 0.3s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  color: #fff; font-size: 1.4rem; font-weight: 800;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.logo-accent { color: var(--yellow); }
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--yellow);
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.btn-nav {
  background: var(--green) !important; color: #fff !important;
  padding: 8px 20px; border-radius: 24px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(34,197,94,0.4); }
.btn-nav::after { display: none !important; }
.hamburger {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
.mobile-menu {
  display: none; list-style: none;
  background: var(--purple-dark); padding: 10px 20px 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu li a {
  display: block; padding: 10px 0;
  color: rgba(255,255,255,0.85); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #5a2d9a 55%, var(--purple-light) 100%);
  color: #fff; padding: 100px 20px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: float 8s ease-in-out infinite;
}
.shape1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
.shape2 { width: 300px; height: 300px; bottom: -80px; right: -60px; animation-delay: 3s; }
.shape3 { width: 200px; height: 200px; top: 40%; left: 60%; animation-delay: 5s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  padding: 6px 20px; border-radius: 30px;
  font-size: 0.88rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.5px;
}
.brand-name { font-size: 1.1rem; font-weight: 600; opacity: 0.85; letter-spacing: 2px; }
.hero h1 {
  font-size: 3rem; font-weight: 800;
  line-height: 1.25; margin-bottom: 20px;
}
.highlight { color: var(--yellow); }
.per { font-size: 1.4rem; font-weight: 400; opacity: 0.8; }
.hero-sub { font-size: 1.1rem; opacity: 0.88; margin-bottom: 36px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero {
  display: inline-block; background: var(--yellow);
  color: var(--purple-dark); padding: 15px 38px;
  border-radius: 32px; font-weight: 800; font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(249,216,74,0.4);
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(249,216,74,0.5); }
.btn-hero-outline {
  display: inline-block; border: 2px solid rgba(255,255,255,0.6);
  color: #fff; padding: 13px 36px; border-radius: 32px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.hero-stats {
  display: flex; justify-content: center; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--yellow); }
.stat span:not(.stat-num) { font-size: 1.2rem; font-weight: 700; }
.stat small { display: block; font-size: 0.8rem; opacity: 0.7; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block; width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0%,100% { opacity: 0.3; transform: rotate(45deg) translateY(-4px); }
  50% { opacity: 1; transform: rotate(45deg) translateY(4px); }
}

/* ── Features Bar ── */
.features-bar {
  background: var(--purple-dark);
  padding: 16px 0; overflow: hidden;
}
.features-bar-inner {
  display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
}
.feat-item {
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500;
  padding: 8px 24px; display: flex; align-items: center; gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s;
}
.feat-item:last-child { border-right: none; }
.feat-item:hover { color: var(--yellow); }
.feat-item span { font-size: 1rem; }

/* ── Section ── */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: var(--purple-light);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.section-header h2 {
  font-size: 2rem; font-weight: 800;
  color: var(--purple-dark); margin-bottom: 10px;
}
.section-header p { color: var(--gray-text); font-size: 1rem; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid #ede8f8;
  border-radius: 20px; padding: 32px 26px;
  box-shadow: var(--card-shadow); position: relative;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(107,63,160,0.18);
}
.card.popular {
  border: 2px solid var(--purple);
  background: linear-gradient(160deg, #fff 60%, #f5f0ff);
}

.popular-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 5px 18px; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 4px 12px var(--purple-glow);
}

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 12px; margin-bottom: 10px;
}
.badge-sg { background: #e0f2fe; color: #0369a1; }
.badge-us { background: #fef3c7; color: #92400e; }

.card-header { text-align: center; margin-bottom: 22px; }
.card-header h3 {
  font-size: 1.25rem; font-weight: 800;
  color: var(--purple-dark); margin-bottom: 12px;
}
.price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.amount { font-size: 2.6rem; font-weight: 800; color: var(--purple); line-height: 1; }
.unit { font-size: 0.88rem; color: var(--gray-text); }

.features { list-style: none; margin-bottom: 22px; flex: 1; }
.features li {
  padding: 7px 0; font-size: 0.9rem;
  border-bottom: 1px solid #f0eaf8; color: #444;
  transition: color 0.2s;
}
.features li:last-child { border-bottom: none; }
.card:hover .features li { color: #333; }

.use-case {
  font-size: 0.82rem; color: var(--purple); font-weight: 600;
  text-align: center; margin-bottom: 18px;
  background: #f3eeff; padding: 7px 12px; border-radius: 10px;
}

.btn-select {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; padding: 13px; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: auto;
  box-shadow: 0 4px 14px var(--purple-glow);
}
.btn-select:hover { opacity: 0.9; transform: translateY(-1px); }
.card.popular .btn-select {
  background: linear-gradient(135deg, var(--green), #16a34a);
  box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid #ede8f8;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(107,63,160,0.06);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(107,63,160,0.12); }
.faq-item summary {
  padding: 18px 22px; font-weight: 700; font-size: 1rem;
  color: var(--purple-dark); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--purple-light); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 18px; color: var(--gray-text); font-size: 0.95rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  padding: 60px 20px;
}
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,0.8); }
.btn-cta {
  display: inline-block; background: var(--yellow);
  color: var(--purple-dark); padding: 15px 40px;
  border-radius: 32px; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(249,216,74,0.4);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(249,216,74,0.5); }

/* ── Footer ── */
.footer { background: var(--purple-dark); padding: 40px 20px 0; }
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 24px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { color: #fff; }
.footer-brand .logo-icon { font-size: 1.4rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  text-align: center; padding: 16px;
  color: rgba(255,255,255,0.35); font-size: 0.82rem;
}

/* ── Animations ── */
.animate-fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
  .stat-divider { display: none; }
  .hero-stats { gap: 20px; }
}

/* ── Promo Trial Banner ── */
.promo-trial {
  background: linear-gradient(135deg, #1a0533 0%, #3d1f6e 50%, #6b3fa0 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.promo-particles { position: absolute; inset: 0; pointer-events: none; }
.promo-particles span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.6;
  animation: sparkle 4s ease-in-out infinite;
}
.promo-particles span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.promo-particles span:nth-child(2) { top: 70%; left: 20%; animation-delay: 1s; }
.promo-particles span:nth-child(3) { top: 30%; right: 15%; animation-delay: 2s; }
.promo-particles span:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 0.5s; }
.promo-particles span:nth-child(5) { top: 50%; left: 50%; animation-delay: 1.5s; }
@keyframes sparkle {
  0%,100% { transform: scale(1) translateY(0); opacity: 0.6; }
  50% { transform: scale(1.8) translateY(-10px); opacity: 1; }
}

.promo-inner {
  display: flex; align-items: center;
  gap: 60px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.promo-text { flex: 1; min-width: 280px; }
.promo-tag {
  display: inline-block;
  background: var(--yellow); color: var(--purple-dark);
  font-size: 0.82rem; font-weight: 800;
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 16px; letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(249,216,74,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(249,216,74,0); }
}
.promo-text h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.promo-text p { opacity: 0.85; font-size: 1rem; margin-bottom: 20px; line-height: 1.8; }
.promo-list { list-style: none; margin-bottom: 28px; }
.promo-list li { padding: 6px 0; font-size: 0.95rem; opacity: 0.9; }
.btn-trial {
  display: inline-block;
  background: var(--yellow); color: var(--purple-dark);
  padding: 15px 40px; border-radius: 32px;
  font-weight: 800; font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(249,216,74,0.45);
}
.btn-trial:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(249,216,74,0.6); }

.promo-card-wrap { flex: 0 0 300px; }
.promo-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.promo-card-badge {
  display: inline-block;
  background: var(--green); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  padding: 4px 16px; border-radius: 20px;
  margin-bottom: 16px; letter-spacing: 1px;
}
.promo-price { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 4px; }
.promo-old { font-size: 1.4rem; text-decoration: line-through; opacity: 0.5; }
.promo-free { font-size: 3rem; font-weight: 800; color: var(--yellow); }
.promo-duration { font-size: 0.88rem; opacity: 0.7; margin-bottom: 20px; }
.promo-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 16px 0; }
.promo-features { list-style: none; text-align: left; margin-bottom: 20px; }
.promo-features li { padding: 6px 0; font-size: 0.9rem; opacity: 0.85; border-bottom: 1px solid rgba(255,255,255,0.08); }
.promo-features li:last-child { border-bottom: none; }

.promo-timer small { display: block; font-size: 0.78rem; opacity: 0.6; margin-bottom: 8px; }
.timer-boxes { display: flex; gap: 8px; justify-content: center; }
.timer-boxes > div {
  background: rgba(0,0,0,0.3);
  border-radius: 10px; padding: 8px 12px;
  min-width: 52px; text-align: center;
}
.timer-boxes span { display: block; font-size: 1.4rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.timer-boxes small { font-size: 0.68rem; opacity: 0.6; margin-top: 2px; }

/* ── Free Plan ── */
.free-plan-section { background: #fff; }
.free-plan-wrap { max-width: 900px; margin: 0 auto; }
.free-plan-card {
  display: flex; gap: 0;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(107,63,160,0.15);
  border: 2px solid var(--purple-light);
}
.free-plan-left {
  background: linear-gradient(160deg, var(--purple-dark), var(--purple));
  color: #fff; padding: 40px 36px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
  min-width: 260px;
}
.free-badge {
  background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}
.free-plan-left h3 { font-size: 1.4rem; font-weight: 800; }
.free-price { display: flex; align-items: baseline; gap: 6px; }
.free-amount { font-size: 2.8rem; font-weight: 800; color: var(--yellow); }
.free-unit { font-size: 0.85rem; opacity: 0.75; }
.btn-free {
  display: inline-block;
  background: var(--yellow); color: var(--purple-dark);
  padding: 13px 30px; border-radius: 28px;
  font-weight: 800; font-size: 0.95rem;
  text-decoration: none; margin-top: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(249,216,74,0.4);
}
.btn-free:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(249,216,74,0.5); }
.free-note { font-size: 0.78rem; opacity: 0.55; margin-top: 4px; }

.free-plan-right {
  background: #faf8ff; padding: 36px 32px;
  flex: 1; display: flex; flex-direction: column; gap: 24px;
}
.free-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.free-feat {
  background: #fff; border: 1px solid #ede8f8;
  border-radius: 14px; padding: 16px 12px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.free-feat:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(107,63,160,0.1); }
.free-feat span { font-size: 1.4rem; }
.free-feat strong { font-size: 1rem; font-weight: 800; color: var(--purple-dark); }
.free-feat small { font-size: 0.75rem; color: var(--gray-text); }

.free-compare {
  background: linear-gradient(135deg, #f3eeff, #ede8f8);
  border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.free-compare p { font-size: 0.9rem; color: var(--purple-dark); }
.free-compare strong { color: var(--purple); }
.btn-upgrade {
  display: inline-block;
  background: var(--purple); color: #fff;
  padding: 9px 22px; border-radius: 20px;
  font-weight: 700; font-size: 0.88rem;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.btn-upgrade:hover { background: var(--purple-dark); }

@media (max-width: 768px) {
  .promo-inner { flex-direction: column; }
  .promo-card-wrap { width: 100%; }
  .promo-text h2 { font-size: 1.8rem; }
  .free-plan-card { flex-direction: column; }
  .free-features-grid { grid-template-columns: repeat(2, 1fr); }
  .free-compare { flex-direction: column; text-align: center; }
}
