/* SUPERSLOT789 Landing Styles */
:root {
  --bg: #0b0f1a;
  --card: #0f1629;
  --text: #e8eefc;
  --muted: #a4b1d6;
  --primary: #22c55e;  /* เขียว */
  --primary-600: #16a34a;
  --secondary: #6366f1; /* อินดิโก้ */
  --secondary-600: #4f46e5;
  --outline: #2b3659;
  --accent: linear-gradient(135deg, #22c55e 0%, #2dd4bf 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(1200px 600px at 20% -20%, rgba(99,102,241,.25), transparent 60%),
              radial-gradient(1000px 500px at 110% 10%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color: var(--text);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--card);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.site-header {
  position: sticky;
  top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(11,15,26,.6);
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.header-inner.container { max-width: 1100px; }
.logo { font-weight: 900; letter-spacing: .5px; }
.logo .logo-mark { display:inline-block; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color:#082c16; text-align:center; line-height:26px; font-weight:900; margin-right:6px; }
.logo span { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: none; gap: 14px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; }
.site-nav a:hover { background: rgba(148,163,184,.08); }
.site-nav .nav-cta { background: var(--accent); color: #082c16; font-weight: 800; border-color: rgba(34,197,94,.35); }
@media (min-width: 800px) { .site-nav{ display:flex; } }

.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; padding: 10px 12px; background:#111827; color:#fff; border-radius:8px; z-index:9999; }

.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(99,102,241,.22), rgba(45,212,191,.22), rgba(99,102,241,.22));
  filter: blur(48px);
  z-index: 0;
  /* Motion background */
  animation: rotateBG 30s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes rotateBG {
  from { transform: rotate(0deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1.05); }
}

.badge {
  display: inline-block;
  position: relative;
  z-index: 1;
  background: rgba(34,197,94,.12);
  color: #9ae6b4;
  border: 1px solid rgba(34,197,94,.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .4px;
  margin-bottom: 12px;
  animation: floatY 3.2s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.brand {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.05;
  margin: 6px 0 10px;
  letter-spacing: .5px;
}

.brand span {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glowPulse 3.6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(34,197,94,0); }
  50% { text-shadow: 0 0 24px rgba(34,197,94,.35); }
}

.tagline {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 18px);
  margin: 0 0 18px;
}

/* Ensure anchors scroll to clear sticky header */
#about, #features, #trust, #reviews, #faq, #contact, #legal { scroll-margin-top: 76px; }

.cta-group {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 10px auto 16px;
  max-width: 560px;
}

@media (min-width: 640px) {
  .cta-group { grid-template-columns: 1fr 1fr 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .12s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

/* Shine effect */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.btn:hover::after { transform: translateX(120%); }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #082c16;
  background: var(--accent);
  border-color: rgba(34, 197, 94, .35);
  box-shadow: 0 6px 20px rgba(34,197,94,.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(34,197,94,.35); }

.btn-secondary {
  color: #eef2ff;
  background: #3035a7;
  border-color: rgba(99,102,241,.45);
}
.btn-secondary:hover { background: var(--secondary-600); }

.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: var(--outline);
}
.btn-outline:hover { background: rgba(148,163,184,.08); }

/* Reveal on scroll */
.reveal-up { opacity: 0; transform: translateY(12px) scale(.98); }
.reveal-up.in-view { animation: fadeUp .6s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.usp {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .usp { grid-template-columns: 1fr 1fr; }
}

.about { margin-top: 18px; }
.about h2 { margin: 0 0 10px; font-size: 20px; }
.about .bullets { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.about .bullets li { margin: 6px 0; }

.highlights { margin-top: 18px; }
.highlights h2 { margin: 0 0 12px; font-size: 20px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(148,163,184,.10);
  border-radius: 14px;
  padding: 16px;
}

.feature .icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.trust { margin-top: 18px; }
.trust h2 { margin: 0 0 8px; font-size: 20px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.badge-chip { background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.12); border-radius: 999px; padding: 8px 12px; font-size: 13px; }

.reviews { margin-top: 18px; }
.reviews h2 { margin: 0 0 10px; font-size: 20px; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .reviews-grid { grid-template-columns: 1fr 1fr 1fr; } }
.review { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: rgba(255,255,255,.02); border: 1px solid rgba(148,163,184,.10); border-radius: 12px; padding: 12px; }
.review .avatar { width: 40px; height: 40px; border-radius: 999px; background: rgba(99,102,241,.25); display:flex; align-items:center; justify-content:center; font-weight: 800; }
.review figcaption { display:flex; flex-direction: column; }
.review figcaption span { color: var(--muted); font-size: 12px; }
.review blockquote { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); }

.faq { margin-top: 18px; }
.faq h2 { margin: 0 0 8px; font-size: 20px; }

.faq details {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(148,163,184,.10);
  border-radius: 12px;
  padding: 12px 14px;
}

.faq details + details { margin-top: 8px; }

.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 6px 0 0; }

.contact { margin-top: 18px; }
.contact h2 { margin: 0 0 8px; font-size: 20px; }
.contact .contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 520px; margin: 8px auto 6px; }
@media (min-width: 640px) { .contact .contact-actions { grid-template-columns: 1fr 1fr; } }

.notice {
  text-align: center;
  color: var(--muted);
  margin: 16px 0;
}

.notice .age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(148,163,184,.14);
  margin: 0 auto 8px;
  font-weight: 800;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 10px 0 24px;
  font-size: 13px;
}
.footer-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.footer-nav a { color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; }
.footer-nav a:hover { background: rgba(148,163,184,.08); }
.small { font-size: 12px; }
.muted { color: var(--muted); }

/* Page enter/exit animation */
.page {
  opacity: 0;
  transform: translateY(6px) scale(0.995);
  animation: pageEnter .5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.nav-exit .page {
  animation: pageExit .18s ease both;
}

@keyframes pageExit {
  to { opacity: 0; transform: translateY(4px) scale(0.995); filter: blur(1px); }
}
