/* ==========================================================================
   FXB LANDING — public home page, flat amber-fintech look
   --------------------------------------------------------------------------
   Ported from the reference app (E:\wep_apps\sakthinew). COLOR comes from
   css/fxb-tokens.css — the appearance panel's palette + light/medium/dark mode
   recolor the whole page. Solid token surfaces (flat, not glass). Keeps every
   .fxb-* class index.asp depends on. Pairs with Font Awesome + SVG artwork.
   ========================================================================== */

:root {
  --l-primary: hsl(var(--primary));
  --l-primary-700: hsl(var(--accent-foreground));
  --l-amber: hsl(38 95% 58%);
  --l-amber-2: hsl(38 95% 72%);
  --l-text: hsl(var(--foreground));
  --l-muted: hsl(var(--muted-foreground));
  --l-radius: calc(var(--radius) + 12px);
  --l-card: hsl(var(--card));
  --l-surface: hsl(var(--card));
  --l-border: hsl(var(--border));
  --l-shadow: 0 1px 3px hsl(var(--foreground) / 0.07), 0 12px 30px -16px hsl(var(--foreground) / 0.16);
  --l-shadow-lg: 0 24px 56px -20px hsl(var(--foreground) / 0.24);
  --l-grad: linear-gradient(135deg, hsl(var(--primary)), hsl(38 95% 58%));
  --l-grad-soft: linear-gradient(135deg, hsl(38 95% 58%), hsl(38 100% 72%));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.fxb-landing {
  margin: 0;
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--l-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: hsl(var(--background));
}

/* floating colour blobs behind everything (tinted by palette) */
.fxb-blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fxb-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.22; }
.fxb-blob.b1 { width: 460px; height: 460px; background: hsl(var(--primary)); top: -120px; left: -100px; animation: floatY 13s ease-in-out infinite; }
.fxb-blob.b2 { width: 420px; height: 420px; background: hsl(38 95% 58%); top: 8%; right: -120px; animation: floatY 16s ease-in-out infinite reverse; }
.fxb-blob.b3 { width: 380px; height: 380px; background: hsl(var(--primary) / 0.7); bottom: 4%; left: 6%; opacity: 0.18; animation: floatY 18s ease-in-out infinite; }
.fxb-blob.b4 { width: 360px; height: 360px; background: hsl(38 95% 64%); bottom: -120px; right: 10%; opacity: 0.16; animation: floatY 15s ease-in-out infinite reverse; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
@keyframes floatCard { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-.6deg); } }
@keyframes floatCoin { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes floatCoin2 { 0%,100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(20px) rotate(-8deg); } }

.fxb-landing a { text-decoration: none; }
.fxb-landing img { max-width: 100%; height: auto; }
.fxb-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }
.fxb-section { padding: 100px 0; position: relative; z-index: 2; }

.fxb-eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--l-primary); margin-bottom: 14px;
}
.fxb-h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; margin: 0 0 16px; line-height: 1.18; color: var(--l-text); }
.fxb-lead { color: var(--l-muted); font-size: 1.06rem; max-width: 640px; }
.fxb-center { text-align: center; }
.fxb-center .fxb-lead { margin-left: auto; margin-right: auto; }

/* surface utility — flat token card */
.glass {
  background: var(--l-card);
  border: 1px solid var(--l-border);
  box-shadow: var(--l-shadow);
}

/* ---------- Buttons ------------------------------------------------------- */
.fxb-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.fxb-btn:hover { transform: translateY(-2px); }
.fxb-btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: 0 12px 26px -10px hsl(var(--primary) / 0.45); }
.fxb-btn-primary:hover { color: hsl(var(--primary-foreground)); filter: brightness(1.05); box-shadow: 0 16px 34px -12px hsl(var(--primary) / 0.5); }
.fxb-btn-glass { background: var(--l-card); color: var(--l-primary-700); border-color: var(--l-border); }
.fxb-btn-glass:hover { background: hsl(var(--accent)); }
.fxb-btn-dark { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.fxb-btn-dark:hover { filter: brightness(.92); color: hsl(var(--primary-foreground)); }

/* ---------- Navbar -------------------------------------------------------- */
.fxb-nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 16px 0; transition: padding .3s ease; }
.fxb-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px; border-radius: 999px; transition: background .3s ease, box-shadow .3s ease;
}
.fxb-nav.scrolled .fxb-nav__inner {
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--l-border);
  box-shadow: var(--l-shadow);
}
.fxb-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.2rem; color: var(--l-primary-700); }
.fxb-brand img { height: 40px; width: 40px; }
.fxb-brand b { color: var(--l-primary); font-weight: 700; }
.fxb-nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.fxb-nav__links a { color: var(--l-text); font-weight: 500; font-size: .95rem; transition: color .15s ease; }
.fxb-nav__links a:hover { color: var(--l-primary); }
.fxb-nav__cta { display: flex; align-items: center; gap: 12px; }
.fxb-nav__login { color: var(--l-primary-700); font-weight: 600; }
.fxb-burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--l-primary-700); cursor: pointer; }

/* ---------- Hero ---------------------------------------------------------- */
.fxb-hero { padding: 168px 0 90px; position: relative; z-index: 2; }
.fxb-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.fxb-hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; margin-bottom: 22px; color: var(--l-primary-700);
  background: hsl(var(--primary) / 0.09); border: 1px solid hsl(var(--primary) / 0.2);
}
.fxb-hero__badge i { color: var(--l-primary); }
.fxb-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 800; line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; color: var(--l-text); }
.fxb-hero h1 span { background: var(--l-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fxb-hero p { color: var(--l-muted); font-size: 1.12rem; max-width: 520px; margin: 0 0 32px; }
.fxb-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero dashboard card */
.fxb-hero__art { position: relative; }
.fxb-dash {
  border-radius: calc(var(--radius) + 16px); padding: 24px;
  background: var(--l-card);
  border: 1px solid var(--l-border);
  box-shadow: var(--l-shadow-lg);
  animation: floatCard 7s ease-in-out infinite;
}
.fxb-dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fxb-dash__top small { color: var(--l-muted); font-weight: 500; }
.fxb-dash__pill { font-size: .72rem; font-weight: 700; color: hsl(var(--success)); background: hsl(var(--success) / 0.14); padding: 4px 10px; border-radius: 999px; }
.fxb-dash__bal { font-size: 2.1rem; font-weight: 800; color: var(--l-primary-700); line-height: 1; margin-bottom: 4px; }
.fxb-dash__chart { margin: 8px -6px -2px; }
.fxb-dash__chart img { display: block; width: 100%; }
.fxb-dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.fxb-dash__stat { background: hsl(var(--muted) / 0.5); border: 1px solid var(--l-border); border-radius: 14px; padding: 12px 14px; }
.fxb-dash__stat b { display: block; font-size: 1.1rem; color: var(--l-primary-700); }
.fxb-dash__stat span { font-size: .76rem; color: var(--l-muted); }

.fxb-coin { position: absolute; width: 86px; filter: drop-shadow(0 14px 22px hsl(var(--primary) / 0.35)); }
.fxb-coin.c1 { top: -34px; right: 14px; animation: floatCoin 6s ease-in-out infinite; }
.fxb-coin.c2 { width: 64px; bottom: -26px; left: -26px; animation: floatCoin2 7s ease-in-out infinite; }

/* ---------- Stats --------------------------------------------------------- */
.fxb-stats__inner { border-radius: var(--l-radius); display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 10px; }
.fxb-stat { text-align: center; padding: 8px 14px; border-right: 1px solid var(--l-border); }
.fxb-stat:last-child { border-right: 0; }
.fxb-stat b { display: block; font-size: 1.9rem; font-weight: 800; background: var(--l-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fxb-stat span { color: var(--l-muted); font-size: .9rem; }

/* ---------- Cards grid ---------------------------------------------------- */
.fxb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fxb-card { border-radius: var(--l-radius); padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.fxb-card:hover { transform: translateY(-8px); box-shadow: var(--l-shadow-lg); border-color: hsl(var(--primary) / 0.4); }
.fxb-card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; color: hsl(var(--primary-foreground)); background: var(--l-grad); margin-bottom: 18px; box-shadow: 0 10px 22px -8px hsl(var(--primary) / 0.4); }
.fxb-card:nth-child(2) .fxb-card__icon { background: var(--l-grad-soft); }
.fxb-card:nth-child(3) .fxb-card__icon { background: linear-gradient(135deg, hsl(var(--accent-foreground)), hsl(var(--primary))); }
.fxb-card:nth-child(4) .fxb-card__icon { background: linear-gradient(135deg, hsl(var(--primary)), hsl(38 95% 64%)); }
.fxb-card h3 { font-size: 1.16rem; margin: 0 0 10px; color: var(--l-text); }
.fxb-card p { color: var(--l-muted); font-size: .94rem; margin: 0; }

/* ---------- How it works -------------------------------------------------- */
.fxb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.fxb-step { border-radius: var(--l-radius); padding: 34px 26px; text-align: center; transition: transform .2s ease; }
.fxb-step:hover { transform: translateY(-6px); }
.fxb-step__num { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: hsl(var(--primary-foreground)); background: var(--l-grad); box-shadow: 0 12px 26px -10px hsl(var(--primary) / 0.4); }
.fxb-step h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--l-text); }
.fxb-step p { color: var(--l-muted); font-size: .94rem; margin: 0; }

/* ---------- Why-us split -------------------------------------------------- */
.fxb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fxb-split__art img { display: block; width: 100%; animation: floatCard 8s ease-in-out infinite; }
.fxb-checklist { list-style: none; margin: 24px 0; padding: 0; }
.fxb-checklist li { display: flex; gap: 14px; margin-bottom: 18px; }
.fxb-checklist i { color: var(--l-primary); font-size: 1.15rem; margin-top: 2px; }
.fxb-checklist b { display: block; color: var(--l-text); }
.fxb-checklist span { color: var(--l-muted); font-size: .93rem; }

/* ---------- CTA ----------------------------------------------------------- */
.fxb-cta { position: relative; overflow: hidden; border-radius: 28px; padding: 60px; text-align: center; color: #fff; background: linear-gradient(135deg, hsl(var(--accent-foreground)) 0%, hsl(var(--primary)) 55%, hsl(38 95% 58%) 120%); box-shadow: var(--l-shadow-lg); }
.fxb-cta::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: hsl(38 100% 72%); opacity: .3; filter: blur(20px); top: -120px; right: -60px; }
.fxb-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 0 0 12px; position: relative; color: #fff; }
.fxb-cta p { color: rgba(255, 255, 255, .92); max-width: 560px; margin: 0 auto 26px; position: relative; }
.fxb-cta .fxb-btn { position: relative; }
.fxb-cta .fxb-btn-glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.fxb-cta .fxb-btn-glass:hover { background: rgba(255,255,255,.28); }

/* ---------- Contact ------------------------------------------------------- */
.fxb-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.fxb-form { border-radius: var(--l-radius); padding: 34px; }
.fxb-form .fld { margin-bottom: 16px; }
.fxb-form label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 6px; color: var(--l-muted); }
.fxb-form input, .fxb-form textarea, .fxb-form select {
  width: 100%; padding: 13px 16px; border: 1px solid hsl(var(--input));
  border-radius: var(--radius); font-family: inherit; font-size: .95rem; color: var(--l-text);
  background: hsl(var(--card)); transition: border-color .15s ease, box-shadow .15s ease;
}
.fxb-form input:focus, .fxb-form textarea:focus, .fxb-form select:focus { outline: 0; border-color: hsl(var(--ring)); box-shadow: 0 0 0 .22rem hsl(var(--ring) / 0.2); }
.fxb-contact__info { display: flex; flex-direction: column; gap: 18px; }
.fxb-info-item { display: flex; gap: 16px; align-items: center; border-radius: 16px; padding: 18px 20px; }
.fxb-info-item i { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center; background: var(--l-grad); color: hsl(var(--primary-foreground)); font-size: 1.15rem; }
.fxb-info-item b { display: block; color: var(--l-text); }
.fxb-info-item span { color: var(--l-muted); font-size: .92rem; }

/* ---------- Footer (intentionally dark in all modes) ---------------------- */
.fxb-footer { position: relative; z-index: 2; margin-top: 40px; background: linear-gradient(135deg, #1c130b 0%, #2e1d0d 100%); color: rgba(255, 247, 238, .8); padding: 70px 0 0; }
.fxb-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.fxb-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 18px; }
.fxb-footer ul { list-style: none; margin: 0; padding: 0; }
.fxb-footer li { margin-bottom: 10px; }
.fxb-footer a { color: rgba(255, 247, 238, .78); transition: color .15s ease; }
.fxb-footer a:hover { color: var(--l-amber-2); }
.fxb-footer .fxb-brand { color: #fff; margin-bottom: 14px; }
.fxb-footer .fxb-brand b { color: var(--l-amber-2); }
.fxb-footer__about p { font-size: .92rem; color: rgba(255, 247, 238, .72); }
.fxb-social { display: flex; gap: 10px; margin-top: 10px; }
.fxb-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; }
.fxb-social a:hover { background: var(--l-grad); }
.fxb-news-form { display: flex; gap: 8px; margin-top: 12px; }
.fxb-news-form input { flex: 1; padding: 12px 14px; border: 0; border-radius: 12px; font-family: inherit; }
.fxb-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 56px; padding: 22px 0; text-align: center; font-size: .9rem; }

/* ---------- Mobile menu --------------------------------------------------- */
.fxb-mobile { position: fixed; inset: 0; z-index: 1100; background: hsl(var(--background) / 0.96); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; transform: translateX(100%); transition: transform .3s ease; }
.fxb-mobile.open { transform: translateX(0); }
.fxb-mobile a { color: var(--l-primary-700); font-size: 1.3rem; font-weight: 600; }
.fxb-mobile__close { position: absolute; top: 24px; right: 26px; background: none; border: 0; color: var(--l-primary-700); font-size: 1.8rem; cursor: pointer; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 992px) {
  .fxb-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .fxb-hero p { margin-left: auto; margin-right: auto; }
  .fxb-hero__actions { justify-content: center; }
  .fxb-hero__art { max-width: 460px; margin: 10px auto 0; }
  .fxb-split { grid-template-columns: 1fr; }
  .fxb-footer__grid { grid-template-columns: 1fr 1fr; }
  .fxb-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .fxb-stat:nth-child(2) { border-right: 0; }
  .fxb-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fxb-section { padding: 66px 0; }
  .fxb-nav__links, .fxb-nav__cta .fxb-nav__login, .fxb-nav__cta .fxb-btn { display: none; }
  .fxb-burger { display: block; }
  .fxb-grid-4, .fxb-steps, .fxb-contact { grid-template-columns: 1fr; }
  .fxb-cta { padding: 42px 24px; }
  .fxb-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MOTION POLISH
   ========================================================================== */
/* Hero entrance (above the fold), staggered */
@keyframes fxb-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.fxb-hero__badge   { animation: fxb-up .6s ease both; }
.fxb-hero h1       { animation: fxb-up .6s ease .08s both; }
.fxb-hero p        { animation: fxb-up .6s ease .16s both; }
.fxb-hero__actions { animation: fxb-up .6s ease .24s both; }

/* Scroll-reveal for below-the-fold blocks — pure CSS, progressive enhancement */
@supports (animation-timeline: view()) {
  .fxb-card, .fxb-step, .fxb-split__art, .fxb-info-item, .fxb-stats__inner, .fxb-cta {
    animation: fxb-up .8s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
}

/* Animated gradient shimmer on the headline accent + stat figures */
.fxb-hero h1 span, .fxb-stat b {
  background-size: 220% auto;
  animation: fxb-shimmer 6s linear infinite;
}
@keyframes fxb-shimmer { to { background-position: 220% center; } }

/* Feature-card hover shine */
.fxb-card { position: relative; overflow: hidden; }
.fxb-card::after {
  content: "";
  position: absolute; top: 0; left: -130%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.fxb-card:hover::after { left: 140%; }

/* Button shine sweep */
.fxb-btn-primary, .fxb-btn-dark { position: relative; overflow: hidden; }
.fxb-btn-primary::after, .fxb-btn-dark::after {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.fxb-btn-primary:hover::after, .fxb-btn-dark:hover::after { left: 130%; }

/* Custom combo chevron on any contact-form select */
.fxb-form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 13px;
}
:root[data-theme='dark'] .fxb-form select,
:root[data-theme='medium'] .fxb-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Page scrollbar */
body.fxb-landing::-webkit-scrollbar { width: 10px; }
body.fxb-landing::-webkit-scrollbar-thumb { background: hsl(var(--primary) / 0.6); border-radius: 10px; }
body.fxb-landing::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .fxb-hero__badge, .fxb-hero h1, .fxb-hero p, .fxb-hero__actions,
  .fxb-card, .fxb-step, .fxb-split__art, .fxb-info-item, .fxb-stats__inner, .fxb-cta,
  .fxb-hero h1 span, .fxb-stat b, .fxb-blob, .fxb-dash { animation: none !important; }
  .fxb-card::after, .fxb-btn-primary::after, .fxb-btn-dark::after { display: none; }
}
