/* Lace Wallet Extension — landing page styles */
:root {
  --ink: #0b1020;
  --ink-soft: #4a5372;
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --line: #e3e7f5;
  --brand: #3b2fd6;
  --brand-dark: #2a1fa8;
  --accent: #14c8a0;
  --radius: 18px;
  --shadow: 0 18px 45px -22px rgba(17, 22, 66, 0.35);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); }
sup { font-size: 0.45em; top: -0.9em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 0.6rem 1rem; z-index: 99;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 0.98rem; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.94rem; }
.nav a:hover { color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 0.55rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: 0.78rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eef0ff; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 15% -10%, #e8eaff 0%, transparent 60%), var(--bg); padding: 4rem 0 3.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 700; color: var(--brand); margin-bottom: 0.9rem; }
.lede { font-size: 1.06rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.trust-list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 0.4rem; }

.wallet-card {
  background: linear-gradient(160deg, #171c3d, #0b1020);
  color: #fff; border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow);
}
.wallet-card-top { display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: #b9c0e0; margin-bottom: 1.3rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 200, 160, 0.18); }
.pill { margin-left: auto; background: rgba(255, 255, 255, 0.12); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; }
.balance { margin-bottom: 1.25rem; }
.balance-label { display: block; font-size: 0.78rem; color: #9aa3c8; }
.balance-value { font-size: 1.55rem; display: block; margin: 0.15rem 0; }
.balance-sub { font-size: 0.78rem; color: #9aa3c8; }
.token-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.token-list li { display: flex; justify-content: space-between; padding: 0.6rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.9rem; }
.token-amount { color: #b9c0e0; }
.wallet-note { font-size: 0.74rem; color: #7f89ad; margin: 0; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-lede { max-width: 640px; color: var(--ink-soft); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.feature-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.feature-grid h3 { margin-bottom: 0.4rem; }
.feature-grid p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; background: var(--bg-alt); border-radius: var(--radius); padding: 1.35rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.step-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700;
}

.link-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.link-list a {
  display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 1rem 1.15rem; text-decoration: none; color: var(--ink);
}
.link-list a:hover { border-left-color: var(--brand); }
.link-list strong { display: block; font-size: 0.98rem; }
.link-list span { font-size: 0.88rem; color: var(--ink-soft); }
.fine-print { font-size: 0.82rem; color: var(--ink-soft); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.15rem; margin-bottom: 0.7rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--brand); }
.faq p { margin: 0.7rem 0 0.2rem; color: var(--ink-soft); font-size: 0.94rem; }

/* CTA + footer */
.cta { background: linear-gradient(120deg, var(--brand), #1c9bd6); color: #fff; padding: 3.2rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: 0.4rem; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.88); max-width: 560px; }

.site-footer { background: #0b1020; color: #aeb6d6; padding: 2.5rem 0; font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-brand { font-weight: 700; color: #fff; margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: #aeb6d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-note { margin: 0; flex: 1 1 100%; font-size: 0.8rem; }

.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 1.1rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 940px) {
  .hero-inner, .grid-3, .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.9rem; text-align: center; }
  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  .section { padding: 2.75rem 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
