/* ==========================================================
   Public homepage – matches the app brand (navy + teal)
   ========================================================== */
:root {
  --navy: #222838; --navy-2: #1a1f2d; --navy-3: #2b3346;
  --teal: #22d3cf; --teal-2: #14b8b3; --teal-ink: #0e7c78; --mint: #e6fbfa;
  --ink: #0f1422; --ink-2: #374151; --muted: #6b7385; --line: #e9edf2; --bg-alt: #f5f7fa;
  --pos: #34d399; --neg: #f87171;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Sora", "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
.ic { flex: none; }
section[id] { scroll-margin-top: 80px; }
.h-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Brand (shared markup from the app) */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .02em; color: #fff; }
.brand-text small { font-size: 8.5px; letter-spacing: .42em; color: var(--teal); font-weight: 700; margin-top: 4px; }

/* Buttons */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: transform .1s, background .15s, box-shadow .15s; white-space: nowrap; cursor: pointer; }
.h-btn:active { transform: translateY(1px); }
.h-btn-primary { background: var(--teal); color: var(--ink); box-shadow: 0 10px 26px rgba(34, 211, 207, .3); }
.h-btn-primary:hover { background: #3be3df; }
.h-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.h-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.h-btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.h-btn-outline:hover { border-color: var(--teal-2); }
.h-btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 16px; }
.h-btn-block { width: 100%; }

/* Announcement + nav */
.h-announce { background: var(--teal); color: var(--ink); text-align: center; font-weight: 700; font-size: 14px; padding: 9px 16px; }
.h-nav { position: sticky; top: 0; z-index: 50; background: rgba(34, 40, 56, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.h-nav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.h-nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.h-links { display: flex; align-items: center; gap: 6px; }
.h-links > a { color: #c9cfda; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.h-links > a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.h-links-cta { display: flex; gap: 8px; margin-left: 10px; }
.h-burger { display: none; background: none; border: 0; color: #fff; width: 46px; height: 46px; border-radius: 12px; place-items: center; cursor: pointer; }

/* Hero */
.h-hero { background: radial-gradient(90% 70% at 85% 10%, #2c4256 0%, var(--navy) 55%); color: #fff; overflow: hidden; position: relative; }
.h-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(34, 211, 207, .05); right: -160px; top: -120px; }
.h-hero-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; position: relative; align-items: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--teal); background: rgba(34, 211, 207, .1); border: 1px solid rgba(34, 211, 207, .25); padding: 7px 14px; border-radius: 999px; }
.h-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: hpulse 1.4s infinite; }
@keyframes hpulse { 50% { opacity: .3; } }
.h-hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; margin: 20px 0 16px; letter-spacing: -.035em; }
.h-lead { color: #c4cad6; font-size: clamp(16px, 2.2vw, 19px); max-width: 560px; }
.h-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.h-cta-row.center { justify-content: center; }
.h-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 10px 20px; flex-wrap: wrap; color: #aab2c0; font-size: 14px; font-weight: 600; }
.h-trust li { display: inline-flex; align-items: center; gap: 7px; }
.h-trust .ic { color: var(--teal); }
.h-refnote { margin-top: 16px; color: var(--teal); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

/* Hero phone mockup */
.h-hero-art { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.h-phone { width: 290px; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: 36px; padding: 18px 16px 20px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 8px rgba(255, 255, 255, .03); transform: rotate(-3deg); }
.h-phone-top { display: flex; align-items: center; gap: 8px; color: #c4cad6; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.h-phone-top span { flex: 1; }
.h-mock-wallet { background: linear-gradient(135deg, #fff 55%, #e9fbfa); color: var(--ink); border-radius: 22px; padding: 16px; position: relative; }
.h-mock-wallet small { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.h-mock-wallet b { display: block; font-family: var(--display); font-size: 28px; margin-top: 4px; }
.h-pill-on { position: absolute; top: 14px; right: 14px; font-size: 9px; font-weight: 800; color: var(--teal-ink); background: var(--mint); padding: 4px 8px; border-radius: 999px; letter-spacing: .08em; }
.h-mock-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; text-align: center; font-size: 10.5px; font-weight: 700; color: #e5e9f0; }
.h-mock-actions span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.h-mock-actions i { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: var(--ink); display: grid; place-items: center; }
.h-mock-chart { background: #222a3c; border-radius: 18px; padding: 12px 10px 8px; position: relative; }
.h-mock-chart svg { width: 100%; height: 90px; display: block; }
.h-mock-tag { position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 800; color: var(--teal); background: rgba(34, 211, 207, .12); padding: 3px 8px; border-radius: 6px; }
.h-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.h-float .ic { color: var(--teal-2); }
.h-float-1 { left: 0; bottom: 8%; animation: hfloat 5s ease-in-out infinite; }
.h-float-2 { right: 0; top: 4%; animation: hfloat 5s ease-in-out 1.5s infinite; }
.h-float-2 .ic { color: #34d399; }
@keyframes hfloat { 50% { transform: translateY(-8px); } }
.h-ticker { border-top: 1px solid rgba(255, 255, 255, .08); min-height: 46px; }

/* Sections */
.h-sec { padding: 72px 0; }
.h-sec-alt { background: var(--bg-alt); }
.h-sec-dark { background: var(--navy); color: #fff; }
.h-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.h-head.left { text-align: left; margin: 0; }
.h-head h2, .h-sec h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 10px; }
.h-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.h-head p a { color: var(--teal-ink); font-weight: 700; }
.h-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }
.h-eyebrow.light { color: var(--teal); }
.h-muted-light { color: #aab2c0; margin-top: 14px; font-size: 16px; }
.h-fine { font-size: 13px; color: var(--muted); margin-top: 24px; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.h-fine.light { color: #8f98a8; text-align: left; margin-top: 14px; }

/* Steps */
.h-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.h-steps li { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; position: relative; transition: transform .2s, box-shadow .2s; }
.h-steps li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 20, 34, .08); }
.h-step-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--teal-ink); margin-bottom: 16px; }
.h-steps b { display: block; font-size: 18px; font-family: var(--display); }
.h-steps p { color: var(--muted); margin-top: 6px; }

/* Plans */
.h-plans { display: grid; gap: 20px; }
.h-plan { background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.h-plan.featured { border-color: var(--teal); box-shadow: 0 24px 50px rgba(34, 211, 207, .18); }
.h-plan-badge { position: absolute; top: -13px; left: 24px; background: var(--teal); color: var(--ink); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.h-plan h3 { font-size: 22px; }
.h-plan-sum { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 600; }
.h-plan-target { margin: 20px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h-plan-target b { font-family: var(--display); font-size: 44px; color: var(--teal-ink); letter-spacing: -.03em; }
.h-plan-target span { color: var(--muted); font-weight: 600; }
.h-plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.h-plan li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.h-plan li .ic { color: var(--teal-2); }

/* Live */
.h-live-grid { display: grid; gap: 36px; align-items: center; }
.h-checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; color: #e5e9f0; font-weight: 600; }
.h-checks li { display: flex; gap: 10px; align-items: center; }
.h-checks .ic { color: var(--teal); }
.h-live-card { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.h-live-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.h-live-head small { margin-left: auto; color: #8f98a8; }
.h-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #8f98a8; }
.h-live-dot.on { background: var(--pos); box-shadow: 0 0 12px var(--pos); animation: hpulse 1.2s infinite; }
.h-live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.h-live-stats div { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px 12px; }
.h-live-stats small { display: block; color: #8f98a8; font-size: 11.5px; font-weight: 600; }
.h-live-stats b { font-family: var(--display); font-size: 20px; }
.h-live-list { list-style: none; margin: 0; padding: 0; }
.h-live-list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.h-live-list li b { flex: 1; }
.h-live-list small { color: #8f98a8; font-weight: 600; }
.h-live-list small.pos { color: var(--pos); } .h-live-list small.neg { color: var(--neg); }
.h-live-list .side { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; }
.h-live-list .side.buy { background: rgba(34, 211, 207, .15); color: var(--teal); }
.h-live-list .side.sell { background: rgba(248, 113, 113, .15); color: var(--neg); }
.h-none { color: #8f98a8; justify-content: center; }
.h-live-preview { position: relative; background: #1d2333; border-radius: 18px; padding: 10px; }
.h-live-preview svg { width: 100%; height: 220px; display: block; }
.h-live-preview span { position: absolute; right: 14px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; color: var(--ink); }
.h-live-preview .t1 { top: calc(10px + 40 / 170 * 220px - 9px); background: var(--pos); }
.h-live-preview .t2 { top: calc(10px + 70 / 170 * 220px - 9px); background: var(--teal); }
.h-live-preview .t3 { top: calc(10px + 110 / 170 * 220px - 9px); background: var(--neg); color: #fff; }

/* Features */
.h-features { display: grid; gap: 18px; }
.h-features > div { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
.h-f-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--teal); margin-bottom: 14px; }
.h-features b { font-size: 17px; font-family: var(--display); }
.h-features p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* About */
.h-about { display: grid; gap: 20px; }
.h-about p { color: var(--ink-2); font-size: 18px; }

/* FAQ */
.h-faq-wrap { display: grid; gap: 30px; }
.h-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.h-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; color: var(--teal-ink); font-size: 24px; line-height: 1; font-weight: 500; transition: transform .2s; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq p { color: var(--ink-2); margin-top: 10px; }

/* Final CTA + footer */
.h-final { background: radial-gradient(80% 120% at 50% 0%, #2c4256, var(--navy) 70%); color: #fff; text-align: center; padding: 76px 0; }
.h-final h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; }
.h-final p { color: #c4cad6; margin-top: 10px; font-size: 17px; }
.h-foot { background: var(--navy-2); color: #c4cad6; padding: 56px 0 30px; font-size: 14.5px; }
.h-foot-grid { display: grid; gap: 30px; }
.h-foot-grid > div { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.h-foot-grid b { color: #fff; margin-bottom: 4px; }
.h-foot-grid a, .h-foot-grid span { display: inline-flex; align-items: center; gap: 7px; }
.h-foot-grid a:hover { color: var(--teal); }
.h-social { display: flex; gap: 8px; margin-top: 14px; }
.h-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: #fff; }
.h-social a:hover { background: var(--teal); color: var(--ink); }
.h-disclaimer { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding-top: 22px; font-size: 12.5px; color: #8f98a8; display: grid; gap: 8px; }
.h-disclaimer b { color: #c4cad6; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile nav ---------- */
@media (max-width: 899px) {
  .h-burger { display: grid; }
  .h-links { position: fixed; inset: 72px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 40px rgba(0, 0, 0, .35); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .2s; }
  body.h-nav-open .h-links { transform: none; opacity: 1; visibility: visible; }
  .h-links > a { padding: 13px 8px; font-size: 16px; }
  .h-links-cta { margin: 12px 0 0; flex-direction: column; }
  .h-links-cta .h-btn { width: 100%; padding: 13px; }
  .h-float { font-size: 12px; padding: 8px 11px; }
  .h-float-1 { left: -4px; bottom: 2%; } .h-float-2 { right: -4px; top: 0; }
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 700px) {
  .h-steps { grid-template-columns: repeat(2, 1fr); }
  .h-features { grid-template-columns: repeat(2, 1fr); }
  .h-foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .h-hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 80px; padding-bottom: 80px; }
  .h-hero-art { padding: 30px 0; }
  .h-phone { width: 310px; }
  .h-steps { grid-template-columns: repeat(4, 1fr); }
  .h-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
  .h-live-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .h-features { grid-template-columns: repeat(3, 1fr); }
  .h-about { grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; }
  .h-faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
  .h-foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .h-sec { padding: 96px 0; }
}
