@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ── TOKENS ── */
:root {
  --bg:        #0b0e14;
  --surface:   #111620;
  --surface2:  #181e2c;
  --border:    #1f2a3f;
  --gold:      #c9a84c;
  --gold-dim:  #8a6e30;
  --green:     #2dce6a;
  --red:       #e05a5a;
  --text:      #d8dde8;
  --muted:     #68738a;
  --white:     #f0f4ff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'IBM Plex Sans Thai', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { flex: 1; }

/* ── TICKER ── */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.ticker-item .sym { color: var(--gold); font-weight: 500; }
.ticker-item .up  { color: var(--green); }
.ticker-item .dn  { color: var(--red); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,14,20,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: var(--surface2); }
.nav-links a.active { color: var(--white); background: var(--surface2); }
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: #d9bc6a; color: var(--bg); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 72px 48px 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #d9bc6a; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-risk {
  max-width: 560px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}
.footer-risk strong { color: var(--text); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .page-hero { padding: 48px 20px 40px; }
  .container { padding: 48px 20px; }
  footer { padding: 28px 20px; }
}
