:root {
  --ink: #162a4d;
  --muted: #6b7280;
  --blue: #0a84ff;
  --blue-dark: #0070e8;
  --orange: #f7931a;
  --green: #23b694;
  --purple: #7c3aed;
  --surface: #f2f2f7;
  --surface-soft: #f8f9fb;
  --border: #e4e5ea;
  --white: #ffffff;
  --card-radius: 20px;
  --control-radius: 14px;
  --button-radius: 25px;
  --container: 1124px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 229, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand-name { display: block; font-size: 16px; line-height: 1; font-weight: 750; letter-spacing: -0.02em; }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--ink); border-color: var(--border); background: var(--white); }
.button-secondary:hover { border-color: #cfd4dc; background: var(--surface-soft); }
.button-small { min-height: 42px; padding-inline: 17px; font-size: 13px; }

.hero { padding: 72px 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .62fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(52px, 6.7vw, 78px); line-height: .98; letter-spacing: -.058em; }
.hero-copy { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.62; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.phone-stage { display: flex; justify-content: center; padding: 22px; border-radius: 30px; background: var(--surface); }
.phone-shot { width: min(100%, 324px); border: 1px solid var(--border); border-radius: 34px; background: var(--white); }
.caption { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

.trust-strip { border-block: 1px solid var(--border); background: var(--surface-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 92px; display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-right: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.trust-item:last-child { border-right: 0; }
.trust-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.trust-item:nth-child(2) .trust-dot { background: var(--orange); }
.trust-item:nth-child(3) .trust-dot { background: var(--green); }
.trust-item:nth-child(4) .trust-dot { background: var(--purple); }

.section { padding: 82px 0; }
.section-soft { background: var(--surface-soft); }
.section-line { border-top: 1px solid var(--border); }
.section-head { max-width: 730px; margin-bottom: 40px; }
.section h2, .page-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.section-intro { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { padding: 30px; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--white); }
.card.soft { background: var(--surface); }
.card-mark { width: 42px; height: 6px; margin-bottom: 28px; border-radius: 6px; background: var(--blue); }
.card:nth-child(2) .card-mark { background: var(--orange); }
.card:nth-child(3) .card-mark { background: var(--green); }
.card:nth-child(4) .card-mark { background: var(--purple); }
.card h3 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.fact-list { border-top: 1px solid var(--border); }
.fact { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.fact strong { font-size: 14px; }
.fact span { color: var(--muted); font-size: 15px; line-height: 1.65; }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; padding: 40px; border-radius: 24px; background: var(--ink); color: var(--white); }
.cta h2 { font-size: clamp(32px, 4vw, 48px); }
.cta p { max-width: 650px; margin: 13px 0 0; color: #c6cfde; line-height: 1.65; }

.page-hero { padding: 70px 0 44px; }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.content-grid { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 64px; align-items: start; }
.side-label { position: sticky; top: 104px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.prose { padding-bottom: 84px; }
.prose h2 { margin: 50px 0 14px; font-size: 28px; line-height: 1.22; letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 19px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.78; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--surface-soft); }

.footer { border-top: 1px solid var(--border); background: var(--surface-soft); }
.footer-main { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 64px; padding: 56px 0 44px; }
.footer-copy { max-width: 330px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-links strong { display: block; margin-bottom: 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { display: block; margin-top: 11px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 13px; background: var(--white); color: var(--ink); font-size: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone-stage { max-width: 480px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .content-grid { grid-template-columns: 1fr; gap: 18px; }
  .side-label { position: static; }
  .footer-main { grid-template-columns: 1fr; }
  .nav-links { position: absolute; inset: 72px 0 auto; display: none; padding: 20px; border-bottom: 1px solid var(--border); background: var(--white); }
  .nav-links.open { display: grid; gap: 0; }
  .nav-links a { padding: 13px max(20px, calc((100vw - var(--container))/2)); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-cta { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .hero { padding: 50px 0 58px; }
  .hero h1 { font-size: 50px; }
  .section { padding: 64px 0; }
  .feature-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }
  .fact { grid-template-columns: 1fr; gap: 8px; }
  .cta { grid-template-columns: 1fr; padding: 30px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* Focused animated product page */
.showcase-page { min-height: 100vh; overflow-x: hidden; background: #fff; }
.showcase-header {
  width: min(calc(100% - 56px), 1240px);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.showcase-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.showcase-nav a { color: var(--muted); font-size: 13px; font-weight: 650; }
.showcase-nav a:hover { color: var(--ink); }
.showcase-main {
  width: min(calc(100% - 56px), 1240px);
  min-height: calc(100vh - 150px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .7fr);
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
  padding: 42px 0 58px;
}
.showcase-copy { position: relative; z-index: 2; max-width: 670px; }
.showcase-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 7.5vw, 98px);
  line-height: .92;
  letter-spacing: -.065em;
}
.showcase-copy > p:not(.eyebrow):not(.showcase-disclosure) {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
}
.showcase-disclosure {
  max-width: 620px;
  margin: 18px 0 0;
  color: #8a8f98;
  font-size: 12px;
  line-height: 1.6;
}
.device-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  perspective: 1700px;
}
.phone-motion {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}
.phone-body {
  position: relative;
  --phone-width: 350px;
  --phone-height: 730px;
  --phone-depth: 38px;
  --phone-radius: 49px;
  width: var(--phone-width);
  height: var(--phone-height);
  transform-style: preserve-3d;
  will-change: transform;
  animation: phone-sequence 16s cubic-bezier(.45,.05,.2,1) infinite;
}
.phone-face {
  position: absolute;
  inset: 0;
  border: 1px solid #2a2d33;
  border-radius: var(--phone-radius);
  box-shadow: 0 32px 65px rgba(22, 42, 77, .19);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.phone-front {
  padding: 8px 10px;
  transform: translateZ(calc(var(--phone-depth) / 2));
  background: #0a0b0d;
  box-shadow: 0 32px 65px rgba(22, 42, 77, .19), inset 0 0 0 2px #5e5c57;
}
.phone-edge { position: absolute; inset: 2px; border: 1px solid #77746d; border-radius: 47px; pointer-events: none; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 41px; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wallet-screen { z-index: 1; }
.receive-screen {
  z-index: 2;
  transform: translateY(104%);
  opacity: 0;
  will-change: transform, opacity;
  animation: receive-sheet-sequence 16s cubic-bezier(.32,.72,0,1) infinite;
}
.receive-tap {
  position: absolute;
  z-index: 3;
  right: 17%;
  bottom: 7.3%;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: rgba(10,132,255,.2);
  box-shadow: 0 0 0 0 rgba(10,132,255,.35);
  opacity: 0;
  pointer-events: none;
  animation: receive-tap-sequence 16s ease-out infinite;
}
.phone-back {
  transform: rotateY(180deg) translateZ(calc(var(--phone-depth) / 2));
  border-color: #8b877f;
  background: #8b8881;
  box-shadow: 0 32px 65px rgba(22, 42, 77, .19), inset 0 0 0 1px rgba(255,255,255,.25);
}
.phone-back > img { display: block; width: 100%; height: 100%; object-fit: fill; }
.phone-side {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, #716e68 0%, #c9c4ba 28%, #8a867e 68%, #66635d 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  backface-visibility: hidden;
}
.phone-side-left,
.phone-side-right {
  top: 44px;
  left: calc(50% - (var(--phone-depth) / 2));
  width: var(--phone-depth);
  height: calc(100% - 88px);
  border-radius: 8px;
}
.phone-side-left { transform: rotateY(-90deg) translateZ(calc(var(--phone-width) / 2)); }
.phone-side-right { transform: rotateY(90deg) translateZ(calc(var(--phone-width) / 2)); }
.phone-side-top,
.phone-side-bottom {
  top: calc(50% - (var(--phone-depth) / 2));
  left: 44px;
  width: calc(100% - 88px);
  height: var(--phone-depth);
  border-radius: 8px;
}
.phone-side-top { transform: rotateX(90deg) translateZ(calc(var(--phone-height) / 2)); }
.phone-side-bottom { transform: rotateX(-90deg) translateZ(calc(var(--phone-height) / 2)); }
.phone-shadow {
  position: absolute;
  bottom: 4px;
  width: 290px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 42, 77, .13);
  filter: blur(18px);
  animation: shadow-breathe 16s ease-in-out infinite;
}
.showcase-footer {
  width: min(calc(100% - 56px), 1240px);
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.showcase-footer nav { display: flex; align-items: center; gap: 20px; }
.showcase-footer a { color: var(--muted); font-weight: 600; }
.showcase-footer a:hover { color: var(--ink); }
@keyframes phone-sequence {
  0%, 16% { transform: rotateX(0deg) rotateY(-10deg) translateY(0); }
  29% { transform: rotateX(1deg) rotateY(170deg) translateY(-8px); }
  43% { transform: rotateX(0deg) rotateY(170deg) translateY(-3px); }
  56% { transform: rotateX(-1deg) rotateY(350deg) translateY(-8px); }
  64%, 100% { transform: rotateX(0deg) rotateY(350deg) translateY(0); }
}
@keyframes receive-tap-sequence {
  0%, 63% { opacity: 0; transform: scale(.55); box-shadow: 0 0 0 0 rgba(10,132,255,.35); }
  65% { opacity: 1; transform: scale(.92); }
  67% { opacity: 0; transform: scale(1.45); box-shadow: 0 0 0 16px rgba(10,132,255,0); }
  100% { opacity: 0; }
}
@keyframes receive-sheet-sequence {
  0%, 67% { transform: translateY(104%); opacity: 0; }
  68% { transform: translateY(104%); opacity: 1; }
  75%, 96% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(104%); opacity: 0; }
}
@keyframes shadow-breathe {
  0%, 100% { transform: scale(.92); opacity: .65; }
  50% { transform: scale(1.08); opacity: 1; }
}
@media (max-width: 960px) {
  .showcase-nav { display: none; }
  .showcase-main { grid-template-columns: 1fr; text-align: center; }
  .showcase-copy { margin-inline: auto; }
  .showcase-copy > p, .showcase-disclosure { margin-inline: auto; }
  .showcase-copy .actions { justify-content: center; }
  .device-stage { min-height: 700px; }
  .phone-body { --phone-width: 315px; --phone-height: 657px; --phone-depth: 34px; --phone-radius: 45px; }
  .phone-screen { border-radius: 40px; }
}
@media (max-width: 600px) {
  .showcase-header, .showcase-main, .showcase-footer { width: min(calc(100% - 32px), 1240px); }
  .showcase-main { padding-top: 36px; gap: 28px; }
  .showcase-copy h1 { font-size: 54px; }
  .showcase-copy .button { width: 100%; }
  .device-stage { min-height: 620px; }
  .phone-body { --phone-width: 276px; --phone-height: 576px; --phone-depth: 30px; --phone-radius: 39px; }
  .phone-screen { border-radius: 35px; }
  .showcase-footer { padding: 22px 0; flex-direction: column; justify-content: center; text-align: center; }
  .showcase-footer nav { flex-wrap: wrap; justify-content: center; }
  .showcase-get { min-width: 116px; width: auto; }
}

/* Legal documents — measured against BlueWallet's official xsmall page layout */
.legal-page .page-hero {
  padding: 56px 0 0;
}
.legal-page .page-hero .container,
.legal-page .content-grid {
  width: min(calc(100% - 40px), 700px);
}
.legal-page .page-hero .eyebrow {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: none;
}
.legal-page .page-hero h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}
.legal-page .page-hero p:not(.eyebrow) {
  max-width: none;
  margin: 20px 0 0;
  color: #323247;
  font-size: 16px;
  line-height: 1.8;
}
.legal-page .section {
  padding: 0 0 76px;
}
.legal-page .content-grid {
  display: block;
}
.legal-page .side-label {
  display: none;
}
.legal-page .prose {
  padding: 0;
}
.legal-page .prose h2 {
  margin: 32px 0 8px;
  color: #000;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}
.legal-page .prose h2:first-child {
  margin-top: 32px;
}
.legal-page .prose p,
.legal-page .prose li {
  margin: 0;
  color: #323247;
  font-size: 16px;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .legal-page .page-hero { padding-top: 38px; }
  .legal-page .page-hero .container,
  .legal-page .content-grid { width: min(calc(100% - 32px), 700px); }
  .legal-page .section { padding-bottom: 58px; }
}

/* Import guide */
.import-hero { border-bottom: 1px solid var(--border); }
.import-safety { padding-block: 38px; }
.safety-card { display: grid; grid-template-columns: 52px 1fr; gap: 22px; align-items: start; padding: 28px 30px; border: 1px solid #f1cfa5; border-radius: var(--card-radius); background: #fffaf3; }
.safety-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-size: 24px; font-weight: 850; }
.safety-card h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.safety-card p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.72; }
.compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.compat-grid article { padding: 23px; border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--surface-soft); }
.compat-grid strong { font-size: 16px; }
.compat-grid p { margin: 10px 0 0; font-size: 14px; }
.import-steps { margin: 0; padding: 0; list-style: none; }
.import-steps li { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.import-steps li:first-child { padding-top: 0; }
.import-steps li > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--blue); background: var(--white); font-size: 14px; font-weight: 800; }
.import-steps h2 { margin: 2px 0 9px; font-size: 22px; letter-spacing: -.025em; }
.import-steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.74; }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-links a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; border: 1px solid var(--border); border-radius: 22px; color: var(--ink); background: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; }
@media (max-width: 680px) {
  .safety-card { grid-template-columns: 1fr; padding: 24px; }
  .compat-grid { grid-template-columns: 1fr; }
  .import-steps li { grid-template-columns: 42px 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-body, .phone-shadow, .receive-screen, .receive-tap { animation: none; }
  .phone-body { transform: rotateY(-6deg); }
  .receive-screen, .receive-tap { display: none; }
}
