/* ===== Design tokens — matches the Mordoo app's own palette exactly ===== */
:root {
  --ink: #150a0e;
  --ink2: #1e1014;
  --ink3: #2a161c;
  --gold: #d4a843;
  --gold-bright: #eccc6a;
  --gold-dim: #7a6530;
  --cream: #f2e8d5;
  --muted: #a0907a;
  --cinnabar: #b23a24;
  --cinnabar-bright: #d9542f;
  --wine: #3a1520;
  --silk: #4a2a1e;

  --font-display: "Trirong", serif;
  --font-sans: "IBM Plex Sans Thai Looped", system-ui, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 84px;
  height: 84px;
  object-fit: contain;
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.6; filter: drop-shadow(0 0 0 rgba(212, 168, 67, 0)); }
  50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 18px rgba(212, 168, 67, 0.55)); }
}

/* ===== Background glow orbs ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.bg-glow-a {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, var(--cinnabar) 0%, transparent 70%);
  animation: floatA 22s ease-in-out infinite;
}
.bg-glow-b {
  width: 480px; height: 480px;
  top: 30%; right: -180px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  animation: floatB 26s ease-in-out infinite;
}
.bg-glow-c {
  width: 420px; height: 420px;
  bottom: -140px; left: 20%;
  background: radial-gradient(circle, var(--wine) 0%, transparent 70%);
  animation: floatC 20s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 80px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-70px, 50px); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 10, 14, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(212, 168, 67, 0.12);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.navbar.is-scrolled {
  background: rgba(21, 10, 14, 0.82);
  border-bottom-color: rgba(212, 168, 67, 0.2);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand-mark { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

.navbar-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(212, 168, 67, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(212, 168, 67, 0.75); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--cream);
  background: rgba(212, 168, 67, 0.06);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(212, 168, 67, 0.14); transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 8px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 100px; z-index: 1; }
.hero-inner { text-align: center; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow.center { display: block; text-align: center; }
.hero-title {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.text-gradient {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 45%, var(--cinnabar-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 16px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: 220px;
  filter: drop-shadow(0 0 40px rgba(212, 168, 67, 0.35));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* ===== Trust strip ===== */
.trust-strip { border-top: 1px solid rgba(212, 168, 67, 0.1); border-bottom: 1px solid rgba(212, 168, 67, 0.1); padding: 18px 0; position: relative; z-index: 1; }
.trust-strip-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.trust-strip .dot { color: var(--gold-dim); }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(30, 16, 20, 0.55), transparent); }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
  max-width: 620px;
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--muted); font-size: 15px; max-width: 520px; margin: 0 auto 50px; }
.section-sub.center { text-align: center; }

/* ===== Grid + cards ===== */
.grid { display: grid; gap: 24px; margin-top: 56px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(160deg, rgba(212, 168, 67, 0.06), rgba(212, 168, 67, 0.01));
  border: 1px solid rgba(212, 168, 67, 0.14);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 168, 67, 0.08);
}
.card-icon { font-size: 30px; margin-bottom: 18px; }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--cream); }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ===== Pricing ===== */
.pricing-grid { align-items: stretch; }
.price-card {
  background: rgba(212, 168, 67, 0.04);
  border: 1px solid rgba(212, 168, 67, 0.16);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(212, 168, 67, 0.35); }
.price-card-featured {
  background: linear-gradient(160deg, rgba(212, 168, 67, 0.14), rgba(178, 58, 36, 0.06));
  border-color: var(--gold);
  box-shadow: 0 20px 50px -24px rgba(212, 168, 67, 0.5);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-label { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.price-amount { font-family: var(--font-display); font-size: 42px; color: var(--cream); }
.price-coins { color: var(--gold); font-size: 14px; margin: 8px 0 20px; }
.price-coins span { color: var(--cinnabar-bright); font-size: 12px; margin-left: 4px; }
.price-note { color: var(--muted); font-size: 12.5px; max-width: 640px; margin: 40px auto 0; }

/* ===== FAQ ===== */
.faq-list { margin-top: 50px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(212, 168, 67, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(212, 168, 67, 0.03);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item.is-open { border-color: rgba(212, 168, 67, 0.35); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--cream);
  text-align: left;
}
.faq-icon {
  flex-shrink: 0;
  margin-left: 16px;
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.faq-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1px solid rgba(212, 168, 67, 0.14);
  border-radius: var(--radius-md);
  background: rgba(212, 168, 67, 0.04);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-icon { font-size: 26px; margin-bottom: 6px; }
.contact-label { color: var(--muted); font-size: 12px; }
.contact-value { color: var(--cream); font-size: 14.5px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(212, 168, 67, 0.12);
  padding: 56px 0 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand img { height: 26px; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212, 168, 67, 0.08);
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Legal pages ===== */
.legal { padding-top: 150px; padding-bottom: 120px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 13.5px; margin-bottom: 28px; transition: color 0.25s var(--ease); }
.legal-back:hover { color: var(--gold-bright); }
.legal-updated { color: var(--muted); font-size: 13px; margin: 14px 0 48px; }
.legal-content { color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.legal-content h2 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 19px;
  font-weight: 500;
  margin: 42px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--cream); font-weight: 500; }
.legal-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-fineprint {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  color: var(--gold-dim);
  font-size: 11px;
  line-height: 1.8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(21, 10, 14, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.is-open { max-height: 260px; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid rgba(212, 168, 67, 0.08); }
  .navbar-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
