/* ===== RESET & VARS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Brand palette: BLACK · WHITE · DARK ORANGE · LIGHT ORANGE (clean / Liquid Brokers style) ---- */
  --black:      #0a0a0c;
  --ink:        #050506;
  --panel:      #131316;
  --panel-2:    #1a1a1e;

  --white:      #ffffff;
  --paper:      #f6f3ee;

  --orange:       #ff7a1a;
  --orange-deep:  #c2410c;
  --orange-pale:  #ffd9ad;
  --orange-soft:  #ffb066;

  --text:       #f5f2ec;
  --muted:      #ede6dc;
  --dim:        #635e57;

  --border:        rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.20);
  --border-orange: rgba(255,122,26,0.38);

  --grad-orange: linear-gradient(135deg, #ffd9ad 0%, #ff9740 45%, #ff7a1a 75%, #c2410c 100%);
  --grad-cta:    linear-gradient(135deg, #ffb066 0%, #ff7a1a 60%, #c2410c 100%);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-orange: 0 20px 50px -14px rgba(255,122,26,0.45);
  --shadow-black:  0 20px 50px -18px rgba(0,0,0,0.7);

  --font-display: 'Kanit', 'Prompt', sans-serif;
  --font-body:    'Prompt', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 66px; /* space for bottom mobile nav */
}
@media (min-width: 769px) { body { padding-bottom: 0; } }

/* Page background as a fixed full-viewport layer (not on body directly) —
   sizing "cover" against body would scale against the whole scrollable
   page height on long pages, causing a huge zoom on mobile. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('assets/img/BG%20web%20-%20SANUK99.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  body::before { background-image: url('assets/img/BG%20phone%20-%20SANUK99.webp'); }
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5.5rem 1.25rem; position: relative; }
@media (max-width: 768px) { .section { padding: 3.25rem 1rem; } }
@media (max-width: 479px) { .section { padding: 2.75rem 0.875rem; } }

/* ===== HEADINGS ===== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }

/* ===== UTILS ===== */
.grad-text {
  background: var(--grad-orange);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.kw { color: var(--orange); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-pale);
  border: 1px solid var(--border-orange); border-radius: 9999px;
  padding: 0.4rem 1rem; background: rgba(255,122,26,0.08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2.35rem); line-height: 1.2; margin: 0.9rem 0 1rem; }
.section-head p { color: var(--muted); font-size: 0.95rem; line-height: 1.85; }
@media (max-width: 479px) { .section-head { margin-bottom: 2rem; } .section-head p { font-size: 0.875rem; } }

/* ===== BUTTONS (pill, flat, clean) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 2.1rem; border-radius: 9999px; border: none; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn-solid { background: var(--white); color: var(--ink); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-black); }
.btn-cta { background: var(--grad-cta); color: #2a0f00; box-shadow: var(--shadow-orange); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -14px rgba(255,122,26,0.6); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--white); }
.btn:active { transform: scale(0.97); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 1.5rem 0;
  transition: padding 0.3s ease;
}
.header.scrolled { padding-top: 0.6rem; }
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  background: rgba(10,10,12,0.6);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.55rem 0.6rem 0.55rem 1.15rem;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.header.scrolled .header-inner { background: rgba(10,10,12,0.86); border-color: var(--border-strong); }

.header-row1 { display: flex; align-items: center; gap: 1rem; width: 100%; }

.logo-link { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-img { height: 32px; width: auto; max-width: 130px; object-fit: contain; }
.logo-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: var(--white); white-space: nowrap; }
@media (max-width: 479px) { .logo-name { font-size: 0.98rem; } }
@media (max-width: 360px) { .logo-name { display: none; } }

.nav-menu { display: flex; align-items: center; gap: 0.125rem; margin: 0 auto; }
.nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  font-size: 0.87rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.ico-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: #06C755; color: #fff; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.03em; border-radius: 4px; padding: 2px 4px; flex-shrink: 0; line-height: 1;
}

/* header-btns: image buttons (Login/Register graphics) */
.header-btns { display: flex; gap: 0.6rem; align-items: center; flex-shrink: 0; margin-left: auto; }
.hbtn { height: 32px; width: auto; max-width: 118px; object-fit: contain; cursor: pointer; transition: transform 0.2s; }
.hbtn:hover { transform: scale(1.06); }

/* header-row2: mobile scrollable link strip, merged inside the same header panel */
.header-row2 { display: none; }

@media (max-width: 768px) {
  .header { padding: 0.85rem 0.75rem 0; }
  .header-inner { padding: 0.5rem 0.55rem 0.45rem; border-radius: 22px; }
  .header-row1 { gap: 0.6rem; }
  .nav-menu { display: none; }
  .logo-img { height: 28px; }
  .hbtn { height: 27px; max-width: 92px; }
  .header-row2 {
    display: flex; align-items: center; gap: 0.125rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-top: 1px solid var(--border); padding-top: 0.35rem;
  }
  .header-row2::-webkit-scrollbar { display: none; }
}
.mob-nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.85rem; border-radius: 9999px;
  font-size: 0.78rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.mob-nav-link:active, .mob-nav-link:hover { color: var(--white); background: rgba(255,122,26,0.14); }

/* ===== HERO (centered + banner, dotted atmosphere) ===== */
/* Solid background so the body's page background photo doesn't show through the hero */
.hero { position: relative; overflow: hidden; padding: 132px 1.25rem 3rem; background: var(--black); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.hero-glow-1 { top: -10%; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; background: radial-gradient(ellipse, rgba(255,122,26,0.16) 0%, transparent 70%); }

.hero-center { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-center .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.85rem); line-height: 1.08; margin-bottom: 1.1rem; }
@media (max-width: 479px) { .hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); } }
.hero p { color: var(--muted); font-size: clamp(0.95rem, 2vw, 1.1rem); line-height: 1.75; max-width: 46ch; margin: 0 auto 1.9rem; }
@media (max-width: 479px) { .hero p { font-size: 0.9rem; margin-bottom: 1.5rem; } }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ---- Hero banner card ---- */
.hero-banner { position: relative; width: 100%; max-width: 1080px; margin: 3rem auto 0; z-index: 1; }
.hero-banner-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-black);
}
.hero-banner-frame img { width: 100%; height: auto; display: block; }
.hero-banner-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.05) 0%, rgba(10,10,12,0.05) 55%, rgba(10,10,12,0.4) 100%);
  pointer-events: none;
}
@media (max-width: 640px) { .hero-banner-frame { border-radius: var(--r-lg); } }

.stat-card {
  position: absolute; z-index: 3;
  background: rgba(19,19,22,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 0.55rem 0.75rem; min-width: 104px;
  box-shadow: var(--shadow-black);
  text-align: left;
}
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.3rem; }
.stat-card .sc-label { font-size: 0.6rem; color: var(--muted); font-weight: 600; }
.stat-card .sc-arrow {
  width: 16px; height: 16px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 0.55rem; flex-shrink: 0;
}
.stat-card .sc-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.stat-card .sc-bar { height: 2px; border-radius: 2px; background: rgba(255,255,255,0.14); margin-top: 0.35rem; overflow: hidden; }
.stat-card .sc-bar > span { display: block; height: 100%; background: var(--grad-orange); border-radius: 2px; }

.sc-1 { left: -3%; bottom: 8%; }
.sc-2 { right: -3%; top: 8%; }
@media (max-width: 640px) {
  .stat-card { min-width: 92px; padding: 0.45rem 0.6rem; }
  .stat-card .sc-num { font-size: 0.95rem; }
  .sc-1 { left: -2%; bottom: 5%; }
  .sc-2 { right: -2%; top: 5%; }
}

/* ===== FEATURES ===== */
.features { padding: 5rem 1.25rem; }
@media (max-width: 768px) { .features { padding: 3rem 1rem; } }
.feat-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 720px) { .feat-grid { grid-template-columns: 1fr; gap: 0.9rem; } }
.feat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem; transition: border-color 0.3s, transform 0.3s;
}
.feat-card:hover { border-color: var(--border-orange); transform: translateY(-4px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.5rem;
  background: rgba(255,122,26,0.12); border: 1px solid var(--border-orange);
}
.feat-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.5rem; }
.feat-card p { font-family: var(--font-body); font-size: 0.87rem; color: var(--muted); line-height: 1.75; }

/* ===== 3ICON STRIP ===== */
.strip { padding: 1.5rem 1.25rem; }
.strip img { max-width: 1000px; margin: 0 auto; border-radius: var(--r-xl); width: 100%; border: 1px solid var(--border); }

/* ===== 2-COL CONTENT ===== */
.c2 { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3.25rem; align-items: center; }
@media (max-width: 900px) { .c2 { gap: 2.25rem; } }
@media (max-width: 768px) { .c2 { grid-template-columns: 1fr; gap: 1.9rem; } .c2.flip > div:first-child { order: -1; } }
.c2 .tag { color: var(--orange); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.c2 h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.25; margin-bottom: 1.1rem; }
.c2 p { color: var(--muted); font-size: 0.92rem; line-height: 1.9; margin-bottom: 1rem; }
.c2 img { border-radius: var(--r-xl); width: 100%; border: 1px solid var(--border); box-shadow: var(--shadow-black); }

/* ===== INFO CARD (mobile entrance / generic) ===== */
.info-card {
  max-width: 820px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2.5rem;
}
@media (max-width: 768px) { .info-card { padding: 1.9rem 1.5rem; } }
@media (max-width: 479px) { .info-card { padding: 1.5rem 1.1rem; border-radius: var(--r-lg); } }
.info-card h3 { font-size: clamp(1.15rem, 3.2vw, 1.5rem); color: var(--white); margin-bottom: 1.1rem; line-height: 1.3; }
.info-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.9; }

/* ===== STEPS ===== */
.steps-wrap { max-width: 820px; margin: 0 auto; }
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; }
.step-num {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--grad-cta);
  color: #2a0f00; font-weight: 800; font-size: 1rem; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-orange);
}
.step-body h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.4rem; font-weight: 700; }
.step-body p { color: var(--muted); font-size: 0.87rem; line-height: 1.8; }
@media (max-width: 479px) { .step-item { gap: 0.9rem; padding: 1.1rem 1.15rem; } .step-num { width: 32px; height: 32px; font-size: 0.88rem; } }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.5rem; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--border-orange); }
.faq-q { font-weight: 700; color: var(--white); font-size: 0.95rem; margin-bottom: 0.55rem; }
.faq-q::before { content: 'Q  '; color: var(--orange); }
.faq-a { color: var(--muted); font-size: 0.865rem; line-height: 1.85; }
.faq-a::before { content: 'A  '; color: var(--orange-pale); font-weight: 700; }
@media (max-width: 479px) { .faq-item { padding: 1.05rem 1.15rem; } }

/* ===== CTA SECTION ===== */
.cta-section { padding: 5rem 1.25rem; }
.cta-panel {
  max-width: 1000px; margin: 0 auto; text-align: center; position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border-orange); border-radius: var(--r-xl);
  padding: 3.5rem 2rem;
}
.cta-panel::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(255,122,26,0.28) 0%, transparent 70%);
  pointer-events: none;
}
.cta-panel h2 { position: relative; font-size: clamp(1.5rem, 4vw, 2.15rem); margin-bottom: 0.75rem; }
.cta-panel p { position: relative; color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }
.cta-btns { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) { .cta-panel { padding: 2.5rem 1.5rem; } }
@media (max-width: 479px) { .cta-panel { padding: 2rem 1.1rem; border-radius: var(--r-lg); } }

/* ===== FOOTER ===== */
.footer { background: var(--ink); border-top: 1px solid var(--border); padding: 3rem 1.25rem 2.25rem; text-align: center; }
.footer-logo { height: 40px; margin: 0 auto 1.25rem; }
.footer-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.85; max-width: 640px; margin: 0 auto 1.25rem; }
.footer-copy { color: var(--dim); font-size: 0.76rem; }

/* ===== BOTTOM MOBILE NAV (clean flat pill, 5 items) ===== */
.sticky-bar {
  display: none;
  position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 90;
  align-items: center; justify-content: space-between;
  background: rgba(10,10,12,0.88);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-black);
  padding: 0.4rem;
}
@media (max-width: 768px) { .sticky-bar { display: flex; } }
.mnav-item {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center;
  padding: 0.55rem 0.15rem; border-radius: 9999px; color: var(--muted);
  font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.1;
  -webkit-tap-highlight-color: transparent; transition: color 0.2s, background 0.2s;
}
.mnav-item:active { background: rgba(255,122,26,0.14); color: var(--orange-pale); }
.mnav-item.acc { color: var(--white); }

/* mnav-center: flat horizontal logo, no circle/background, peeking above the bar */
.mnav-center {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  padding: 0 0.5rem; transform: translateY(-22px);
  -webkit-tap-highlight-color: transparent; transition: transform 0.18s ease;
}
.mnav-center:active { transform: translateY(-22px) scale(0.93); }
.mnav-center img {
  height: 34px; width: auto; max-width: 128px; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}
@media (max-width: 360px) { .mnav-center img { height: 28px; max-width: 108px; } }

/* ===== SECTION ALT BG =====
   Transparent on purpose so the page background photo (body) shows
   through consistently — cards (.feat-card/.faq-item/.info-card/etc.)
   stay opaque for readability. */
.bg-alt  { background: transparent; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== SUB-PAGES ===== */
body.page-body { overflow: hidden; }
.page-main { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 140px 1.25rem 6rem; text-align: center; gap: 1.75rem; position: relative; }
.page-h1 { font-size: clamp(1.3rem, 3.6vw, 1.9rem); line-height: 1.3; }
.action-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 360px) { .action-btns { flex-direction: column; align-items: center; } }

/* ===== ARTICLE PAGE ===== */
.article-main { max-width: 780px; margin: 0 auto; padding: 140px 1.25rem 5rem; }
.article-main h1 { font-size: clamp(1.5rem, 4.2vw, 2.1rem); line-height: 1.4; margin-bottom: 1rem; color: var(--white); }
.article-main .article-meta { color: var(--dim); font-size: 0.8rem; margin-bottom: 2rem; }
.article-main p { color: var(--muted); font-size: 0.95rem; line-height: 1.9; margin-bottom: 1.25rem; }
.article-main h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); margin: 2rem 0 1rem; color: var(--white); }

.article-cover { border-radius: var(--r-xl); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-orange); line-height: 0; }
.article-cover img { width: 100%; }

.article-tldr {
  background: var(--panel); border: 1px solid var(--border-orange); border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem; margin-bottom: 2rem;
}
.article-tldr h2 { margin-top: 0; font-size: 1rem; color: var(--orange); }
.article-tldr ul { margin: 0; padding-left: 1.25rem; color: var(--muted); font-size: 0.9rem; line-height: 1.95; }
.article-tldr li { margin-bottom: 0.35rem; }

.article-faq { margin-top: 2.5rem; }
