:root {
  color-scheme: light;
  --ink: #111b2d;
  --muted: #4d5b70;
  --blue: #1d4ed8;
  --blue-ink: #1642be;
  --paper: #f7f9fc;
  --rule: #dce3ed;
  --navy: #0b1425;
  --radius: 1.5rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
h1, h2, h3, p, ul, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2d67ff; outline-offset: 5px; }
[id] { scroll-margin-top: 2rem; }

.shell { width: min(100% - 6.5rem, 79rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: #fff;
  color: var(--blue-ink);
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-row { min-height: 4.75rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: 0 0 auto;
  font-size: 1.08rem;
  letter-spacing: -.035em;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: .63rem; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.55rem); }
.main-nav a, .header-api, .footer-nav a { color: var(--muted); font-size: .94rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .header-api:hover, .footer-nav a:hover { color: var(--blue-ink); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-api { display: grid; align-items: center; min-height: 44px; padding-inline: .2rem; }
.header-download {
  display: inline-block;
  border: 1px solid #cad7ec;
  border-radius: 999px;
  padding: .52rem 1rem;
  font-weight: 700;
  color: var(--blue-ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: .9rem;
}
.header-download:hover { background: #eaf1ff; border-color: #a9bef1; }

.languages { position: relative; z-index: 5; }
.languages summary {
  display: flex;
  align-items: center;
  gap: .38rem;
  padding: .7rem .2rem;
  font-size: .875rem;
  font-weight: 680;
  cursor: pointer;
}
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.languages summary svg { width: 1rem; height: 1rem; color: var(--muted); }
.chevron { width: .35rem; height: .35rem; border: solid var(--muted); border-width: 0 1px 1px 0; transform: translateY(-.1rem) rotate(45deg); margin-inline: .13rem; }
.languages[open] .chevron { transform: translateY(.05rem) rotate(225deg); }
.languages ul {
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  width: max-content;
  min-width: 12rem;
  padding: .35rem;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 14px 32px #10234721;
}
.languages a {
  display: block;
  padding: .46rem .7rem;
  border-radius: .45rem;
  text-decoration: none;
  font-size: .95rem;
}
.languages a:hover, .languages a[aria-current] { background: #ecf2ff; color: var(--blue-ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 4.25vw, 4.25rem);
  padding-block: 3.5rem;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--blue-ink);
  font-weight: 730;
  font-size: .875rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero-label span { width: 1.32rem; height: 2px; flex: none; background: currentColor; }
.hero h1 {
  margin-top: 1.2rem;
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  line-height: .99;
  letter-spacing: -.068em;
  font-weight: 780;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--blue); margin-top: .08em; }
.hero-intro {
  max-width: 29rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.24rem);
  margin-block: 1.5rem 1.75rem;
  line-height: 1.55;
}
.stores { display: flex; align-items: center; flex-wrap: wrap; gap: .62rem; }
.store { display: flex; min-height: 44px; align-items: center; border-radius: .5rem; }
.store img { height: 3rem; width: auto; }
.store:hover { opacity: .84; }

.hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 26rem;
  aspect-ratio: 1.16;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 72% 18%, #253b6b, transparent 68%), #0d192d;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#acc1fe12 1px, transparent 1px), linear-gradient(90deg, #acc1fe12 1px, transparent 1px);
  background-size: 43px 43px;
  background-position: center;
  mask-image: linear-gradient(145deg, #000 0%, #000 20%, transparent 88%);
}
.hero-orbit {
  position: absolute;
  top: -33%;
  left: 34%;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid #91b1ff30;
  border-radius: 50%;
  box-shadow: 0 0 0 3rem #91b1ff0b, 0 0 0 6rem #91b1ff07;
}
.phone {
  position: relative;
  z-index: 1;
  background: #080a0e;
  border: 1px solid #6c7590;
  border-radius: 14% / 6.6%;
  padding: 3%;
  box-shadow: 0 23px 44px #03081970, 0 2px 6px #000a;
}
.phone img { width: 100%; height: auto; border-radius: 11% / 5.2%; }
.hero-visual .phone { position: absolute; padding: 1%; }
.phone--front { width: 43%; left: 15%; top: 9%; transform: rotate(-8deg); z-index: 2; }
.phone--back { width: 37%; left: 52%; top: 18%; transform: rotate(9deg); }

.markets { border-block: 1px solid var(--rule); background: #fff; padding-block: 1.6rem 1.75rem; }
.markets-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.markets-head h2 { font-size: 1.15rem; letter-spacing: -.02em; font-weight: 720; }
.markets-head p { font-size: .875rem; color: var(--muted); }
.market-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.market-card { min-width: 0; padding: .85rem .9rem .7rem; border: 1px solid var(--rule); border-radius: 1rem; background: #fff; }
.market-coin { display: flex; align-items: center; gap: .45rem; min-width: 0; font-size: .92rem; font-weight: 700; }
.market-coin img { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; background: var(--paper); }
.market-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.symbol { color: var(--muted); font-size: .79rem; font-weight: 550; }
.market-price { margin-top: .55rem; font-size: 1.2rem; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-change { font-size: .84rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); }
.market-change[data-trend="up"] { color: #0b7a3e; }
.market-change[data-trend="down"] { color: #c0392b; }
.market-spark { display: block; width: 100%; height: 2.4rem; margin-top: .4rem; overflow: visible; }
.market-spark polyline { fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.market-spark polygon { stroke: none; opacity: .09; }
.market-spark [data-trend="up"] { stroke: #0b7a3e; fill: #0b7a3e; }
.market-spark [data-trend="down"] { stroke: #c0392b; fill: #c0392b; }
.market-spark polyline[data-trend] { fill: none; }

/* 10 coins in two rows of 5 on wide screens, 8 in rows of 4, 6 in rows of 3 and 2. */
@media (max-width: 64rem) {
  .market-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-card:nth-child(n+9) { display: none; }
}
@media (max-width: 51rem) {
  .market-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-card:nth-child(n+7) { display: none; }
}
@media (max-width: 36rem) {
  .market-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .market-card { padding: .75rem .75rem .6rem; }
  .market-price { font-size: 1.05rem; }
}

.section { padding-block: clamp(3.75rem, 7vw, 6.25rem); }
.section-heading { max-width: 47rem; margin-bottom: 2rem; }
h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 760;
  text-wrap: balance;
}
.section-heading p, .download-copy p { margin-top: .8rem; font-size: 1.075rem; color: var(--muted); }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature { padding: clamp(1.35rem, 2.7vw, 2.2rem); background: #fff; }
.feature-icon { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; color: var(--blue-ink); background: #eef3ff; border-radius: .8rem; margin-bottom: 1.1rem; }
.feature h3 { font-size: 1.23rem; letter-spacing: -.035em; line-height: 1.2; }
.feature p { margin-top: .55rem; color: var(--muted); line-height: 1.55; }

.gallery { background: var(--navy); color: #f4f7ff; }
.gallery .section-heading p { color: #b5c2dc; }
.screenshot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.screenshot {
  overflow: hidden;
  border: 1px solid #33415c;
  background: #132038;
  border-radius: 1.15rem;
}
.screenshot-stage {
  display: grid;
  place-items: center;
  padding: 1rem 1.5rem;
  background: radial-gradient(ellipse at 50% 15%, #293e67, #14243b 70%);
}
.phone--gallery { width: min(100%, 11.5rem); padding: .28rem; }
.screenshot figcaption { font-size: .95rem; font-weight: 630; padding: .85rem .9rem; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(1.25rem, 5vw, 5rem); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.07rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
}
.faq-list summary:hover { color: var(--blue-ink); }
.faq-list details > p { color: var(--muted); padding-bottom: 1.1rem; max-width: 40rem; }
.faq-mark { position: relative; flex: 0 0 1rem; height: 1rem; color: var(--blue-ink); }
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
}
.faq-mark::after { transform: rotate(90deg); }
details[open] .faq-mark::after { display: none; }

.download { padding-bottom: clamp(3.25rem, 6vw, 5.5rem); }
.download-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid #cbd9f2;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  background: #eaf1ff;
}
.download-copy { margin-right: auto; }
.download-copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.download-copy p { margin-top: .4rem; }
.download-icon { flex: none; width: clamp(3.125rem, 5vw, 4.25rem); height: auto; border-radius: 24%; }
.download .stores { flex: 0 0 auto; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-bottom: clamp(3.25rem, 6vw, 5.5rem);
}
.contact-copy p { max-width: 31rem; margin-top: .8rem; color: var(--muted); font-size: 1.075rem; }
.contact-form {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
}
.contact-form label { display: block; font-weight: 650; margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  padding: .63rem .78rem;
  margin-bottom: 1rem;
  border: 1px solid #a9b7ca;
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-submit {
  min-height: 44px;
  padding: .58rem 1rem;
  border: 1px solid var(--blue);
  border-radius: .6rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-submit:hover { background: var(--blue-ink); }
.contact-submit:disabled { opacity: .7; cursor: wait; }
.contact-status { color: var(--muted); }
.contact-status:not(:empty) { margin-top: .7rem; }
.contact-status[data-state="success"] { color: #176044; }
.contact-status[data-state="error"] { color: #a32532; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2.15rem 1.75rem; background: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.footer-nav .footer-contact { color: var(--blue-ink); }
.footer-contact:hover { text-decoration: underline; }
.footer-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; margin-top: 1.2rem; color: var(--muted); font-size: .87rem; }

.legal-content { max-width: 49rem; padding-block: clamp(2.25rem, 6vw, 5rem); overflow-wrap: anywhere; }
.legal-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.06em; line-height: 1.06; margin-bottom: .85rem; }
.legal-content h2, .legal-content h3 { margin-block: 2rem .7rem; line-height: 1.2; letter-spacing: -.02em; font-size: 1.4rem; }
.legal-content h3 { font-size: 1.16rem; }
.legal-content p, .legal-content ul, .legal-content ol, .legal-content address, .legal-table { margin-block: .65rem; }
.legal-content a { color: var(--blue-ink); }
.legal-table { overflow-x: auto; }
.legal-content table { border-collapse: collapse; min-width: 34rem; }
.legal-content th, .legal-content td { border: 1px solid var(--rule); padding: .55rem; vertical-align: top; }

.api-docs { padding-bottom: 4rem; }
.api-intro { padding-block: clamp(2.1rem, 6vw, 4.5rem) clamp(1.7rem, 4vw, 2.8rem); }
.api-intro h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -.065em;
  line-height: 1.02;
  text-wrap: balance;
}
.api-intro > p { max-width: 42rem; margin-top: .8rem; color: var(--muted); font-size: 1.1rem; }
.api-docs code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
.api-base { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .65rem; }
.api-base strong { font-size: .94rem; color: var(--ink); }
.api-base code, .api-route code { padding: .2rem .45rem; background: #eaf1ff; color: var(--blue-ink); border-radius: .36rem; }

.api-layout { display: grid; grid-template-columns: minmax(12rem, .3fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 4vw, 3.25rem); }
.api-nav { position: sticky; top: 1.5rem; border-top: 1px solid var(--rule); padding-block: 1rem; }
.api-nav p { color: var(--ink); font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.api-nav ul { list-style: none; padding: 0; }
.api-nav a { display: inline-block; padding-block: .25rem; color: var(--blue-ink); text-decoration: none; }
.api-nav a:hover { text-decoration: underline; }
.api-section { border-top: 1px solid var(--rule); padding-block: 1.6rem 2.25rem; }
.api-section h2 { font-size: clamp(1.65rem, 3.7vw, 2.35rem); }
.api-section h3 { font-size: 1.05rem; margin-top: 1.15rem; line-height: 1.35; }
.api-section p, .api-section ul { margin-top: .65rem; color: var(--muted); }
.api-section ul { padding-inline-start: 1.3em; }
.api-section li + li { margin-top: .3rem; }
.api-section p.api-route { margin-top: .6rem; }
.api-parameters { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .94rem; background: #fff; }
.api-parameters th, .api-parameters td { padding: .55rem .7rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.api-parameters th { font-weight: 650; }
.api-parameters thead { background: #edf2fa; }
.api-parameters td { color: var(--muted); }
.api-section pre {
  margin: .6rem 0 0;
  padding: .85rem 1rem;
  border-radius: .7rem;
  color: #f0f5ff;
  background: #132038;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .93rem;
  line-height: 1.55;
}
.api-example-link a { color: var(--blue-ink); font-size: .94rem; font-weight: 620; }
.api-response { margin-top: 1rem; }
.api-response summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .85rem;
  border: 1px solid var(--rule);
  border-radius: .6rem;
  background: #fff;
  color: var(--blue-ink);
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 68rem) {
  .shell { width: calc(100% - 4rem); }
  .hero { gap: 2rem; }
  .hero-visual { min-height: 24rem; }
  .download-card { flex-wrap: wrap; }
  .download .stores { margin-inline-start: calc(clamp(3.125rem, 5vw, 4.25rem) + clamp(1rem, 2.5vw, 2rem)); }
}

@media (max-width: 56rem) {
  .main-nav { display: none; }
}

@media (max-width: 51rem) {
  .shell { width: calc(100% - 3rem); }
  .header-row { min-height: 4.15rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.75rem; }
  .hero-visual { max-height: 31.5rem; }
  .hero h1 { font-size: clamp(2.7rem, 8.5vw, 4.4rem); text-wrap: initial; }
  .hero-intro { margin-block: 1.1rem 1.35rem; }
  .feature-list, .screenshot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq, .contact { grid-template-columns: 1fr; }
  .footer-row { flex-wrap: wrap; gap: 1rem; }
  .api-layout { grid-template-columns: minmax(0, 1fr); }
  .api-nav { position: static; }
  .api-nav ul { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
}

@media (max-width: 29rem) {
  .shell { width: calc(100% - 2rem); }
  .header-row { gap: .5rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 2rem; height: 2rem; }
  .header-actions { gap: .45rem; }
  .header-download { display: none; }
  .hero { padding-block: 2.1rem; gap: 1.55rem; }
  .hero-visual { min-height: 0; aspect-ratio: 1.12; border-radius: 1.1rem; }
  .store img { height: clamp(2.42rem, 11vw, 2.85rem); }
  .feature-list { grid-template-columns: 1fr; }
  .screenshot-list { gap: .7rem; }
  .screenshot-stage { padding: .65rem .7rem; }
  .screenshot figcaption { padding: .55rem .7rem; font-size: .875rem; }
  .download .stores { margin-inline-start: 0; }
  .api-parameters th, .api-parameters td { padding: .43rem .42rem; }
}
