:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #bbf7d0;
  --accent: #f59e0b;
  --accent-2: #ec4899;
  --bg: #fafffe;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
}
.brand .logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(22,163,74,.3);
}
.brand-name { font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.btn) {
  padding: 8px 12px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  font-weight: 800; font-size: 14px;
  border: 0; cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  box-shadow: 0 8px 22px rgba(22,163,74,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22,163,74,.4); }
.btn-ghost {
  background: rgba(15,23,42,.04);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(15,23,42,.08); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 380px; height: 380px; background: #86efac; top: -80px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: #fbbf24; top: 40px; right: -120px; animation-delay: -6s; }
.blob-3 { width: 320px; height: 320px; background: #f9a8d4; bottom: -100px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(.95); }
}
.hero .container { position: relative; z-index: 1; }
.badge-row {
  display: inline-flex; gap: 10px;
  margin-bottom: 28px;
}
.badge-pop, .badge-line {
  background: white;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  border: 2px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.badge-pop { color: #ea580c; border-color: #fed7aa; }
.badge-line { color: #15803d; border-color: var(--primary-light); }
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -1px;
}
.highlight {
  background: linear-gradient(120deg, var(--primary), #06b6d4 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-emoji {
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: inline-flex; gap: 50px;
  padding: 22px 40px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.hero-stats > div {
  display: flex; flex-direction: column;
  text-align: center;
}
.hero-stats strong {
  font-size: 32px; font-weight: 900;
  color: var(--primary);
}
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ===== Promo ===== */
.promo { padding: 0 0 50px; }
.promo-card {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 30px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 2px solid #fbbf24;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(251,191,36,.2);
  flex-wrap: wrap;
}
.promo-icon { font-size: 56px; line-height: 1; }
.promo-text { flex: 1; min-width: 220px; }
.promo-text strong {
  display: block; font-size: 20px; font-weight: 900;
  color: #92400e; margin-bottom: 4px;
}
.promo-text span { color: #78350f; font-weight: 600; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px; border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -.5px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features { background: linear-gradient(180deg, white, var(--bg)); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: all .25s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 18px 40px rgba(22,163,74,.12);
}
.feat-card.feat-highlight {
  background: linear-gradient(135deg, #ecfdf5, white);
  border-color: var(--primary);
}
.feat-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5, var(--primary-light));
  font-size: 32px;
  margin-bottom: 18px;
  transition: transform .25s ease;
}
.feat-card:hover .feat-icon { transform: scale(1.1) rotate(-5deg); }
.feat-card h3 { font-size: 20px; font-weight: 900; margin: 0 0 10px; }
.feat-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== How to ===== */
.howto { background: var(--bg); }
.steps {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
}
.step {
  flex: 1; min-width: 240px; max-width: 300px;
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--line);
  position: relative;
}
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  display: grid; place-items: center;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(22,163,74,.4);
}
.step-icon { font-size: 48px; margin: 12px 0 16px; }
.step h3 { font-size: 19px; font-weight: 900; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.step-arrow {
  font-size: 28px; color: var(--primary);
  font-weight: 900;
}

/* ===== Pricing ===== */
.pricing { background: white; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.loading-pkg { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }
.pkg-card {
  position: relative;
  background: white;
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: all .2s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.pkg-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, #ecfdf5 0%, white 30%);
  transform: scale(1.04);
  box-shadow: 0 20px 50px rgba(22,163,74,.15);
}
.pkg-card.popular::before {
  content: '🔥 ยอดนิยม';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(22,163,74,.4);
}
.pkg-name { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.pkg-tag { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pkg-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 22px;
}
.pkg-price .amount { font-size: 44px; font-weight: 900; color: var(--primary); }
.pkg-price .unit { color: var(--muted); font-weight: 700; }
.pkg-features { list-style: none; padding: 0; margin: 0 0 28px; }
.pkg-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.pkg-features li::before { content: '✓'; color: var(--primary); font-weight: 900; font-size: 16px; }
.pkg-cta { margin-top: auto; }
.pricing-note {
  text-align: center; margin-top: 30px;
  color: var(--muted); font-size: 14px;
}

/* ===== Signup ===== */
.signup { background: linear-gradient(180deg, var(--bg), #ecfdf5); }
.signup-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.1);
  border: 1px solid var(--line);
}
.signup-left {
  padding: 50px 40px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
}
.signup-left .kicker {
  background: rgba(255,255,255,.2);
  color: white;
}
.signup-left h2 {
  font-size: 36px; font-weight: 900;
  margin: 0 0 18px; line-height: 1.1;
}
.signup-left p { opacity: .9; font-size: 15px; }
.check-list {
  list-style: none; padding: 0; margin-top: 30px;
  display: grid; gap: 12px;
}
.check-list li {
  font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,.1);
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid white;
}
.signup-right { padding: 50px 40px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 13px; font-weight: 800;
  color: #374151;
  margin-bottom: 6px;
}
.field .req { color: #dc2626; }
.field .hint { color: var(--muted); font-weight: 500; font-size: 11px; }
.field input, .field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 15px;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22,163,74,.12);
}
.field-checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  margin: 4px 0;
}
.field-checkbox input { width: 18px; height: 18px; }
.field-checkbox a { color: var(--primary); text-decoration: underline; }
.form-status {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-status.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== FAQ ===== */
.faq { background: white; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
  transition: all .15s ease;
}
.faq-list details[open] { background: white; border-color: var(--primary-light); box-shadow: 0 6px 18px rgba(22,163,74,.08); }
.faq-list summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50%;
  font-weight: 900; font-size: 18px;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list p { margin: 12px 0 0; color: var(--muted); }

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer .brand { color: white; margin-bottom: 12px; }
.footer-tag { color: #94a3b8; font-size: 14px; }
.footer h4 { color: white; font-size: 14px; margin: 0 0 14px; font-weight: 800; }
.footer a { display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pkg-card.popular { transform: none; }
  .signup-card { grid-template-columns: 1fr; }
  .signup-left { padding: 40px 30px; }
  .signup-right { padding: 40px 30px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-stats { gap: 24px; padding: 18px 20px; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats strong { font-size: 24px; }
}
