/* ============================================================
   LTG
   Ethereal Glass design system · OLED black · emerald/gold
   ============================================================ */

:root {
  --bg: #050505;
  --bg-2: #0a0a0c;
  --ink: #f4f4f2;
  --ink-dim: rgba(244, 244, 242, 0.55);
  --ink-faint: rgba(244, 244, 242, 0.32);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --emerald: #17b58f;
  --emerald-soft: rgba(23, 181, 143, 0.14);
  --gold: #e8c468;
  --gold-soft: rgba(232, 196, 104, 0.12);
  --loss: #e5484d;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-xl: 2rem;
  --r-core: calc(2rem - 6px);
  --font-display: "Clash Display", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* ambient mesh + grain painted ONCE as static backgrounds — fixed full-viewport
     overlay divs force a recomposite on every canvas frame and destroy perf */
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(600px 420px at 12% -6%, rgba(23, 181, 143, 0.16), transparent 60%),
    radial-gradient(720px 520px at 88% 12%, rgba(232, 196, 104, 0.09), transparent 62%),
    radial-gradient(900px 700px at 50% 30%, rgba(23, 120, 181, 0.07), transparent 64%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--emerald); color: #041512; }

/* ---- mesh + grain now live on the body background (see above) ---- */
.mesh, .grain { display: none; }

/* ---- typography --------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.display-xl { font-size: clamp(2.9rem, 7.2vw, 6rem); }
.display-lg { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.lede { color: var(--ink-dim); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 56ch; }
.grad-text {
  background: linear-gradient(92deg, #f4f4f2 30%, var(--emerald) 68%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 0.3rem 0.85rem; margin-bottom: 1.6rem;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-dim); background: rgba(255, 255, 255, 0.03);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); }

/* ---- layout shells ------------------------------------------ */
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
section { padding-block: clamp(6rem, 11vw, 10rem); }
.section-head { max-width: 720px; margin-bottom: clamp(3rem, 5vw, 4.5rem); }

/* ---- double-bezel (doppelrand) cards ------------------------ */
.shell {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 6px;
  transition: transform 0.7s var(--ease), border-color 0.7s var(--ease), background 0.7s var(--ease);
}
.shell:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); }
.core {
  background: linear-gradient(180deg, #0b0b0e, #08080a);
  border-radius: var(--r-core);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.09);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  height: 100%;
  position: relative; overflow: hidden;
}

/* ---- island nav --------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; pointer-events: none;
  padding-top: 1.4rem;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 1.2rem;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255,255,255,0.08);
}
.nav-logo { display: flex; align-items: baseline; gap: 0.45rem; margin-right: 0.9rem; text-decoration: none; }
.nav-logo b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink); }
.nav-logo span { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.nav-links { display: flex; gap: 0.15rem; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.nav-cta { margin-left: 0.5rem; }

/* hamburger (mobile) */
.burger {
  display: none; pointer-events: auto;
  position: relative; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hairline-2);
  cursor: pointer;
}
.burger i {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 25px; }
body.menu-open .burger i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* fullscreen menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
body.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu nav { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 600;
  color: var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), color 0.4s var(--ease);
}
.menu a:hover { color: var(--emerald); }
body.menu-open .menu a { opacity: 1; transform: translateY(0); }
body.menu-open .menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .menu a:nth-child(5) { transition-delay: 0.32s; }

/* ---- buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border-radius: 999px; padding: 0.62rem 0.62rem 0.62rem 1.4rem;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.6s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .orb {
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.6s var(--ease);
}
.btn:hover .orb { transform: translate(3px, -1px) scale(1.05); }
.btn-primary { background: var(--ink); color: #0a0a0a; box-shadow: 0 18px 50px -18px rgba(244, 244, 242, 0.35); }
.btn-primary:hover { box-shadow: 0 24px 70px -18px rgba(23, 181, 143, 0.45); }
.btn-primary .orb { background: rgba(0, 0, 0, 0.1); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-ghost .orb { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 0.4rem 0.4rem 0.4rem 1rem; font-size: 0.84rem; }
.btn-sm .orb { width: 26px; height: 26px; font-size: 0.78rem; }

/* ---- scroll reveal ------------------------------------------ */
.reveal {
  opacity: 0; transform: translateY(64px); filter: blur(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---- hero ---------------------------------------------------- */
.hero {
  min-height: 100dvh;
  display: grid; align-items: center;
  padding-top: 7.5rem; padding-bottom: 4rem;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-canvas-wrap { position: relative; aspect-ratio: 1; max-height: 620px; }
.hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.hero-stats { display: flex; gap: 2.6rem; margin-top: 3.2rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 1.7rem; display: block; }
.stat span { color: var(--ink-faint); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* floating quote chips over the globe */
.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(12, 12, 15, 0.75);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 0.45rem 0.9rem; font-size: 0.8rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: float 7s var(--ease) infinite;
}
.chip b { font-weight: 600; }
.chip .up { color: var(--emerald); }
.chip .down { color: var(--loss); }
.chip:nth-of-type(2) { animation-delay: -2.4s; }
.chip:nth-of-type(3) { animation-delay: -4.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---- ticker marquee ----------------------------------------- */
.ticker {
  border-block: 1px solid var(--hairline);
  padding-block: 0.9rem; overflow: hidden; white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}
.ticker-track { display: inline-flex; gap: 3.4rem; animation: marquee 36s linear infinite; will-change: transform; }
.ticker span { font-size: 0.85rem; color: var(--ink-dim); }
.ticker b { color: var(--ink); font-weight: 600; margin-right: 0.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- bento grid ---------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.b-8 { grid-column: span 8; }
.b-7 { grid-column: span 7; }
.b-6 { grid-column: span 6; }
.b-5 { grid-column: span 5; }
.b-4 { grid-column: span 4; }
.b-12 { grid-column: span 12; }
.icon-orb {
  width: 46px; height: 46px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--emerald-soft); border: 1px solid rgba(23, 181, 143, 0.25);
  margin-bottom: 1.2rem;
}
.icon-orb.gold { background: var(--gold-soft); border-color: rgba(232, 196, 104, 0.25); }
.icon-orb svg { width: 22px; height: 22px; stroke: var(--emerald); }
.icon-orb.gold svg { stroke: var(--gold); }
.core h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.core p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---- 3d tilt scenes ------------------------------------------ */
.scene { perspective: 1400px; }
.tilt { transform-style: preserve-3d; transition: transform 0.9s var(--ease); will-change: transform; }

/* payment card */
.pay-card {
  position: relative; aspect-ratio: 1.586; max-width: 460px; margin-inline: auto;
  border-radius: 1.6rem;
  background:
    radial-gradient(120% 160% at 8% 0%, rgba(23, 181, 143, 0.35), transparent 55%),
    radial-gradient(120% 160% at 100% 110%, rgba(232, 196, 104, 0.22), transparent 55%),
    linear-gradient(160deg, #101014, #08080a);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255,255,255,0.12);
  padding: 1.8rem; display: flex; flex-direction: column; justify-content: space-between;
}
.pay-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.10) 46%, transparent 60%);
  transform: translateX(calc(var(--shine, 0) * 1%));
  pointer-events: none;
}
.pay-card .num { font-family: var(--font-display); letter-spacing: 0.14em; font-size: clamp(1rem, 2.4vw, 1.35rem); }
.pay-card .row { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.75rem; color: var(--ink-dim); }
.pay-chip { width: 44px; height: 32px; border-radius: 8px; background: linear-gradient(140deg, var(--gold), #9a7c2f); }

/* phone mockup */
.phone {
  width: min(300px, 72vw); margin-inline: auto;
  border-radius: 3rem; padding: 10px;
  background: linear-gradient(180deg, #1a1a1f, #0c0c0f);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 80px 140px -50px rgba(0, 0, 0, 0.95), inset 0 1px 1px rgba(255,255,255,0.14);
}
.phone-screen {
  border-radius: calc(3rem - 10px); overflow: hidden;
  background: #060608; aspect-ratio: 9 / 19;
  display: flex; flex-direction: column; padding: 1.1rem; gap: 0.7rem;
  position: relative;
}
.phone-notch { width: 86px; height: 20px; border-radius: 999px; background: #000; margin: 0 auto 0.4rem; border: 1px solid var(--hairline); }
.p-balance { font-family: var(--font-display); font-size: 1.8rem; }
.p-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 0.6rem 0.8rem; font-size: 0.72rem;
}
.p-row b { display: block; font-size: 0.8rem; }
.p-row span { color: var(--ink-faint); }
.p-up { color: var(--emerald); font-weight: 600; }
.p-down { color: var(--loss); font-weight: 600; }
.p-spark { flex: 1; border-radius: 14px; background: rgba(23, 181, 143, 0.06); border: 1px solid rgba(23, 181, 143, 0.15); position: relative; overflow: hidden; min-height: 60px; }
.p-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- steps / timeline ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step .core::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600;
  display: block; margin-bottom: 0.8rem;
  background: linear-gradient(180deg, var(--ink) 20%, transparent 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- markets table ------------------------------------------- */
.mkt-table { width: 100%; border-collapse: collapse; }
.mkt-table th {
  text-align: left; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.mkt-table td { padding: 1.05rem 1rem; border-bottom: 1px solid var(--hairline); font-size: 0.94rem; }
.mkt-table tr:last-child td { border-bottom: none; }
.mkt-table tbody tr { transition: background 0.5s var(--ease); }
.mkt-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.sym { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; }
.sym i {
  width: 34px; height: 34px; border-radius: 12px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hairline-2);
}
.delta { font-weight: 600; }
.delta.up { color: var(--emerald); }
.delta.down { color: var(--loss); }
td .spark { width: 110px; height: 30px; }

/* ---- chart canvas -------------------------------------------- */
.chart-frame canvas { width: 100%; height: 380px; display: block; border-radius: var(--r-core); }

/* ---- FAQ ------------------------------------------------------ */
.faq details {
  border-bottom: 1px solid var(--hairline); padding-block: 1.4rem;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--ink-faint);
  transition: transform 0.6s var(--ease), color 0.6s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--emerald); }
.faq details p { color: var(--ink-dim); padding-top: 0.9rem; max-width: 62ch; }

/* ---- chat mock ------------------------------------------------ */
.chat-window { display: flex; flex-direction: column; gap: 0.8rem; min-height: 340px; }
.msg { max-width: 78%; padding: 0.75rem 1.05rem; border-radius: 1.2rem; font-size: 0.92rem; }
.msg.bot { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline); border-bottom-left-radius: 0.35rem; align-self: flex-start; }
.msg.user { background: var(--emerald-soft); border: 1px solid rgba(23, 181, 143, 0.3); border-bottom-right-radius: 0.35rem; align-self: flex-end; }
.chat-input {
  margin-top: auto; display: flex; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline-2);
  border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 1.1rem;
}
.chat-input input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-family: inherit; font-size: 0.92rem; }
.chat-input button {
  width: 40px; height: 40px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--ink); color: #0a0a0a; font-size: 1rem;
  transition: transform 0.5s var(--ease);
}
.chat-input button:hover { transform: scale(1.06); }

/* ---- CTA band / footer ---------------------------------------- */
.cta-band .core { text-align: center; padding: clamp(3rem, 7vw, 5.5rem); }
.cta-band .display-lg { margin-bottom: 1rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }

footer { border-top: 1px solid var(--hairline); padding: 4rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.foot-grid h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; font-weight: 500; }
.foot-grid a { display: block; color: var(--ink-dim); text-decoration: none; font-size: 0.92rem; padding-block: 0.28rem; transition: color 0.4s var(--ease); }
.foot-grid a:hover { color: var(--ink); }
.legal { color: var(--ink-faint); font-size: 0.78rem; max-width: 88ch; line-height: 1.7; border-top: 1px solid var(--hairline); padding-top: 1.6rem; }

/* ---- page hero (inner pages) ----------------------------------- */
.page-hero { padding-top: clamp(9rem, 16vw, 12rem); padding-bottom: clamp(3rem, 5vw, 4rem); }

/* ---- responsive ------------------------------------------------ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wrap { width: min(1180px, 100% - 2rem); padding-inline: 0; }
  section { padding-block: 4.5rem; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .bento { grid-template-columns: 1fr; }
  .b-8, .b-7, .b-6, .b-5, .b-4, .b-12 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
  .chip { display: none; }
  td .spark { width: 70px; }
  .mkt-scroll { overflow-x: auto; }
  .mkt-table { min-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
