/* ==========================================================================
   Lace Wallet Extension — landing page styles
   Layout built with CSS Grid + Flexbox, mobile first.
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-soft: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e9edf7;
  --muted: #a4aec5;
  --accent: #45e0cf;
  --accent-2: #6d8bff;
  --accent-ink: #04121a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --wrap: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.6vw + 0.95rem, 1.075rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(69, 224, 207, 0.16), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(109, 139, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #070b16 0%, #080d1a 42%, #060a13 100%);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: 1.06rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(69, 224, 207, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #9df5ea;
  border-color: #9df5ea;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.wrap-narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 60;
}

.skip-link:focus {
  left: 1rem;
  top: 0.6rem;
}

/* ------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.98rem;
}

.brand-text small {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav > a:not(.btn) {
  border: 0;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.site-nav > a:not(.btn):hover,
.site-nav > a.is-active {
  color: var(--text);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------- buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7de2ff);
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -18px rgba(69, 224, 207, 0.9);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface-strong);
  color: var(--text);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* -------------------------------- hero --------------------------------- */

.hero {
  padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2rem, 5vw, 3.6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 3.6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 224, 207, 0.18);
}

.lede {
  color: #c8d1e5;
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.4rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  flex: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.mock-window {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.95), rgba(9, 14, 26, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.mock-tab {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.mock-url {
  flex: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.76rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.mock-body {
  padding: 1.1rem;
  display: flex;
  justify-content: flex-end;
}

.mock-panel {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(10, 16, 30, 0.92);
}

.mock-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.mock-title {
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.mock-row b {
  color: var(--text);
  font-weight: 600;
}

.mock-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chip {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
}

.chip-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
}

.chip-solid {
  background: linear-gradient(135deg, var(--accent), #7de2ff);
  color: var(--accent-ink);
}

/* ------------------------------ sections ------------------------------- */

.section {
  padding: clamp(2.6rem, 6vw, 4.4rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--border);
}

.section-lede {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.8rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.4rem);
  color: #c8d1e5;
}

.two-col-wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: start;
}

/* ------------------------------ card grid ------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 224, 207, 0.4);
  background: var(--surface-strong);
}

.card h3 {
  color: #ffffff;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* -------------------------------- steps -------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 3.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: #c8d1e5;
  font-size: 0.95rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(109, 139, 255, 0.16);
  border: 1px solid rgba(109, 139, 255, 0.35);
  color: #b9c6ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.steps b {
  display: block;
  color: var(--text);
}

.callout {
  padding: 1.35rem;
  border: 1px solid rgba(69, 224, 207, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(69, 224, 207, 0.09), rgba(109, 139, 255, 0.06));
}

.callout p {
  color: #cbd4e6;
  font-size: 0.94rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 22, 0.5);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom-width: 1px;
}

.link-list a::after {
  content: "↗";
  margin-left: auto;
  color: var(--accent);
}

.link-list a:hover {
  border-color: var(--accent);
  background: rgba(69, 224, 207, 0.12);
  color: #ffffff;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: #c8d1e5;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(69, 224, 207, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* --------------------------------- faq --------------------------------- */

.faq {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.22s ease;
}

.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-a {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-a p {
  margin: 0;
}

/* ------------------------------ cta band ------------------------------- */

.cta-band {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(69, 224, 207, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(109, 139, 255, 0.09), rgba(7, 11, 22, 0));
}

.cta-inner {
  text-align: center;
  max-width: 720px;
}

.cta-inner p {
  color: #c8d1e5;
}

.cta-inner .hero-actions {
  justify-content: center;
}

/* ------------------------------- footer -------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.85);
  padding-top: clamp(2rem, 5vw, 3rem);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-bottom: 1.6rem;
}

.footer-brand {
  margin-bottom: 0.6rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 54ch;
}

.footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8aa3;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.footer-links a {
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--border);
  color: #7f8aa3;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.to-top {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------ reveal fx ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  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,
  .card {
    transition: none;
  }
}

/* ------------------------------ responsive ----------------------------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .mock-window {
    max-width: 100%;
  }

  .two-col,
  .two-col-wide,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.1rem;
    background: rgba(7, 11, 22, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav > a:not(.btn) {
    padding: 0.7rem 0.4rem;
    border-radius: 8px;
  }

  .site-nav .btn-small {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    inset: 66px 0 auto 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    width: 100%;
  }
}
