/* =========================================================
   Jaxx Liberty Wallet® — official site styles
   ========================================================= */

:root {
  --ink: #080b18;
  --ink-2: #0d1226;
  --ink-3: #161d38;
  --paper: #ffffff;
  --tint: #f6f7fb;
  --line: #e6e9f2;
  --text: #131a2e;
  --muted: #5b6478;
  --brand: #6d5cff;
  --brand-dark: #4a37e6;
  --brand-soft: #efe9ff;
  --accent: #22d3ee;
  --gold: #f7931a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 18px 40px -20px rgba(15, 22, 52, .28);
  --shadow-lg: 0 42px 80px -32px rgba(8, 12, 36, .45);
  --wrap: 1160px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.09rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

sup { font-size: .48em; vertical-align: super; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; box-shadow: 0 14px 30px -14px rgba(74, 55, 230, .75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(74, 55, 230, .85); }
.btn--ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c7cde4; font-size: .84rem; }
.topbar__inner {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 9px 22px; text-align: center; flex-wrap: wrap;
}
.topbar p { margin: 0; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #cfc7ff; font-weight: 600; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(15, 22, 52, .6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 8px 18px -10px rgba(74, 55, 230, .8); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; white-space: nowrap; }
.brand--light { color: #fff; }
.brand--light .brand__name { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .93rem; font-weight: 600; color: #3b4358; padding: 9px 13px; border-radius: 999px;
  text-decoration: none !important; transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; place-items: center; gap: 5px; grid-auto-flow: row;
}
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 3px auto; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 620px at 78% -8%, #2b2170 0%, transparent 60%), linear-gradient(165deg, #080b18 0%, #101736 52%, #0b0f22 100%); color: #e7eaf7; padding: 78px 0 96px; }
.hero__glow { position: absolute; inset: auto -10% -40% -10%; height: 60%; background: radial-gradient(600px 300px at 50% 100%, rgba(109, 92, 255, .5), transparent 70%); filter: blur(10px); }
.hero__grid-lines {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 85%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.grad { background: linear-gradient(100deg, #9c8cff 0%, #56e1f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__copy .lead { font-size: 1.13rem; color: #b9c1de; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__badges li { position: relative; padding-left: 22px; font-size: .9rem; color: #a7b0d0; }
.hero__badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #56e1f5 0 40%, rgba(86,225,245,.25) 42% 100%);
}

.pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600;
  color: #d3d8f0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  padding: 7px 15px; border-radius: 999px; margin: 0 0 22px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }

/* wallet mockup */
.hero__visual { perspective: 1400px; }
.wallet-card {
  position: relative; border-radius: 24px; padding: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: rotateY(-6deg) rotateX(2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotateY(-6deg) rotateX(2deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px); } }
.wallet-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-card__label { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #98a3c8; }
.wallet-card__balance { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; color: #fff; }
.wallet-card__chip { font-size: .74rem; font-weight: 700; color: #b9f5c8; background: rgba(74, 222, 128, .14); border: 1px solid rgba(74, 222, 128, .3); padding: 5px 11px; border-radius: 999px; }
.wallet-card__chart { margin: 14px 0 6px; }
.wallet-card__chart svg { width: 100%; height: 92px; display: block; }

.asset-list { display: grid; gap: 6px; }
.asset { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.asset__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; font-weight: 700; color: #fff; flex: none; }
.asset__icon--btc { background: linear-gradient(135deg, #f7931a, #c96f05); }
.asset__icon--eth { background: linear-gradient(135deg, #7b8bf5, #4550c0); }
.asset__icon--ltc { background: linear-gradient(135deg, #b8b8bd, #7e7e88); }
.asset__icon--dai { background: linear-gradient(135deg, #f5ac37, #d98813); }
.asset__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.asset__name { font-size: .92rem; font-weight: 600; color: #fff; }
.asset__ticker { font-size: .74rem; color: #98a3c8; letter-spacing: .06em; }
.asset__value { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; font-size: .92rem; font-weight: 600; color: #fff; }
.asset__change { font-size: .74rem; font-weight: 600; }
.asset__change--up { color: #6fe39a; }
.asset__change--down { color: #ff9b9b; }

.wallet-card__foot { display: flex; gap: 10px; margin-top: 16px; }
.wallet-card__foot-item { flex: 1; text-align: center; font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: #e7eaf7; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Stats ---------- */
.stats { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 22px; }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; background: linear-gradient(100deg, #9c8cff, #56e1f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; font-size: .86rem; color: #a9b2d2; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 12px; }
.eyebrow--light { color: #9c8cff; }

/* About */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about__lead { font-size: 1.08rem; color: #333c55; }
.about__lead::first-letter { font-family: var(--font-display); font-size: 3.1rem; font-weight: 800; color: var(--brand-dark); float: left; line-height: .86; padding: 6px 10px 0 0; }
.about__points { display: grid; gap: 18px; margin-top: 28px; }
.point { display: flex; gap: 15px; }
.point__icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); }
.point__icon svg { width: 22px; height: 22px; }
.point h3 { margin-bottom: 2px; }
.point p { margin: 0; font-size: .94rem; color: var(--muted); }

.about__figure { margin: 0; }
.about__figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.about__figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8d2ff; }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 24px -14px rgba(74, 55, 230, .9);
}
.step p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Security band */
.security { position: relative; background: var(--ink); color: #dfe3f5; overflow: hidden; }
.security__bg {
  position: absolute; inset: 0; opacity: .28;
  background: radial-gradient(700px 380px at 12% 10%, rgba(109, 92, 255, .55), transparent 70%),
              radial-gradient(600px 320px at 88% 90%, rgba(34, 211, 238, .35), transparent 70%);
}
.security__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.security h2 { color: #fff; }
.security__copy > p { color: #adb6d4; }
.check-list { display: grid; gap: 12px; margin: 26px 0 30px; }
.check-list li { position: relative; padding-left: 32px; font-size: .96rem; color: #cfd5ec; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(74, 222, 128, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fe39a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.security__figure { margin: 0; }
.security__figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; object-fit: cover; opacity: .95; }

/* CTA / signup */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 48px 44px; box-shadow: var(--shadow-md); }
.cta__copy p { color: var(--muted); margin: 0; }
.signup__label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.signup__row { display: flex; gap: 10px; }
.signup__input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--tint); color: var(--text); transition: border-color .18s ease, box-shadow .18s ease;
}
.signup__input::placeholder { color: #9aa2b8; }
.signup__input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(109, 92, 255, .14); }
.signup__input.is-invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.signup__help { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.signup__status { font-size: .9rem; font-weight: 600; margin: 10px 0 0; min-height: 1.3em; }
.signup__status.is-error { color: #c62a2f; }
.signup__status.is-ok { color: #0f7b3d; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.faq__intro > p { color: var(--muted); }
.faq__note { font-size: .9rem; }
.accordion { display: grid; gap: 12px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.acc.is-open { border-color: #cfc7ff; box-shadow: var(--shadow-sm); }
.acc__heading { margin: 0; }
.acc__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-align: left; color: var(--ink);
  background: none; border: 0; padding: 20px 22px; cursor: pointer;
}
.acc__trigger:hover { color: var(--brand-dark); }
.acc__icon { flex: none; width: 20px; height: 20px; color: var(--brand-dark); transition: transform .28s ease; }
.acc__trigger[aria-expanded="true"] .acc__icon { transform: rotate(180deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.acc__body { padding: 0 22px 20px; }
.acc__body p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a9b2d2; padding: 72px 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { font-size: .93rem; margin: 16px 0 0; max-width: 34ch; }
.footer__warn { display: flex; align-items: flex-start; gap: 9px; color: #ffd9a0; font-size: .88rem; font-weight: 600; }
.footer__warn svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.footer__col h3 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: #a9b2d2; font-size: .93rem; }
.footer__col a:hover { color: #fff; }

.footer__legal { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 48px; padding-top: 26px; display: grid; gap: 12px; }
.footer__disclosure, .footer__trademarks { font-size: .82rem; color: #8b94b6; margin: 0; max-width: 92ch; }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 24px; padding-top: 22px; }
.footer__bottom p { margin: 0; font-size: .85rem; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { color: #a9b2d2; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner, .about__grid, .security__inner, .faq__grid, .cta { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 76px; }
  .hero__visual { max-width: 520px; }
  .wallet-card { transform: none; animation: none; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .about__figure { order: -1; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: calc(100% + 1px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 12px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 15px; border-radius: 10px; }
  .nav__cta { display: block; margin-top: 6px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff !important; text-align: center; font-weight: 700; }
  .nav-toggle { display: grid; }
  .header__btn { display: none; }
  .section { padding: 66px 0; }
  .cta { padding: 34px 24px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar__inner { font-size: .78rem; gap: 6px; flex-direction: column; padding: 8px 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .signup__row { flex-direction: column; }
  .signup__row .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .about__lead::first-letter { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wallet-card { animation: none; }
  * { transition-duration: .01ms !important; }
}
