/* ==========================================================================
   base.css — design tokens, reset, typography, buttons
   Palette follows the money-site screenshot (deep navy, slate, flame orange).
   ========================================================================== */
:root {
  --night: #03091b;
  --deck: #041424;
  --panel: #0b1d30;
  --slate: #0f2538;
  --slate-2: #17354b;
  --rule: rgba(255, 255, 255, .1);
  --rule-2: rgba(255, 255, 255, .18);
  --head: #f7f9fc;
  --copy: #d6dfe9;
  --soft: #a1b1c3;
  --flame: #fd3c12;
  --flame-2: #fd6a12;
  --flame-text: #ff9a5c;
  --gold: #f6d90a;
  --gold-text: #ffe57a;
  --mint: #4ee0c4;
  --rose: #ff6b81;
  --fire: linear-gradient(105deg, #fd3c12 0%, #fd6a12 55%, #ff4d1a 100%);
  --shine: linear-gradient(92deg, #fff4b8 0%, #f6d90a 45%, #ff9a24 100%);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --lift: 0 10px 28px rgba(0, 0, 0, .36);
  --lift-2: 0 22px 50px rgba(0, 0, 0, .5);
  --page: 1180px;
  --measure: 44rem;
  --mast: 66px;
  --dock: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --thai: "Noto Sans Thai", "Sukhumvit Set", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mast) + 14px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  color: var(--copy);
  font-family: var(--thai);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 8% -4%, rgba(253, 60, 18, .14), transparent 70%),
    radial-gradient(760px 560px at 100% 30%, rgba(23, 53, 75, .7), transparent 72%),
    linear-gradient(180deg, transparent 60%, rgba(4, 20, 36, .6));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; -webkit-touch-callout: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--head); font-weight: 700; line-height: 1.38; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
strong, b { color: var(--head); font-weight: 700; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(253, 106, 18, .45); color: #fff; }

.shell { width: min(100% - 32px, var(--page)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -64px; left: 12px; z-index: 99;
  padding: 8px 14px; border-radius: 8px;
  background: var(--gold); color: #141000; font-weight: 700;
}
.skip:focus { top: 10px; }
.ico { width: 24px; height: 24px; fill: currentColor; flex: none; }
.keep { display: inline-block; }
.hl {
  color: var(--gold);
  background: var(--shine);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 9px 20px;
  border: 0; border-radius: 999px;
  overflow: hidden;
  color: #fff; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.07); }
.cta:active { transform: scale(.97); }
.cta--fire { background: var(--fire); box-shadow: 0 10px 22px rgba(253, 60, 18, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.cta--slate { background: var(--slate-2); box-shadow: var(--lift), inset 0 1px 0 rgba(255, 255, 255, .12); }
.cta--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2); }
.cta--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.cta--big { min-height: 56px; padding-inline: 18px; font-size: clamp(16px, 4.4vw, 18.5px); }
.cta--fire.cta--big::after {
  content: "";
  position: absolute; top: -40%; bottom: -40%; left: -40%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep {
  0%, 64% { left: -40%; }
  90%, 100% { left: 125%; }
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
