/* =========================================================
   Lace Wallet Extension® — landing page styles
   ========================================================= */

:root {
  --brand: #6d4aff;
  --brand-600: #5a35f0;
  --brand-700: #4a28d6;
  --brand-100: #ece7ff;
  --brand-50: #f5f2ff;
  --accent: #22d3ee;
  --ink: #0c0b18;
  --ink-soft: #3d3b52;
  --ink-mute: #6a6880;
  --line: #e6e4f0;
  --bg: #ffffff;
  --bg-tint: #f6f5fc;
  --dark: #0b0a1a;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(12, 11, 24, 0.06), 0 2px 8px rgba(12, 11, 24, 0.05);
  --shadow: 0 10px 30px rgba(12, 11, 24, 0.08);
  --shadow-lg: 0 30px 70px rgba(12, 11, 24, 0.18);
  --container: 1160px;
  --font: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
}
h3 {
  font-size: 1.09rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-700);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong {
  color: var(--ink);
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ===================== Notice bar ===================== */
.notice-bar {
  background: var(--dark);
  color: #cfcbe6;
  font-size: 0.83rem;
}
.notice-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
}
.notice-bar svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--accent);
}
.notice-bar p {
  margin: 0;
  line-height: 1.45;
}
.notice-bar strong {
  color: #fff;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, #8b5cf6 55%, #22d3ee 140%);
  box-shadow: 0 6px 16px rgba(109, 74, 255, 0.32);
}
.brand__mark svg {
  width: 24px;
  height: 24px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.brand__name sup {
  font-size: 0.5em;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--brand-700);
  font-weight: 600;
}
.brand__sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav ul a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 550;
}
.primary-nav ul a:hover {
  color: var(--brand-700);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 74, 255, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(109, 74, 255, 0.38);
}
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: #d6d2e8;
}
.btn--light {
  background: #fff;
  color: var(--brand-700);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===================== Eyebrow / pills ===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #cfc9f5;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
.eyebrow--dark {
  color: var(--brand-700);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.tag--muted {
  background: #eef0f5;
  color: var(--ink-mute);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}
.pill-row li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cfcbe6;
  font-size: 0.84rem;
  font-weight: 550;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #cfcbe6;
  padding: 68px 0 44px;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(45% 55% at 22% 30%, rgba(109, 74, 255, 0.55), transparent 70%),
    radial-gradient(38% 50% at 82% 15%, rgba(34, 211, 238, 0.28), transparent 72%),
    radial-gradient(40% 60% at 60% 90%, rgba(139, 92, 246, 0.3), transparent 70%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  color: #fff;
}
.hero h1 .grad {
  display: inline-block;
  background: linear-gradient(100deg, #a99bff 0%, #7dd3fc 60%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 1.09rem;
  max-width: 34em;
  color: #b9b4d4;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
  color: #b9b4d4;
}
.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__points svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* --------- popup mock --------- */
.hero__visual {
  display: flex;
  justify-content: center;
}
.popup {
  width: min(360px, 100%);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(170deg, #171532 0%, #100e24 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}
.popup__top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
}
.popup__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.popup__dot:first-child {
  background: #ff5f57;
}
.popup__dot:nth-child(2) {
  background: #febc2e;
}
.popup__dot:nth-child(3) {
  background: #28c840;
}
.popup__title {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f8ab3;
  font-weight: 600;
}
.popup__balance {
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.34), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.popup__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #b9b4d4;
  font-weight: 600;
}
.popup__balance strong {
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.popup__fiat {
  font-size: 0.82rem;
  color: #9d98bd;
}
.popup__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.popup__action {
  text-align: center;
  padding: 9px 4px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d9d5ee;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.popup__action--solid {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
  border-color: transparent;
}
.popup__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.popup__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.popup__coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.popup__coin--a {
  background: linear-gradient(135deg, #6d4aff, #22d3ee);
}
.popup__coin--b {
  background: linear-gradient(135deg, #22c55e, #a3e635);
}
.popup__coin--c {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}
.popup__asset {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8e5f7;
  line-height: 1.3;
}
.popup__asset em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8f8ab3;
  font-weight: 600;
}
.popup__amount {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.popup__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.popup__pill {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  background: rgba(34, 211, 238, 0.16);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.popup__pill--muted {
  background: rgba(255, 255, 255, 0.06);
  color: #b9b4d4;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===================== Sections ===================== */
.section {
  padding: 92px 0;
  scroll-margin-top: 90px;
}
.section--tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}
.section__head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}
.section__head--left {
  margin-inline: 0;
  text-align: left;
  max-width: 620px;
}
.section__lede {
  font-size: 1.04rem;
  color: var(--ink-mute);
  margin: 0;
}

.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #ded9f2;
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.95rem;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--brand-700);
  background: var(--brand-100);
}
.card__icon svg {
  width: 24px;
  height: 24px;
}

/* ===================== About / copy block ===================== */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about__note {
  color: var(--ink-mute);
  font-size: 0.95rem;
}
.about__meta {
  display: flex;
  gap: 8px;
}
.about__copy {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  box-shadow: var(--shadow);
}
.about__copy p {
  margin: 0;
  font-size: 1.09rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.about__copy p::first-letter {
  font-weight: 700;
}
.quote-mark {
  position: absolute;
  top: 26px;
  left: 30px;
  width: 40px;
  height: 40px;
  color: var(--brand-100);
}

/* ===================== Steps ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
  border: 1px solid var(--line);
}
.step__num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 12px;
}
.step h3 {
  font-size: 1.08rem;
}
.step p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.95rem;
}

/* ===================== FAQ / accordion ===================== */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion__item + .accordion__item {
  border-top: 1px solid var(--line);
}
.accordion__heading {
  margin: 0;
  font-size: 1rem;
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 21px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 620;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.accordion__trigger:hover {
  background: var(--brand-50);
}
.accordion__chev {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  transition: transform 0.28s ease, background-color 0.2s ease;
}
.accordion__chev svg {
  width: 17px;
  height: 17px;
}
.accordion__item--open .accordion__chev {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}
.accordion__item--open .accordion__trigger {
  color: var(--brand-700);
}
.accordion__panel[hidden] {
  display: none;
}
.accordion__body {
  padding: 0 24px 22px;
  animation: panel-in 0.28s ease;
}
.accordion__body p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.96rem;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===================== CTA ===================== */
.cta {
  padding: 78px 0;
  background: linear-gradient(120deg, #1b1440 0%, var(--brand-700) 55%, #6d4aff 100%);
  color: #e6e2ff;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  color: #fff;
  margin-bottom: 0.3em;
}
.cta p {
  margin: 0;
  max-width: 46ch;
  color: #d6d1f5;
}
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--dark);
  color: #a9a4c6;
  font-size: 0.92rem;
  padding-top: 66px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.brand--footer {
  margin-bottom: 18px;
}
.brand--footer .brand__name {
  color: #fff;
}
.brand--footer .brand__sub {
  color: #8f8ab3;
}
.footer__brand p {
  max-width: 40ch;
  font-size: 0.9rem;
  margin: 0;
}
.footer__col h3 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  color: #a9a4c6;
  font-size: 0.9rem;
}
.footer__col a:hover {
  color: #fff;
  text-decoration: none;
}
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  padding-bottom: 34px;
}
.footer__disclaimer {
  font-size: 0.79rem;
  line-height: 1.7;
  color: #7d78a0;
  max-width: 92ch;
  margin-bottom: 22px;
}
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.footer__bar p {
  margin: 0;
  font-size: 0.8rem;
  color: #8f8ab3;
}
.footer__bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer__bar a {
  font-size: 0.8rem;
  color: #8f8ab3;
}

/* ===================== Responsive ===================== */
@media (max-width: 1020px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .hero__visual {
    justify-content: flex-start;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about,
  .faq {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: 68px;
  }
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 22px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav ul li + li {
    border-top: 1px solid var(--line);
  }
  .primary-nav ul a {
    display: block;
    padding: 13px 2px;
    font-size: 1rem;
  }
  .nav-cta {
    align-self: flex-start;
  }
  .section {
    padding: 68px 0;
  }
  .steps,
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .about__copy {
    padding: 34px 26px;
  }
  .quote-mark {
    top: 18px;
    left: 20px;
    width: 32px;
    height: 32px;
  }
  .hero {
    padding: 52px 0 36px;
  }
  .pill-row {
    margin-top: 38px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .container {
    padding-inline: 18px;
  }
  .notice-bar {
    font-size: 0.78rem;
  }
  .btn {
    width: 100%;
  }
  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .notice-bar,
  .cta,
  .hero__visual {
    display: none;
  }
}
