/* ============================================================
   Decentr Wallet — landing page
   Palette lifted from the extension (src/popup/styles.ts):
   primary #0aa89e · primaryDark #0b8c84 · blue #3d9bd9
   bg #f4fafb · text #1a3b41 · subtext #6b8f96 · border #dceef1
   ============================================================ */

:root {
  --primary: #0aa89e;
  --primary-dark: #0b8c84;
  --blue: #3d9bd9;
  --bg: #f4fafb;
  --card: #ffffff;
  --text: #1a3b41;
  --subtext: #6b8f96;
  --border: #dceef1;
  --success: #0aa87a;
  --grad: linear-gradient(90deg, var(--primary) 0%, var(--blue) 100%);
  --radius: 14px;
  --shadow: 0 1px 3px rgba(10, 168, 158, 0.08);
  --shadow-lg: 0 16px 40px -12px rgba(10, 168, 158, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

code {
  background: #eef9f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--primary-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 250, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -12px rgba(10, 168, 158, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:not(.btn):hover { opacity: 1; color: var(--primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons / badges / pills ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(10, 168, 158, 0.55);
}

.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(10, 168, 158, 0.65); }

.btn-ghost {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8f6f5;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(10, 168, 122, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-ok {
  background: #e8f6f5;
  color: var(--primary-dark);
  border: 1px solid rgba(10, 168, 158, 0.35);
}

.badge-soon {
  background: #fff;
  color: var(--blue);
  border: 1px dashed var(--blue);
}

.badge-lg { font-size: 0.88rem; padding: 0.55rem 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.eyebrow-light { color: #9ff2ea; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 4.5rem 0 7rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 1.2rem 0 1.1rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--subtext);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

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

.platform-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

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

.logo-card {
  width: min(340px, 78vw);
  aspect-ratio: 1;
  border-radius: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-1 { width: 420px; height: 420px; background: rgba(10, 168, 158, 0.35); top: -120px; right: -80px; }
.orb-2 { width: 360px; height: 360px; background: rgba(61, 155, 217, 0.3); bottom: -60px; left: -120px; }
.orb-3 { width: 220px; height: 220px; background: rgba(10, 168, 158, 0.28); top: 40%; left: 42%; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 70px; }

/* ---------------- Chains strip ---------------- */

.chains { padding: 0.5rem 0 2.5rem; }

.chains-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: 1.1rem;
}

.chain-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.chain {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--subtext);
  box-shadow: var(--shadow);
}

.chain b { color: var(--primary-dark); }

.chain img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: -3px;
  margin-right: 0.4rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 168, 158, 0.15);
  flex-shrink: 0;
}

.chain {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chain-plus { border-style: dashed; }

.chain-row-sub { margin-top: 0.7rem; }

.chains-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--subtext);
  margin-top: 0.9rem;
}

/* ---------------- Sections / cards ---------------- */

.section { padding: 5rem 0; }

.section-head {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.section-head p { color: var(--subtext); font-size: 1.05rem; }

.section-head.light h2,
.section-head.light p { color: #fff; }
.section-head.light p { opacity: 0.85; }

.grid {
  display: grid;
  gap: 1.2rem;
}

.features-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f6f5, #eaf4fb);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }

.card p { color: var(--subtext); font-size: 0.93rem; }

/* ---------------- Multisig spotlight ---------------- */

.multisig {
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(61, 155, 217, 0.35), transparent 60%),
    radial-gradient(700px 340px at 90% 100%, rgba(10, 168, 158, 0.4), transparent 60%),
    linear-gradient(135deg, #0d3d44 0%, #0b5a63 45%, #146a7e 100%);
  color: #fff;
}

.status-pill {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.ms-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 1.2rem; }

.ms-card {
  position: relative;
  background: rgba(6, 38, 44, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, background 0.22s ease;
}

.ms-card:hover {
  transform: translateY(-5px);
  background: rgba(6, 38, 44, 0.78);
}

.ms-num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad);
  color: #fff;
}

.ms-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.ms-card p { font-size: 0.93rem; opacity: 0.85; }

.card-dark {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-dark h3 { color: #0b6e52; }

.card-dark p { color: #4a6b71; }

/* ---------------- Mobile section ---------------- */

.mobile-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

.mobile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mobile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.phone-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.1rem;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -10px rgba(10, 168, 158, 0.6);
}

.mobile-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }

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

.cta {
  background: #fff;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.cta p { color: var(--subtext); margin-bottom: 1.8rem; }

.footer { background: #10353b; color: rgba(255, 255, 255, 0.85); padding: 3rem 0 2rem; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; max-width: 320px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-brand b { font-size: 1rem; }
.footer-brand p { font-size: 0.85rem; opacity: 0.7; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: #7de8e0; }

.footer-note {
  flex-basis: 100%;
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

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

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ms-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.2rem; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .lead { margin-inline: auto; }
  .hero { padding-top: 3rem; }
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.4rem 1.4rem;
    gap: 0.4rem;
    display: none;
    box-shadow: 0 20px 40px -20px rgba(10, 60, 66, 0.3);
  }

  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.55rem 0; font-size: 1rem; }
  .nav-links .btn { justify-content: center; margin-top: 0.6rem; }

  .features-grid { grid-template-columns: 1fr; }
  .mobile-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding-bottom: 5.5rem; }
  .hero-wave svg { height: 40px; }

  .platform-badges { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
